]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
emit-rtl.c (set_new_first_and_last_label_num): Remove function.
[thirdparty/gcc.git] / gcc / ChangeLog
1 2003-12-17 Per Bothner <per@bothner.com>
2
3 * emit-rtl.c (set_new_first_and_last_label_num): Remove function.
4 * rtl.h (set_new_first_and_last_label_num): Remove declaration.
5
6 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
7
8 * config/frv/frv.c (frv_ifcvt_modify_insn): Don't leave alone
9 scratch insns of the then branch that clobber regs needed by the
10 else branch.
11
12 2003-12-17 Kazu Hirata <kazu@cs.umass.edu>
13
14 * calls.c (expand_call): Update comments.
15 * system.h (PRETEND_OUTGOING_VARARGS_NAMED): Poison.
16 * targhooks.c: Do not refer to PRETEND_OUTGOING_VARARGS_NAMED.
17
18 2003-12-17 James E Wilson <wilson@specifixinc.com>
19 Roger Sayle <roger@eyesopen.com>
20
21 * Makefile.in (gcse.o): Add $(TREE_H) to dependencies.
22 * gcse.c: Include tree.h.
23 (implicit_set_cond_p): New.
24 (find_implicit_sets): Call it.
25
26 2003-12-17 Santiago Vila <sanvila@unex.es>
27
28 * config/kfreebsdgnu.h (TARGET_OS_CPP_BUILTINS): Rename from
29 TARET_OS_CPP_BUILTINS.
30
31 2003-12-16 Kazu Hirata <kazu@cs.umass.edu>
32
33 * emit-rtl.c: Fix signed/unsigned comparison warnings.
34
35 2003-12-17 Joseph S. Myers <jsm@polyomino.org.uk>
36
37 * predict.c (struct block_info_def, struct edge_info_def): Change
38 bit-fields of width 1 to unsigned int.
39
40 2003-12-16 Geoffrey Keating <geoffk@apple.com>
41
42 PR 12480
43 * c-pch.c (pch_init): Improve error message when precompiled
44 header can't be written.
45
46 PR 12606
47 * c-pch.c (pch_init): Make a PCH file appear invalid while it's
48 being written.
49 (c_common_write_pch): Make it valid once it's done.
50
51 2003-12-17 Ulrich Weigand <uweigand@de.ibm.com>
52
53 PR target/11992
54 * config/s390/s390.md ("*cmpmem_long_64"): Use CLCLE instruction
55 instead of CLCL.
56 ("*cmpmem_long_31"): Likewise.
57
58 2003-12-17 Vladimir Makarov <vmakarov@redhat.com>
59
60 * config/ia64/ia64.c: Add more comments about insn bundling.
61
62 2003-12-17 Richard Earnshaw <rearnsha@arm.com>
63
64 PR optimization/10592
65 * caller-save.c (mark_referenced_regs): Don't short-circuit a reg
66 or subreg in SET_DEST if it isn't a hard register.
67
68 2003-12-17 David Edelsohn <edelsohn@gnu.org>
69
70 * collect2.c (main): Add -fno-profile-arcs -fno-test-coverage
71 -fno-branch-probabilities to arguments when compiling ctors and
72 dtors.
73
74 2003-12-17 Eric Botcazou <ebotcazou@libertysurf.fr>
75
76 * config/sparc/sol2.h: Set SUPPORTS_INIT_PRIORITY to 0.
77 * config/sparc/sol2-gld.h: Set SUPPORTS_INIT_PRIORITY to 1.
78
79 2003-12-17 Richard Earnshaw <rearnsha@arm.com>
80
81 * arm.c (thumb_base_register_rtx_p): Don't allow virtual registers
82 as base registers for sub-word operations.
83 (thumb_legitimate_address_p): Simplify REG+REG test.
84
85 2003-12-17 Segher Boessenkool <boessen@de.ibm.com>
86
87 * opts.c (wrap_help): Fix overflow.
88
89 2003-12-17 Fred Fish <fnf@redhat.com>
90
91 * configure.in: Remove code to examine linker scripts and set
92 HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES.
93 * configure, config.in: Regenerate.
94
95 2003-12-16 Mark Mitchell <mark@codesourcery.com>
96
97 PR c++/12218
98 * varasm.c (initializer_constant_valid_p): Allow a conversion from
99 an integral constant to an OFFSET_TYPE.
100
101 2003-12-16 Kazu Hirata <kazu@cs.umass.edu>
102
103 PR target/11012
104 * config/m32r/m32r.c (gen_compare): Call gen_addsi3 instead of
105 gen_cmp_ne_small_const_insn.
106 * config/m32r/m32r.md (cmp_ne_small_const_insn): Remove.
107
108 2003-12-17 Neil Booth <neil@daikokuya.co.uk>
109 Joseph S. Myers <jsm@polyomino.org.uk>
110
111 PR c/3347
112 * c-decl.c (enum_decl_context): Remove BITFIELD.
113 (grokdeclarator): Take bit-field width as an input.
114 Perform bit-field width validation with
115 check_bitfield_type_and_width rather than waiting for
116 finish_struct.
117 (groktypename, groktypename_in_parm_context, start_decl,
118 push_parm_decl, grokfield, start_function): Update calls to
119 grokdeclarator.
120 (check_bitfield_type_and_width): New function.
121 (finish_struct): Move bit-field validation to grokdeclarator
122 and check_bitfield_type_and_width.
123
124 2003-12-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
125
126 PR bootstrap/13386
127 * configure.in (gcc_cv_ld_hidden): Set to yes on hppa64*-*-hpux* when
128 using HP native linker.
129 * configure: Rebuilt.
130
131 2003-12-16 Mark Mitchell <mark@codesourcery.com>
132
133 PR c++/13275
134 * c-common.h (enum rid): Add RID_OFFSETOF.
135 * c-parser.in (rid_to_yy): Ignore RID_OFFSETOF.
136 * ginclude/stddef.h (offsetof): Reimplement for C++, using
137 __offsetof__.
138 * doc/extend.texi: Document __offsetof__.
139
140 2003-12-16 Stan Cox <scox@redhat.com>
141
142 * config/iq2000/iq2000.h: Formatting.
143 (MAX_INT_TYPE_SIZE, MAX_INT_TYPE_SIZE, CONST_COSTS, RTX_COSTS)
144 (ADDRESS_COST, ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL)
145 (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR, SLOW_ZERO_EXTEND): Remove
146 * config/iq2000/iq2000.c: Formatting.
147 (iq2000_rtx_costs): New.
148
149 2003-12-16 Richard Earnshaw <rearnsha@arm.com>
150
151 * arm.md (addsi3_carryin_shift): Add missing register constraints.
152
153 2003-12-16 Loren James Rittle <ljrittle@acm.org>
154
155 * testsuite/g++.old-deja/g++.eh/badalloc1.C: Tweak to
156 pass with -pthread on FreeBSD systems.
157
158 2003-12-16 Richard Sandiford <rsandifo@redhat.com>
159
160 * config/mips/mips.c (mips_file_end): Only write symbols that have
161 been referenced at some point.
162
163 2003-12-16 Richard Sandiford <rsandifo@redhat.com>
164
165 * config/mips/mips.c: Include langhooks.h
166 (mips_build_builtin_va_list): Use lang_hooks.types.make_type.
167
168 2003-12-16 Eric Botcazou <ebotcazou@libertysurf.fr>
169
170 PR optimization/13313
171 * combine.c (make_extraction) [REG]: Do not use
172 gen_lowpart_for_combine when POS is non-zero.
173
174 2003-12-16 Hartmut Penner <hpenner@de.ibm.com>
175
176 * altivec.h (vec_cmple, vec_all_numeric): Fix typo.
177 * testsuite/gcc.dg/altivec-10.c: Test for above.
178
179 2003-12-15 David O'Brien <obrien@FreeBSD.org>
180
181 * Makefile.in (CPPFLAGS): Initialize from configure.
182
183 2003-12-15 Roger Sayle <roger@eyesopen.com>
184
185 PR middle-end/13400
186 * ifcvt.c (noce_process_if_block): Disable unconditional write
187 optimizations if we could introduce a store to trapping memory
188 that wasn't present previously.
189
190 2003-12-15 Kazu Hirata <kazu@cs.umass.edu>
191
192 * system.h (DEFAULT_CALLER_SAVES): Poison.
193 * toplev.c (flag_caller_saves): Always initialize with 0.
194 * doc/tm.texi (DEFAULT_CALLER_SAVES): Remove.
195
196 2003-12-15 Kazu Hirata <kazu@cs.umass.edu>
197
198 * flow.c (EXIT_IGNORE_STACK): Move to ...
199 * defaults.h (EXIT_IGNORE_STACK): ... here.
200 * dojump.c (clear_pending_stack_adjust): Don't use #ifdef
201 EXIT_IGNORE_STACK.
202 * function.c (expand_function_end): Likewise.
203 * global.c (global_alloc): Likewise.
204 * ra.c (init_ra): Likewise.
205 * reload1.c (init_elim_table): Likewise.
206 * reorg.c (fill_simple_delay_slots): Likewise.
207 * resource.c (init_resource_info): Likewise.
208 * doc/tm.texi (EXIT_IGNORE_STACK): Document that the default
209 is 0.
210
211 2003-12-15 J"orn Rennecke <joern.rennecke@superh.com>
212
213 * reload.c (reg_overlap_mentioned_for_reload_p):
214 When looking at a PLUS in X, avoid spuriously returning nonzero
215 when IN is a REG or another simple PLUS, or a MEM containing one.
216
217 * loop.c (loop_invariant_p): Amend comment about where new registers
218 might come from.
219
220 2003-12-15 Andreas Jaeger <aj@suse.de>
221
222 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Remove
223 handling of obsolete language CHILL.
224
225 2003-12-15 Waldek Hebisch <hebisch@math.uni.wroc.pl>
226
227 * tree.c (initializer_zerop): Add test for empty set.
228 * integrate.c (function_cannot_inline_p): Forbid inlining
229 functions calling `longjmp'.
230
231 2003-12-15 Nathan Sidwell <nathan@codesourcery.com>
232
233 PR c++/11773
234 * doc/gcov.texi (Gcov and Optimization): Document inline function
235 behaviour. Fix some file suffixes.
236
237 2003-12-14 David O'Brien <obrien@FreeBSD.org>
238
239 * config/i386/i386.h (__amd64, __amd64__): Remove duplicates.
240
241 2003-12-14 Mark Mitchell <mark@codesourcery.com>
242
243 * c-common.h (c_parse_error): Declare it.
244 * c-common.c (c_parse_error): New function.
245 * c-parse.y (yyerror): Use it.
246
247 2003-12-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
248
249 PR target/13054
250 * pa-protos.h (indexed_memory_operand, borx_reg_operand,
251 move_dest_operand, move_src_operand): New protypes.
252 (basereg_operand, move_operand, reg_or_nonsymb_mem_operand): Deleted.
253 * pa.c (copy_reg_pointer, indexed_memory_operand, move_dest_operand,
254 move_src_operand): New functions.
255 (basereg_operand, reg_or_nonsymb_mem_operand, move_operand): Delete.
256 (reg_or_0_or_nonsymb_mem_operand): Return false for unscaled indexed
257 address until cse is not expected on targets with non-equivalent
258 space registers.
259 (hppa_legitimize_address): Canonicalize unscaled indexed addresses
260 on targets non-equivalent space registers.
261 (emit_move_sequence): Break out indexed addresses from destination
262 operand. Similarly, break out unscaled indexed addresses from
263 source operand on targets with non-equivalent space registers. Fix
264 REG_POINTER flag when possible. Mark register pointer when creating
265 new pointers.
266 (print_operand): Handle unscaled index addresses.
267 * pa.h (IS_INDEX_ADDR_P, IS_LO_SUM_DLT_ADDR_P): New macro subroutines
268 for EXTRA_CONSTRAINT.
269 (EXTRA_CONSTRAINT): Rework to make more readable.
270 (MODE_OK_FOR_SCALED_INDEXING_P, MODE_OK_FOR_UNSCALED_INDEXING_P): New
271 subroutines for GO_IF_LEGITIMATE_ADDRESS.
272 (GO_IF_LEGITIMATE_ADDRESS): Rework using new subroutines. Allow scaled
273 and unscaled addresses. Canonicalize unscaled indexed addresses on
274 targets with non-equivalent space registers. Document issues in
275 handling indexed address modes on PA-RISC.
276 (PREDICATE_CODES): Update for new and deleted predicates.
277 * pa.md (move_dest_operand, move_src_operand, indexed_memory_operand):
278 Use new predicates in move patterns.
279 Add peephole2 patterns to optimize floating point stores. Fix
280 constrain preferencing in move patterns. Delete patterns for handling
281 unscaled indexed memory loads. Add missing load and store with
282 base-register modification patterns. Correct SFmode floating point
283 store pattern. Add missing zero extension loads.
284
285 2003-12-13 Steven Bosscher <stevenb@suse.de>
286
287 * ggc-zone.c (struct alloc_zone): Don't pre-declare, it already
288 comes in with ggc.h. Add a new bool field `dead'.
289 (destroy_ggc_zone): Don't destroy a zone at once. Instead, only
290 set the `dead' flag for the dead zone. Wrap a sanity check in
291 ENABLE_CHECKING.
292 (ggc_collect_1): Always mark and sweep if a zone has the `dead'
293 flag set.
294 (ggc_collect): Free dead zones after collecting.
295
296 2003-12-13 Jan Hubicka <jh@suse.cz>
297
298 * coverage.c (get_coverage_counts): Use inform instead of warning
299 about missing profile.
300
301 2003-12-12 Steven Bosscher <stevenb@suse.de>
302
303 * Makefile.in (opts.o, explow.o): Depend on langhooks.h
304
305 2003-12-12 Geoffrey Keating <geoffk@apple.com>
306
307 * config.gcc <i[34567]86-*-darwin*>: Don't use fixproto.
308 <powerpc-*-darwin*>: Likewise.
309
310 2003-12-12 Jakub Jelinek <jakub@redhat.com>
311
312 * config/ia64/linux.h (IA64_GATE_AREA_END): Increase by 64K.
313 (MD_FALLBACK_FRAME_STATE_FOR): Set fpsr_loc, br_loc[6] and
314 br_loc[7]. Update comment.
315 (MD_HANDLE_UNWABI): Define.
316 * config/ia64/unwind-ia64.c (struct unw_state_record): Add
317 unwabi field.
318 (struct _Unwind_Context): Increase br_loc array size to 8 entries.
319 (desc_abi): Set unwabi.
320 (uw_update_reg_address): Allow br up to 7.
321 (uw_update_context): Invoke MD_HANDLE_UNWABI if defined.
322 (uw_install_context): Load b1..b5 from correct locations.
323 Fix insn loading ar.fpsr.
324 * doc/tm.texi: Document MD_HANDLE_UNWABI.
325
326 2003-12-12 Roger Sayle <roger@eyesopen.com>
327
328 PR optimization/13037
329 * loop.c (update_giv_derive): Ignore redundant sets of a biv when
330 calculating how to derive a giv from a biv.
331
332 2003-12-12 Neil Booth <neil@daikokuya.co.uk>
333
334 PR preprocessor/12935 preprocessor/12952 preprocessor/13046
335 * cpplib.c (prepare_directive_trad): Clear skipping only in
336 #if and #elif directives.
337 (do_undef): Call the handler even if the identifier is not a macro.
338 * cpptrad.c (scan_parameters): Emit an error message.
339 (_cpp_create_trad_definition): Remember the params list even on
340 failure.
341
342 2003-12-11 Zack Weinberg <zack@codesourcery.com>
343
344 * arm.c (ARM_ADDRESS_COST, THUMB_ADDRESS_COST): Convert macros
345 to inline functions: arm_arm_address_cost, arm_thumb_address_cost
346 respectively.
347 (arm_address_cost): Use 'em.
348
349 2003-12-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
350
351 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define
352 __STDC_VERSION__ to ISO C94 for C++.
353
354 * fixinc/inclhack.def (alpha_wchar): New fix.
355 * fixinc/fixincl.x: Regenerate.
356 * fixinc/tests/base/wchar.h: New file.
357
358 2003-12-11 David Mosberger <davidm@hpl.hp.com>
359
360 * unwind-libunwind.c (_Unwind_SetGR): Clear the NaT bit as
361 required by C++ ABI for Itanium.
362 * config/t-libunwind (LIB2ADDEH): Remove unwind-libunwind.c.
363 * config/t-libunwind-no-eh: New file.
364 * configure.in: Check libunwind for _Unwind_Resume() and if it's
365 present, set libunwind_has_eh_support to "yes".
366 * configure: Regenerate.
367 * config.gcc (ia64*-*-linux*): If $libunwind_has_eh_support is
368 set to yes, use t-libunwind, otherwise, use t-libunwind-no-eh.
369
370 2003-12-11 Richard Sandiford <rsandifo@redhat.com>
371
372 * config/mips/mips.c (mips_global_pointer): Force functions with
373 a nonlocal goto to set up $gp.
374
375 2003-12-11 James E Wilson <wilson@specifixinc.com>
376
377 PR target/13132
378 * function.c (gen_mem_addressof): When no decl, explicitly clear flag
379 bits.
380
381 2003-12-12 Nick Clifton <nickc@redhat.com>
382
383 * config/m32r/m32r.c: Convert to ISO-C
384
385 2003-12-12 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
386
387 * doc/invoke.texi: Replace Mitsubishi with Renesas.
388 * config/m32r/m32r.h: Ditto.
389 * config/m32r/m32r.c: Ditto.
390 * config/m32r/m32r.md: Ditto.
391
392 2003-12-11 Steven Bosscher <steven@gcc.gnu.org>
393
394 * basic-block.h (BLOCK_HEAD, BLOCK_END): Remove.
395 (BLOCK_HEAD_TREE, BLOCK_END_TREE): Remove.
396 (basic_block_def): Rename `head' to `head_' and `end' to `end_'.
397 (BB_HEAD, BB_END): New accessor macros for the `head_' and `end_'
398 fields of a basic block.
399 * bb-reorder.c, bt-load.c, caller-save.c, cfg.c, cfganal.c,
400 cfgbuild.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgloopanal.c,
401 cfgloopmanip.c, cfgrtl.c, combine.c, conflict.c, df.c, emit-rtl.c,
402 final.c, flow.c, function.c, gcse.c, global.c, graph.c,
403 haifa-sched.c, ifcvt.c, lcm.c, local-alloc.c, loop-unswitch.c,
404 loop.c, postreload.c, predict.c, profile.c, ra-build.c, ra-debug.c,
405 ra-rewrite.c, ra.c, recog.c, reg-stack.c, regclass.c, regmove.c,
406 regrename.c, reload1.c, resource.c, sched-ebb.c, sched-rgn.c,
407 sibcall.c, tracer.c, config/frv/frv.c, config/i386/i386.c,
408 config/ia64/ia64.c: Use the BB_HEAD and BB_END macros instead of
409 accessing the `head' and `end' fields of a basic block directly.
410
411 * gengtype.c: Teach about "void**" pointers and "void *" function
412 types. Fixes earlier commit.
413
414 2003-12-10 Geoffrey Keating <geoffk@apple.com>
415
416 * doc/extend.texi (Vector Extensions): Document that bitwise
417 operations also work on vectors.
418
419 2003-12-10 Richard Earnshaw <rearnsha@arm.com>
420
421 * arm.md: New split patterns for optimizing bitfield accesses.
422
423 2003-12-10 Steven Bosscher <stevenb@suse.de>
424
425 * README.Portability: Remove K+R section.
426
427 * gengtype-lex.l: Teach about "void**" pointers and
428 "void*" function types.
429
430 2003-12-10 Eric Botcazou <ebotcazou@libertysurf.fr>
431
432 PR target/13354
433 * config/sparc/sparc.c (sparc_output_mi_thunk): Load DELTA
434 manually if one can do that with only one instruction.
435
436 2003-12-10 Nick Clifton <nickc@redhat.com>
437
438 * config.gcc (arm-linux): Include linux.h in tm_file so that
439 LINUX_TARGET_OS_CPP_BUILTINS is defined.
440 * config/arm/linux-elf.h (LIB_SPEC): Protect the definition.
441
442 2003-12-09 James E Wilson <wilson@specifixinc.com>
443
444 * rtl.def (CODE_LABEL, NOTE): Correct operand numbers in comments.
445
446 2003-12-09 Matt Austern <austern@apple.com>
447
448 PR c/13134
449 * c-decl.c (duplicate_decls): Copy visibility flag when appropriate.
450
451 2003-12-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
452
453 * config/m32r/m32r.h: Add support for m32r2 processor. Including
454 a new command line option -m32r2 to select it.
455 * config/m32r/m32r.c: Add support for the new processor variant.
456 * config/m32r/m32r.md: Likewise.
457 * config/m32r/t-m32r: Add m32r2 multilibs.
458 * doc/invoke.texi: Document the new command line switch.
459
460 2003-12-08 Kazu Hirata <kazu@cs.umass.edu>
461
462 * defaults.h (LOCAL_REGNO): Give the default definition.
463 * flow.c (LOCAL_REGNO): Remove.
464 * reload1.c (LOCAL_REGNO): Likewise.
465
466 2003-12-08 Geoffrey Keating <geoffk@apple.com>
467
468 PR target/11848
469 * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Allow change of mode
470 in floating-point registers between TFmode and DImode.
471 * rs6000.c (rs6000_emit_move): Split moves early.
472 (secondary_reload_class): Random Whitespace Change.
473 (rs6000_split_multireg_move): Support moves involving FP registers.
474 Emit instructions directly.
475 * rs6000-protos.h (rs6000_split_multireg_move): Update prototype.
476 * altivec.md: Update for changes to rs6000_split_multireg_move.
477 * rs6000.md: Update for changes to rs6000_split_multireg_move.
478 (movtf_internal): Support moves to/from GPRs.
479
480 2003-12-08 Stuart Hastings <stuart@apple.com>
481
482 * config/i386/i386.md: Typo in split of fp-valued if_then_else.
483
484 2003-12-08 James E Wilson <wilson@specifixinc.com>
485
486 PR target/13132
487 * expmed.c (extract_bit_field): Only call mode_for_size for scalar
488 integer modes.
489
490 2003-12-08 Nathanael Nerode <neroden@gcc.gnu.org>
491
492 * doc/install.texi: Revert change of Dec 7; gcc is still a 2.13
493 directory.
494
495 2003-12-08 Alexandre Oliva <aoliva@redhat.com>
496
497 * config/frv/frv.md (subdi2): Merge with _internal insn_and_split,
498 by using match_scratch.
499 (negdi2): New.
500
501 2003-12-08 Jason Merrill <jason@redhat.com>
502 Daniel Berlin <dberlin@dberlin.org>
503
504 PR debug/11114
505 Support namespaces in DWARF 2 output.
506 * dwarf2out.c (gen_namespace_die): New function.
507 (force_namespace_die, setup_namespace_context): New fns.
508 (declare_in_namespace): New fn.
509 (gen_decl_die): Call declare_in_namespace. Handle namespaces.
510 (dwarf2out_decl): Handle namespaces.
511 (scope_die_for): Pass through a namespace scope.
512 (class_scope_p): Rename to class_or_namespace_scope_p.
513 (gen_subprogram_die, gen_variable_die): Adjust.
514 (gen_struct_or_union_die): Always emit a declaration
515 if context_die is a namespace.
516
517 2003-12-08 Jan Hubicka <jh@suse.cz>
518
519 * unwind-pe.h (read_uleb128): Fix handling of large values
520 (read_sleb128): Fix handling of large values
521
522 2003-12-08 Andrew Pinski <pinskia@physics.uc.edu>
523
524 PR middle-end/10060
525 * emit-rtl.c (copy_rtx_if_shared): Split out into ...
526 (copy_rtx_if_shared_1): here and optimize the last one
527 in the sequence into tail-recursion.
528 (reset_used_flags): Optimize the last one
529 in the sequence into tail-recursion.
530
531 2003-12-08 Richard Earnshaw <rearnsha@arm.com>
532
533 * arm.md: New split to transform ((X << y) - 1) into ~(~(X-1) << y)
534 for constant X.
535
536 2003-12-08 Richard Sandiford <rsandifo@redhat.com>
537
538 * calls.c (expand_call): Don't try using tail or recursive calls
539 after the function body has been expanded.
540
541 2003-12-08 Jan Hubicka <jh@suse.cz>
542
543 * i386.md (cmpstr expander): Obey TARGET_INLINE_ALL_STRINGOPS
544
545 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
546
547 PR ada/13324, PR ada/12614
548 * doc/install.texi: Update requirements for building Ada.
549
550 2003-12-07 David Edelsohn <edelsohn@gnu.org>
551 Graham Reed <greed@pobox.com>
552
553 * collect2.c (GCC_OK_SYMBOL): Add support for AIX C_WEAKEXT.
554 (GCC_UNDEF_SYMBOL): Same.
555
556 2003-12-07 Kazu Hirata <kazu@cs.umass.edu>
557
558 * final.c (final_scan_insn): Don't use FINAL_PRESCAN_LABEL.
559 * system.h (FINAL_PRESCAN_LABEL): Poison.
560 * doc/tm.texi (FINAL_PRESCAN_LABEL): Remove.
561
562 2003-12-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
563
564 * Makefile.in (compare): Combine toplevel and $(SUBDIRS) cases.
565
566 2003-12-07 Nathanael Nerode <neroden@gcc.gnu.org>
567
568 * configure.in, aclocal.m4: Revert to pre-2.5x conversion status.
569 * configure: Regenerate with autoconf 2.13.
570
571 * configure.in: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
572 with modern equivalents.
573 * configure: Regenerate.
574
575 * configure.in: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
576 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
577 * configure: Regenerate.
578
579 * configure: Regenerate with (preferred) autoconf 2.57.
580 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
581
582 2003-12-07 Eric Botcazou <ebotcazou@libertysurf.fr>
583
584 PR optimization/12965
585 * caller-save.c (save_call_clobbered_regs): Do not save/restore
586 registers around no-return calls.
587
588 2003-12-07 Nathanael Nerode <neroden@gcc.gnu.org>
589
590 * configure.in: Make minimum necessary changes for autoconf 2.5x.
591 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
592 * configure: Regenerate with autoconf 2.58.
593
594 2003-12-07 Eric Botcazou <ebotcazou@libertysurf.fr>
595
596 PR optimization/13318
597 * loop.c (express_from): Protect integer division from overflow.
598
599 2003-12-07 Eric Botcazou <ebotcazou@libertysurf.fr>
600
601 PR optimization/13060
602 * function.c (fixup_var_refs_1) [SUBREG]: Recognize even if a
603 replacement already exists. Fix again the whole insn if that fails.
604
605 2003-12-06 Andrew Pinski <pinskia@physics.uc.edu>
606
607 * config/rs6000/rs6000.c (macho_branch_islands): Use
608 HOST_WIDE_INT_PRINT_UNSIGNED.
609
610 2003-12-06 Richard Sandiford <rsandifo@redhat.com>
611
612 * varasm.c (incorporeal_function_p): New.
613 (assemble_external): Use it as a filter.
614 * config/mips/mips.c (mips_output_external): Don't check for builtin
615 functions here.
616
617 2003-12-06 Richard Earnshaw <reanrsha@arm.com>
618
619 * arm.md (IOR (COMPARISON) (AND)): New define_splits.
620
621 2003-12-06 Kelley Cook <kcook@gcc.gnu.org>
622
623 * Makefile.in (program_transform_cross_name): Delete.
624 (GCC_CROSS_NAME, CPP_CROSS_NAME): Delete.
625 (PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Delete.
626 (AR_FOR_TARGET, RANLIB_FOR_TARGET, NM_FOR_TARGET): Adjust for above.
627 (install_cpp, install_driver, install-man, uninstall): Likewise.
628
629 2003-12-06 Alan Modra <amodra@bigpond.net.au>
630
631 PR 13169
632 * basic-block.h (PROP_ASM_SCAN): Define.
633 * final.c (regs_asm_clobbered): New array.
634 * regs.h (regs_asm_clobbered): Declare.
635 * flow.c (life_analysis): Init it.
636 (mark_set_regs): Set PROP_ASM_SCAN for asms.
637 (mark_set_1): Set regs_asm_clobbered.
638 * global.c (global_alloc): Don't set eliminable_regset when
639 regs_asm_clobbered.
640
641 2003-12-05 Mark Mitchell <mark@codesourcery.com>
642
643 * config/ia64/ia64.h (MUST_PASS_IN_STACK): Define.
644
645 PR c++/13314
646 * emit-rtl.c (set_mem_attributes_minus_bitpos): Robustify.
647
648 2003-12-05 Andrew Pinski <pinskia@physics.uc.edu>
649
650 PR driver/13211
651 * gcc.c (execute) Increment execution_count when returning
652 early because verbose_only_flag is true.
653
654 2003-12-05 Per Bothner <pbothner@apple.com>
655
656 * cppfiles.c (file_hash_hash): New static function.
657 (hash_string_eq): Renamed static function to file_hash_eq.
658 (_cpp_init_files): Create file_hash table with above callbacks.
659 (cpp_included): Must use htab_find_with_hash insead of htab_find.
660 (_cpp_find_find, make_cpp_dir): Must use htab_find_slot_with_hash.
661
662 2003-12-05 Per Bothner <pbothner@apple.com>
663
664 * line-map.h (source_location): New typedef.
665 (fileline): Redefined as source_location.
666 (struct line_map, linemap_add, linemap_lookup): Replace filefile
667 by source_location.
668 * line-map.c (linemap_add, linemap_lookup): Use source_location.
669
670 2003-12-05 Richard Henderson <rth@redhat.com>
671
672 * config/alpha/alpha.c (alpha_build_builtin_va_list): Add dummy
673 field to suppress -Wpadded warnings.
674
675 2003-12-05 Stuart Hastings <stuart@apple.com>
676
677 * config/rs6000/rs6000.md: Correct macro test of TARGET_MACHO.
678
679 2003-12-05 Stuart Menefy <stuart.menefy@st.com>
680 J"orn Rennecke <joern.rennecke@superh.com>
681
682 PR target/13302
683 * sh.c (sh_build_builtin_va_list): Use (*lang_hooks.types.make_type).
684
685 2003-12-05 Roger Sayle <roger@eyesopen.com>
686
687 * dojump.c (do_jump): If the expression being compared against
688 zero, is the subreg of a promoted variable, perform the comparison
689 in the promoted mode.
690 * simplify-rtx.c (simplify_unary_operation): Optimize sign and
691 zero-extensions of subregs of promoted variables where the
692 extension is identical to that used to promote the variable.
693
694 2003-12-05 Hans-Peter Nilsson <hp@axis.com>
695
696 PR target/13256
697 * resource.h (enum mark_resource_type): Remove member MARK_DEST.
698 The only user changed as follows:
699 * resource.c (mark_set_resources) <case SET>: Always recurse for
700 SET_SRC (x).
701 <case SIGN_EXTRACT, case ZERO_EXTRACT>: Always recurse on
702 operands.
703 <case STRICT_LOW_PART>: Delete, deferring to default code.
704
705 2003-12-05 Waldek Hebisch <hebisch@math.uni.wroc.pl>
706
707 * stmt.c (expand_nl_goto_receiver): Copy hard register clobbers
708 and ASM_INPUT barrier from expand_builtin_setjmp_receiver.
709
710 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
711
712 * config/mips/mips.c (mips_expand_call): Don't allow laziy binding
713 for n32 & n64 abicalls.
714
715 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
716
717 PR bootstrap/13145
718 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Adjust comment.
719 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Add $fcall.
720 (mips_load_got): Always create a constant MEM.
721 (mips_expand_call): Use load_callsi and load_calldi.
722 * config/mips/mips.md (UNSPEC_LOAD_CALL, FAKE_CALL_REGNO): New consts.
723 (load_callsi, load_calldi): New patterns.
724
725 2003-12-05 Peter Gerwinski <peter@gerwinski.de>
726
727 * tree.def (PLACEHOLDER_EXPR): Clarify commentary.
728
729 2003-12-05 Steven Bosscher <stevenb@suse.de>
730
731 * config/d30v/d30v-protos.h , config/d30v/d30v.c,
732 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
733 config/fr30/fr30-protos.h, config/fr30/fr30.c,
734 config/i370/i370-protos.h, config/i370/i370.c,
735 config/i960/i960-protos.h, config/i960/i960.c,
736 config/ip2k/ip2k-protos.h, config/ip2k/ip2k.c,
737 config/m32r/m32r-protos.h, config/m32r/m32r.c,
738 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
739 config/ns32k/ns32k-protos.h, config/ns32k/ns32k.c:
740 Convert to ISO C90 function declarations and definitions.
741
742 2003-12-05 Eric Botcazou <ebotcazou@libertysurf.fr>
743
744 * doc/extend.texi (Constructing Calls): Add warning about
745 the limitations of the functions.
746
747 2003-12-05 Eric Botcazou <ebotcazou@libertysurf.fr>
748
749 PR middle-end/11151
750 * function.h (struct function): New field 'x_naked_return_label'.
751 * function.c (free_after_compilation): Set it to NULL.
752 (expand_function_end): Emit 'naked_return_label' if it exists.
753 * rtl.h (expand_naked_return): Declare.
754 * stmt.c (expand_naked_return): New function to generate a
755 jump to 'naked_return_label'.
756 * builtins.c (expand_builtin_return): Call expand_naked_return
757 instead of expand_null_return.
758 * config/sparc/sparc.md (untyped_return): Likewise.
759
760 2003-12-04 Andrew Pinski <pinskia@physics.uc.edu>
761
762 PR target/11322
763 * config/sh/netbsd-elf.h (NO_PROFILE_COUNTERS): Define.
764
765 PR target/12467
766 * config/rs6000/altivec.md (altivec_vmsummbm): Fix typo.
767
768 2003-12-04 Stuart Hastings <stuart@apple.com>
769
770 * rs6000.c (output_call, macho_branch_islands,
771 add_compiler_branch_island, no_previous_def, get_previous_label)
772 Revisions of xx_stub functions for branch islands,
773 add -fPIC support for Darwin.
774 * rs6000-protos.h (output_call) Prototype.
775 * rs6000.md Use output_call.
776 * invoke.texi Explain Darwin semantics of -longcall.
777 * testsuite/gcc.dg/darwin-abi-1.c Revise testcase for -longcall/jbsr.
778
779 2003-12-04 Richard Henderson <rth@redhat.com>
780
781 * config/i386/i386.md (addqi3_carry): Use q not r constraints.
782 (subqi3_carry): Likewise.
783
784 2003-12-04 J"orn Rennecke <joern.rennecke@superh.com>
785
786 PR optimization/13260
787 * sh-protos.h (sh_expand_t_scc): Declare.
788 * sh.h (PREDICATE_CODES): Add cmpsi_operand.
789 * sh.c (cmpsi_operand, sh_expand_t_scc): New functions.
790 * sh.md (cmpsi): Use cmpsi_operand. If T_REG is compared to
791 something that is not a CONST_INT, copy it into a pseudo register.
792 (subc): Fix description of new T value.
793 (slt, sgt, sge, sgtu): Don't clobber T after rtl generation is over.
794 (sltu, sleu, sgeu): Likewise.
795 (seq, sne): Likewise. Use sh_expand_t_scc.
796
797 2003-12-04 Nathanael Nerode <neroden@gcc.gnu.org>
798
799 * configure.in: Generalize the CONFIG_HEADERS pattern under which
800 we stamp cstamp-h.
801 * configure: Regenerate.
802
803 * configure.in: Pull AC_CHECK_HEADER call out of shell if statement
804 to avoid trouble when updating to autoconf 2.5x.
805 * configure: Regenerate (with autoconf 2.13 still).
806
807 2003-12-04 J"orn Rennecke <joern.rennecke@superh.com>
808
809 * sh.md (truncdiqi2): Use andi opcode for immediate.
810 (reload_outdf+1,reload_outdf+2): Remove constraints.
811 (movv16sf_i): Fxi multiplier for SUBREG_BYTE.
812 (movv8qi_i+2): Zero-extend low byte before adding it to high byte.
813 (fipr, ftrv): Add .s suffix to opcode.
814
815 2003-12-04 Richard Sandiford <rsandifo@redhat.com>
816
817 PR target/13186
818
819 Revert all of the following patch, except the addition of
820 hook_bool_machine_mode_true:
821
822 2003-11-02 Richard Sandiford <rsandifo@redhat.com>
823
824 * Makefile.in (targhooks.o, reload.o): Update dependencies.
825 (GTFILES): Add targhooks.c.
826 (gt-targhooks.h): New rule; depend on s-gtype.
827 * target.h (direct_pool_load_p): New hook.
828 * target-def.h (TARGET_DIRECT_POOL_LOAD_P): New macro.
829 (TARGET_INITIALIZER): Include it.
830 * targhooks.h (default_direct_pool_load_p): Declare.
831 (hook_bool_machine_mode_true): Declare.
832 * targhooks.c: Include insn-config.h, recog.h, ggc.h and
833 gt-targhooks.h.
834 (pool_symbol): New variable.
835 (default_direct_pool_load_p): New function.
836 (hook_bool_machine_mode_true): New function.
837 * reload.c: Include target.h.
838 (find_reloads): If an alternative will force a constant into memory,
839 count an extra reload if constant pool symbols are not valid
840 addresses. If an alternative uses memory to move values between
841 registers, count the move as two reloads rather than one.
842 * config/s390/s390.c (TARGET_DIRECT_POOL_LOAD_P): Define.
843 * doc/tm.texi (TARGET_DIRECT_POOL_LOAD_P): Document.
844
845 2003-12-03 Mark Mitchell <mark@codesourcery.com>
846
847 * config/ia64/hpux.h (TARGET_HAVE_TLS): Define it to false.
848 * config/ia64/ia64.h (TARGET_HAVE_TLS): Define it to true if
849 HAVE_AS_TLS is true.
850 * config/ia64/ia64.c (TARGET_HAVE_TLS): Do not define it.
851
852 2003-12-03 James E Wilson <wilson@specifixinc.com>
853
854 * gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name.
855
856 * gcc-page.c (extra_order_size_tab): Correct comment.
857
858 2003-12-03 Kazu Hirata <kazu@cs.umass.edu>
859
860 * config/h8300/h8300.c (push): Call gen_push_h8300hs_advanced
861 instead of gen_push_h8300hs.
862 (pop): Call gen_pop_h8300hs_advanced instead of
863 gen_pop_h8300hs.
864 * config/h8300/h8300.h (TRAMPOLINE_SIZE): Use Pmode.
865 * config/h8300/h8300.md (*tablejump_h8300hs_advanced):
866 Tighten the predicate.
867 (*tablejump_h8300hs_normal): Tighten the predicate.
868 (push_h8300hs): Change to
869 push_h8300hs_advanced.
870 (pop_h8300hs): Change to pop_h8300hs_advanced.
871
872 2003-12-03 Eric Christopher <echristo@redhat.com>
873
874 * rtl.c: Fix typo.
875 * config/mips/mips.h: Ditto. Fix formatting.
876
877 2003-12-04 Ben Elliston <bje@wasabisystems.com>
878
879 * future.options: Remove. Move to gnu.org web pages.
880
881 2003-12-03 Eric Christopher <echristo@redhat.com>
882
883 * c-parse.in (c_in_iteration_stmt, c_in_case_stmt): Move
884 from here...
885 * c-tree.h: to here.
886
887 2003-12-03 Jan Hubicka <jh@suse.cz>
888
889 PR optimization/12324
890 * toplev.c (rest_of_decl_compilation): Do not deffer when compiling
891 in unit-at-a-time mode.
892
893 2003-12-03 Jakub Jelinek <jakub@redhat.com>
894
895 * expr.c (store_constructor): Only set RTX_UNCHANGING_P for
896 read-only field if cleared is 0.
897
898 2003-12-03 Nathanael Nerode <neroden@gcc.gnu.org>
899
900 * config.gcc: Mark obsolete targets for GCC 3.4.
901
902 2003-12-03 Zack Weinberg <zack@codesourcery.com>
903
904 * aclocal.m4 (AM_ICONV): Add explicit check for iconv.h.
905 * config.in, configure.in: Regenerate.
906 * cpphash.h: Check both HAVE_ICONV and HAVE_ICONV_H before
907 including iconv.h.
908
909 2003-12-03 Alan Modra <amodra@bigpond.net.au>
910
911 PR target/11229
912 * cse.c (cse_insn): Set classp using src_const_elt if
913 src_eqv_elt is NULL.
914
915 2003-12-03 Richard Earnshaw <rearnsha@arm.com>
916
917 * gcse.c (reg_clear_last_set): New function.
918 (reg_set_info): If data is non-null, treat it as an sbitmap of
919 registers, set the bit for the register being set.
920 (compute_store_table): Allocate last_set_in with xcalloc. Do not
921 memset this array on each iteration. Pass reg_set_in_block[bb->index]
922 to note_stores while computing last_set_in instead of scanning
923 last_set_in after the first pass through the insns.
924 Clear last_set_in using reg_clear_last_set instead of explicitly
925 rescanning after each insn. If checking is enabled, assert that
926 last_set_in is completely zeroed after each bb has been processed.
927
928 2003-12-02 Geoffrey Keating <geoffk@geoffk.org>
929
930 * df.c (df_uses_record) <MEM>: The argument of a MEM is read-only,
931 never read-write.
932 <REG>: Delete incorrect comment.
933 <SET>: Remove 'use_flags' variable.
934
935 2003-12-03 David Edelsohn <edelsohn@gnu.org>
936
937 * function.c (assign_parms): Make sure parm PARALLEL combined
938 in reg is composed of more than one object and the mode really
939 produces a reg.
940
941 2003-12-03 Jan Hubicka <jh@suse.cz>
942
943 * i386.c (classify_argument): Make it 64bit clean.
944
945 2003-12-02 Richard Sandiford <rsandifo@redhat.com>
946
947 * config/mips/mips.c (mips_output_external): Replace checks for
948 specific builtin-in functions with a check for DECL_BUILTIN_IN.
949
950 2003-12-02 Richard Henderson <rth@redhat.com>
951
952 * rtl.h (PUT_CODE, PUT_MODE): Remove ENUM_BITFIELD cast.
953 * tree.h (TREE_SET_CODE): Likewise.
954 * recog.h (struct insn_operand_data): Move const after ENUM_BITFIELD.
955
956 2003-12-02 Ben Elliston <bje@wasabisystems.com>
957
958 * dbxstclass.h: Rename from this ..
959 * xcoff.h: .. to this.
960 * xcoffout.c: Include xcoff.h.
961
962 2003-12-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
963
964 * Makefile.in (GCC_CFLAGS): Add -Wold-style-definition.
965
966 2003-12-01 James Lemke <jim@wasabisystems.com>
967
968 * config/arm/arm.c (arm_rtx_costs): Improve for xscale multiply.
969
970 2003-12-01 Roger Sayle <roger@eyesopen.com>
971
972 PR optimization/11634
973 * recog.c (split_insn): Factor test of INSN_P and handling of
974 set_noop_p out of here into the two callers.
975 (split_all_insns): Add INSN_P test and set_noop_p handling here.
976 If deleting a no-op set after reload that has a REG_UNUSED note,
977 mark the basic block as changed and recalculate life information.
978 (split_all_insns_noflow): Add INSN_P test and set_noop_p handling
979 here.
980
981 2003-12-01 Roger Sayle <roger@eyesopen.com>
982
983 PR optimization/12322
984 * gcse.c (struct ls_expr): Change type of hash_index from int to
985 unsigned int.
986 (hash_expr): Document hash_table_size parameter and wrap long line.
987 (ldst_entry): Calculate expression's hash_index and record in ptr.
988 (trim_ld_motion_mems): Use hash_index to search a single bucket
989 instead of scanning the entire hash_table. Remove the "del" local
990 variable and use the equivalent "expr == 0" instead. Change last
991 to be a pointer to the pointer to the current element, to simplify
992 and speed-up deleting from a linked list.
993
994 2003-12-01 James E Wilson <wilson@specifixinc.com>
995
996 * doc/contrib.texi: Update David Mosberger.
997
998 * doc/c-tree.texi (CONSTRUCTOR): Clarify element order and handling
999 of missing fields.
1000
1001 PR target/8407
1002 * config/ia64/ia64.c (ia64_function_arg): For single-reg HFA, call
1003 gen_rtx_REG to create new reg with argument mode.
1004
1005 2003-12-01 Steven Bosscher <stevenb@suse.de>
1006
1007 * ggc.h (struct alloc_zone): Move forward declaration up.
1008 (new_ggc_zone): New function prototype.
1009 (destroy_ggc_zone): Ditto.
1010 * ggc-simple.c (new_ggc_zone): New function, does nothing.
1011 (destroy_ggc_zone): Ditto.
1012 * ggc-page.c (new_ggc_zone): New function, does nothing.
1013 (destroy_ggc_zone): Ditto.
1014 * ggc-zone.c (struct page_entry): Fix comment.
1015 (ggc_alloc_typed): Use a switch statement instead of ifs.
1016 (new_ggc_zone): New function to set up a new GC zone.
1017 (destroy_ggc_zone): New function to remove a GC zone.
1018 init_ggc): Use new_ggc_zone to set up the default zones.
1019 (ggc_collect): Walk a list of zones, instead of just the
1020 default zones. Report statistics using the zone name.
1021
1022 2003-12-01 Ulrich Weigand <uweigand@de.ibm.com>
1023
1024 * unroll.c (find_splittable_givs): Add missing extend_value_for_giv.
1025
1026 2003-12-01 Roger Sayle <roger@eyesopen.com>
1027
1028 PR optimization/12628
1029 * toplev.c (rest_of_handle_jump_bypass): Call reg_scan.
1030 * regclass.c (reg_scan): Include allocate_reg_info time in
1031 TV_REG_SCAN. Minor clean-ups.
1032 (reg_scan_update): Minor clean-ups.
1033
1034 2003-12-01 Ulrich Weigand <uweigand@de.ibm.com>
1035
1036 * config.gcc (s390x-ibm-tpf*): Add extra_parts.
1037
1038 2003-12-01 James E Wilson <wilson@specifixinc.com>
1039
1040 * config/ia64/ia64.h (FUNCTION_ARG_REGNO_P): Use AR_REG_FIRST not
1041 GR_ARG_FIRST.
1042
1043 2003-12-01 Zack Weinberg <zack@codesourcery.com>
1044
1045 * common.opt: Remove -fgnu-linker.
1046 * flags.h: Remove flag_gnu_linker.
1047 * opts.c: Don't handle OPT_fgnu_linker.
1048 * toplev.c: Don't initialize flag_gnu_linker.
1049 Remove gnu-linker entry from f_options.
1050 * config/dsp16xx/dsp16xx.h (OPTIMIZATION_OPTIONS):
1051 Don't reset flag_gnu_linker.
1052 * config/mips/mips.c (override_options): Likewise.
1053 * doc/invoke.texi: Remove all mention of -fgnu-linker.
1054
1055 2003-12-01 Daniel Berlin <dberlin@dberlin.org>
1056
1057 * ggc-zone.c (ggc_pch_write_object): Calculate object size using
1058 ggc_get_size (which accounts for large objects properly).
1059
1060 2003-12-01 Jeff Sturm <jsturm@one-point.com>
1061
1062 PR optimization/13024
1063 * toplev.c (rest_of_handle_new_regalloc): Remove rebuild_notes
1064 parameter.
1065 (rest_of_handle_old_regalloc): Likewise. Add rebuild_notes
1066 declaration. Rebuild jump labels following local_alloc if necessary.
1067 (rest_of_compilation): Remove rebuild_label_notes_after_reload
1068 declaration. Don't pass rebuild_notes parameter to
1069 rest_of_handle_new_regalloc and rest_of_handle_old_regalloc.
1070 Don't rebuild jump labels.
1071
1072 2003-12-01 Jeff Law <law@redhat.com>
1073
1074 * flow.c (count_or_remove_death_notes_bb): New. Extracted from
1075 count_or_remove_death_notes.
1076 (count_or_remove_death_notes): Use EXECUTE_IF_SET_IN_SBITMAP.
1077
1078 2003-12-01 Andreas Krebbel <krebbel1@de.ibm.com>
1079
1080 * builtins.c (expand_builtin_longjmp): Added two memory clobbers.
1081
1082 2003-12-01 Ulrich Weigand <uweigand@de.ibm.com>
1083
1084 * reload.c (find_reloads_address): Split addresses of type
1085 (plus (plus (reg) (reg)) (const_int)) only if one register
1086 is either a valid base register or else one of the stack
1087 frame related registers (sp/fp/ap).
1088
1089 2003-12-01 Steven Bosscher <stevenb@suse.de>
1090
1091 * function.c (update_epilogue_consts): Don't use PARAMS.
1092 * rtl.h (web_main): Ditto.
1093 * target.h (is_costly_dependence): Ditto
1094
1095 2003-12-01 Eric Botcazou <ebotcazou@libertysurf.fr>
1096
1097 PR middle-end/7847
1098 * expr.c (expand_expr) [normal_inner_ref]: When 'offset' is non-zero,
1099 do not recheck that 'op0' is a MEM. Move comment. When testing for
1100 unaligned objects, take also into account the alignment of 'op0' and
1101 'mode1' if 'op0' is a MEM.
1102
1103 2003-12-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
1104
1105 * doc/c-tree.texi (Function Bodies): Update HANDLER documentation.
1106
1107 2003-12-01 Kelley Cook <kcook@gcc.gnu.org>
1108
1109 * doc/install.texi: Note that fastjar is built with automake 1.7.x
1110 and autoconf 2.57.
1111
1112 2003-12-01 Alan Modra <amodra@bigpond.net.au>
1113
1114 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
1115 target_flags directly rather than using TARGET_* defines.
1116
1117 2003-11-30 Ben Elliston <bje@wasabisystems.com>
1118
1119 * doschk.c: Remove.
1120
1121 2003-11-30 Richard Sandiford <rsandifo@redhat.com>
1122
1123 PR target/12727
1124 * config/mips/mips.c (mips_save_reg): Fix frame information for sdc1
1125 on 32-bit big-endian targets.
1126
1127 2003-11-30 Kazu Hirata <kazu@cs.umass.edu>
1128
1129 * genemit.c (register_constraints): Remove.
1130
1131 2003-11-30 Andreas Krebbel <krebbel1@de.ibm.com>
1132
1133 * config/s390/s390.md ("tmdi_reg", "tmsi_reg", "*movdi_64", "*movdi_31",
1134 "iordi3"): Insns now use multiple letter constraints.
1135 ("*movdi_lhi", "*movdi_lli", "*movdi_lay"): Insns deleted. They are now
1136 covered by "*movdi_64".
1137 ("*movsi_lhi", "*movsi_lli", "*movsi_lay"): Insns deleted. They are now
1138 covered by "*movsi_zarch" and "*movsi_esa".
1139 ("*movsi_zarch", "*movsi_!zarch"): New insns.
1140 ("*llgt_sisi_split", "*llgt_didi_split"): Insns deleted. Now covered
1141 by "*andsi3_zarch" and "anddi3".
1142 ("*anddi3_ni"): Insn merged with "anddi3".
1143 ("*andsi3_ni"): Insn merged with "*andsi3_zarch".
1144 ("*andsi3_zarch", "*andsi3_esa"): New insns.
1145 ("*iordi3_oi"): Insn merged with "iordi3".
1146 ("*iorsi3_oi"): Insn merged with "*iorsi3_zarch".
1147 ("*iorsi3_zarch", "*iorsi3_esa"): New insns.
1148
1149 * config/s390/s390.c (s390_single_qi, s390_single_hi): Functions
1150 merged to s390_single_part.
1151 (s390_single_part): New function.
1152 NOTE: Semantics have changed a bit. Now the value of the part must
1153 be different from the others to get a non-negative return value.
1154 (s390_extract_qi, s390_extract_hi): Functions merged to
1155 s390_extract_part.
1156 (s390_extract_part, s390_extra_constraint_str,
1157 s390_const_ok_for_constraint_p): New functions. The L constraint got a
1158 new meaning and the N constraint was added as a multiple letter
1159 constraint.
1160 (s390_extra_constraint): Function deleted.
1161 (print_operand): New output modifier 'i' and 'j' added.
1162 All uses of CONST_OK_FOR_LETTER_P were replaced by
1163 CONST_OK_FOR_CONSTRAINT_P.
1164
1165 * config/s390/s390-protos.h: Function prototypes adapted.
1166 * doc/md.texi: Documentation for new constraint letters added.
1167
1168 2003-11-30 Andreas Schwab <schwab@suse.de>
1169
1170 * Makefile.in ($(DESTDIR)$(infodir)/%.info): Fix missing semicolon.
1171
1172 2003-11-29 James E Wilson <wilson@specifixinc.com>
1173
1174 * gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name
1175 instead of in shared_name.
1176
1177 * final.c (final_start_function): Delete code for NON_SAVING_SETJMP.
1178 * reload1.c (reload): Re-add it here.
1179
1180 2003-11-30 Alan Modra <amodra@bigpond.net.au>
1181
1182 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Don't
1183 set SECTION_WRITE on TARGET_RELOCATABLE.
1184
1185 2003-11-29 Kazu Hirata <kazu@cs.umass.edu>
1186
1187 * config/h8300/h8300.h (LIBCALL_VALUE): Use R0_REG.
1188
1189 2003-11-28 Gunther Nikl <gni@gecko.de>
1190
1191 * config/m68k/m68k.c (MOTOROLA): Move from here...
1192 * config/m68k/m68k.h (MOTOROLA): ... to here.
1193 (OUTPUT_JUMP): Use do {...} while (0).
1194 * config/m68k/m68k.md: Replace #ifdef MOTOROLA with C statements.
1195
1196 2003-11-28 Gunther Nikl <gni@gecko.de>
1197
1198 * config.gcc (m68020-*-elf*, m68k-*-elf*, m68010-*-netbsdelf*,
1199 m68k*-*-netbsdelf*, m68k-*-rtems*): Add tm_defines containing
1200 MOTOROLA and USE_GAS.
1201 * config/m68k/rtemself.h (MOTOROLA): Delete.
1202 * config/m68k/netbsd-elf.h (MOTOROLA, USE_GAS): Delete.
1203 * config/m68k/m68kelf.h (MOTOROLA, USE_GAS, SGS_CMP_ORDER): Delete.
1204
1205 2003-11-29 Kazu Hirata <kazu@cs.umass.edu>
1206
1207 * config/h8300/h8300.h (WORDS_BIG_ENDIAN): Update the comment.
1208
1209 2003-11-29 Kelley Cook <kcook@gcc.gnu.org>
1210
1211 * Makefile.in (install-info): Install gccinstall.info too.
1212
1213 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
1214
1215 * config/s390/s390.md ("cmpint_di"): Fix incorrect instruction lengths.
1216
1217 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
1218
1219 * config/s390/s390.md ("movhi"): Do not emit extender pattern
1220 when loading from a (MEM (ADDRESSOF ...)).
1221 ("movqi"): Likewise.
1222
1223 2003-11-29 Joseph S. Myers <jsm@polyomino.org.uk>
1224
1225 PR c/10333
1226 * c-parse.in (typespec_reserved_nonattr): Reject typeof on
1227 bit-fields.
1228
1229 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
1230
1231 * stmt.c (expand_asm_operands): Check whether force_const_mem
1232 succeeded.
1233
1234 2003-11-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1235
1236 * config/gnu.h (HURD_TARGET_OS_CPP_BUILTINS): New.
1237 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): New.
1238
1239 * config/alpha/gnu.h, config/alpha/linux.h,
1240 config/arm/linux-elf.h, config/cris/cris.h, config/cris/linux.h,
1241 config/i370/linux.h, config/i386/gnu.h, config/i386/i386.h,
1242 config/i386/linux-aout.h, config/i386/linux.h,
1243 config/i386/linux64.h, config/ia64/linux.h, config/m68k/linux.h,
1244 config/m68k/uclinux.h, config/mips/linux.h,
1245 config/mn10300/linux.h, config/pa/pa-linux.h,
1246 config/rs6000/sysv4.h, config/s390/linux.h, config/sh/linux.h,
1247 config/sparc/linux.h, config/sparc/linux64.h,
1248 config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Use
1249 HURD_TARGET_OS_CPP_BUILTINS/LINUX_TARGET_OS_CPP_BUILTINS or ensure
1250 all necessary assertions are included.
1251
1252 2003-11-28 Jan Hubicka <jh@suse.cz>
1253
1254 * emit-rtl.c (set_used_flags): New.
1255 (verify_rtx_sharing, verify_rtl_sharing): New.
1256 (unshare_all_rtl_1): Rename to....
1257 (unshare_all_rtl_in_chain): ... this one; make static.
1258 (copy_rtx_if_shared): LABEL_REF chan be shared.
1259 * ifcvt.c (unshare_ifcvt_sequence): New.
1260 (noce_try_move, noce_try_store_flag, noce_try_store_flag_constants,
1261 noce_try_addcc, noce_try_addcc, noce_try_store_flag_mask,
1262 noce_try_cmove, noce_try_store_flag_mask, noce_try_minmax,
1263 noce_try_abs, noce_process_if_block, find_cond_trap
1264 * rtl.h (verify_rtl_sharing, set_used_flags, unshare_all_rtl_in_chain):
1265 Declare.
1266
1267 2003-11-28 Kazu Hirata <kazu@cs.umass.edu>
1268
1269 * config/h8300/h8300.md: Fix a comment typo.
1270
1271 2003-11-28 Kazu Hirata <kazu@cs.umass.edu>
1272
1273 * config/h8300/h8300.md (*movsf_h8300h): Change to
1274 *movsf_h8300hs.
1275 (addsi_h8300): Change to *addsi_h8300.
1276 (addsi_h8300h): Change to *addsi_h8300hs.
1277 (subsi3_h8300): Change to *subsi3_h8300.
1278 (subsi3_h8300h): Change to *subsi3_h8300hs.
1279 (neghi2_h8300h): Change to *neghi2_h8300hs.
1280 (negsi2_h8300h): Change to *negsi2_h8300hs.
1281
1282 2003-11-28 Kazu Hirata <kazu@cs.umass.edu>
1283
1284 * config/h8300/h8300.md (*subhi3_h8300): Remove '&' from the
1285 constraint.
1286 (*subhi3_h8300hs): Likewise.
1287
1288 2003-11-28 David Edelsohn <edelsohn@gnu.org>
1289
1290 * config/rs6000/rs6000.h (MASK_MFCRF): New.
1291 (TARGET_MFCRF): Test target_flags, not processor type.
1292 (TARGET_SWITCHES): Add mfcrf and no-mfcrf.
1293 Change Don't to Do not.
1294 * config/rs6000/rs6000.c (processors_target_table): Add MASK_MFCRF
1295 to power4, 970, G5.
1296
1297 2003-11-27 J"orn Rennecke <joern.rennecke@superh.com>
1298
1299 * cse.c (cse_set_around_loop): When changing a constant load
1300 to a register -register copy, add a REG_EQUAL note.
1301
1302 2003-11-27 Randolph Chung <tausq@debian.org>
1303 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1304
1305 * pa.c (hppa_profile_hook): Split gen_call_profiler into separate
1306 insns. Use the regular call expander for the call to the profiler.
1307 * pa.md (call_profiler): Delete.
1308 (load_offset_label_address): New insn to load the address of the
1309 current function for the profiler.
1310 (lcla1, lcla2): New insns to output a code label and load its address.
1311
1312 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1313
1314 * final.c (final_scan_insn): Remove commented-out code.
1315
1316 2003-11-27 Nathanael Nerode <neroden@gcc.gnu.org>
1317
1318 * doc/install.texi: Remove ADAC reference and make accurate.
1319
1320 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1321
1322 * config/h8300/h8300.h (FUNCTION_VALUE): Use R0_REG.
1323 (FUNCTION_VALUE_REGNO_P): Likewise.
1324 * config/h8300/h8300.md: Define R0_REG.
1325
1326 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1327
1328 * config/h8300/h8300.c: Fix formatting.
1329 * config/h8300/h8300.md: Likewise.
1330
1331 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1332
1333 * config/h8300/h8300.h (ELIMINABLE_REGS): Update a comment.
1334
1335 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1336
1337 * config/h8300/h8300.md: Give names to anonymous insns.
1338
1339 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1340
1341 * config/h8300/h8300.md (extendqisi2): Remove constraints.
1342
1343 2003-11-27 Gunther Nikl <gni@gecko.de>
1344
1345 * doc/tm.texi (SYSROOT_HEADERS_SUFFIX_SPEC): Fix typo.
1346
1347 2003-11-27 Eric Botcazou <ebotcazou@libertysurf.fr>
1348
1349 PR optimization/13041
1350 * final.c (frame_pointer_needed): Fix comment.
1351 * reload1.c (reload): Decrease alignment of the frame
1352 pointer if it was used for register allocation.
1353
1354 2003-11-27 Eric Botcazou <ebotcazou@libertysurf.fr>
1355
1356 PR target/12900
1357 * reg-stack (move_for_stack_reg): New prototype. Return
1358 whether a control flow insn was deleted.
1359 (subst_stack_regs_pat): Likewise, using the information provided
1360 by move_for_stack_reg.
1361 (subst_stack_regs): Likewise, using the information provided
1362 by subst_stack_regs_pat.
1363 (convert_regs_1): Record whether a control flow insn was deleted,
1364 using the information provided by subst_stack_regs. Purge dead
1365 edges only if a control flow insn was deleted.
1366
1367 2003-11-27 Eric Botcazou <ebotcazou@libertysurf.fr>
1368
1369 PR middle-end/8028
1370 PR middle-end/9890
1371 PR middle-end/11151
1372 PR middle-end/12210
1373 PR middle-end/12503
1374 PR middle-end/12692
1375 * builtins.c (expand_builtin_apply): Use virtual_outgoing_args_rtx
1376 as the base address to copy the memory arguments to.
1377
1378 2003-11-26 Danny Smith <dannysmith@users.sourceforge.net>
1379
1380 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Declare
1381 function aliases as functions.
1382
1383 2003-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
1384
1385 * aclocal.m4 (gcc_AC_PROG_GNAT): Rewrite to account for removal
1386 of ADAC.
1387 * configure: Regenerate.
1388
1389 * Makefile.in: Remove references to ADAC.
1390
1391 * configure.in: Remove check for whether ${ADAC} accepts -Wno-long-long.
1392 * configure: Regenerate.
1393
1394 2003-11-26 Eric Botcazou <ebotcazou@libertysurf.fr>
1395 Olivier Hainque <hainque@act-europe.fr>
1396
1397 PR target/6466
1398 * config/sparc/sparc-protos.h (compute_frame_size): New prototype.
1399 (sparc_flat_compute_frame_size): Likewise.
1400 (sparc_flat_save_restore): Move prototype...
1401 * config/sparc/sparc.c (sparc_flat_save_restore): ...here.
1402 (save_regs): New prototype.
1403 (build_big_number): Likewise.
1404 (apparent_fsize): Change type to HOST_WIDE_INT.
1405 (actual_fsize): Likewise.
1406 (frame_base_offset): Likewise.
1407 (build_big_number): Add support for HOST_BITS_PER_WIDE_INT == 64.
1408 Change string descriptor to HOST_WIDE_INT_PRINT_DEC.
1409 [TARGET_ARCH64]: Use the sequence of sparc_emit_set_const64_longway
1410 to load a 64-bit constant.
1411 (sparc_nonflat_function_prologue): Change string descriptor to
1412 HOST_WIDE_INT_PRINT_DEC. Change offset type to HOST_WIDE_INT.
1413 (output_restore_regs): Change offset type to HOST_WIDE_INT.
1414 (sparc_nonflat_function_epilogue): Change string descriptor to
1415 HOST_WIDE_INT_PRINT_DEC. Use build_big_number.
1416 (output_sibcall): Change size type to HOST_WIDE_INT. Use
1417 build_big_number. Change string descriptor to HOST_WIDE_INT_PRINT_DEC.
1418 (sparc_frame_info): Change types for several components.
1419 (sparc_flat_compute_frame_size): Update types according to previous
1420 change.
1421 (sparc_flat_function_prologue): Change string descriptor to
1422 HOST_WIDE_INT_PRINT_DEC. Change offset type to int. Use
1423 build_big_number.
1424 (sparc_flat_function_epilogue): Change offset type to int.
1425 Rename 'size1' into 'reg_offset1'. Change string descriptor to
1426 HOST_WIDE_INT_PRINT_DEC. Use build_big_number. Change big number
1427 limit to 4096 instead of 4095.
1428
1429 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Change offset type to
1430 HOST_WIDE_INT.
1431
1432 2003-11-24 Waldek Hebisch <hebisch@math.uni.wroc.pl>
1433
1434 * function.c: Make outer_function-chain external.
1435 * function.h: Likewise.
1436
1437 2003-11-24 Richard Sandiford <rsandifo@redhat.com>
1438
1439 * config.gcc (mips-sgi-irix6*): Add t-iris6gld to tmake_file when
1440 using GNU ld.
1441 * config/mips/iris6.h (IRIX6_STARTFILE_SPEC): New, taking the
1442 whole of the previous STARTFILE_SPEC except crtbegin.o%s.
1443 (IRIX6_ENDFILE_SPEC): Likewise ENDFILE_SPEC and crtend.o%s.
1444 (STARTFILE_SPEC, ENDFILE_SPEC): Define in terms of the above.
1445 (SUBTARGET_EXTRA_SPECS): Define.
1446 * config/mips/iris6gld.h (LINK_SPEC): Change -init function
1447 to __gcc_init and -fini function to __gcc_fini.
1448 (STARTFILE_SPEC): Redefine, including irix6-crti.o before crtbegin.o.
1449 (ENDFILE_SPEC): Likewise, including irix6-crtn.o after crtend.o.
1450 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Define.
1451 * config/mips/t-iris6gld,
1452 * config/mips/irix6-crti.asm,
1453 * config/mips/irix6-crtn.asm: New files.
1454
1455 2003-11-24 Eric Christopher <echristo@redhat.com>
1456
1457 PR C/13014
1458 * c-decl.c (c_in_iteration_stmt, c_in_case_stmt): New.
1459 (start_function): Use.
1460 (c_push_function_context): Ditto.
1461 (c-pop_function_context): Ditto.
1462 (language_function): Move...
1463 * c-tree.h: ... here. Add x_in_iteration_stmt, and
1464 x_in_case_stmt.
1465 * c-parse.in (do_stmt_start, select_or_iter_stmt, stmt): Use
1466 c_in_iteration_stmt, c_in_case_stmt for parser state. Move
1467 check for valid break or continue statment here...
1468 * c-semantics.c (genrtl_break_stmt, genrtl_continue_stmt): From
1469 here. Change original errors to abort.
1470
1471 2003-11-24 Jan Hubicka <jh@suse.cz>
1472
1473 * fold-const.c (fold): Do not return early when optimizing
1474 COMPONENT_REF and constant.
1475
1476 2003-11-24 Kazu Hirata <kazu@cs.umass.edu>
1477
1478 * config/h8300/h8300.md (tablejump_h8300): Change to
1479 *tablejump_h8300.
1480 (tablejump_h8300h): Change to *tablejump_h8300hs_advanced.
1481 (tablejump_normal_mode): Change to *tablejump_h8300hs_normal.
1482 (indirect_jump_h8300): Change to *indirect_jump_h8300.
1483 (indirect_jump_h8300h): Change to
1484 *indirect_jump_h8300hs_advanced.
1485 (indirect_jump_normal_mode): Change to
1486 *indirect_jump_h8300hs_normal.
1487
1488 2003-11-24 Kazu Hirata <kazu@cs.umass.edu>
1489
1490 * config/h8300/h8300.md: Remove constraints from expanders.
1491
1492 2003-11-24 Kazu Hirata <kazu@cs.umass.edu>
1493
1494 * config/h8300/h8300.md: (stm_h8300s_2): Change the name to
1495 stm_h8300s_2_advanced.
1496 (stm_h8300s_2_normal): New.
1497 (stm_h8300s_2): Likewise.
1498 (stm_h8300s_3): Change the name to stm_h8300s_3_advanced.
1499 (stm_h8300s_3_normal): New.
1500 (stm_h8300s_3): Likewise.
1501 (stm_h8300s_4): Change the name to stm_h8300s_4_advanced.
1502 (stm_h8300s_4_normal): New.
1503 (stm_h8300s_4): Likewise.
1504 (ldm_h8300s_2): Change the name to ldm_h8300s_2_advanced.
1505 (ldm_h8300s_2_normal): New.
1506 (ldm_h8300s_2): Likewise.
1507 (ldm_h8300s_3): Change the name to ldm_h8300s_3_advanced.
1508 (ldm_h8300s_3_normal): New.
1509 (ldm_h8300s_3): Likewise.
1510 (ldm_h8300s_4): Change the name to ldm_h8300s_4_advanced.
1511 (ldm_h8300s_4_normal): New.
1512 (ldm_h8300s_4): Likewise.
1513 (two peephole2's): Enable only with !TARGET_NORMAL_MODE.
1514 (two peephole2's): New.
1515
1516 2003-11-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1517
1518 * genattrtab.c (simplify_cond): Update indices correctly.
1519 (attr_alt_subset_p, attr_alt_subset_of_compl_p, attr_alt_intersection,
1520 attr_alt_union, attr_alt_complement, attr_alt_bit_p, mk_attr_alt): New.
1521 (check_attr_test, encode_units_mask, compute_alternative_mask,
1522 make_alternative_compare, simplify_and_tree,
1523 attr_rtx_cost, simplify_test_exp, gen_attr,
1524 write_test_expr, walk_attr_value): Handle EQ_ATTR_ALT.
1525 * rtl.def (EQ_ATTR_ALT): New.
1526
1527 2003-11-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1528
1529 * genattrtab.c (strcmp_check, DEF_ATTR_STRING): New macros.
1530 (length_str, delay_type_str, delay_1_0_str, num_delay_slots_str):
1531 New variables.
1532 (main): Initialize them.
1533 (find_attr): Canonicalize the attribute name string.
1534 (attr_rtx_1, copy_boolean, expand_delays, gen_unit): Always canonicalize
1535 string arguments.
1536 (attr_printf, attr_eq): Use DEF_ATTR_STRING.
1537 (check_attr_test, check_attr_value, make_length_attrs,
1538 write_length_unit_log, simplify_by_exploding, gen_attr,
1539 write_test_expr, write_attr_value, write_eligible_delay,
1540 write_complex_function, make_internal_attr,
1541 write_const_num_delay_slots): Changed due to change of type of
1542 find_attr.
1543 (fill_attr, evaluate_eq_attr, simplify_and_tree,
1544 attr_rtx_cost, simplify_by_exploding, walk_attr_value): Use
1545 strcmp_check.
1546
1547 2003-11-23 Kazu Hirata <kazu@cs.umass.edu>
1548
1549 PR target/13122
1550 * config/h8300/h8300.c (push): Call push_h8300hs_normal in
1551 normal mode.
1552 (pop): Call pop_h8300hs_normal in normal mode.
1553 * config/h8300/h8300.md: Likewise.
1554 (pushqi1_h8300hs_normal): New.
1555 (pushqi1): Call pushqi1_h8300hs_normal in normal mode.
1556 (pushhi1_h8300hs_normal): New.
1557 (pushhi1): Call pushhi1_h8300hs_normal in normal mode.
1558 (push_h8300hs_normal): New.
1559 (pop_h8300hs_normal): Likewise.
1560
1561 2003-11-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1562
1563 * genattrtab.c (count_sub_rtxs): Removed.
1564
1565 2003-11-23 Richard Earnshaw <rearnsha@arm.com>
1566
1567 * recog.c (preprocess_constraints): Only zero those elements of
1568 recog_op_alt that are needed for this insn.
1569 * arm.c (note_invalid_constants): A function can't contain invalid
1570 constants if it has no constraints.
1571
1572 2003-11-22 Jan Hubicka <jh@suse.cz>
1573
1574 * i386.c (classify_argument): Pass __float128 in memory.
1575 (ix86_return_in_memory): Likewise.
1576 (ix86_libcall_value): Likewsie.
1577
1578 2003-11-22 Kazu Hirata <kazu@cs.umass.edu>
1579
1580 * config/h8300/h8300.c (dosize): Convert to ISO-C.
1581
1582 2003-11-22 J"orn Rennecke <joern.rennecke@superh.com>
1583
1584 * flow.c (update_life_info): Amend comment about when a register
1585 can become dead.
1586
1587 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
1588
1589 * doc/.cvsignore: Delete.
1590
1591 2003-11-21 Daniel Berlin <dberlin@dberlin.org>
1592 David Edelsohn <edelsohn@gnu.org>
1593
1594 * dwarf2out.c (add_location_or_const_value_attribute): Add support
1595 for PARALLEL.
1596
1597 2003-11-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1598
1599 * config/mips/t-iris6 (CRTSTUFF_T_CFLAGS): Add -Wno-error.
1600 (TARGET_LIBGCC2_CFLAGS): Define.
1601
1602 * crtstuff.c [HAS_INIT_SECTION] (__do_global_dtors): Declare.
1603 (__do_global_ctors): Likewise.
1604
1605 2003-11-21 Mark Wielaard <mark@klomp.org>
1606
1607 * doc/invoke.texi (-O2): Doesn't enable -fweb.
1608
1609 2003-11-21 Kazu Hirata <kazu@cs.umass.edu>
1610
1611 * doc/invoke.texi: Mention dV and dZ.
1612
1613 2003-11-21 Kazu Hirata <kazu@cs.umass.edu>
1614
1615 * doc/invoke.texi: Update dump file names.
1616 Remove de, dW, and dX.
1617
1618 2003-11-20 James E Wilson <wilson@specifixinc.com>
1619
1620 PR c/13133
1621 * reload1.c (reload): Delete special handling for setjmp.
1622
1623 2003-11-21 Andreas Tobler <a.tobler@schweiz.ch>
1624
1625 * mklibgcc.in: Evaluate shlib_slibdir_qual during link
1626 step too.
1627 * config/t-slibgcc-darwin: Adjust install path.
1628 * config/rs6000/t-darwin: Revert multilib matches since
1629 it is not used on darwin.
1630
1631 2003-11-20 Richard Henderson <rth@redhat.com>
1632
1633 * ssa.c, ssa-dce.c, ssa-ccp.c: Remove files.
1634 * Makefile.in (OBJS-common, GTFILES): Don't reference them.
1635 (gtype-desc.o, toplev.o, flow.o): Remove ssa.h.
1636 (ssa.o, ssa-dce.o, ssa-ccp.o): Remove.
1637 * flow.c: Don't include ssa.h.
1638 (set_phi_alternative_reg): Remove.
1639 (calculate_global_regs_live): Don't call it.
1640 (mark_used_regs): Don't handle PHI.
1641 * gengtype.c (open_base_files): Don't reference ssa.h.
1642 * rtl.def (PHI): Remove.
1643 * timevar.def (TV_TO_SSA, TV_SSA_CCP, TV_SSA_DCE, TV_FROM_SSA): Kill.
1644 * common.opt: Remove -fssa, -fssa-ccp, -fssa-dce.
1645 * opts.c (common_handle_option): Likewise.
1646 * toplev.c (f_options): Likewise.
1647 (DFI_ssa, DFI_ssa_ccp, DFI_ssa_dce, DFI_ussa): Remove.
1648 (dump_file): Update to match.
1649 (flag_ssa, flag_ssa_ccp, flag_ssa_dce): Remove.
1650 (rest_of_handle_ssa): Remove.
1651 (rest_of_compilation): Don't call it.
1652 * toplev.h (flag_ssa, flag_ssa_dce, flag_ssa_ccp): Remove.
1653 * doc/invoke.texi: Remove -fssa, -fssa-ccp, -fssa-dce.
1654 * doc/passes.texi (SSA optimizations): Remove.
1655
1656 2003-11-20 Bob Wilson <bob.wilson@acm.org>
1657
1658 * configure.in: Add xtensa-*-* targets to test for dwarf2 debug_line.
1659 * configure: Regenerate.
1660
1661 2003-11-20 Kelley Cook <kcook@gcc.gnu.org>
1662
1663 * Makefile.in (Makefile): Pass along CONFIG_SHELL.
1664
1665 2003-11-20 David Mosberger <davidm@hpl.hp.com>
1666
1667 * config/t-libunwind (LIB2ADDEH): Add unwind-c.c.
1668 (SHLIB_LC): Define.
1669 * unwind-libunwind.c (_Unwind_GetCFA): Implement.
1670 (_Unwind_GetBSP) [UNW_TARGET_IA64]: New function.
1671
1672 2003-11-20 Fariborz Jahanian <fjahanian@apple.com>
1673 David Edelsohn <edelsohn@gnu.org>
1674
1675 * calls.c (expand_call): Allocate new temp in pass1.
1676 (store_one_arg): If PARALLEL, calculate excess using mode size of
1677 rtvec elt.
1678 * expr.c (emit_push_insn): If PARALLEL, calculate offset using
1679 mode size of rtvec elt.
1680 * function.c (assign_parms): Use parm in register, if available.
1681
1682 2003-11-20 Kazu Hirata <kazu@cs.umass.edu>
1683
1684 * config/h8300/lib1funcs.asm (MOVP): Remove.
1685 (ADDP): Likewise.
1686 (CMPP): Likewise.
1687
1688 2003-11-20 Richard Earnshaw <rearnsha@arm.com>
1689
1690 * arm.c (use_return_insn): New argument, SIBLING. Support returning
1691 with a single instruction if the stack has been decremented by 4
1692 and we have a frame pointer. Update all callers.
1693 (output_return_instruction): Likewise.
1694 (arm_output_epilogue): Change argument to SIBLING. Calculate
1695 really_return from the new argument. Update all callers.
1696 * arm.h (USE_RETURN_INSN): Pass NULL for the sibling.
1697 * arm.md (sibcall_epilogue): Call use_return_insn directly, and
1698 pass the sibling call.
1699 * arm-protos.h (use_return_insn, arm_output_epilogue): Update
1700 prototypes.
1701
1702 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
1703
1704 * Makefile.in (extraclean): Delete.
1705 * configure.in (target_list): Remove extraclean.
1706 * configure: Regenerate.
1707 * doc/makefile.texi, doc/sourcebuild.texi: Update.
1708 * objc/Make-lang.in (objc.extraclean): Delete.
1709
1710 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
1711
1712 * Makefile.in (lang_checks): Add.
1713 (check-c++, check-f77, check-java, check-g++, check-g77,
1714 check-objc): Remove hardcoded targets.
1715 * doc/sourcebuild.texi: Document testsuite hooks.
1716 * objc/Make-lang.in (check-objc, lang_checks): Add.
1717
1718 2003-11-19 Scott Snyder <snyder@fnal.gov>
1719
1720 PR target/13131
1721 * dwarf2out.c (gen_array_type_die): DW_AT_declaration should be a
1722 flag, not a constant.
1723
1724 2003-11-19 Kelley Cook <kcook@gcc.gnu.org>
1725
1726 * config/arc/arc-protos.h: Update to C90 prototypes.
1727 * config/arc/arc.c: Likewise.
1728 * config/arc/initfini.c: Likewise.
1729
1730 2003-11-19 Andreas Krebbel <krebbel1@de.ibm.com>
1731
1732 * stmt.c (expand_goto): Memory clobbers added.
1733
1734 2003-11-19 Andreas Krebbel <krebbel1@de.ibm.com>
1735
1736 * reload.c (find_reloads): Added missing type casts.
1737
1738 2003-11-19 James E Wilson <wilson@specifixinc.com>
1739
1740 * combine.c (sets_function_arg_p): Delete unused function.
1741
1742 2003-11-19 Eric Christopher <echristo@redhat.com>
1743
1744 * reload1.c (reload): Revert 2 previous checkins.
1745
1746 2003-11-19 Nathanael Nerode <neroden@gcc.gnu.org>
1747
1748 * cpptrad.c (_cpp_scan_out_logical_line): Improve test for
1749 whether directive begins at the beginning of a line.
1750
1751 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
1752
1753 * config/frv/frv.c (frv_init_libfuncs): Correct ufix_optab entries.
1754
1755 2003-11-19 Gerald Pfeifer <gp@suse.de>
1756
1757 * doc/install.texi (Specific): Remove information on old versions
1758 of glibc versus old versions of GCC.
1759
1760 2003-11-19 Richard SAndiford <rsandifo@redhat.com>
1761
1762 * emit-rtl.c (gen_lowpart): Don't force MEMs into a register unless
1763 the register lowpart is a TRULY_NOOP_TRUNCATION.
1764
1765 2003-11-19 Richard Henderson <rth@redhat.com>
1766
1767 * config/i386/i386.c (print_reg): Handle QI and HI modes for
1768 non Q regs.
1769
1770 2003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
1771
1772 * config/config.gcc (powerpc-*-darwin*): Add libgcc build
1773 specification file.
1774 * config/t-slibgcc-darwin: New file, libgcc build specification.
1775 * config/t-darwin: Add libgcc2 flag -fPIC.
1776 * config/rs6000/t-darwin: Multilib matches float.
1777 * libgcc-darwin.ver: New file, contains libgcc symbols.
1778
1779 2003-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
1780
1781 * config/ns32k/ns32k.h: Remove obsolete comment.
1782
1783 2003-11-18 Roger Sayle <roger@eyesopen.com>
1784
1785 PR middle-end/11821
1786 * config/arm/arm.c (arm_rtx_costs_1): Improve estimate of the code
1787 size for calls to libgcc's div & mod subroutines when using -Os.
1788
1789 2003-11-18 Jan Hubicka <jh@suse.cz>
1790
1791 * cgraph.c (change_decl_assembler_name): Avoid bogus warnings.
1792
1793 2003-11-18 Marc Espie <espie@openbsd.org>
1794
1795 * config/rs6000/sysv4.h: OpenBSD hooks.
1796
1797 2003-11-18 Richard Henderson <rth@redhat.com>
1798
1799 * expr.c (expand_expr): Don't look through constant arrays if
1800 they don't bind locally.
1801
1802 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1803
1804 * expr.c (convert_move): Use GET_MODE_PRECISION instead of bitsize
1805 when seeing if truncation or extension.
1806
1807 2003-11-17 Eric Christopher <echristo@redhat.com>
1808
1809 * reload1.c (reload): Fix previous change.
1810
1811 2003-11-17 Scott Snyder <snyder@fnal.gov>
1812
1813 PR debug/11325
1814 * dwarf2out.c (struct die_struct): Add die_definition field.
1815 (add_AT_specification): New.
1816 (gen_subprogram_die, gen_variable_die,
1817 gen_struct_or_union_type_die): Use it.
1818 (prune_unused_types_mark): If we're marking a forward declaration,
1819 also mark the full definition, if it exists.
1820
1821 2003-11-16 Nick Clifton <nickc@redhat.com>
1822
1823 * config/stormy16/stormy16.h (BUILD_VA_LIST_TYPE): Delete.
1824 * config/stormy16/stormy16-protos.h (xstormy16_build_va_list):
1825 Remove prototype.
1826 * config/stormy16/stormy16.c (xstormy16_build_va_list): Rename
1827 to xstormy16_build_builtin_va_list and make static.
1828 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
1829
1830 2003-11-16 Kazu Hirata <kazu@cs.umass.edu>
1831
1832 * config/h8300/h8300-protos.h: Add the prototype for
1833 same_cmp_following_p.
1834 * config/h8300/h8300.c (same_cmp_following_p): New.
1835 * config/h8300/h8300.md (peephole2): Use it.
1836
1837 2003-11-16 Kazu Hirata <kazu@cs.umass.edu>
1838
1839 * config/h8300/h8300.md: Don't use REGNO when its operand is
1840 not guaranteed to be a REG.
1841
1842 2003-11-16 Richard Sandiford <rsandifo@redhat.com>
1843
1844 * Makefile.in (expr.o): Depend on $(TARGET_H).
1845 * target.h (return_in_msb): New target hook.
1846 * target-def.h (TARGET_RETURN_IN_MSB): New macro.
1847 (TARGET_CALLS): Include it.
1848 * calls.c (shift_returned_value): New function.
1849 (expand_call): Use it.
1850 * expr.c: Include target.h.
1851 (copy_blkmode_from_reg): Check targetm.calls.return_in_msb when
1852 deciding what padding is needed. Change the name of the local
1853 padding variable from big_endian_correction to padding_correction.
1854 * stmt.c (shift_return_value): New function.
1855 (expand_return): Use it. Adjust memory->register copy in the same
1856 way as copy_blkmode_from_reg. Only change the return register's
1857 mode if it was originally BLKmode.
1858 * doc/tm.texi (TARGET_RETURN_IN_MSB): Document.
1859 * config/mips/mips.c (TARGET_RETURN_IN_MSB): Define.
1860 (mips_fpr_return_fields): New, split out from mips_function_value.
1861 (mips_return_in_msb, mips_return_fpr_pair): New functions.
1862 (mips_function_value): Rework to use the functions above.
1863 * config/mips/irix6-libc-compat.c: Delete.
1864 * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Undefine.
1865
1866 2003-11-16 Kazu Hirata <kazu@cs.umass.edu>
1867
1868 * doc/install.texi (--enable-checking): Update valgrind's URL.
1869
1870 2003-11-16 Kazu Hirata <kazu@cs.umass.edu>
1871
1872 * config/h8300/h8300.md: Fix warnings by replacing -2147483648
1873 with -2147483647 - 1.
1874
1875 2003-11-16 Gerald Pfeifer <gerald@pfeifer.com>
1876
1877 Fix links in online manuals.
1878 * doc/invoke.texi (H8/300 Options): @xref to ld, not ld.info.
1879 (Precompiled Headers): @pxref to cpp, not cpp.info.
1880
1881 2003-11-16 Jason Merrill <jason@redhat.com>
1882
1883 * Makefile.in, objc/Make-lang.in (objc.tags): Create TAGS.sub
1884 files in each directory and TAGS files that include them for each
1885 front end.
1886
1887 2003-11-15 Kazu Hirata <kazu@cs.umass.edu>
1888
1889 * config/h8300/lib1funcs.asm (divnorm): Store the sign in bit
1890 3 of S2L.
1891 (modnorm): Likewise.
1892 (exitdiv): Look at bit 3 of S2L only.
1893
1894 2003-11-15 Kazu Hirata <kazu@cs.umass.edu>
1895
1896 * config/h8300/h8300.h (DO_GLOBAL_CTORS_BODY): Fix warnings.
1897 (DO_GLOBAL_DTORS_BODY): Likewise.
1898
1899 2003-11-15 Joseph S. Myers <jsm@polyomino.org.uk>
1900
1901 * doc/install.texi (Prerequisites): Refine documentation of
1902 autoconf, automake and perl requirements. Document required
1903 gettext version.
1904
1905 <2003-11-14 Jason Merrill <jason@redhat.com>
1906
1907 * function.c (assign_parms): Use TREE_TYPE to determine the real
1908 type of the argument object.
1909
1910 2003-11-14 Kazu Hirata <kazu@cs.umass.edu>
1911
1912 * config/h8300/lib1funcs.asm (___udivsi3): Peel off the first
1913 iteration.
1914
1915 2003-11-14 Fariborz Jahanian <fjahanian@apple.com>
1916
1917 * config/rs6000/rs6000.c (rs6000_move_block_from_reg):
1918 New routine to save vararg registers on stack. Support for
1919 -mpowerpc64 in mixed mode.
1920
1921 2003-11-14 Bernardo Innocenti <bernie@develer.com>
1922
1923 * config/m68k/m68k.c: Use C statements instead of #ifdef's when testing
1924 for MOTOROLA versus MIT syntax. Improves readability and provides
1925 better compile-time error checking for both code paths.
1926
1927 2003-11-14 Kelley Cook <kcook@gcc.gnu.org>
1928
1929 * config/frv/frv-protos.h: Update for C90.
1930 * config/frv/frv.h: Likewise.
1931 * config/frv/frvbegin.c: Likewise.
1932 * config/frv/frv.c: Likewise.
1933 (frv_adjust_field_align): Delete unused variable.
1934
1935 2003-11-14 Geoffrey Keating <geoffk@apple.com>
1936
1937 * config/rs6000/rs6000.md: Add 'DEFAULT_ABI == ABI_DARWIN'
1938 to each place where TARGET_LONG_DOUBLE_128 is used with
1939 DEFAULT_ABI == ABI_AIX.
1940
1941 * cppfiles.c (_cpp_find_file): Make 'one or more PCH files were found'
1942 message comply with GNU standards.
1943
1944 2003-11-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1945
1946 PR/6552
1947 * function.c (struct epi_info): New field const_equiv.
1948 (update_epilogue_consts): New function.
1949 (keep_stack_depressed): Clear new field and verify scratch register
1950 doesn't have it set.
1951 Call new function via note_stores.
1952 (handle_epilogue_set): Allow setting SP equiv reg in different mode.
1953 Allow PLUS where second operand is register known set to constant.
1954 (emit_equiv_load): Write load using proper mode if source different.
1955 * config/mips/mips.md (return_internal): Put (return) first.
1956
1957 2003-11-14 Kazu Hirata <kazu@cs.umass.edu>
1958
1959 * config/h8300/lib1funcs.asm (___udivsi3): Add a comment.
1960
1961 2003-11-14 Kazu Hirata <kazu@cs.umass.edu>
1962
1963 * config/h8300/lib1funcs.asm (modsi3): Don't save unused
1964 registers.
1965 (divsi3): Likewise.
1966 (reti): Don't restore unused registers.
1967
1968 2003-11-14 Nick Clifton <nickc@redhat.com>
1969
1970 * config/fr30/fr30.c: Include toplev.h
1971
1972 2003-11-14 Richard Earnshaw <rearnsha@arm.com>
1973
1974 * except.c (sjlj_emit_function_enter): Mark internal label as LOCAL.
1975
1976 2003-11-14 Richard Earnshaw <rearnsha@arm.com>
1977
1978 * arm.c (arm_emit_vector_const, arm_output_load_gr): Use ISO C
1979 function definition syntax.
1980
1981 2003-11-14 Eric Christopher <echristo@redhat.com>
1982
1983 * reload1.c (reload): Revert previous patch. Make
1984 check for assignment into reg_equiv_address stricter.
1985
1986 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
1987
1988 * Makefile.in (POSTSTAGE1_FLAGS_TO_PASS): Pass ADAFLAGS.
1989
1990 2003-11-14 Richard Sandiford <rsandifo@redhat.com>
1991
1992 * config/frv/frv.c (frv_in_small_data_p): Return false for unknown
1993 section names.
1994
1995 2003-11-14 Jason Merrill <jason@redhat.com>
1996
1997 PR middle-end/12526
1998 * tree.c (build): A CALL_EXPR has side-effects if its arguments do.
1999 * calls.c (call_expr_flags): New fn.
2000 * tree.h: Declare it.
2001
2002 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2003
2004 * config/h8300/lib1funcs.asm (__udivsi3): Remove.
2005 (divmodsi3): Change the name to ___udivsi3.
2006 Update all callers.
2007
2008 2003-11-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2009
2010 * libgcc2.c (__negdi2, __addvsi3, __addvdi3, __subvsi3, __subvdi3,
2011 __mulvsi3, __negvsi2, __negvdi2, __mulvdi3, __lshrdi3, __ashldi3,
2012 __ashrdi3, __ffsDI2, __muldi3, __clzDI2, __ctzDI2, __parityDI2,
2013 __udivmoddi4, __divdi3, __moddi3, __cmpdi2, __ucmpdi2,
2014 __fixunstfDI, __fixunsxfDI, __fixunsdfDI, __fixunssfDI,
2015 __floatdixf, __floatditf, __floatdidf, __floatdisf, __gcc_bcmp):
2016 Const-ify and/or initialize automatic variables at declaration.
2017
2018 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2019
2020 * config/h8300/lib1funcs.asm (divmodsi4): Replace all the uses
2021 of er4 with er3. Adjust all callers.
2022
2023 2003-11-13 Andrew Pinski <apinski@apple.com>
2024
2025 * config/darwin.c (machopic_output_possible_stub_label):
2026 Allow stub symbol be not defined when outputting possible
2027 stub label.
2028
2029 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2030
2031 * config/h8300/lib1funcs.asm (___udivsi3): Jump to reti
2032 instead of exitdiv.
2033 (___umodsi3): Likewise.
2034 (exitdiv): Do not restore any register.
2035 (reti): Restore registers.
2036
2037 2003-11-13 Steven Bosscher <stevenb@suse.de>
2038
2039 * tree-inline.c (walk_tree): Handle PLACEHOLDER_EXPR.
2040
2041 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2042
2043 * config/h8300/lib1funcs.asm: Fix comment typos.
2044
2045 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
2046
2047 * config/h8300/lib1funcs.asm (udivsi3): Don't save/restore
2048 unused registers. Don't jump to exitdiv.
2049 (umodsi3): Likewise.
2050
2051 2003-11-13 Mark Mitchell <mark@codesourcery.com>
2052 Kean Johnston <jkj@sco.com>
2053
2054 PR c/13029
2055 * toplev.c (check_global_declarations): Do not warn about unused
2056 static consts.
2057
2058 2003-11-13 Pavel Pisa <pisa@cmp.felk.cvut.cz>
2059 Kazu Hirata <kazu@cs.umass.edu>
2060
2061 * config/h8300/lib1funcs.asm (DenHighNonZero): Optimize using
2062 the approximate quotient method.
2063
2064 2003-11-13 Richard Earnshaw <rearnsha@arm.com>
2065
2066 * combine.c (distribute_notes): When re-distributing the notes from
2067 an insn we are about to delete, ensure we can't end up with a cyclic
2068 list of notes.
2069
2070 2003-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
2071
2072 PR optimization/12926
2073 * expr.c (expand_assignment) [COMPONENT_REF]: Don't put
2074 the UNCHANGING_RTX_P flag on memory references to read-only
2075 components that are not addressable.
2076
2077 2003-11-12 Kazu Hirata <kazu@cs.umass.edu>
2078
2079 * config/h8300/lib1funcs.asm (divmodsi4): Clear S0P in
2080 DenHighNonZero.
2081
2082 2003-11-13 Jan Hubicka <jh@suse.cz>
2083
2084 PR opt/12275
2085 * c-decl.c (finish_decl): Use change_decl_assembler_name.
2086 * c-pragma.c (handle_pragma_redefine_extname): Likewise.
2087 * varasm.c (make_decl_rtl): Likewise.
2088 * cgraph.c (change_decl_assembler_name): New function.
2089 * tree.h (set_decl_assembler_name): Kill dead declaration.
2090 (change_decl_assembler_name): Declare.
2091
2092 * decl.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
2093 * decl2.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
2094
2095 2003-11-12 Kazu Hirata <kazu@cs.umass.edu>
2096
2097 * config/h8300/lib1funcs.asm (___mulsi3): Don't save/restore
2098 an unused register.
2099
2100 2003-11-12 Richard Sandiford <rsandifo@redhat.com>
2101
2102 PR bootstrap/12752
2103 * config/mips/t-iris6 (MULTILIB_OPTIONS): Put -mabi=n32 first.
2104 (MULTILIB_OSDIRNAMES): Reorder accordingly.
2105
2106 2003-11-12 Janis Johnson <janis187@us.ibm.com>
2107
2108 * rs6000-protos.h (rs6000_initial_elimination_offset): Add.
2109 (rs6000_stack_info): Remove. (debug_stack_info): Remove.
2110 (rs6000_emit_eh_reg_restore): Add
2111 * rs6000.c (rs6000_stack_t): Move from rs6000.h, change data type
2112 of vars_size and total_size to HOST_WIDE_INT.
2113 (emit_frame_save): Change parameter size to HOST_WIDE_INT.
2114 (rs6000_stack_info): Make static; change data size to HOST_WIDE_INT.
2115 (debug_stack_info): Make static; change output format of HOST_WIDE_INT
2116 values.
2117 (rs6000_emit_eh_reg_restore): New, with code formerly in rs6000.md.
2118 (rs6000_initial_elimination_offset): New, with code formerly in
2119 INITIAL_ELIMINATION_OFFSET.
2120 * rs6000.h (rs6000_stack_t): Remove.
2121 (INITIAL_ELIMINATION_OFFSET): Replace code with call to function
2122 rs6000_initial_elimination_offset.
2123 * rs6000.md (UNSPECV_EH_RR split): Replace code with call to
2124 rs6000_emit_eh_reg_restore.
2125
2126 2003-11-12 Mike Stump <mrs@apple.com>
2127
2128 * c-typeck.c (c_convert_parm_for_inlining): Add argnum, which
2129 is the argumnt we are processing so that warnings and errors
2130 will have that information.
2131 * c-tree.h (c_convert_parm_for_inlining): Add argnum.
2132 * lang-hooks-def.h
2133 (lhd_tree_inlining_convert_parm_for_inlining): Likewse.
2134 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): Likewise.
2135 * langhooks.h (convert_parm_for_inlining): Likewise.
2136 * tree-inline.c (initialize_inlined_parameters): Compute and
2137 pass argnum down.
2138
2139 2003-11-12 Alexey Starovoytov <alexey.starovoytov@sun.com>
2140 Roger Sayle <roger@eyesopen.com>
2141
2142 PR optimization/12953
2143 * tree-inline.c (inline_forbidden_p_1): Added check for BUILT_IN
2144 before switch by FUNCTION_CODE.
2145
2146 2003-11-12 Richard Earnshaw <rearnsha@arm.com>
2147
2148 * arm.md (storehi): Avoid use of explicit subreg.
2149 (storehi_bigend, storeinthi, movhi_bigend): Likewise.
2150
2151 2003-11-12 J"orn Rennecke <joern.rennecke@superh.com>
2152
2153 * config/sh/sh.md (prefetch): New pattern.
2154
2155 2003-11-11 Eric Christopher <echristo@redhat.com>
2156
2157 * reload1.c (reload): Verify that addresses for
2158 reg_equiv_* are valid for the architecture.
2159
2160 2003-11-11 Eric Christopher <echristo@redhat.com>
2161
2162 * function.c (purge_addressof_1): Add libcall check.
2163 Remove test for cached replacements on fallback case.
2164 Simplify mode comparisons. Add libcall test for
2165 paradoxical subregs.
2166
2167 2003-11-11 Kazu Hirata <kazu@cs.umass.edu>
2168
2169 * config/h8300/t-h8300: Fix an obsolete comment.
2170
2171 2003-11-11 James E Wilson <wilson@specifixinc.com>
2172
2173 * expmed.c (store_bit_field, extract_bit_field): Revert last two
2174 changes.
2175
2176 2003-11-11 Kazu Hirata <kazu@cs.umass.edu>
2177
2178 * config/h8300/lib1funcs.asm: Replace DenHighZero with
2179 DenHighNonZero.
2180
2181 2003-11-11 Jan Hubicka <jh@suse.cz>
2182
2183 * cgraphunit.c (cgraph_function_possibly_inlined_p): Use
2184 really_no_inline.
2185
2186 2003-11-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2187
2188 * pa.h (TRAMPOLINE_TEMPLATE): Fix flushing of cache lines when
2189 generating 64-bit code.
2190
2191 2003-11-10 David Edelsohn <edelsohn@gnu.org>
2192
2193 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
2194 accidental commit in previous change.
2195
2196 2003-11-10 Fariborz Jahanian <fjahanian@apple.com>
2197
2198 * config/rs6000/rs6000.h (STACK_SIZE_MODE): Add definition.
2199 * config/rs6000/rs6000.c (reg_or_mem_operand): Add macho-style
2200 address recognition.
2201 (macho_lo_sum_memory_operand): Routine to recognize macho-style
2202 address recognition.
2203
2204 2003-11-10 Richard Henderson <rth@redhat.com>
2205
2206 * dwarf2out.c (gen_label_die): Cope with DECL_RTL not set.
2207
2208 2003-11-10 Matt Austern <austern@apple.com>
2209
2210 * config/darwin-protos.h (darwin_assemble_visibility): Declare.
2211 * config/darwin.c (darwin_assemble_visibility): Define. Warn for
2212 anything other than VISIBILITY_DEFAULT and VISIBILITY_HIDDEN.
2213 * config/darwin.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Use
2214 darwin_assemble_visibility instead of default.
2215
2216 2003-11-10 Waldek Hebisch <hebisch@math.uni.wroc.pl>
2217
2218 PR target/12865
2219 * config/sparc/sparc.c (sparc_initialize_trampoline): Call
2220 __enable_execute_stack only after writing onto the stack.
2221 (sparc64_initialize_trampoline): Likewise.
2222
2223 2003-11-09 Roger Sayle <roger@eyesopen.com>
2224
2225 * loop.c (check_dbra_loop): Try swapping the comparison operands
2226 of the loop condition to identify a suitable induction variable.
2227 * unroll.c (loop_iterations): Likewise.
2228
2229 2003-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2230
2231 * config/sparc/sparc.h (TARGET_CPU_CPP_BUILTINS): Fix sparc vs
2232 sparc64 #cpu and #machine assertions.
2233
2234 2003-11-09 Richard Henderson <rth@redhat.com>
2235
2236 * Makefile.in (rtlanal.o): Depend on BASIC_BLOCK_H.
2237
2238 2003-11-09 Jan Hubicka <jh@suse.cz>
2239
2240 * tree-optimize.c (tree_rest_of_compilation): Fix warning.
2241
2242 * cgraphunit.c (cgraph_expand_function): Use
2243 cgraph_possibly_inlined_p.
2244 * tree-optimize.c (tree_rest_of_compilation): Do not kill saved tree.
2245
2246 * opts.c (common_handle_option): Do not set max-inline-insns.
2247 * params.def: Update comments.
2248 (PARAM_MAX_INLINE_INSNS): Kill.
2249 * invoke.texi (max-inline-insns): Kill.
2250
2251 2003-11-08 Joseph S. Myers <jsm@polyomino.org.uk>
2252
2253 PR c/3190
2254 PR c/8714
2255 * c-format.c (set_Wformat): Do not enable -Wformat-y2k by default.
2256 * invoke.texi: Update.
2257
2258 2003-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2259
2260 PR optimization/12630
2261 * pa.c (compute_movstrsi_length): Rename to compute_movstr_length.
2262 Handle length computation 64-bit moves.
2263 (compute_clrstr_length, output_block_clear): Implement block clear.
2264 (output_block_move): Handle 64-bit moves.
2265 (pa_adjust_insn_length): Use compute_movstr_length and
2266 compute_clrstr_length.
2267 * pa.md (movstrsi): Revise operand order and comments. Don't use
2268 match_scratch.
2269 (movstrsi_internal): Delete.
2270 (movstrsi_prereload, movstrsi_postreload): New insns. Define splitter
2271 and peephole2 patterns to transform prereload to postreload form.
2272 (movstrdi, movstrdi_prereload, movstrdi_postreload, clrstrsi,
2273 clrstrsi_prereload, clrstrsi_postreload, clrstrdi, clrstrdi_prereload,
2274 clrstrdi_postreload): New patterns for 64-bit block move, and block
2275 clear.
2276 * pa-protos.h (output_block_clear): New prototype.
2277
2278 2003-11-08 Andreas Schwab <schwab@suse.de>
2279
2280 * dbxout.c (current_file): Also wrap inside DBX_DEBUGGING_INFO ||
2281 XCOFF_DEBUGGING_INFO.
2282
2283 2003-11-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2284
2285 * dbxout.c (current_file): Wrap declaration in DBX_USE_BINCL.
2286
2287 2003-11-07 Geoffrey Keating <geoffk@apple.com>
2288
2289 * config/rs6000/rs6000.c (rs6000_legitimize_address): Remove
2290 redundant parens.
2291
2292 * cppfiles.c (pch_open_file): New parameter 'invalid_pch', set it.
2293 (find_file_in_dir): Likewise.
2294 (_cpp_find_file): Print message if no header file is found
2295 but an invalid PCH file was.
2296
2297 2003-11-08 Joseph S. Myers <jsm@polyomino.org.uk>
2298
2299 * c-typeck.c (pedantic_lvalue_warning): Deprecate compound
2300 expressions as lvalues.
2301 (internal_build_compound_expr): Remove special handling for
2302 non-pedantic case.
2303 * doc/extend.texi: Document that all extended lvalues are now
2304 deprecated.
2305
2306 2003-11-07 Geoffrey Keating <geoffk@apple.com>
2307
2308 PR 11654
2309 * dbxout.c (struct dbx_file): Do not save for PCH.
2310 (current_file): Likewise.
2311 (dbxout_init): Don't allocate struct dbx_file using GC.
2312 (dbxout_start_source_file): Likewise.
2313
2314 2003-11-07 Falk Hueffner <falk@debian.org>
2315
2316 * config/alpha/elf.h, config/alpha/unicosmk.h,
2317 config/alpha/vms.h: Convert to ISO C90.
2318
2319 2003-11-07 Nathanael Nerode <neroden@gcc.gnu.org>
2320
2321 * config/arm/pe.h: Convert to ISO C90.
2322
2323 2003-11-07 J"orn Rennecke <joern.rennecke@superh.com>
2324
2325 * sh-protos.h (sh_pch_valid_p): Declare.
2326 * sh.c ("intl.h"): Include.
2327 (TARGET_PCH_VALID_P): Override.
2328 (sh_target_switches): New variable.
2329 (target_switches): Define.
2330 (sh_pch_valid_p): New function.
2331
2332 * sh.h (MODE_AFTER): Don't change mode unless TARGET_HITACHI.
2333
2334 2003-11-07 Jan Hubicka <jh@suse.cz>
2335
2336 * i386.c (x86_64_sign_extended_value): Return false from tls variables.
2337 (x86_64_zero_extended_value): likewise.
2338
2339 2003-11-07 Richard Sandiford <rsandifo@redhat.com>
2340
2341 * config/mips/mips.md (loadgp): Take $25 as a second operand.
2342 * config/mips/mips.c (mips_expand_prologue): Modify accordingly.
2343
2344 2003-11-06 Matt Austern <austern@apple.com>
2345
2346 * c-common.c (handle_visibility_attribute): Set DECL_VISIBILITY
2347 field instead of hanging an attribute object off the decl.
2348 * tree.h (DECL_VISIBLITY): New accessor macro for
2349 symbol_visibility field in struct tree_decl.
2350 (enum symbol_visibility): Move definition to before tree_decl.
2351 (struct tree_decl): Define new two-bit field, symbol_visibility.
2352 (decl_visibility): Remove declaration.
2353 * varasm.c (maybe_assemble_visibility): Use DECL_VISIBILITY
2354 instead of decl_visibility.
2355 (default_binds_local_p_1): Use DECL_VISIBILITY instead of
2356 decl_visibility.
2357 (decl_visibility): Remove.
2358
2359 2003-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2360
2361 * config/s390/s390.c (s390_emit_epilogue): Recognize more cases
2362 where register 14 will be saved.
2363
2364 2003-11-06 Geoffrey Keating <geoffk@apple.com>
2365
2366 * config/rs6000/rs6000.h (USE_FP_FOR_ARG_P): Move to rs6000.c.
2367 (USE_ALTIVEC_FOR_ARG_P): Likewise.
2368 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Move from rs6000.h.
2369 Take a pointer as the CUM parameter. Update callers.
2370 (USE_ALTIVEC_FOR_ARG_P): Likewise. Also correct for Darwin/AIX
2371 32-bit ABIs.
2372 (function_arg_advance): Use USE_ALTIVEC_FOR_ARG_P. Correct case
2373 of vector parameters as named arguments of stdarg function.
2374 (function_arg): Likewise.
2375
2376 * config/rs6000/darwin.h (ASM_SPEC): Use -force_cpusubtype_ALL when
2377 -maltivec is specified, not the non-existent -faltivec.
2378
2379 2003-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2380
2381 * config/s390/s390-protos.h (s390_function_value): Declare.
2382 * config/s390/s390.c (TARGET_RETURN_IN_MEMORY): Define.
2383 (s390_return_in_memory): New function.
2384 (s390_function_value): New function.
2385 (s390_function_arg_float): Return false for all arguments larger
2386 than 8 bytes.
2387 (s390_function_arg_pass_by_reference): Likewise. Return true for
2388 all vector arguments.
2389 (s390_function_arg_integer): New function.
2390 (s390_function_arg_advance): Call it. Add sanity checks.
2391 (s390_function_arg): Likewise.
2392 * config/s390/s390.h (FUNCTION_VALUE): Call s390_function_value.
2393 (LIBCALL_VALUE): Likewise.
2394 (RET_REG): Remove.
2395 (RETURN_IN_MEMORY): Remove.
2396
2397 2003-11-06 Richard Sandiford <rsandifo@redhat.com>
2398
2399 * config/mips/mips-protos.h (mips_initial_elimination_offset): Change
2400 return type to HOST_WIDE_INT.
2401 * config/mips/mips.c (mips_frame_info): Give sizes type HOST_WIDE_INT.
2402 Make initialized a bool. Make register masks unsigned ints.
2403 (compute_frame_size): Make same mask change here. Use HOST_WIDE_INT
2404 where appropriate.
2405 (mips_initial_elimination_offset): Return a HOST_WIDE_INT.
2406 (mips_output_function_prologue): Print sizes as HOST_WIDE_INTs.
2407
2408 2003-11-06 Richard Sandiford <rsandifo@redhat.com>
2409
2410 * config/frv/frv.c (frv_initial_elimination_offset): Remove bogus
2411 negation.
2412
2413 2003-11-06 Richard Sandiford <rsandifo@redhat.com>
2414
2415 * config/frv/frv.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define.
2416
2417 2003-11-06 Momchil Velikov <velco@fadata.bg>
2418
2419 * config/mips/mips.c (override_options): Set MASK_SOFT_FLOAT
2420 for VR4111 too.
2421
2422 2003-11-06 Jan Hubicka <jh@suse.cz>
2423
2424 * builtins.c (simplify_builtin_strrchr, simplify_builtin_strpbrk): Add
2425 missing casts.
2426
2427 2003-11-06 Zack Weinberg <zack@codesourcery.com>
2428
2429 * genmodes.c: Change the word "bitsize" to "precision" throughout.
2430 * machmode.def: Likewise.
2431 * machmode.h (GET_MODE_SIZE): Cast value to unsigned short.
2432 (GET_MODE_BITSIZE): Define as GET_MODE_SIZE * BITS_PER_UNIT.
2433 (GET_MODE_PRECISION): New macro.
2434 (mode_bitsize): Renamed mode_precision.
2435 * stor-layout.c (mode_for_size, smallest_mode_for_size):
2436 Use GET_MODE_PRECISION; clarify comments.
2437
2438 2003-11-05 Joseph S. Myers <jsm@polyomino.org.uk>
2439
2440 * doc/install-old.texi: Remove old documentation of building
2441 cross-compilers.
2442 * doc/install.texi: Move some of it to here.
2443
2444 2003-11-05 Per Bothner <pbothner@apple.com>
2445
2446 PR preprocessor/12891
2447 * c-opts.c (finish_options): Set include_cursor to disable premature
2448 calls to push_command_line_include from cpp_scan_nooutput.
2449 Fixes bug reported by DJ Delorie.
2450
2451 2003-11-05 Geoffrey Keating <geoffk@apple.com>
2452
2453 * config/rs6000/rs6000.c (setup_incoming_varargs): Remove
2454 code supporting old-style varargs.
2455
2456 * config/rs6000/rs6000.c (rs6000_machopic_legitimize_pic_address): Use
2457 an intermediate register for better optimisation.
2458
2459 2003-11-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2460
2461 PR optimization/10080
2462 * cfgloopanal.c (variable_initial_value, variable_initial_values,
2463 simple_loop_exit_p): Record the fact that initial value is extended
2464 from inner mode.
2465 (count_strange_loop_iterations, count_loop_iterations): Handle
2466 ivs that iterate in a narrower mode. Fix handling of overflows.
2467 Improve handling of NE conditions.
2468 (inverse, fits_in_mode_p): New static functions.
2469 (simple_increment): Detect variables that iterate in a narrower mode.
2470 * cfgloop.h (struct loop_desc): Fields inner_mode and extend added.
2471
2472 2003-11-05 Geoffrey Keating <geoffk@apple.com>
2473
2474 * config/rs6000/rs6000.c (compute_vrsave_mask): Correct off-by-one
2475 error.
2476
2477 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Darwin
2478 needs VRSAVE.
2479
2480 2003-11-05 Joseph S. Myers <jsm@polyomino.org.uk>
2481
2482 * c-typeck.c (pedantic_lvalue_warning): Deprecate use of
2483 conditional expressions as lvalues.
2484
2485 2003-11-05 Kazu Hirata <kazu@cs.umass.edu>
2486
2487 * tsystem.h: Add the prototype of strlen.
2488 * unwind-pe.h (read_encoded_value_with_base): Add an
2489 appropriate cast to handle a case where the pointer size is
2490 smaller than sizeof (int).
2491
2492 2003-11-04 Richard Sandiford <rsandifo@redhat.com>
2493
2494 * config/mips/mips-protos.h (mips_global_pic_constant_p): Delete.
2495 (mips_delegitimize_address): Delete.
2496 (mips_gotoff_global, mips_load_got_page): Declare.
2497 (mips_load_got_global, mips_rewrite_small_data): Declare.
2498
2499 * config/mips/mips.h (FIND_BASE_TERM): Remove definition.
2500 (DANGEROUS_FOR_LA25_P): Use global_got_operand.
2501 (PREDICATE_CODES): Add global_got_operand, local_got_operand and
2502 small_data_pattern. Remove CONST from const_arith_operand's entry.
2503
2504 * config/mips/mips.c (UNSPEC_ADDRESS_P, CONST_GP_P): New macros.
2505 (UNSPEC_ADDRESS, UNSPEC_ADDRESS_TYPE): Likewise.
2506 (mips_constant_type): Delete.
2507 (mips_symbol_type): Add SYMBOL_GOTOFF_PAGE, SYMBOL_GOTOFF_GLOBAL,
2508 SYMBOL_GOTOFF_CALL and SYMBOL_GOTOFF_LOADGP.
2509 (NUM_SYMBOL_TYPES): New macro.
2510 (mips_address_type): Remove ADDRESS_INVALID.
2511 (machine_function): Add has_gp_insn_p.
2512 (mips_constant_info): Delete.
2513 (mips_address_info): Add the address type as an extra field. Replace
2514 the c field with symbol_type.
2515 (mips_split_p, mips_lo_relocs, mips_hi_relocs): New arrays.
2516 (TARGET_DELEGITIMIZE_ADDRESS): Remove definition.
2517 (mips_reloc_offset_ok_p, mips_classify_constant): Delete.
2518 (mips_split_const, mips_symbolic_constant_p): New functions.
2519 (mips_symbolic_address_p): Take the symbol type and mode as arguments.
2520 (mips_classify_address): Return true if the address is valid, storing
2521 its type in INFO. Use mips_symbolic_constant_p. Use mips_lo_relocs[]
2522 to test whether a LO_SUM address is allowed.
2523 (mips_symbol_insns): Return 0 for general mips16 symbols.
2524 Reorder SYMBOL_GOT_GLOBAL case to match mips_symbol_type definition.
2525 Handle the new SYMBOL_GOTOFF_*s.
2526 (mips_address_insns): Update call to mips_classify_address.
2527 (mips_const_insns): Be more fussy about HIGH constants. Remove use
2528 of mips_classify_constant. Be more accurate about CONSTs.
2529 (mips_global_pic_constant_p): Delete.
2530 (const_arith_operand): Only accept CONST_INTs.
2531 (call_insn_operand): Remove call to mips_classify_constant.
2532 Let mips_symbolic_constant_p check for invalid offsets.
2533 (move_operand): Check for general_operands first. Only accept symbolic
2534 constants if they satisfy mips_symbolic_constant_p and cannot be split.
2535 (symbolic_constant): Use mips_symbolic_constant_p.
2536 (global_got_operand, local_got_operand): New predicates.
2537 (stack_operand): Update call to mips_classify_address.
2538 (mips_legitimate_address_p): Likewise.
2539 (mips_reloc, mips_lui_reloc): Delete.
2540 (mips_force_temporary): Only use the given temporary if no_new_pseudos.
2541 Use emit_move_insn.
2542 (mips_split_symbol, mips_unspec_address): New functions.
2543 (mips_unspec_offset_high): New function.
2544 (mips_load_got): Replace reloc argument with a symbol_type.
2545 Use mips_unspec_address to create the address and put it in a
2546 LO_SUM with the base register.
2547 (mips_load_got16, mips_load_got32): Delete.
2548 (mips_emit_high, mips_legitimize_symbol): Delete.
2549 (mips_gotoff_global): New function.
2550 (mips_load_got_page, mips_load_got_global): New functions.
2551 (mips_legitimize_symbol): Inline handling of LO_SUM splits.
2552 (mips_legitimize_const_move): Likewise. Remove HIGH handling.
2553 Inline code to handle constants plus invalid offsets. Use
2554 mips_split_symbol to legitimize constant pool addresses.
2555 (mips_delegitimize_address): Delete.
2556 (mips_rtx_costs): Give legitimate symbolic constants and CONST_DOUBLEs
2557 a cost of 1 insn. Give the rest a cost of CONSTANT_POOL_ADDRESS.
2558 (mips_subword): Pass memrefs through mips_rewrite_small_data.
2559 (mips_output_move): Remove use of mips_classify_constant.
2560 (mips_expand_call): Use mips_unspec_offset_high to calculate the
2561 high part of the GOT address for calls to global functions.
2562 (override_options): Initialize mips_split_p[], mips_lo_relocs[]
2563 and mips_hi_relocs[].
2564 (print_operand): Use print_operand_reloc to handle '%h' and '%R'.
2565 Remove use of mips_classify_constant.
2566 (mips_reloc_string): Delete.
2567 (print_operand_reloc): New function.
2568 (print_operand_address): Update call to mips_classify_address.
2569 (mips_rewrite_small_data_p, small_data_pattern_1): New functions.
2570 (small_data_pattern): New predicate.
2571 (mips_rewrite_small_data_1, mips_rewrite_small_data): New functions.
2572 (mips_function_has_gp_insn): New function.
2573 (mips_global_pointer): Use it.
2574 (mips_gp_insn): Delete.
2575 (mips_expand_prologue): When compiling for n32/n64 abicalls, use a
2576 single loadgp pattern to initialize $gp. Pass it the offset of _gp
2577 from the start of the current function.
2578 (mips16_gp_pseudo_reg): Revert last patch.
2579
2580 * config/mips/mips.md (RELOC_*): Delete.
2581 (UNSPEC_LOADGP, UNSPEC_FIRST_ADDRESS): New constants.
2582 (got): New insn attribute.
2583 (type): Set to "load" if got == load.
2584 (length): Set to 4 if got == load, 8 if got == xgot_high.
2585 (lui[sd]i): Delete.
2586 (*xgot_hi[sd]i, *xgot_lo[sd]i): New patterns.
2587 (*got_disp[sd]i, *got_page[sd]i): Likewise.
2588 (*low[sd]i): Change constraints to "d". Add a new define_split to
2589 rewrite small data constants into LO_SUMs.
2590 (loadgp): New insns.
2591
2592 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2593
2594 * config/mips/_tilib.c: Use _ABI* in _MIPS_SIM tests.
2595
2596 2003-11-04 DJ Delorie <dj@redhat.com>
2597
2598 * config/v850/v850.md (mulhisi3): Expand the const_int case
2599 separately to avoid trying to sign extend the const.
2600
2601 2003-11-04 Richard Sandiford <rsandifo@redhat.com>
2602
2603 * emit-rtl.c (copy_rtx_if_shared): Don't allow MEMs with constant
2604 addresses to be shared.
2605 (force_const_mem): Return a copy of the pool entry.
2606
2607 2003-11-03 Andreas Jaeger <aj@suse.de>
2608
2609 * Makefile.in (GCC_CFLAGS): Remove @WERROR@ again.
2610
2611 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
2612
2613 * Makefile.in (cpp.dvi): New target split from cpp.info.
2614 (gcc.dvi): New target split from gcc.info.
2615 (gccint.dvi): New target split from gccint.info.
2616 (cppinternals.dvi): New target split from cppinternals.info
2617 (gccinstall.info): New specific rule.
2618 (gccinstall.dvi): Likewise.
2619 (dvi): Move targets to $(docobjdir).
2620 ($(docobjdir)/%.dvi): New implicit rule.
2621
2622 2003-11-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2623
2624 * doc/gty.texi (tag, desc): Say more about role of desc values in
2625 selecting between tags.
2626
2627 2003-11-03 Alexander Kabaev <ak03@gte.com>
2628
2629 * real.c (encode_ieee_single): Ensure proper promotion.
2630
2631 2003-11-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2632
2633 * doc/contrib.texi: Add Giovanni Bajo, Dara Hazeghi, Falk Hueffner,
2634 and Andrew Pinski.
2635
2636 2003-11-03 Syd Polk <spolk@apple.com>
2637
2638 * config/rs6000/rs6000.c (rs6000_override_options): Add G3, G4, and G5
2639 marketing names to the list of supported processors.
2640 * config/rs6000/rs6000.h: Ditto.
2641 * doc/invoke.texi: Ditto.
2642 * config.gcc: Ditto.
2643
2644 2003-11-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2645
2646 * fixinc/inclhack.def (stdio_va_list): Allow tab before va_list.
2647 Merge two substitutions.
2648 * fixinc/fixincl.x: Regenerate.
2649 Fixes PR bootstrap/12666.
2650
2651 2003-11-03 Joseph S. Myers <jsm@polyomino.org.uk>
2652
2653 * doc/install-old.texi: Remove VMS documentation.
2654
2655 2003-11-03 Jan Hubicka <jh@suse.cz>
2656
2657 * i386.c (override_options): Remove hack enabling 128bit long double
2658 commited by accident.
2659
2660 2003-11-02 Per Bothner <per@bothner.com>
2661
2662 * c-opts.c (needValue): Do cpp_find_main_file before processing
2663 any imacros flags, so pfile->main_file is set for the latter.
2664
2665 2003-11-03 Andreas Jaeger <aj@suse.de>
2666 Zack Weinberg <zack@codesourcery.com>
2667
2668 * Makefile.in (GCC_CFLAGS): Allow blacklisting of warnings.
2669 (SYSCALLS.c.X-warn): Suppress warnings.
2670
2671 2003-11-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2672
2673 PR optimization/12845
2674 * pa.c (output_cbranch): Use cmpb for DImode comparisons with 0.
2675
2676 2003-11-02 Zack Weinberg <zack@codesourcery.com>
2677
2678 * print-rtl.c (print_rtx): Call PRINT_REG with second argument -1.
2679 * config/i386/i386.c (print_reg): Abort on a virtual register
2680 if code != -1; not if file == asm_out_file.
2681 * config/i386/i386.h (PRINT_REG): Document meaning of CODE == -1.
2682 (DEBUG_PRINT_REG): Delete, unused.
2683
2684 2003-11-02 Andreas Schwab <schwab@suse.de>
2685
2686 * config/ia64/fde-glibc.c (_GNU_SOURCE): Define to 1 instead of
2687 empty to avoid conflict with the definition from configure.
2688
2689 2003-11-02 Roger Sayle <roger@eyesopen.com>
2690
2691 PR optimization/10817
2692 * ifcvt.c (noce_emit_move_insn): Improve documentation comment.
2693 (noce_try_move): New function to optimize an if-the-else into an
2694 unconditional move, i.e. "if (a!=b) x=a; else x=b" into "x=a".
2695 (noce_process_if_block): Attempt simplification with noce_try_move.
2696
2697 * simplify-rtx.c (simplify_ternary_operation): Some minor fixes
2698 and improvements to the optimizations of IF_THEN_ELSE expressions.
2699 (simplify_subreg): Silence signed/unsigned comparison warning.
2700
2701 2003-11-02 Richard Sandiford <rsandifo@redhat.com>
2702
2703 * Makefile.in (targhooks.o, reload.o): Update dependencies.
2704 (GTFILES): Add targhooks.c.
2705 (gt-targhooks.h): New rule; depend on s-gtype.
2706 * target.h (direct_pool_load_p): New hook.
2707 * target-def.h (TARGET_DIRECT_POOL_LOAD_P): New macro.
2708 (TARGET_INITIALIZER): Include it.
2709 * targhooks.h (default_direct_pool_load_p): Declare.
2710 (hook_bool_machine_mode_true): Declare.
2711 * targhooks.c: Include insn-config.h, recog.h, ggc.h and
2712 gt-targhooks.h.
2713 (pool_symbol): New variable.
2714 (default_direct_pool_load_p): New function.
2715 (hook_bool_machine_mode_true): New function.
2716 * reload.c: Include target.h.
2717 (find_reloads): If an alternative will force a constant into memory,
2718 count an extra reload if constant pool symbols are not valid
2719 addresses. If an alternative uses memory to move values between
2720 registers, count the move as two reloads rather than one.
2721 * config/s390/s390.c (TARGET_DIRECT_POOL_LOAD_P): Define.
2722 * doc/tm.texi (TARGET_DIRECT_POOL_LOAD_P): Document.
2723
2724 2003-11-02 Eric Botcazou <ebotcazou@libertysurf.fr>
2725
2726 PR optimization/12799
2727 * postreload.c (reload_cse_move2add): Generate the add2
2728 patterns manually.
2729
2730 2003-11-02 Eric Botcazou <ebotcazou@libertysurf.fr>
2731
2732 * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
2733 Return 0 for all complex modes whose size is lesser or equal to
2734 a word. Add a ??? comment for the condition used with 16-byte
2735 aligned modes.
2736
2737 2003-11-01 Kelley Cook <kcook@gcc.gnu.org>
2738
2739 * .cvsignore: Remove c-parse* and tradcif.c.
2740 * objc/.cvsignore: Delete.
2741
2742 2003-11-01 Roger Sayle <roger@eyesopen.com>
2743
2744 * unwind-sjlj.c (_Unwind_GetCFA): Return (_Unwind_Word)0 instead
2745 of NULL.
2746
2747 2003-11-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2748
2749 * som.h (DO_GLOBAL_DTORS_BODY): Change to C90 declaration.
2750
2751 * libgcc2.c (SYMBOL__MAIN): Provide C90 declaration.
2752
2753 * collect2.c (scan_libraries): Fix typos.
2754
2755 PR preprocessor/12847
2756 * cppfiles.c, cppexp.c, cpperror.c, cpplib.h, cpplib.c, cpplex.c,
2757 cppinit.c, cpptrad.c, cppmacro.c, fix-header.c, cpppch.c, c-pch.c,
2758 c-incpath.c, cppcharset.c (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN,
2759 DL_ERROR, DL_ICE, DL_EXTRACT, DL_WARNING_P): Prefix macro names with
2760 "CPP_".
2761
2762 2003-11-01 Fariborz Jahanian <fjahanian@apple.com>
2763
2764 * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Correct
2765 no_units calculation.
2766
2767 2003-11-01 Andreas Jaeger <aj@suse.de>
2768
2769 * unwind-dw2.c (_Unwind_FrameState): Remove commas at end of
2770 enumeration list.
2771
2772 2003-11-01 Andreas Schwab <schwab@suse.de>
2773
2774 * config/ia64/sysv4.h (SDATA_SECTION_FUNCTION): Update to C90
2775 prototypes.
2776 (SBSS_SECTION_FUNCTION): Likewise.
2777
2778 2003-11-01 Andreas Jaeger <aj@suse.de>
2779
2780 * Makefile.in (GCC_CFLAGS): Add @WERROR@ for target files.
2781
2782 2003-11-01 Andreas Tobler <a.tobler@schweiz.ch>
2783
2784 * config/rs6000/sysv4.h (EXTRA_SECTION_FUNCTIONS): Update to C90
2785 prototypes.
2786
2787 2003-11-01 Andreas Jaeger <aj@suse.de>
2788
2789 * unwind-dw2.c (_Unwind_FindEnclosingFunction): Constify variable.
2790 (uw_frame_state_for): Constify variables.
2791 (extract_cie_info): Constify first argument.
2792
2793 * unwind-dw2-fde-darwin.c: Adjust prototype of
2794 _Unwind_Find_registered_FDE for recent changes.
2795 (examine_objects): Constify return value and local variable result.
2796 (_Unwind_Find_FDE): Constify return value and local variable ret.
2797
2798 2003-10-31 Per Bothner <pbothner@apple.com>
2799
2800 * c-opts.c (finish_options): Change to returns boolean - false iff
2801 the call to cpp_find_main_file fails.
2802 (c_common_init): Skip preprocess_file if finish_options failed.
2803 (c_common_parse_file): Break if finish_options failed.
2804 Fixes PR preprocessor/12545.
2805
2806 2003-10-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2807
2808 * aclocal.m4: Blacklist ultrix* for mmap file.
2809 * configure: Rebuilt.
2810
2811 * function.c (assign_parms): Add ATTRIBUTE_UNUSED to variable
2812 reg_parm_stack_space.
2813 * toplev.c (default_get_pch_validity): Fix warning.
2814
2815 * vax.c: Include toplev.h.
2816 (vax_init_libfuncs): Fix typo (umod).
2817 * vax.h (ASM_COMMENT_START): Define.
2818 (PRINT_OPERAND): Fix warning when HOST_WIDE_INT is a long long.
2819
2820 2003-10-31 Roger Sayle <roger@eyesopen.com>
2821
2822 PR middle-end/11968
2823 * expr.c (expand_expr <MULT_EXPR>): Remove inappropriate and
2824 confusing comment; distributivity isn't handled in expand_expr.
2825 * fold-const.c (extract_muldiv_1 <PLUS_EXPR>): Allow overflow
2826 in distributivity, if wrap-around semantics are specified with
2827 -fwrapv.
2828
2829 2003-11-01 Alan Modra <amodra@bigpond.net.au>
2830
2831 PR 12315
2832 * final.c (profile_function): Allow for NULL svrtx.
2833
2834 2003-10-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2835
2836 * pa.c (pa_select_section): Use new style declaration.
2837 * som.h (readonly_data): Likewise.
2838
2839 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
2840
2841 * config/rs6000/rs6000.c: Update to C90 prototypes.
2842
2843 2003-10-31 Richard Earnshaw <rearnsha@arm.com>
2844
2845 PR target/7513
2846 * arm.h (CONDITIONAL_REGISTER_USAGE): Disable use of LR in Thumb
2847 code.
2848
2849 2003-10-31 Andreas Jaeger <aj@suse.de>,
2850 Zack Weinberg <zack@codesourcery.com>
2851
2852
2853 * crtstuff.c (__register_frame_info, __register_frame_info_bases)
2854 (__deregister_frame_info, __deregister_frame_info_bases):
2855 Constify void * argument.
2856 * unwind-dw2-fde.h (struct fde_vector):
2857 Constify 'orig_data' and 'array' fields.
2858 (__register_frame_info, __register_frame_info_bases)
2859 (__deregister_frame_info, __deregister_frame_info_bases):
2860 Constify void * argument.
2861 (get_cie, next_fde, _Unwind_Find_FDE): Constify arguments,
2862 return values, and casts of type fde *, struct dwarf_fde *,
2863 and struct dwarf_cie *.
2864 * unwind-dw2-fde.c (__register_frame_info, __register_frame_info_bases)
2865 (__deregister_frame_info, __deregister_frame_info_bases):
2866 Constify void * argument.
2867 (get_cie_encoding, ): Constify struct dwarf_cie * argument.
2868 (get_fde_encoding, fde_unencoded_compare, fde_single_encoding_compare)
2869 (fde_mixed_encoding_compare, fde_compare_t, start_fde_sort, fde_insert)
2870 fde_split, SWAP, frame_downheap, frame_heapsort)
2871 (classify_object_over_fdes, add_fdes, linear_search_fdes,
2872 binary_search_unencoded_fdes, binary_search_single_encoding_fdes,
2873 binary_search_mixed_encoding_fdes, search_object, _Unwind_Find_FDE):
2874 Constify arguments, local variables, return values, and casts
2875 of type fde *, fde **, struct dwarf_fde *, and struct dwarf_cie *.
2876 Use const pointer types in sizeof expressions, for clarity.
2877 * unwind-dw2-fde-glibc.c
2878 (_Unwind_find_registered_FDE, _Unwind_find_FDE): Constify return value.
2879 (struct unw_eh_callback_data): Constify 'ret' field.
2880
2881 2003-10-31 Fariborz Jahanian <fjahanian@apple.com>
2882 David Edelsohn <edelsohn@gnu.org>
2883
2884 * config/rs6000/rs6000.c (rs6000_mixed_function_arg): New.
2885 (function_arg): Call it.
2886 (rs6000_function_value): Widen integral return value to mode based
2887 on TARGET_32BIT, not word_mode.
2888 * config/rs6000/rs6000.h (PROMOTE_MODE): Likewise.
2889 (UNITS_PER_ARG): New.
2890 (RS6000_ARG_SIZE): Use it.
2891
2892 2003-10-31 Gerald Pfeifer <gerald@pfeifer.com>
2893
2894 * .cvsignore: No longer ignore gengtype-lex.c, gengtype-yacc.c,
2895 and gengtype-yacc.h.
2896
2897 2003-10-31 Richard Earnshaw <rearnsha@arm.com>
2898
2899 PR optimization/8896
2900 * postreload.c (reload_combine): Check that REGY doesn't die in an
2901 insn of the form (set (regx) (plus (regx) (regy))), ie REGX != REGY.
2902
2903 2003-10-31 Josef Zlomek <zlomekj@suse.cz>
2904
2905 PR/10239
2906 * cfgrtl.c (delete_insn): Decrease LABEL_NUSES for all REG_LABEL notes.
2907
2908 2003-10-31 Josef Zlomek <zlomekj@suse.cz>
2909
2910 PR/11640
2911 * cfgrtl.c (try_redirect_by_replacing_jump): Move jump
2912 immediatelly before BARRIER.
2913
2914 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
2915
2916 * Makefile.in (STRICT2_WARN): Add -Wold-style-definition.
2917
2918 2003-10-31 Richard Earnshaw <rearnsha@arm.com>
2919
2920 PR target/11271
2921 * reload.c (find_reloads_address): Handle any register in
2922 (PLUS (PLUS (REG) (REG)) (CONST_INT).
2923
2924 2003-10-31 Richard Earnshaw <rearnsha@arm.com>
2925
2926 * ggc-page.c (ggc_pch_read): Wrap call to poison_pages in
2927 ENABLE_GC_CHECKING not in GGC_POISON.
2928
2929 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
2930
2931 PR bootstrap/9863
2932 * configure.in: Bail out if awk is missing.
2933 * configure: Regenerate.
2934
2935 PR ada/12761
2936 * Makefile.in: Move default definitions of X_ADA_CFLAGS,
2937 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from ada/Make-lang.in to here.
2938
2939 2003-10-30 Richard Henderson <rth@redhat.com>
2940
2941 * c-objc-common.c (c_tree_printer): Handle types correctly.
2942 Factor code a bit.
2943
2944 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
2945
2946 * value-prof.c, web.c: Update to C90.
2947
2948 2003-10-30 Eric Christopher <echristo@redhat.com>
2949
2950 * function.c (purge_addressof_1): Add case for REG_RETVAL
2951 notes when modes are unequal.
2952
2953 2003-10-31 Jan Hubicka <jh@suse.cz>
2954
2955 * i386-modes.def: Add XFmode format adjustment.
2956
2957 2003-10-30 Jan Hubicka <jh@suse.cz>
2958
2959 * real.c (encode_ieee_extended): Back out previous patch.
2960
2961 2003-10-30 Jan Hubicka <jh@suse.cz>
2962
2963 * real.c (encode_ieee_extended): Initialize whole array.
2964 * reg-stack.c (move_for_stack_reg0: Use always XFmode.
2965 * i386-modes.def: Change definitions of TFmode and XFmode.
2966 * i386.c (classify_argument): Rename TFmodes to XFmodes; add new TFmode
2967 code.
2968 (construct_container): Allow constructing of TFmode integer containers.
2969 (ix86_return_in_memory): XFmode is not returned in memory.
2970 (init_ext_80387_constants): Always use XFmode.
2971 (print_operand): Likewise.
2972 (ix86_prepare_fp_compare_regs): Likewise.
2973 (split_to_parts): Deal with TFmode.
2974 (split_long_move): Simplify.
2975 (ix86_init_mmx_sse_builtins): Add __float80, __float128.
2976 (ix86_memory_move_cost): Do not confuse TFmode.
2977 * i386.h (LONG_DOUBLE_TYPE_SIZE): Set to 96.
2978 (IS_STACK_MODE): TFmode is not stack mode.
2979 (HARD_REGNO_NREGS, CLASS_MAX_NREGS): Deal nicely with XFmode.
2980 (VALID_SSE_REG_MODE): Allow TFmode.
2981 (VALID_FP_MODE_P): Disallow TFmode.
2982 (VALID_INT_MODE_P): Allow TFmode in 64bit mode.
2983 * i386.md (TFmode patterns): Kill.
2984 (movtf, motf_rex64): New patterns.
2985
2986 2003-10-30 Richard Sandiford <rsandifo@redhat.com>
2987
2988 * config/mips/mips.md (adddi3): Fix typo in mips16 stack pointer code.
2989
2990 2003-10-30 Richard Sandiford <rsandifo@redhat.com>
2991
2992 * config/mips/mips.md (mov_lwl): Use memory_operand where appropriate.
2993 (mov_lwr, mov_swl, mov_swr): Likewise.
2994 (mov_ldl, mov_ldr, mov_sdl, mov_sdr): Likewise.
2995
2996 2003-10-30 Richard Sandiford <rsandifo@redhat.com>
2997
2998 * config/mips/mips.c (mips_global_pointer): Don't try to use $25.
2999
3000 2003-10-30 Richard Henderson <rth@redhat.com>
3001
3002 * config/mips/mips.c (mips_build_builtin_va_list): Use runtime
3003 test for irix6 rather than preprocessor test.
3004
3005 2003-10-30 Richard Henderson <rth@redhat.com>
3006
3007 * cppcharset.c (one_utf8_to_utf16): Initialize 's' to silence warning.
3008
3009 2003-10-30 Ulrich Weigand <uweigand@de.ibm.com>
3010
3011 * config/s390/s390.c (struct machine_function): Use save_return_addr_p
3012 as a general flag that the return address register needs to be saved,
3013 not necessarily because of __builtin_return_addr (0).
3014 (s390_split_branches): Remove TEMP_REG and TEMP_USED arguments,
3015 remove special handling of zSeries machines.
3016 (s390_optimize_prolog): Remove TEMP_USED argument, treat the return
3017 register as a regular register on zSeries machines.
3018 (s390_reorg): Adjust calls to s390_split_branches and
3019 s390_optimize_prolog.
3020 (s390_frame_info): On zSeries machines, do not assume the return
3021 register is always used. Update regs_ever_live with current data
3022 for the special registers.
3023 (s390_emit_epilogue): Use save_return_addr_p to determine whether
3024 the return register was saved.
3025 * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Do not mark
3026 RETURN_REGNUM fixed on zSeries machines.
3027 (REG_ALLOC_ORDER): Use RETURN_REGNUM last.
3028 * config/s390/s390.md ("*doloop_si"): Handle branch overflow
3029 via ahi-jgne pair on zSeries machines.
3030 ("*doloop_di"): Likewise.
3031 ("*doloop_di_long"): Remove.
3032
3033 2003-10-30 Richard Earnshaw <rearnsha@arm.com>
3034
3035 * arm.c (arm_override_options): Revert change of arm_constant_limit
3036 when optimizing for size.
3037
3038 2003-10-29 Richard Henderson <rth@redhat.com>
3039
3040 * fold-const.c (fold_single_bit_test): Convert the input to the
3041 operational intermediate type.
3042
3043 2003-10-29 Richard Henderson <rth@redhat.com>
3044
3045 * builtins.c (std_build_builtin_va_list): New.
3046 * expr.h (std_build_builtin_va_list): Declare.
3047 * defaults.h (BUILD_VA_LIST_TYPE): New.
3048 * system.h (BUILD_VA_LIST_TYPE): Poison.
3049 * target-def.h (TARGET_BUILD_BUILTIN_VA_LIST): New.
3050 * target.h (struct gcc_target): Add build_builtin_va_list.
3051 * tree.c (build_common_tree_nodes_2): Use it.
3052
3053 * config/alpha/alpha-protos.h, config/alpha/alpha.c,
3054 config/alpha/alpha.h, config/alpha/unicosmk.h,
3055 config/d30v/d30v-protos.h, config/d30v/d30v.c, config/d30v/d30v.h,
3056 config/i386/i386-protos.h, config/i386/i386.c, config/i386/i386.h,
3057 config/i860/i860-protos.h, config/i860/i860.c, config/i860/i860.h,
3058 config/i960/i960-protos.h, config/i960/i960.c, config/i960/i960.h,
3059 config/mips/iris6.h, config/mips/mips-protos.h, config/mips/mips.c,
3060 config/mips/mips.h, config/rs6000/rs6000-protos.h,
3061 config/rs6000/rs6000.c, config/rs6000/rs6000.h,
3062 config/s390/s390-protos.h, config/s390/s390.c, config/s390/s390.h,
3063 config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
3064 config/xtensa/xtensa-protos.h, config/xtensa/xtensa.c,
3065 config/xtensa/xtensa.h: Rename foo_build_va_list to
3066 foo_build_builtin_va_list; make it static. Define
3067 TARGET_BUILD_BUILTIN_VA_LIST. Remove BUILD_VA_LIST_TYPE.
3068 Update protos.
3069
3070 * config/i386/i386.c (ix86_expand_carry_flag_compare): Make static.
3071 * config/iq2000/iq2000.h (BUILD_VA_LIST_TYPE): Remove.
3072
3073 2003-10-29 James E Wilson <wilson@specifixinc.com>
3074
3075 * recog.c (asm_operand_ok): Add missing break after case 'X'.
3076 Change if statements to else if statements in default case.
3077 (extract_constrain_insn_cached): Fix misspelling of constrain_operands
3078 in comment.
3079 (constrain_operands_cached): Likewise.
3080 (constrain_operands): Change if statements to else if statements in
3081 default case.
3082 * reload.c (find_reloads): Likewise.
3083
3084 2003-10-29 Richard Henderson <rth@redhat.com>
3085
3086 * config/m68k/m68k.c (notice_update_cc): Clear cc status for
3087 shifts and rotates.
3088
3089 2003-10-30 Alan Modra <amodra@bigpond.net.au>
3090
3091 * config/rs6000/rs6000.md: Remove duplicate pattern.
3092
3093 2003-10-29 Hans-Peter Nilsson <hp@axis.com>
3094
3095 * real.c (do_divide): Initialize result with a 0.
3096
3097 * configure.in <enable-checking for valgrind>: Look for
3098 <valgrind/memcheck.h> first. AC_DEFINE HAVE_VALGRIND_MEMCHECK_H
3099 if it exists.
3100 * configure, config.in: Regenerate.
3101 * ggc-common.c [ENABLE_VALGRIND_CHECKING &&
3102 HAVE_VALGRIND_MEMCHECK_H]: Include <valgrind/memcheck.h>. Use
3103 #elif for other alternatives.
3104 * ggc-page.c: Ditto.
3105 * ggc-zone.c: Don't assume <valgrind/memcheck.h>; instead copy
3106 include structure from ggc-common.c.
3107
3108 2003-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3109
3110 * pa-linux.h (ASM_OUTPUT_ADDR_VEC_ELT): Use label in big switch ELTs.
3111 (ASM_OUTPUT_ADDR_DIFF_ELT): Use label difference in big switch ELTs.
3112 * pa.c (pa_adjust_insn_length): Check for btable branches using
3113 attribute TYPE_BTABLE_BRANCH.
3114 (pa_reorg): Simplify.
3115 * pa.h (CASE_VECTOR_MODE): Change big switch mode to SImode.
3116 (ASM_OUTPUT_ADDR_VEC_ELT): As above.
3117 (ASM_OUTPUT_ADDR_DIFF_ELT): As above.
3118 * pa.md (btable_branch): New instruction type.
3119 (in_branch_delay, in_nullified_branch_delay, in_call_delay): Disallow
3120 btable branches.
3121 (define_delay): Add btable branches to insn types that may have an
3122 insn in the delay position.
3123 (Z2, Z3): Add btable branch to list.
3124 Simplify unamed pattern set copy pic_label_operand to register. Add
3125 PA 2.0 variant.
3126 (short_jump): New jump for use in branch tables.
3127 (casesi, casesi0): Revise for new branch table formats.
3128 (casesi32, casesi32p, casesi64p): New casesi patterns.
3129 (indirect_jump): Move.
3130
3131 2003-10-29 David Edelsohn <edelsohn@gnu.org>
3132
3133 * config/rs6000/rs6000.h (UNITS_PER_WORD): Revert to
3134 !TARGET_POWERPC64.
3135 (UNITS_PER_GPR_WORD): Delete.
3136 (HARD_REGNO_NREGS): Revert to UNITS_PER_WORD.
3137 (HARD_REGNO_MODE_OK): Same.
3138 (CLASS_MAX_NREGS): Same.
3139
3140 2003-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3141
3142 * pa.h (ASM_COMMENT_START): Define.
3143
3144 2003-10-29 Zack Weinberg <zack@codesourcery.com>
3145
3146 * genmodes.c (complete_mode): Record MODE_CC, MODE_INT,
3147 MODE_FLOAT, and MODE_PARTIAL_INT modes as having one
3148 component, not zero.
3149
3150 2003-10-29 Andreas Schwab <schwab@suse.de>
3151
3152 * config/ia64/t-ia64 (LIB2ADDEH): Add $(srcdir)/gthr-gnat.c.
3153
3154 2003-10-29 Eric Botcazou <ebotcazou@libertysurf.fr>
3155
3156 * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
3157 Never return 1 for complex integral modes whose size is lesser or
3158 equal to a word.
3159 (function_arg_pass_by_reference) [TARGET_ARCH64]: Mention CTImode
3160 in the comment.
3161 (function_arg_advance) [TARGET_ARCH64]: Don't special-case complex
3162 modes.
3163 (sparc_va_arg) [TARGET_ARCH64]: Handle any types whose size is
3164 greater than 16 bytes by reference.
3165
3166 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3167
3168 * config/ia64/ia64.c (ia64_assemble_integer): Test POINTER_SIZE,
3169 not TARGET_ILP32.
3170 (ia64_initialize_trampoline): Use globalize_label target call.
3171
3172 2003-10-29 Andreas Schwab <schwab@suse.de>
3173
3174 * doc/install.texi (Building): Add a sentence about building Ada
3175 for a canadian cross.
3176
3177 2003-10-28 Zack Weinberg <zack@codesourcery.com>
3178
3179 * config/ia64/ia64.c (cmptf_libfunc): New static.
3180 (ia64_expand_compare): Add logic to open-code calls to
3181 _U_Qfcmp for TFmode comparisons.
3182 (ia64_hpux_init_libfuncs): Initialize cmptf_libfunc.
3183 Set libfuncs for TFmode eq/ne/gt/ge/lt/gt to 0; these should
3184 never be generated anymore.
3185 * config/ia64/ia64.md (cmptf): New expander.
3186
3187 2003-10-28 Zack Weinberg <zack@codesourcery.com>
3188
3189 * ia64.md (UNSPEC_SETF_EXP,UNSPEC_FR_SQRT_RECIP_APPROX): New constants.
3190 (*sqrt_approx): New instruction pattern for approximate square roots.
3191 (*setf_exp_xf): New instruction pattern for exponentiation.
3192 (*maddxf4_alts_truncsf): New instruction pattern for truncation.
3193 (sqrtsf2_internal_thr): New define_and_split implementing
3194 throughput-optimized inline calculation of SFmode square root.
3195 (sqrtdf2_internal_thr): Likewise for DFmode.
3196 (sqrtxf2_internal_thr): Likewise for XFmode.
3197 (sqrtsf2, sqrtdf2, sqrtxf2): New expanders to choose between
3198 latency- and throughput-optimized square root algorithms.
3199 * ia64.h (MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR,
3200 TARGET_INLINE_SQRT_LAT, TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT):
3201 New macros.
3202 (TARGET_SWITCHES): Add -minline-sqrt-min-latency and
3203 -minline-sqrt-max-throughput.
3204 * ia64.c (ia64_override_options): If both -minline-sqrt-min-latency
3205 and -minline-sqrt-max-throughput are given, notify the user
3206 that both options cannot be used simultaneously.
3207 If -minline-sqrt-min-latency is given, notify the user that
3208 this mode is not yet implemented.
3209 (rtx_needs_barrier): Reformat initial comment to obey
3210 72-character width limit. Support UNSPEC_SETF_EXP and
3211 UNSPEC_FR_SQRT_RECIP_APPROX.
3212
3213 2003-10-29 Alan Modra <amodra@bigpond.net.au>
3214
3215 * config/rs6000/rs6000.md (movdf_softfloat64): Allow dummy ctr,ctr
3216 moves.
3217
3218 2003-10-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3219
3220 PR target/11598
3221 PR libgcj/10610
3222 * config/rs6000/sysv4.h (PREFERRED_STACK_BOUNDARY): New macro.
3223
3224 2003-10-28 Richard Earnshaw <rearnsha@arm.com>
3225
3226 * arm.c (arm_output_epilogue): When using a frame pointer, don't emit
3227 an extra stack adjustment insn if the stack pointer is already
3228 pointing at the right place.
3229 (use_return_insn): Allow a return insn to be used when we have a
3230 frame pointer if the stack pointer is in the right place.
3231 (output_return_instruction): Handle it.
3232
3233 2003-10-28 Andreas Jaeger <aj@suse.de>
3234
3235 * ggc-zone.c (check_cookies): Add missing variable.
3236 Add void to prototypes.
3237
3238 2003-10-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3239
3240 * config/mips/irix6-libc-compat.c (inet_makeaddr): Prototype.
3241 * crtstuff.c (__do_global_ctors_1): Move prototype.
3242 * unwind-dw2.c (NO_SIZE_OF_ENCODED_VALUE): Define when
3243 appropriate.
3244 * unwind-sjlj.c (_Unwind_GetCFA, _Unwind_FindEnclosingFunction):
3245 Mark parameter with __attribute__((unused)).
3246
3247 2003-10-27 Zack Weinberg <zack@codesourcery.com>
3248
3249 * c-decl.c (pushdecl): Clarify comment.
3250
3251 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
3252
3253 * doc/install.texi: Update instructions for Ada cross builds
3254
3255 PR ada/5909:
3256 * doc/sourcebuild.texi: Document Ada test suite.
3257
3258 2003-10-27 Stephane Carrez <stcarrez@nerim.fr>
3259
3260 * config/m68hc11/m68hc11.c: Convert to ISO C90.
3261 * config/m68hc11/m68hc11-protos.h: Likewise.
3262
3263 2003-10-27 Jan Hubicka <jh@suse.cz>
3264 Eric Botcazou <ebotcazou@libertysurf.fr>
3265
3266 * toplev.c (enum dump_file_index, dump_file): Fix ordering of
3267 webizer pass dump.
3268
3269 2003-10-27 Jakub Jelinek <jakub@redhat.com>
3270 Jan Hubicka <jh@suse.cz>
3271
3272 * reload1.c (struct elim_table): Change offset, initial_offset and
3273 previous_offset fields to HOST_WIDE_INT.
3274 (offsets_at): Change from int to HOST_WIDE_INT.
3275 (reload): Adjust offsets_at initialization.
3276 (eliminate_regs_in_insn): Change type of offset to HOST_WIDE_INT.
3277 (verify_initial_elim_offsets): Change type of t to HOST_WIDE_INT.
3278 * config/i386/i386.c (ix86_compute_frame_layout): Change offset type
3279 to HOST_WIDE_INT. Don't save regs using mov for huge frame sizes
3280 if TARGET_64BIT.
3281 (pro_epilogue_adjust_stack): New function.
3282 (ix86_expand_prologue, ix86_expand_epilogue): Use it.
3283 * config/i386/i386.md (pro_epilogue_adjust_stack): Remove.
3284 (pro_epilogue_adjust_stack_1): Remove * in front of name.
3285 (pro_epilogue_adjust_stack_rex64): Handle -2147483648 properly.
3286 (pro_epilogue_adjust_stack_rex64_2): New insn.
3287
3288 * config/i386/i386.c (ix86_expand_epilogue): Fix comment typo.
3289
3290 * config/i386/i386.c (ix86_expand_call): Replace 40 with
3291 FIRST_REX_INT_REG + 3 /* R11 */.
3292
3293 2003-10-26 Richard Henderson <rth@redhat.com>
3294
3295 * config/alpha/alpha.md (attr cannot_copy): New.
3296 (call_osf_2_er, call_value_osf_2_er, ldgp_er_1, ldgp_er_2,
3297 prologue_ldgp_er_2, prologue_ldgp_1): Set it.
3298 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Test it.
3299
3300 2003-10-26 Daniel Berlin <dberlin@dberlin.org>
3301
3302 * ggc-zone.c: New file, zone allocating collector.
3303 * configure: Accept zone option for --with-gc
3304 * configure.in: Ditto.
3305 * ggc.h (ggc_pch_count_object): Pass bool indicating
3306 stringiness. Update all callers.
3307 (ggc_pch_alloc_object): Ditto.
3308 (ggc_pch_write_object): Ditto.
3309 (ggc_alloc_rtx): Use typed allocation, since all RTX's are of a single
3310 type.
3311 (ggc_alloc_rtvec): Ditto.
3312 (ggc_alloc_tree): Use zone allocation, since some things using this macro
3313 aren't a single typecode.
3314 * ggc-none.c (ggc_alloc_typed): New function.
3315 (ggc_alloc_zone): Ditto.
3316 * ggc-page.c: Ditto on both functions.
3317
3318 2003-10-26 Gunther Nikl <gni@gecko.de>
3319
3320 * config/m68k/m68k.c (m68k_compute_frame_layout): Ensure FPU related
3321 frame information is always valid.
3322 (m68k_output_function_prologue): Remove superfluous TARGET_68881
3323 test; fix formatting.
3324
3325 2003-10-26 Gunther Nikl <gni@gecko.de>
3326
3327 * config/m68k/m68k.c (m68k_compute_frame_layout): Swap reg_mask and
3328 reg_rev_mask computation.
3329 (m68k_output_function_prologue): Fix usage of current_frame (one typo
3330 and one missing); use reg_rev_mask not reg_mask.
3331 (m68k_output_function_epilogue): Fix usage of current_frame;
3332 use fpu_rev_mask not fpu_mask.
3333
3334 2003-10-26 Bernardo Innocenti <bernie@develer.com>
3335
3336 * config/m68k/m68k.c (m68k_output_function_prologue): Eliminate
3337 num_saved_regs, use current_frame.reg_no instead.
3338
3339 2003-10-26 Bernardo Innocenti <bernie@develer.com>
3340 Paul Dale <pauli@snapgear.com>
3341
3342 * doc/extend.texi (interrupt_handler): Add m68k to the
3343 list of processors implementing it.
3344 * doc/invoke.texi (-msep-data): Document new m68k option.
3345 (-mno-sep-data): Likewise.
3346 (-mid-shared-library): Likewise.
3347 (-mno-id-shared-library): Likewise.
3348 (-mshared-library-id): Likewise.
3349
3350 2003-10-26 Andreas Jaeger <aj@suse.de>
3351
3352 * unwind-dw2.c (_Unwind_GetGR): Avoid warning about unsigned
3353 comparison.
3354 (_Unwind_SetGR): Likewise.
3355
3356 2003-10-26 Ottavio Campana <ottavio@campana.vi.it>
3357
3358 PR target/12690
3359 * config/i386/mmintrin.h (_mm_set1_pi8): Fix comment.
3360
3361 2003-10-26 Gunther Nikl <gni@gecko.de>
3362
3363 * config/m68k/m68k.c (m68k_output_function_prologue): Move front
3364 comment from here to...
3365 (m68k_save_reg): ...here. Fix comment formatting.
3366 (m68k_output_function_prologue): Fix comment formatting.
3367 (m68k_output_function_epilogue): Likewise.
3368 (const_method): Likewise.
3369
3370 2003-10-26 Kazu Hirata <kazu@cs.umass.edu>
3371
3372 * toplev.c (default_get_pch_validity): Guard the use of
3373 target_options with #ifdef TARGET_OPTIONS.
3374 (default_pch_valid_p): Likewise.
3375
3376 2003-10-26 Andreas Jaeger <aj@suse.de>
3377 Zack Weinberg <zack@codesourcery.com>
3378 Andreas Tobler <toa@pop.agri.ch>
3379
3380 * dwarf2out.c (output_cfi): Use HOST_WIDE_INT_PRINT.
3381 (output_die): Likewise.
3382 (print_die): Likewise.
3383
3384 2003-10-26 Andreas Jaeger <aj@suse.de>
3385
3386 * tree.h (dwarf2out_def_cfa, dwarf2out_args_size,
3387 dwarf2out_reg_save, new_loc_descr): Update prototypes for recent
3388 dwarf2out.c change.
3389
3390 * toplev.c (default_pch_valid_p): Fix warning.
3391
3392 2003-10-25 Roger Sayle <roger@eyesopen.com>
3393
3394 * simplify-rtx.c (simplify_replace_rtx): Avoid allocating duplicate
3395 RTL nodes. If an operator's operands are unchanged, return the
3396 original argument unchanged.
3397
3398 2003-10-26 Graham Stott <graham.stott@btinternet.com>
3399
3400 Fix bootstrap failure.
3401 * expmed.c (store_bit_field): Don't compare bitsize against
3402 modes with zero bit-size.
3403
3404 (extract_bit_field): Likewise
3405
3406 2003-10-25 Jan Hubicka <jh@suse.cz>
3407
3408 * dwarf2out.c (dw_cfi_oprnd_struct): Offset is HOST_WIDE_INT.
3409 (cfa_loc): Likewise.
3410 (reg_save, stack_adjust_offset, queue_reg_save): Replace long by
3411 HOST_WIDE_INT.
3412 (args_size, old_args_size): change type to HOST_WIDE_INT.
3413 (dwarf2out_def_cfa, dwarf2out_args_size,
3414 dwarf2out_reg_save, new_loc_descr): offset is HOST_WIDE_INT.
3415 (dw_val_struct): integers, unsigneds and offsets are HOST_WIDE_INT.
3416 (add_AT_int, add_AT_unsigned, att_AT_offset, AT_int, AT_unsigned,
3417 AT_offset): Use HOST_WIDE_INT.
3418 (based_loc_descr): offset is HOST_WIDE_INT.
3419 (add_data_member): Likewise.
3420 (add_const_value_attribute): Simplify.
3421
3422 2003-10-25 Richard Henderson <rth@redhat.com>
3423
3424 * config/i386/i386.c (ix86_eax_live_at_start_p): New.
3425 (ix86_expand_prologue): Save and restore eax around stack probe
3426 if it's live.
3427
3428 2003-10-25 Jan Hubicka <jh@suse.cz>
3429
3430 * cppcharset.c (one_utf8_to_utf32): Initialize 's' to silence warning.
3431
3432 2003-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
3433
3434 PR target/12712
3435 * reg-stack.c (convert_regs_1): Create an arbitrary input stack
3436 if the block has no predecessors.
3437 (convert_regs_2): Document the problem with successors whose
3438 only predecessor is the block to be processed.
3439 (convert_regs): Don't create the arbitrary input stack here.
3440
3441 2003-10-24 Zack Weinberg <zack@codesourcery.com>
3442
3443 * genmodes.c (struct mode_data): Add contained and next_cont
3444 fields.
3445 (complete_mode): Maintain linked list of modes that have a
3446 given component.
3447 (emit_mode_unit_size): Delete.
3448 (emit_mode_nunits): New.
3449 (emit_insn_modes_c): Update to match.
3450 (emit_mode_adjustments): Propagate size and alignment
3451 adjustments from component modes to their containers.
3452 * machmode.h (mode_unit_size): Delete.
3453 (mode_nunits): New.
3454 (GET_MODE_NUNITS): Just return the value in the table.
3455 (GET_MODE_UNIT_SIZE): Compute using GET_MODE_INNER and
3456 GET_MODE_SIZE.
3457 * expmed.c (store_bit_field, extract_bit_field): Can use a
3458 plain move instruction if bitsize >= GET_MODE_BITSIZE of
3459 destination/source mode, respectively.
3460 * varasm.c (assemble_real): Write out the full size of the
3461 constant, not just its bitsize.
3462 (output_constant): Honor TYPE_MODE of TREE_REAL_CSTs.
3463
3464 * config/ia64/ia64-modes.def: Define XFmode as well as TFmode.
3465 Use ADJUST_BYTESIZE and ADJUST_ALIGNMENT to set size and
3466 alignment of XF and TF modes in compliance with ia64 ABIs.
3467 Can now hardwire the format of both modes.
3468 * config/ia64/ia64.c: Change TFmode to XFmode wherever appropriate.
3469 (general_tfmode_operand, destination_tfmode_operand)
3470 (tfreg_or_fp01_operand, spill_tfmode_operand): Rename to
3471 general_xfmode_operand, destination_xfmode_operand,
3472 xfreg_or_fp01_operand, spill_xfmode_operand respectively.
3473 (ia64_init_builtins): Make TYPE_PRECISION of fpreg_type
3474 and float80_type be 96 so they get XFmode. Use !TARGET_HPUX,
3475 not INTEL_EXTENDED_IEEE_FORMAT, to decide how to define
3476 __float128.
3477 * config/ia64/ia64.h: Default TARGET_HPUX to 0.
3478 Change TFmode to XFmode wherever appropriate. Remove all
3479 references to INTEL_EXTENDED_IEEE_FORMAT.
3480 (LONG_DOUBLE_TYPE_SIZE): Varies with TARGET_HPUX.
3481 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define (always 96).
3482 (PREDICATE_CODES): Update to match function renames.
3483 * config/ia64/ia64.md: Change TF to XF throughout; rename all
3484 patterns to match. Remove all references to
3485 INTEL_EXTENDED_IEEE_FORMAT. Update predicate calls to match
3486 function renames.
3487 * config/ia64/ia64-protos.c: Update all prototypes to match
3488 renamed functions.
3489 * config/ia64/hpux.h: Redefine TARGET_HPUX to 1.
3490 Remove all references to INTEL_EXTENDED_IEEE_FORMAT.
3491 * config/ia64/lib1funcs.asm: Add __divxf3 as new name for
3492 __divtf3; keep old name for backward compatibility.
3493 (L__compat): New section providing forwarding stubs for
3494 __fixtfti, __fixunstfti, __floattitf.
3495 * config/ia64/t-ia64: Add __compat to LIB1ASMFUNCS.
3496
3497 2003-10-24 Geoffrey Keating <geoffk@apple.com>
3498
3499 PR 10757
3500 * c-pch.c: Include target.h. Improve comments.
3501 (struct c_pch_validity): Add target_data_length.
3502 (pch_init): Add target's validity data.
3503 (c_common_valid_pch): Check target's validity data.
3504 * target-def.h (TARGET_GET_PCH_VALIDITY): New.
3505 (TARGET_PCH_VALID_P): New.
3506 (TARGET_INITIALIZER): Add new fields.
3507 * target.h: Include tm.h.
3508 (struct gcc_target): Add get_pch_validity, pch_valid_p.
3509 * toplev.h (default_get_pch_validity): New prototype.
3510 (default_pch_valid_p): New prototype.
3511 * toplev.c (default_get_pch_validity): New routine.
3512 (default_pch_valid_p): New routine.
3513 * Makefile.in (TARGET_H): Add TM_H. Replace all users of
3514 target.h with $(TARGET_H).
3515 (c-pch.o): Add TARGET_H.
3516 * doc/tm.texi (PCH Target): New node.
3517 (TARGET_GET_PCH_VALIDITY): Document.
3518 (TARGET_PCH_VALID_P): Document.
3519
3520 2003-10-24 Kelley Cook <kcook@gcc.gnu.org>
3521
3522 * Makefile.in: Define a vpath for %.texi. Remove explicit $(docdir)
3523 and $(docdir)/include from any *.texi dependencies.
3524 ($(docobjdir)/%.dvi): Depend on stmp-docobjdir.
3525 ($(docobjdir)/%.1): Depend on .pod instead of .texi.
3526 ($(docobjdir)/%.7): Likewise.
3527 (%.pod): New implicit rule.
3528 (cpp.pod): New dependency only rule.
3529 (gcc.pod): New intermediate rule with dependencies and commands.
3530 (gfdl.pod): Likewise.
3531 (fsf-funding.pod): Likewise.
3532
3533 2003-10-24 Nathanael Nerode <neroden@gcc.gnu.org>
3534
3535 * fixinc/mkfixinc.sh: Remove special cases for svr4 and ptx, and
3536 related code.
3537 * fixinc/fixinc.ptx: Remove.
3538 * fixinc/fixinc.svr4: Remove.
3539
3540 2003-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3541
3542 * config/s390/s390.c (load_multiple_operation): Allow both SImode
3543 and DImode if word_mode is DImode.
3544 (store_multiple_operation): Likewise.
3545 * config/s390/s390.md ("load_multiple", "store_multiple"): Likewise.
3546 ("*load_multiple_di"): Allow only if word_mode == DImode.
3547 ("movqi"): Use LLGC whenever TARGET_ZARCH.
3548 ("fix_truncdfsi2"): Fix incorrect temporary size.
3549 ("fix_truncsfsi2"): Likewise.
3550 ("*bras_r", "*brasl_r", "*basr_r"): Remove predicate and constraint
3551 string for function return value operand.
3552 ("*bras_tls", "*brasl_tls", "*basr_tls"): Likewise.
3553
3554 2003-10-24 Joseph S. Myers <jsm@polyomino.org.uk>
3555
3556 * c-parse.in (array_declarator): Use expr_no_commas.
3557 Fixes PR c/11943.
3558
3559 2003-10-24 Richard Sandiford <rsandifo@redhat.com>
3560
3561 * config/mips/linux.h: Wrap MD_FALLBACK_FRAME_STATE_FOR and
3562 associated includes in #ifndef inhibit_libc.
3563
3564 2003-10-24 Roger Sayle <roger@eyesopen.com>
3565
3566 * doc/libgcc.texi: Document some more of the libgcc API.
3567
3568 2003-10-24 Richard Earnshaw <rearnsha@arm.com>
3569
3570 * arm.c (arm_rtx_costs_1, case TARGET_THUMB): Adjust costs for
3571 comparing a constant with small negative numbers and add costing
3572 for constants in conjunction with AND.
3573 (note_invalid_constants): Tidy previous change.
3574 (thumb_cmp_operand): Tidy.
3575 (thumb_cmpneg_operand): New function.
3576 * arm.h (CONDITIONAL_REGISTER_USAGE): Don't use HI regs if optimizing
3577 for size.
3578 (FIRST_LO_REGNUM, FIRST_HI_REGNUM, LAST_HI_REGNUM): Define.
3579 (PREDICATE_CODES): Add thumb_cmpneg_operand.
3580 * arm.md (cbranchsi4): Convert to define_expand. Handle comparison
3581 with a negative constant.
3582 (cbranchsi4_insn): Matcher for cbranchsi4.
3583 (cbranchsi4_scratch): Similar, but a scratch is available for
3584 handling negative constants.
3585 (movsi_cbranchsi4): New pattern.
3586 (tstsi3_cbranch): Renamed from andsi3_cbranch_scratch, remove scratch
3587 and use the TST instruction.
3588 (andsi3_cbranch, orrsi3_cbranch, xorsi3_cbranch, cbranchne_decr1)
3589 (addsi3_cbranch, subsi3_cbranch): Ensure that register preferencing
3590 cannot see high regs or memory alternatives.
3591 (bicsi3_cbranch_scratch, bicsi3_cbranch): New patterns.
3592
3593 2003-10-24 Richard Earnshaw <rearnsha@arm.com>
3594
3595 * arm.c (note_invalid_constants): Try to extract the constant
3596 pool value using avoid_constant_pool_reference; only use
3597 get_pool_constant if that returns the original reference.
3598
3599 2003-10-24 Jan Hubicka <jh@suse.cz>
3600
3601 PR c++/12624
3602 * varasm.c (notice_global_symbol): Disqualify global registers.
3603
3604 2003-10-23 Roger Sayle <roger@eyesopen.com>
3605
3606 PR middle-end/11414
3607 * loop.c (load_mems): Use redirect_jump to forward jumps from
3608 the original loop end label to the new "loop sink" block's label.
3609
3610 2003-10-23 Roger Sayle <roger@eyesopen.com>
3611
3612 PR middle-end/12705
3613 * optabs.c (expand_binop): When expanding complex operations
3614 inline, always calculate result into a new temporary register.
3615 Minor code clean-ups.
3616
3617 2003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3618
3619 * objc/lang-specs.h: Handle -print-objc-runtime-info.
3620 * doc/invoke.texi (Objective-C Dialect Options): Document it.
3621
3622 2003-10-24 Danny Smith <dannysmith@users.sourceforge.net>
3623
3624 * config/i386/cygwin.asm: Add copyright notice. Add comment
3625 on why this code is needed.
3626
3627 2003-10-23 Kazu Hirata <kazu@cs.umass.edu>
3628
3629 * config/h8300/clzhi2.c: Fix warnings.
3630 * config/h8300/ctzhi2.c: Likewise.
3631 * config/h8300/fixunssfsi.c: Likewise.
3632 * config/h8300/parityhi2.c: Likewise.
3633 * config/h8300/popcounthi2.c: Likewise.
3634
3635 2003-10-23 James E Wilson <wilson@specifixinc.com>
3636
3637 * gcc.c (option_map): Delete --target and --use-version.
3638
3639 2003-10-23 Fariborz Jahanian <fjahanian@apple.com>
3640 David Edelsohn <edelsohn@gnu.org>
3641
3642 * config/rs6000/rs6000.h (UNITS_PER_WORD): Use TARGET_32BIT, not
3643 TARGET_POWREPC64.
3644 (UNITS_PER_GPR_WORD): Define.
3645 (HARD_REGNO_NREGS): Use UNITS_PER_GPR_WORD.
3646 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
3647 (HARD_REGNO_MODE_OK): Use UNITS_PER_GPR_WORD.
3648 (CLASS_MAX_NREGS): Use UNITS_PER_GPR_WORD.
3649 * config/rs6000/rs6000.c (function_arg): Generate PARALLEL for
3650 DFmode and DImode in 32-bit ABI / 64-bit computation mode.
3651 (rs6000_emit_prologue): Select reg_mode and reg_size using
3652 TARGET_32BIT, not TARGET_POWERPC64.
3653 (rs6000_function_value): Generate PARALLEL for DImode in 32-bit
3654 ABI / 64-bit computation mode
3655
3656 2003-10-22 Andrew Haley <aph@redhat.com>
3657
3658 * toplev.c (output_file_directive): Allow for null input_name.
3659
3660 2003-10-22 Waldek Hebisch <hebisch@math.uni.wroc.pl>
3661
3662 * config/i386/i386.c (classify_argument): Handle SET_TYPE.
3663
3664 2003-10-22 Chris Demetriou <cgd@broadcom.com>
3665
3666 * configure.in: In --enable-generated-files-in-srcdir option
3667 handling, fix default case handling.
3668 * configure: Regenerate.
3669
3670 2003-10-22 Phil Edwards <phil@codesourcery.com>
3671
3672 * config.gcc: Update *-*-vxworks* generic hook and comments.
3673 (arm-wrs-vxworks, i[4567]86-wrs-vxworks, mips-wrs-vxworks,
3674 mips-wrs-windiss, sh-wrs-vxworks): New stanzas.
3675 * genmultilib: Allow the MULTILIB_OSDIRNAMES to be mapped directly.
3676 * config/svr4.h (SWITCH_TAKES_ARG): Undefine it before redefining it.
3677 * config/windiss.h: New file.
3678 * config/arm/t-vxworks: New file.
3679 * config/arm/vxworks.h: New file.
3680 * config/i386/t-vxworks: New file.
3681 * config/i386/vxworks.h: New file.
3682 * config/mips/t-vxworks: New file.
3683 * config/mips/vxworks.h: New file.
3684 * config/mips/windiss.h: New file.
3685 * config/sh/t-vxworks: New file.
3686 * config/sh/vxworks.h: New file.
3687
3688 2003-10-22 Kazu Hirata <kazu@cs.umass.edu>
3689
3690 * config/h8300/h8300.c (h8300_output_function_epilogue): Remove.
3691 (h8300_saveall_function_p): New.
3692 (h8300_insert_attributes): Insert the saveall attribute if
3693 #pragma saveall is specified.
3694 (h8300_attribute_table): Add saveall.
3695 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
3696 * doc/extend.texi: Mention the saveall attribute.
3697
3698 2003-10-22 Joseph S. Myers <jsm@polyomino.org.uk>
3699
3700 * c-typeck.c (pedantic_lvalue_warning): Unconditionally warn of
3701 deprecation of casts as lvalues.
3702 * fixinc/inclhack.def (obstack_lvalue_cast): New fix.
3703 * fixinc/fixincl.x: Regenerate.
3704 * fixinc/tests/base/obstack.h: New test.
3705
3706 2003-10-22 Andreas Schwab <schwab@suse.de>
3707
3708 PR target/12676
3709 * config/m68k/m68k.c (output_addsi3): Fix range check to work on
3710 LP64 platforms.
3711
3712 2003-10-22 Jan Hubicka <jh@suse.cz>
3713
3714 * dwarf2out.c (dwarf2out_abstract_function): Use DW_AT to check
3715 presence of DW_AT_inline.
3716 (gen_subprogram_die): Likewise; do not abort instead of emitting
3717 DW_AT_not_inline.
3718
3719 2003-10-22 Jan Hubicka <jh@suse.cz>
3720
3721 * cgraph.c (cgraph_function_possibly_inlined_p): Be conservative when
3722 global info is not ready.
3723
3724 2003-10-22 Kazu Hirata <kazu@cs.umass.edu>
3725
3726 * doc/extend.texi: Mention H8S wherever H8/300H is mentioned.
3727
3728 2003-10-22 Ulrich Weigand <uweigand@de.ibm.com>
3729
3730 * config/s390/s390.md ("movstr_short_64", "movstr_short_31"): Merge ...
3731 ("*movstr_short"): ... into this insn pattern.
3732 ("movstr_short"): New expander.
3733 ("*movstr_long_64"): Rename from "movstr_long_64", simplify.
3734 ("*movstr_long_31"): Rename from "movstr_long_31", simplify.
3735 ("movstr_long"): New expander.
3736 ("clrstr_short_64", "clrstr_short_31"): Merge ...
3737 ("*clrstr_short"): ... into this insn pattern.
3738 ("clrstr_short"): New expander.
3739 ("*clrstr_long_64"): Rename from "clrstr_long_64", simplify.
3740 ("*clrstr_long_31"): Rename from "clrstr_long_31", simplify.
3741 ("clrstr_long"): New expander.
3742 ("cmpmem_short_64", "cmpmem_short_31"): Merge ...
3743 ("*cmpmem_short"): ... into this insn pattern.
3744 ("cmpmem_short"): New expander.
3745 ("*cmpmem_long_64"): Rename from "cmpmem_long_64".
3746 ("*cmpmem_long_31"): Rename from "cmpmem_long_31".
3747 ("cmpmem_long"): New expander.
3748 * config/s390/s390.c (s390_expand_movstr): Use new expanders.
3749 (s390_expand_clrstr): Likewise.
3750 (s390_expand_cmpmem): Likewise.
3751
3752 2003-10-22 Mark Mitchell <mark@codesourcery.com>
3753
3754 * c-pch.c (struct c_pch_validity): Add pch_init field.
3755 (pch_init): Set it.
3756 (c_common_valid_pch): Check it.
3757
3758 2003-10-22 David Taylor <dtaylor@emc.com>
3759
3760 PR debug/12500
3761 * dbxout.c (dbxout_typedefs): Use COMPLETE_OR_VOID_TYPE_P.
3762
3763 2003-10-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3764
3765 * config/alpha/alpha.c (function_value [ENABLE_CHECKING]): Don't call
3766 alpha_return_in_memory if no VALTYPE specified.
3767
3768 2003-10-22 Jan Hubicka <jh@suse.cz>
3769
3770 PR debug/12389
3771 * Makefile.in (dwarf2out.o): Depend on cgraph.h.
3772 * cgraph.c (cgraph_function_possibly_inlined_p): New function.
3773 * cgraph.h (cgraph_function_possibly_inlined_p): Declare.
3774 (cgraph_global_info): Add flag inlined
3775 * dwarf2out.c (gen_subprogram_die, gen_decl_die): Use
3776 cgraph_function_possibly_inded_p
3777 * cgraphunit.c (mark_inline): Set inlined flag.
3778 * toplev.c (rest_of_decl_compilation): Call outlining_inline_function
3779 only for possibly inlined functions.
3780 * c-decl.c (duplicate_decls): Never output abstract DIE representing old
3781 body of function.
3782
3783 2003-10-22 Andrew Haley <aph@redhat.com>
3784
3785 * varasm.c (output_constructor): Make constructor annotation
3786 conditional on ASM_COMMENT_START.
3787
3788 2003-10-21 Jason Merrill <jason@redhat.com>
3789
3790 * tree.c (get_unwidened): Check TREE_UNSIGNED on the field's type.
3791 (get_narrower): Likewise.
3792
3793 * stor-layout.c (layout_decl): Do packed field alignment for
3794 bit-fields, too.
3795
3796 2003-10-21 Eric Christopher <echristo@redhat.com>
3797
3798 * expr.c (convert_move): Use FLOAT_EXTEND for extensions.
3799
3800 2003-10-21 Geoffrey Keating <geoffk@apple.com>
3801
3802 * c-pch.c: Add comments in various places.
3803 (struct c_pch_validity): Add the lengths of various strings.
3804 (host_machine): New static.
3805 (target_machine): New static.
3806 (get_ident): Bump version number.
3807 (pch_init): Write out version, host, target validity data.
3808 (c_common_valid_pch): Check version, host, target.
3809 * Makefile.in (c-pch.o): Add version.h; define HOST_MACHINE and
3810 TARGET_MACHINE.
3811
3812 2003-10-21 Jason Merrill <jason@redhat.com>
3813
3814 * tree.h (IS_EXPR_CODE_CLASS): Use strchr.
3815 (EXPR_P): New macro.
3816
3817 2003-10-21 Zack Weinberg <zack@codesourcery.com>
3818
3819 * config/ia64/ia64.md (cmpxchg_acq_si): Mark operand 3 as DImode.
3820 * config/ia64/ia64.c (ia64_expand_fetch_and_op,
3821 ia64_expand_op_and_fetch): Make sure the REG for ar.ccv is
3822 DImode. Use convert_move to load ar.ccv.
3823 (ia64_expand_compare_and_swap): Likewise.
3824 If expand_expr doesn't put 'old' and 'new' in the proper
3825 modes, run them through convert_to_mode.
3826
3827 2003-10-21 Eric Christopher <echristo@redhat.com>
3828
3829 * config/frv/frv.c (frv_adjust_field_align): Check DECL_ARTIFICIAL
3830 for too large bitfields.
3831
3832 2003-10-21 Mark Mitchell <mark@codesourcery.com>
3833
3834 * Makefile.in ($(docobjdir)/%.info): Honor BUILD_INFO.
3835
3836 2003-10-21 Andrew Haley <aph@redhat.com>
3837
3838 * varasm.c (output_constructor): Annotate constructor.
3839
3840 2003-10-21 Mark Mitchell <mark@codesourcery.com>
3841
3842 * Makefile.in ($(DESTDIR)$(infodir)/%.info): Conditionalize chmod
3843 on existence of destination file.
3844
3845 2003-10-21 Jan Hubicka <jh@suse.cz>
3846
3847 * haifa-sched.c (choose_ready): Initialize index.
3848
3849 2003-10-21 Jason Merrill <jason@redhat.com>
3850
3851 * tree.c (build1): Fix off-by-one error.
3852
3853 2003-10-21 Robert Millan <robertmh@gnu.org>
3854
3855 * config/i386/kfreebsdgnu.h: New. i386-*-kfreebsd-gnu definitions.
3856 * config/kfreebsdgnu.h: New. *-*-kfreebsd-gnu definitions.
3857 * config/t-kfreebsd-gnu: New. *-*-kfreebsd-gnu tmake_file.
3858 * config.gcc: Add *-*-kfreebsd*-gnu and i[34567]86-*-kfreebsd*-gnu.
3859
3860 2003-10-21 Eric Botcazou <ebotcazou@libertysurf.fr>
3861
3862 * web.c: Fix various comments.
3863
3864 2003-10-20 Nicolas Pitre <nico@cam.org>
3865
3866 * config/arm/arm.c (arm_override_options): Set arm_constant_limit
3867 to 2 instead of 1 when optimize_size is true. Gather code based on
3868 optimize_size together. Add comment about XScale load latency.
3869
3870 2003-10-21 Gunther Nikl <gni@gecko.de>
3871
3872 * config/m68k/m68k.c (m68k_output_function_prologue): Remove
3873 obsolete comments.
3874
3875 2003-10-20 Kelley Cook <kcook@gcc.gnu.org>
3876
3877 * Makefile.in: Get parsedir and docobjdir from configure.
3878 * configure.in: Recogonize --enable-generated-files-in-srcdir.
3879 Pass along parsedir and docobjdir.
3880 * configure: Regenerate.
3881 * doc/install.texi: Document --enable-generated-files-in-srcdir.
3882
3883 2003-10-20 Kelley Cook <kcook@gcc.gnu.org>
3884
3885 * Makefile.in: Define $(docdir) before the Make-lang.in fragments are
3886 included.
3887
3888 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
3889
3890 * c-common.c (expand_tree_builtin): Ensure creal and cimag
3891 functions do not return lvalues.
3892
3893 2003-10-20 Jason Merrill <jason@redhat.com>
3894
3895 PR c/12553
3896 * tree.c (build1) <ADDR_EXPR>: Set TREE_SIDE_EFFECTS
3897 appropriately.
3898
3899 PR c/11446
3900 * stor-layout.c (layout_decl): Fix alignment handling.
3901
3902 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
3903
3904 * doc/extend.texi: Deprecate casts as lvalues.
3905
3906 2003-10-20 Jan Hubicka <jh@suse.cz>
3907
3908 * toplev.c (rest_of_compilation): Fix webizer pass ordering.
3909
3910 * cgraphunit.c (decide_is_function_needed): Fix test dealing
3911 with functions implicitly made inline.
3912
3913 * cgraphunit.c (cgraph_decide_inlining_incrementally): New function.
3914 (cgraph_finalize_function): Use it.
3915 (cgraph_mark_inline): Allow incrmental decisions
3916 * invoke.texi (max-inline-slope, min-inline-insns): Kill.
3917 * params.def (PARAM_MAX_INLINE_SLOPE, PARAM_MIN_INLINE_INSNS): Kill.
3918 * tree-inline.c (limits_allow_inlining): Kill.
3919 (expand_call_inline): Always use unit-at-a-time path.
3920
3921 2003-10-20 Zack Weinberg <zack@codesourcery.com>
3922
3923 * fixinc/inclhack.def (hpux11_snprintf): New edit.
3924 * fixinc/fixincl.x: Regenerate.
3925 * fixinc/tests/base/stdio.h: Add test for hpux11_snprintf.
3926
3927 2003-10-20 Mark Mitchell <mark@codesourcery.com>
3928
3929 * Makefile.in (install-info): Simplify.
3930 ($(DESTDIR)$(infodir)/%.info): New rule.
3931 * configure.in (target_list): Remove install-info.
3932 * doc/.cvsignore (gcc.info*): Remove.
3933 (gccint.info*): Likewise.
3934 (gccinstall.info*): Likewise.
3935 (cpp.info*): Likewise.
3936 (cppinternals.info*): Likewise.
3937 (*.info*): Add it.
3938 * doc/sourcebuild.texi: Update description of install-info.
3939 * objc/Make-lang.in (objc.install-info): Remove.
3940
3941 2003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3942
3943 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Define _ABIO32.
3944 Use it in _MIPS_SIM definition.
3945 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Likewise.
3946
3947 2003-10-20 Zack Weinberg <zack@codesourcery.com>
3948
3949 * config/i386/i386.c (print_reg): Abort if REGNO (x) is a
3950 virtual register, but only if file == asm_out_file.
3951 * config/i386/i386.h (HI_REGISTER_NAMES): Use "argp", not "",
3952 for ARG_POINTER_REGNUM.
3953
3954 2003-10-20 Zack Weinberg <zack@codesourcery.com>
3955
3956 * c-common.c (registered_builtin_types): New static.
3957 (c_common_type_for_mode): Consult registered_builtin_types.
3958 (c_register_builtin_type): Add type to registered_builtin_types.
3959 * optabs.c (init_floating_libfuncs): Initialize libfuncs for
3960 all MODE_FLOAT modes, not just the ones corresponding to
3961 float_type_node, double_type_node, and long_double_type_node.
3962
3963 2003-10-20 Richard Henderson <rth@redhat.com>
3964
3965 * config/alpha/alpha.h (PREDICATE_CODES): Add normal_memory_operand.
3966 * config/alpha/alpha-protos.h: Remove PREDICATE_CODES prototypes.
3967
3968 2003-10-20 Dorit Naishlos <dorit@il.ibm.com>
3969
3970 * config/rs6000/rs6000.h: (rs6000_sched_insert_nops):
3971 support new flag -minsert-sched-nops.
3972 (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Define.
3973 * config/rs6000/rs6000.c: (rs6000_sched_insert_nops):
3974 support new flag -minsert-sched-nops.
3975 (is_cracked_insn, is_microcoded_insn): New functions.
3976 (rs6000_sched_finish): New function.
3977 (rs6000_issue_rate): Return 5 for power4.
3978 (get_next_active_insn, insn_terminates_group_p): New
3979 functions.
3980 (is_costly_group, force_new_group): New functions.
3981 (redefine_groups, pad_groups): New functions.
3982 (rs6000_variable_issue): Use new functions.
3983 * doc/invoke.texi (-minsert-sched-nops): Document new
3984 option.
3985
3986 2003-10-20 David S. Miller <davem@redhat.com>
3987
3988 * config/sparc/sparc.md (type attribute): Add new insn types
3989 fpa, fpm_pack, fgm_mul, fgm_pdist, and fgm_cmp for VIS.
3990 (patterns emitting VIS insns): Use them.
3991 * config/sparc/ultra1_2.md: Add VIS scheduling rules.
3992 * config/sparc/ultra3.md: Likewise.
3993
3994 2003-10-20 Falk Hueffner <falk@debian.org>
3995
3996 PR target/12654
3997 * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't do
3998 comparison against constant by adjusting the argument except for
3999 EQ and NE.
4000
4001 2003-10-19 Mark Mitchell <mark@codesourcery.com>
4002
4003 * config.gcc: Add support for arm926ejs, arm1026ejs, arm1136js,
4004 arm1136jfs, and armv6j.
4005 * config/arm/arm.c (FL_ARCH6J): New macro.
4006 (FL_VFPV2): Likewise.
4007 (all_cores): Add entries for arm926ejs, arm1026ejs, arm1136js,
4008 and arm1136jfs.
4009 (all_architectures): Add entry for armv6j.
4010 (arm_override_options): Add entries for arm926ejs, arm1026ejs,
4011 arm1136js, and arm1136jfs.
4012 * config/arm/arm.h (TARGET_CPU_arm926ej_s): New macro.
4013 (TARGET_CPU_arm1026ej_s): Likewise.
4014 (TARGET_CPU_arm1136j_s): Likewise.
4015 (TARGET_CPU_arm1136jf_s): Likewise.
4016 * doc/invoke.texi: Document new ARM cores and architecture
4017 variants.
4018
4019 2003-10-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4020
4021 * Makefile.in (toplev.o): Add value-prof.h dependency.
4022 (value-prof.o): Add REGS_H dependency.
4023 * common.opt (fprofile-values, fvpt): New.
4024 * flags.h (flag_value_profile_transformations): Declare.
4025 * opts.c (common_handle_option): Handle -fprofile_values and
4026 -fvpt.
4027 * profile.c (branch_prob): Don't remove death notes here.
4028 * timevar.def (TV_VPT): New.
4029 * value-prof.c: Include regs.h.
4030 (insn_divmod_values_to_profile, gen_divmod_fixed_value, gen_mod_pow2,
4031 gen_mod_subtract, divmod_fixed_value_transform,mod_pow2_value_transform,
4032 mod_subtract_transform, value_profile_transformations): New.
4033 (insn_values_to_profile): Call insn_divmod_values_to_profile.
4034 (find_values_to_profile): Add dumps.
4035 * value-prof.h (value_profile_transformations): Declare.
4036 * toplev.c: Include value-prof.h.
4037 (rest_of_handle_value_profile_transformations): New.
4038 (enum dump_file_index): Add DFI_vpt.
4039 (dump_file): Add vpt dump.
4040 (flag_value_profile_transformations): New.
4041 (lang_independent_options): Add flag_profile_values and
4042 flag_value_profile_transformations.
4043 (rest_of_compilation): Call
4044 rest_of_handle_value_profile_transformations.
4045 (process_options): Let -fvpt imply -fprofile-values.
4046 * doc/invoke.texi (-fvpt): Document.
4047
4048 2003-10-19 Jan Hubicka <jh@suse.cz>
4049
4050 * i386.c (print_reg): Do not abort on certain registers.
4051
4052 PR optimization/12612
4053 * reg-stack.c (subst_stack_regs_pat): Use st(1) for clobbers.
4054 * i386.md (fpatan, fyl2x, fscale patterns and expanders): Use
4055 match_scratch; avoid bogus paralles.
4056
4057 PR target/12674
4058 * i386.c (ix86_function_regparm): Disable implicit register passing
4059 conventions when profiling.
4060
4061 2003-10-19 Eric Botcazou <ebotcazou@libertysurf.fr>
4062 Richard Henderson <rth@redhat.com>
4063
4064 PR optimization/8178
4065 * config/i386/i386.md (*movsi_zero): Delete.
4066 (*ffs_no_cmove): Use ix86_expand_clear to zero the third operand.
4067
4068 2003-10-19 Richard Henderson <rth@redhat.com>
4069
4070 * config/alpha/alpha.c (fix_operator): New.
4071 (divmod_operator): Tidy.
4072 (alpha_emit_xfloating_cvt): Handle UNSIGNED_FIX.
4073 * config/alpha/alpha.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
4074 (PREDICATE_CODES): Update.
4075 * config/alpha/alpha.md (fix_truncdfsi_ieee): Use match_operator.
4076 (fix_truncdfsi_internal, fix_truncdfdi_ieee): Likewise.
4077 (fix_truncsfsi_ieee, fix_truncsfsi_internal): Likewise.
4078 (fix_truncsfdi_ieee): Likewise.
4079 (fix_truncdfdi2, fix_truncsfdi2): Turn into define_expand.
4080 (fixuns_truncdfdi2, fixuns_truncsfdi2, fixuns_trunctfdi2): New.
4081 * config/alpha/alpha-protos.h: Update.
4082
4083 2003-10-19 Richard Sandiford <rsandifo@redhat.com>
4084
4085 * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Simplify.
4086 * config/mips/mips.c (mips_load_got): Assume Pmode == ptr_mode.
4087 * config/mips/mips.md (extendsidi2, *extendsidi2): Merge. Don't accept
4088 constant operands.
4089
4090 2003-10-18 Kazu Hirata <kazu@cs.umass.edu>
4091
4092 * doc/extend.texi: Fix typos.
4093 * doc/invoke.texi: Likewise.
4094
4095 2003-10-18 Nicolas Pitre <nico@cam.org>
4096
4097 * config/arm/arm.c (arm_override_options): Use arm_tune_xscale for
4098 XScale optimizations not arm_arch_xscale.
4099 * config/arm/arm.h (CONSTANT_ALIGNMENT_FACTOR, MOVE_RATIO): Likewise.
4100
4101 2003-10-18 Ulrich Weigand <uweigand@de.ibm.com>
4102
4103 * config/s390/s390-protos.h (shift_count_operand): Add prototype.
4104 * config/s390/s390.c (shift_count_operand): New function.
4105 (s390_extra_constraint): Use it to implement 'Y' constraint.
4106 (print_shift_count_operand): New function.
4107 (print_operand): Use it to implement '%Y'.
4108 * config/s390/s390.h (EXTRA_ADDRESS_CONSTRAINT): Add 'Y' constraint.
4109 (PREDICATE_CODES): Add shift_count_operand.
4110 * config/s390/s390.md ("rotldi3"): Merge alternatives,
4111 using "shift_count_operand" predicate and "Y" constraint,
4112 and "%Y" to output the combined shift count.
4113 ("rotlsi3"): Likewise.
4114 ("ashldi3", "*ashldi3_31", "*ashldi3_64"): Likewise.
4115 ("ashrdi3", "*ashrdi3_31", "*ashrdi3_64", "*ashrdi3_cc_31",
4116 "*ashrdi3_cc_64", "*ashrdi3_cconly_31", "*ashrdi3_cconly_64"): Likewise.
4117 ("ashlsi3", "ashrsi3", "*ashrsi3_cc", "*ashrsi3_cconly"): Likewise.
4118 ("lshrdi3", "*lshrdi3_31", "*lshrdi3_64"): Likewise.
4119 ("lshrsi3"): Likewise.
4120
4121 2003-10-18 Gunther Nikl <gni@gecko.de>
4122
4123 * config/m68k/m68k.c (m68k_output_function_epilogue): Add missing
4124 argument to asm_fprintf statement.
4125
4126 2003-10-18 Fariborz Jahanian <fjahanian@apple.com>
4127
4128 * rs6000.md: Separate TARGET_POWERPC64 patterns for TARGET_64BIT or TARGET_32BIT.
4129 (ashrdisi3_noppc64) Generate more efficient code for 32-bit right-shift of
4130 a "long long" argument.
4131
4132 2003-10-18 Alexandre Oliva <aoliva@redhat.com>
4133
4134 * final.c (final_scan_insn): Run FINAL_PRESCAN_INSNS on asm insns
4135 as well.
4136
4137 2003-10-18 Richard Sandiford <rsandifo@redhat.com>
4138
4139 * rtl.h (rtl_size): Declare.
4140 (rtunion): Remove rtwint.
4141 (rtx_def): Replace 'fld' with a union of an rtunion or a HOST_WIDE_INT.
4142 (RTX_HDR_SIZE, RTX_SIZE): New macros.
4143 (RTL_CHECK1): Adjust for new rtx_def layout.
4144 (RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2): Likewise.
4145 (XWINT, XCWINT): Likewise. Access the rtx structure directly.
4146 (X0WINT): Remove.
4147 (X0ANY): New macro.
4148 * rtl.def: Adjust comments for new rtx_def layout.
4149 * ggc.h (ggc_alloc_rtx): Take the rtx code as argument, not the
4150 number of slots.
4151 * rtl.c (rtx_size): New array.
4152 (rtx_alloc): Adjust call to ggc_alloc_rtx. Use RTX_HDR_SIZE.
4153 (copy_rtx): Use RTX_HDR_SIZE. Adjust for new rtx_def layout.
4154 (shallow_copy_rtx): Adjust call to ggc_alloc_rtx. Use RTX_SIZE.
4155 * integrate.c (copy_rtx_and_substitute): Use X0ANY to copy '0' fields.
4156 * emit-rtl.c (copy_most_rtx): Likewise.
4157 (copy_rtx_if_shared): Use RTX_SIZE.
4158 (copy_insn_1): Use RTX_HDR_SIZE. Adjust for new rtx_def layout.
4159 * gengenrtl.c (gendef): Adjust ggc_alloc_rtx call. Use RTX_HDR_SIZE.
4160 * gengtype.c (write_rtx_next): Use RTX_HDR_SIZE.
4161 (adjust_field_rtx_def): Expect "rtx_def" to be a union rather than
4162 an array. Adjust output for new rtx_def layout.
4163 * ggc-page.c (RTL_SIZE): Use RTX_HDR_SIZE.
4164 * reload1.c (eliminate_regs): Use RTX_SIZE.
4165 * rtlanal.c (loc_mentioned_in_p): Adjust for new rtx_def layout.
4166 * gdbinit.in (pi): Likewise.
4167
4168 2003-10-18 Jan Hubicka <jh@suse.cz>
4169
4170 * integrate.c (copy_decl_for_inlining): Revert previous patch.
4171
4172 2003-10-18 Jan Hubicka <jh@suse.cz>
4173
4174 * integrate.c (copy_decl_for_inlining): Fix copying of copies.
4175
4176 2003-10-18 Roger Sayle <roger@eyesopen.com>
4177
4178 * libgcc.texi: Group multi-word types, such as "long double" and
4179 "unsigned int", using braces in @deftypefn and @deftypefnx nodes.
4180 Document __unord?f2 as returning a non-zero value, not just one.
4181
4182 2003-10-18 Hans-Peter Nilsson <hp@bitrange.com>
4183
4184 * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Define.
4185 ($(T)crti.o, $(T)crtn.o): Pass CRTSTUFF_T_CFLAGS here too.
4186
4187 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
4188
4189 * config/i386/k6.md (k6_alux): Use the 'mode' attribute instead of
4190 match_operand.
4191
4192 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
4193
4194 * config/sparc/sparc.c (function_arg_record_value_1): New fourth
4195 parameter packed_p. Search for a DECL_PACKED field only if
4196 packed_p is false. Pass packed_p recursively.
4197 (function_arg_record_value_2): Likewise.
4198 (function_arg_record_value): Update calls to
4199 function_arg_record_value_1 and function_arg_record_value_2.
4200
4201 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
4202
4203 * cse.c (cse_insn) [src_folded]: Check that the tentative replacement
4204 was successfully forced to memory before using the result.
4205
4206 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
4207
4208 PR optimization/8178
4209 * config/i386/i386.md (*movsi_zero): New insn to set
4210 a register to zero on TARGET_USE_MOV0 targets.
4211
4212 2003-10-18 Kelley Cook <kcook@gcc.gnu.org>
4213
4214 * Makefile.in (Makefile): Depend on the all Make-lang.in fragments.
4215 (POSTSTAGE1_FLAGS_TO_PASS): Pass down MAKEINFO and MAKEINFOFLAGS.
4216
4217 2003-10-17 David Edelsohn <edelsohn@gnu.org>
4218
4219 * doc/invoke.texi (gcse-las): Fix typo.
4220
4221 2003-10-17 Andrew Pinski <pinskia@physics.uc.edu>
4222
4223 * doc/install.texi: Remove first part of the sentence for
4224 zsh not working. Change gcc to GCC.
4225
4226 PR bootstrap/12546
4227 * doc/install.texi: Document that zsh does not work when
4228 configuring gcc.
4229
4230 2003-10-17 Nathanael Nerode <neroden@gcc.gnu.org>
4231
4232 * config/ptx4.h: Switch to DWARF 2; update comments.
4233
4234 2003-10-17 Segher Boessenkool <boessen@de.ibm.com>
4235 Hartmut Penner <hpenner@de.ibm.com>
4236
4237 PR 10404, partial 11591, partial 11601
4238 * config/rs6000/altivec.md ("altivec_dst", "altivec_dstt",
4239 "altivec_dstst", "altivec_dststt", "altivec_lvsl", "altivec_lvsr",
4240 "altivec_lvebx", "altivec_lvehx", "altivec_lvewx", "altivec_lvxl",
4241 "altivec_lvx", "altivec_stvx", "altivec_stvxl", "altivec_stvebx",
4242 "altivec_stvehx", "altivec_stvewx"): Use a memory_operand.
4243 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): New function.
4244 (altivec_expand_stv_builtin): Adjust for the memory_operand.
4245 (altivec_expand_builtin): Call altivec_expand_lv_builtin.
4246 (altivec_init_builtins): Use `long int' for memory offsets.
4247
4248 2003-10-17 Jan Hubicka <jh@suse.cz>
4249
4250 * opts.c (common_handle_option): Handle OPT_fweb
4251 * invoke.texi (-fweb): Add missing parts of documentation.
4252
4253 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4254
4255 * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Undef
4256 before redefinition.
4257
4258 2003-10-17 Mostafa Hagog <mustafa@il.ibm.com>
4259
4260 * common.opt: Add description of the new -fgcse-las flag.
4261 * flags.h (flag_gcse_las): Declaration of global flag_gcse_las.
4262 * gcse.c (hash_scan_set): Handle the case of store expression and
4263 insert the memory expression to the hash table, this way we make it
4264 possible to discover redundant loads after stores and remove them.
4265 (pre_insert_copy_insn): moved the call to update_ld_motion_stores,
4266 to pre_insert_copies, it is not the correct place to call it after
4267 adding stores to be in the available expression hash table.
4268 (pre_insert_copies): Added the call to update_ld_motion_stores when
4269 one or more copies were inserted.
4270 * opts.c (common_handle_option): Handle the -fgcse-las flag.
4271 * toplev.c (flag_gcse_las): Initialization of flag_gcse_las.
4272
4273 * doc/invoke.tex: Document new -fgcse-las flag.
4274
4275 2003-10-18 Alan Modra <amodra@bigpond.net.au>
4276
4277 * config/rs6000/crtsavres.asm: Correct alignment of powerpc64 code
4278 for posterity, then remove it.
4279
4280 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
4281 Nathan Sidwell <nathan@codesourcery.com>
4282
4283 * config/arm/arm.c (use_return_insn): Not a single instruction, if
4284 there's a frame pointer.
4285 (arm_output_epilogue): Protect stack pointer from being corrupted
4286 on interrupt.
4287
4288 2003-10-17 Ulrich Weigand <uweigand@de.ibm.com>
4289
4290 * ifcvt.c (noce_try_addcc): Handle ifs with 'else' case.
4291
4292 2003-10-17 Ulrich Weigand <uweigand@de.ibm.com>
4293
4294 * combine.c (simplify_set): Do not clear out undobuf.other_insn
4295 already set elsewhere.
4296
4297 2003-10-17 Kelley Cook <kcook@gcc.gnu.org>
4298
4299 * config/i386/i386.c (ix86_expand_prologue): Use
4300 gen_allocate_stack_worker.
4301
4302 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4303
4304 * config.gcc (mips-sgi-irix6*o32): Only enable use_collect2
4305 without gas.
4306 (mips-sgi-irix6*): Likewise.
4307
4308 * config/mips/iris6gas.h: New file.
4309 * gcc/config.gcc (mips-sgi-irix6*): Use it.
4310
4311 * config/mips/mips.h (TARGET_IRIX): Provide default.
4312 (TARGET_IRIX5): Likewise.
4313 (TARGET_SGI_O32_AS): Likewise.
4314 * config/mips/iris5.h (TARGET_IRIX): Redefine as 1.
4315 (TARGET_IRIX5): Likewise.
4316 * config/mips/iris6.h (TARGET_IRIX6): Remove.
4317 (TARGET_IRIX5): Redefine as 0.
4318
4319 * config/mips/mips.c (mips_output_external): Test for IRIX 6 O32
4320 linker workaround with TARGET_IRIX and mips_abi instead of
4321 ASM_OUTPUT_UNDEF_FUNCTION.
4322 (mips_file_end): Inline old ASM_OUTPUT_UNDEF_FUNCTION definition,
4323 testing TARGET_IRIX and mips_abi explicitly.
4324 * config/mips/iris5.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove.
4325 * config/mips/iris6.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove undef.
4326
4327 * config/mips/mips.c (irix_output_external_libcall): Renamed from
4328 mips_output_external_libcall.
4329 Use new TARGET_IRIX in guard.
4330 * config/mips/mips-protos.h (irix_output_external_libcall): Match
4331 this.
4332 * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Likewise.
4333
4334 * config/mips/iris5gas.h (HAVE_GAS_SHF_MERGE): Update comment.
4335 Define as 0.
4336
4337 * config/mips/iris6.h (FUNCTION_NAME_ALREADY_DECLARED): Define
4338 depending on mips_abi.
4339 * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Define as 1.
4340 * config/mips/mips.c (mips_output_function_prologue): Test
4341 FUNCTION_NAME_ALREADY_DECLARED at runtime.
4342 (mips_output_function_epilogue): Likewise.
4343 (build_mips16_function_stub): Likewise.
4344 (build_mips16_call_stub): Likewise.
4345 * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Provide
4346 default.
4347
4348 * config/mips/iris6.h (DWARF2_UNWIND_INFO): Don't define for native
4349 IRIX 6 O32 assembler.
4350 (SUBTARGET_CC1_SPEC): Enforce mips2 ISA with O32 ABI.
4351 (TARGET_OS_CPP_BUILTINS): Define _ABIO32, use it to define
4352 _MIPS_SIM for O32 ABI.
4353 (DWARF2_FRAME_INFO): Don't define for native IRIX 6 O32 assembler.
4354 (ASM_DECLARE_FUNCTION_NAME): Integrate mips.h version.
4355 (ASM_DECLARE_FUNCTION_SIZE): Move undef before redefinition.
4356 Integrate O32 version.
4357 (SUBTARGET_ASM_SPEC): Handle -mabi=32.
4358 (SUBTARGET_ASM_DEBUGGING_SPEC): Add mdebug_asm_spec for gas with
4359 O32 ABI.
4360 (BSS_SECTION_ASM_OP_32): Define.
4361 (BSS_SECTION_ASM_OP_64): Likewise.
4362 (BSS_SECTION_ASM_OP): Define differently for O32 and N32/N64 ABIs
4363 using them.
4364 (TARGET_ASM_NAMED_SECTION): Reflect renaming.
4365 Move up to allow override for O32 ABI without GNU as.
4366 (EH_FRAME_SECTION_NAME): Define explicitly.
4367 (MUST_USE_SJLJ_EXCEPTIONS): Define.
4368 [_MIPS_SIM == _ABIO32 && !GAS] (CTORS_SECTION_ASM_OP,
4369 DTORS_SECTION_ASM_OP): Dummy definitions.
4370 (TARGET_ASM_NAMED_SECTION): Undef statically.
4371 (EH_FRAME_SECTION_NAME): Likewise.
4372 (ASM_OUTPUT_FILENAME): Integrate mips.h version.
4373 (LINK_SPEC): Only use default options -call_shared -no_unresolved
4374 without -r.
4375 Don't pass -init, -fini with -mabi=32.
4376 (COLLECT_PARSE_FLAG): Define.
4377
4378 * config/mips/mips.c (iris6_asm_named_section_1): Changed guard to
4379 TARGET_IRIX.
4380 Renamed to use irix_ prefix.
4381 (iris6_asm_named_section): Likewise.
4382 (iris_section_align_entry_eq): Likewise.
4383 (iris_section_align_entry_hash): Likewise.
4384 (iris6_file_start): Likewise.
4385 (iris6_section_align_1): Likewise.
4386 (iris6_file_end): Likewise.
4387 (iris6_section_type_flags): Likewise.
4388 (iris_section_align_htab): Likewise.
4389 (iris_orig_asm_out_file): Likewise.
4390 [TARGET_IRIX] (TARGET_ASM_FILE_START): Reflect rename.
4391 (TARGET_ASM_FILE_END): Likewise.
4392 (TARGET_SECTION_TYPE_FLAGS): Likewise.
4393
4394 * config/mips/mips.c [TARGET_IRIX5 && !TARGET_IRIX6]
4395 (TARGET_ASM_UNALIGNED_HI_OP): Use runtime initialization in
4396 override_options instead.
4397 (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
4398 (TARGET_ASM_UNALIGNED_DI_OP): Likewise.
4399 * config/mips/mips.c (override_options) [USE_COLLECT2]: Restore
4400 flag_gnu_linker to defaults without USE_COLLECT2 for non-IRIX O32
4401 assemblers.
4402 Likewise for constructor/destructor handling.
4403 (override_options): Handle IRIX O32 assembler quirks.
4404 [TARGET_IRIX] (irix_asm_named_section): Handle O32 ABI with and
4405 without gas.
4406 (mips_file_start): Use new TARGET_IRIX.
4407 (mips_declare_object_name): No special processing for IRIX O32
4408 assembler.
4409 (mips_finish_declare_object): Likewise.
4410 (irix_asm_output_align): Renamed from iris6_asm_output_align.
4411 Don't record alignment for O32 ABI.
4412 (irix_file_start): Renamed from iris6_file_start.
4413 Return early for O32 ABI.
4414 (irix_file_end): Renamed from iris6_file_end.
4415 Don't emit .section directives for O32 ABI.
4416 * config/mips/iris6.h (ASM_OUTPUT_ALIGN): Reflect renaming.
4417 * config/mips/mips-protos.h (irix_asm_output_align): Likewise.
4418
4419 * config/mips/t-iris6 (MULTILIB_OPTIONS): Add mabi=32.
4420 (MULTILIB_OSDIRNAMES): Likewise.
4421
4422 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4423
4424 * collect2.c (COLLECT_PARSE_FLAG): Provide default.
4425 (main): Use it.
4426 * doc/tm.texi (COLLECT_PARSE_FLAG): Document it.
4427
4428 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
4429
4430 * arm-modes.def (CC_Nmode): New condition code mode.
4431 * arm.c (thumb_condition_code): Delete.
4432 (arm_select_cc_mode): Handle single-bit test for Thumb.
4433 (arm_print_operand, cases 'd' and 'D'): Don't special case the
4434 condition code logic for Thumb.
4435 (get_arm_condition_code): Handle CC_Nmode.
4436 (thumb_cbrch_target_operand): New function.
4437 * arm.h (PREDICATE_CODES): Add thumb_cbrch_target_operand.
4438 * arm-protos.h (thumb_cbrch_target_operand): Add prototype.
4439 * arm.md: Add Thumb split patterns for zero_extract and
4440 sign_extract.
4441 (tbit_cbranch, andsi3_cbranch_scratch, andsi3_cbranch)
4442 (orrsi3_cbranch_scratch, orrsi3_cbranch, xorsi3_cbranch_scratch)
4443 (xorsi3_cbranch, addsi3_cbranch, addsi3_cbranch_scratch)
4444 (subsi3_cbranch, subsi3_cbranch_scratch): New Thumb patterns.
4445 (cbranchne_decr1): Re-work to use CC_Nmode.
4446
4447 * arm.c (thumb_expand_epilogue): Add clobbers of registers restored
4448 by the return instruction. Add a use of the link register if it
4449 wasn't stored.
4450
4451 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
4452
4453 * flow.c (init_propagate_block_info): Don't abort if a conditional
4454 jump is not a comparison of a register. Instead, just don't record
4455 conditional life information.
4456
4457 2003-10-16 Jan Hubicka <jh@suse.cz>
4458
4459 PR optimization/12630
4460 * pa.md (movstrsi, movstrsi_internal): Use match_scratch in clobbers
4461 for operands 7 and 8.
4462
4463 2003-10-16 Kelley Cook <kcook@gcc.gnu.org>
4464
4465 * objc/Make-lang.in (objc-parse.o): Honor $(parsedir) for objc-parse.c.
4466
4467 2003-10-16 Danny Smith <dannysmith@users.sourceforge.net>
4468
4469 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
4470
4471 * config/i386/winnt.c (gen_stdcall_suffix): Make static
4472 (gen_fastcall_suffix): Likewise.
4473 (i386_pe_dllexport_p): Likewise.
4474 (i386_pe_dllimport_p): Likewise.
4475 (i386_pe_mark_dllexport): Likewise.
4476 (i386_pe_mark_dllimport): Likewise.
4477 (i386_pe_asm_named_section): Fix formatting.
4478
4479 2003-10-16 Zack Weinberg <zack@codesourcery.com>
4480
4481 * configure.in: Add snprintf to gcc_AC_CHECK_DECLS list.
4482 * system.h: Declare snprintf if necessary.
4483 * configure, config.in: Regenerate.
4484
4485 2003-10-15 David Edelsohn <edelsohn@gnu.org>
4486
4487 * config/rs6000/rs6000.c (rs6000_va_arg): Only align vector
4488 arguments if TARGET_ALTIVEC_ABI.
4489
4490 2003-10-15 Roger Sayle <roger@eyesopen.com>
4491
4492 * builtins.c (fold_builtin_memcpy, fold_builtin_mempcpy,
4493 fold_builtin_memmove, fold_builtin_strcpy, fold_builtin_strncpy,
4494 fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
4495 New functions.
4496 (expand_builtin_memcpy): Use integer_zerop instead of testing
4497 host_integerp and tree_low_cst directly. Move misapplied hunk
4498 for optimization wher SRC and DEST point to the same location.
4499 (expand_builtin_mempcpy): From here.
4500 (expand_builtin_memmove): Use integer_zerop instead of testing
4501 host_integerp and tree_low_cst_directly.
4502 (expand_builtin_memset): Likewise.
4503 (expand_builtin_memcmp): Likewise (and for integer_onep).
4504 (expand_builtin_strncmp): Likewise.
4505 (fold_builtin): Call the appropriate fold_builtin_foo functions
4506 to optimize memcpy, mempcpy, memmove, strcpy, strncpy, memcmp,
4507 strcmp and strncmp.
4508
4509 2003-10-15 Geoffrey Keating <geoffk@apple.com>
4510
4511 * config/darwin-protos.h (machopic_non_lazy_ptr_name): Delete
4512 prototype. Clean up some whitespace.
4513 * config/darwin.c: Use gen_rtx_FOO (...) rather than
4514 gen_rtx (FOO, ...).
4515 (machopic_non_lazy_ptr_name): Make static.
4516 (name_needs_quotes): Allow '.' and '$' unquoted.
4517 (machopic_legitimize_pic_address): Improve codegen in dynamic-no-pic
4518 case.
4519
4520 2003-10-15 Gábor Lóki <alga@rgai.hu>
4521
4522 * fold-const.c (tree_swap_operands_p): Disable some features
4523 when optimizing for size.
4524
4525 2003-10-15 David Daney <ddaney@avtrex.com>
4526
4527 * config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New
4528 * config/mips/mips.h (DWARF_FRAME_REGNUM): Fixed to allow unwind
4529 from leaf functions.
4530 (DWARF_FRAME_RETURN_COLUMN): Ditto.
4531 (SIGNAL_UNWIND_RETURN_COLUMN): New, used
4532 by MD_FALLBACK_FRAME_STATE_FOR.
4533 * testsuite/gcc.dg/cleanup-9.c: Added mips*-*-linux* target.
4534
4535 2003-10-15 Zack Weinberg <zack@codesourcery.com>
4536
4537 * genmodes.c: Include hashtab.h.
4538 (modes_by_name, hash_mode, eq_mode, struct mode_adjust)
4539 (adj_bytesize, adj_alignment, adj_format, new_adjust)
4540 (_ADD_ADJUST, ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FORMAT)
4541 (print_maybe_const_decl, emit_mode_adjustments): New.
4542 (known_modes): Rename to modes.
4543 (find_mode): Kill class argument; look up in hash table.
4544 (new_mode): Insert into hash table also.
4545 (new_adjust): New.
4546 (reset_float_format, make_partial_integer_mode)
4547 (make_vector_mode): Tweak error reporting.
4548 (reset_float_format): Correct type of fourth argument.
4549 (emit_insn_modes_h): Add #defines to help make mode_size,
4550 mode_base_align, and real_format_for_mode conditionally const.
4551 (emit_mode_size, emit_mode_base_align): Use print_maybe_const_decl.
4552 (emit_real_format_for_mode): Likewise, but temporarily disabled.
4553 (emit_insn_modes_c): Call emit_mode_adjustments.
4554 (main): Initialize modes_by_name.
4555 * Makefile.in: Update dependencies.
4556 * machmode.def: Document EXPR arguments and new ADJUST_* statements.
4557 * machmode.h: Use CONST_MODE_SIZE and CONST_MODE_BASE_ALIGN in
4558 declarations of mode_size and mode_base_align. Declare
4559 init_adjust_machine_modes.
4560 * toplev.c (backend_init): Call init_adjust_machine_modes.
4561
4562 2003-10-15 Olivier Hainque <hainque@act-europe.fr>
4563
4564 * genmodes.c (calc_wider_mode): Allocate enough room for all the
4565 entries we'll possibly assign in the sort buffer.
4566
4567 2003-10-15 Ulrich Weigand <uweigand@de.ibm.com>
4568
4569 * config.gcc (s390x-ibm-tpf*): New target.
4570 * doc/install.texi: Document it.
4571 * config/s390/t-tpf: New file.
4572 * config/s390/tpf.h: New file.
4573
4574 2003-10-15 Hans-Peter Nilsson <hp@axis.com>
4575
4576 PR target/12598
4577 * config/cris/cris.md (define_split "*mov_sidesi_biap_mem"+1)
4578 (define_splits "*mov_sidesi_mem"+1, "casesi"+9, +10, +11, +12):
4579 Use cris_mem_op and replace_equiv_address, not gen_rtx_MEM.
4580 ("call", "call_value", define_split "*mov_sidesi_mem"+19, +20)
4581 (define_split "*mov_sidesi_mem"+21, +22, +23, +24, +25, +26, +27)
4582 (define_split "*mov_sidesi_mem"+28, +29, +30): Use
4583 replace_equiv_address, not gen_rtx_MEM.
4584 * config/cris/cris.c (cris_mem_op): New match_operator function.
4585 (cris_notice_update_cc): Use replace_equiv_address, not
4586 gen_rtx_MEM.
4587 * config/cris/cris.h (PREDICATE_CODES): Add cris_mem_op.
4588
4589 2003-10-15 Bernardo Innocenti <bernie@develer.com>
4590
4591 * config/m68k/m68k.h (MASK_SEP_DATA, TARGET_SEP_DATA,
4592 MASK_ID_SHARED_LIBRARY, TARGET_ID_SHARED_LIBRARY): Move
4593 definitions after the other flags.
4594
4595 2003-10-14 Ziemowit Laski <zlaski@apple.com>
4596
4597 * c-parse.in (methoddef, methodproto): Call objc_add_method()
4598 instead of add_method().
4599 * objc/objc-act.c (objc_check_decl): Do not check for
4600 constant_string_type.
4601 (add_method): Rename to objc_add_method().
4602 (really_start_method): Call objc_add_method() instead of
4603 add_method().
4604 * objc/objc-act.h (add_method): Rename to objc_add_method().
4605
4606 2003-10-14 Ulrich Weigand <uweigand@de.ibm.com>
4607
4608 * config/s390/s390-protos.h (s390_alc_comparison): Add prototype.
4609 (s390_slb_comparison): Likewise.
4610 * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
4611 New functions.
4612 * config/s390/s390.h (PREDICATE_CODES): Add s390_alc_comparison
4613 and s390_slb_comparison.
4614 * config/s390/s390.md ("*adddi3_31", "*subdi3_31"): Do not use on
4615 zSeries machines.
4616 ("*adddi3_31z", "*subdi3_31z"): New insns.
4617 ("*adddi3_alc_cc", "*adddi3_alc", "*subdi3_slb_cc", "*subdi3_slb",
4618 "*addsi3_alc_cc", "*addsi3_alc", "*subsi3_slb_cc", "*subsi3_slb"):
4619 New insns.
4620
4621 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
4622
4623 * configure.in: Clean up some feedback echoes.
4624 * configure: Regenerate.
4625
4626 * aclocal.m4: Properly quote names of macros being defined.
4627
4628 * config.gcc (am33_2.0-*-linux*): Use t-slibgcc-elf-ver.
4629
4630 2003-10-14 Steve Ellcey <sje@cup.hp.com>
4631
4632 * config/ia64/ia64.c (ia64_expand_call): Force function address
4633 to DImode.
4634 * config/ia64/ia64.md (call_gp): Put DImode on operand 0.
4635
4636 2003-10-14 Ulrich Weigand <uweigand@de.ibm.com>
4637
4638 * config/s390/s390.md ("muldf3", "*muldf3", "*muldf3_ibm",
4639 "mulsf3", "*mulsf3", "*mulsf3_ibm"): Do not clobber CC.
4640 ("divdf3", "*divdf3", "*divdf3_ibm", "divsf3", "*divsf3",
4641 "*divsf3_ibm"): Likewise.
4642
4643 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
4644
4645 * config.gcc, config/m68hc11/t-m68hc11-gas: Replace uses of
4646 target_alias with target_noncanonical.
4647
4648 2003-10-14 Geoffrey Keating <geoffk@apple.com>
4649
4650 * expr.c (block_move_libcall_safe_for_call_parm): Clean up,
4651 and add case for machines where outgoing register parameters
4652 get stack space.
4653
4654 * config/darwin.c (machopic_indirect_data_reference): Use a scratch
4655 register when generating indirect address.
4656
4657 2003-10-14 Richard Earnshaw <rearnsha@arm.com>
4658
4659 * arm.c (arm_addimm_operand): MODE arguemnt is unused.
4660 * arm.md (cbranchne_decr1): Fix bootstrap warning.
4661
4662 2003-10-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4663
4664 * fixinc/inclhack.def (alpha_pthread_gcc): New fix.
4665 * fixinc/fixincl.x: Regenerate.
4666 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_GCC_CHECK]: New
4667 testcase.
4668 Fixes PR bootstrap/9330.
4669
4670 2003-10-13 Eric Christopher <echristo@redhat.com>
4671
4672 * config/frv/frv.c (frv_adjust_field_align): Redo check for
4673 too wide bitfields.
4674 (frv_hard_regno_mode_ok): Add SPR_P and AP_FIRST.
4675 * config/frv/frv.h (FUNCTION_PROFILER): Remove abort call.
4676 (SBSS_SECTION_ASM_OP): Remove.
4677 (EXTRA_SECTIONS): Remove in_sbss.
4678 (EXTRA_SECTION_FUNCTIONS): Remove SBSS_SECTION_FUNCTION.
4679 (SBSS_SECTION_FUNCTION, sbss_section): Remove.
4680 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change sbss_section to
4681 named_section.
4682
4683 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
4684
4685 * Makefile.in, configure.in, config.host, mkheaders.in: Replace
4686 uses of ${target_alias} for directory names (and other places which
4687 won't like the empty string) with ${target_noncanonical}. Introduce
4688 call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's
4689 available.
4690 * configure: Regenerate.
4691
4692 2003-10-13 Ian Lance Taylor <ian@wasabisystems.com>
4693
4694 * config/arm/iwmmxt.md (cond_iwmmxt_movsi_insn): New pattern.
4695 * config/arm/arm.md: For splits which rely on conditional moves,
4696 remove ! TARGET_IWMMXT condition.
4697
4698 2003-10-13 David S. Miller <davem@redhat.com>
4699
4700 * ifcvt.c (num_removed_blocks): Rename to num_true_changes.
4701 (find_cond_trap): Always increment if we emit a conditional
4702 trap insn.
4703
4704 2003-10-13 Zack Weinberg <zack@codesourcery.com>
4705
4706 * Makefile.in (BUILD_RTL): Replace $(BUILD_PREFIX)insn-modes.o
4707 with min-insn-modes.o.
4708 (STAGESTUFF): Add min-insn-modes.c.
4709 (genobjs): Add genmodes.o.
4710 (print-rtl.o, print-rtl1.o): Depend on $(TM_P_H).
4711 (insn-modes.o): Depend on $(TM_H) not $(GTM_H); also real.h.
4712 (min-insn-modes.c, min-insn-modes.o): New rules.
4713 (s-modes): Also generate min-insn-modes.c.
4714 ($(BUILD_PREFIX_1)insn-modes.o): Kill.
4715 * genmodes.c (struct mode_data): Add format field.
4716 (blank_mode, validate_mode, complete_mode): Update to match.
4717 (make_scalar_mode): Separate into make_int_mode and make_float_mode.
4718 (_SCALAR_MODE): Kill.
4719 (FLOAT_MODE, FRACTIONAL_FLOAT_MODE): Add format argument.
4720 (emit_insn_modes_c_header): Adjust.
4721 (emit_min_insn_modes_c_header, emit_real_format_for_mode)
4722 (emit_min_insn_modes_c): New functions.
4723 (emit_insn_modes_c): Call emit_real_format_for_mode.
4724 (main): Add -m option to generate min-insn-modes.c.
4725 * machmode.h: Update documentation. Add format argument to
4726 all uses of FLOAT_MODE.
4727 * real.c: Don't define real_format_for_mode here.
4728
4729 * dwarfout.c: Move default definition of PRINT_REG...
4730 * defaults.h: ...here.
4731 * print-rtl.c: Include tm_p.h.
4732 (DEBUG_PRINT_REG, DEBUG_REGISTER_NAMES, debug_reg_names, reg_names):
4733 Kill.
4734 (print_rtx): Use PRINT_REG, not DEBUG_PRINT_REG. But surround
4735 this entire block with #ifndef GENERATOR_FILE.
4736 * regclass.c: Unconditionally define reg_names.
4737 * config/mips/mips.h, config/rs6000/rs6000.h, config/sh/sh.h
4738 Don't define DEBUG_REGISTER_NAMES.
4739 * config/rs6000/darwin.h: Don't use DEBUG_REGISTER_NAMES in
4740 redefinition of REGISTER_NAMES.
4741 * config/i386/i386.h: Don't define DEBUG_PRINT_REG.
4742
4743 * combine.c: Change all preprocessor conditionals on
4744 EXTRA_CC_MODES to use SELECT_CC_MODE instead; rearrange a bit
4745 for clarity.
4746 * genopinit.c: Remove mention of EXTRA_CC_MODES in comment.
4747 * configure.in: Don't define EXTRA_CC_MODES.
4748 * configure, config.in: Regenerate.
4749 * doc/tm.texi: Remove documentation of EXTRA_CC_MODES.
4750
4751 * config/arc/arc.c, config/m32r/m32r.c, config/sparc/sparc.c:
4752 May assume that GET_MODE_CLASS is accurate for extra CC modes
4753 at all times.
4754
4755 * config/i860/i860.h (INIT_CUMULATIVE_ARGS): Pass correct
4756 number of arguments to aggregate_value_p.
4757
4758 * genmodes.c (RESET_FLOAT_FORMAT, reset_float_format): New.
4759 * machmode.def: Explain ARCH-modes.def. Document
4760 RESET_FLOAT_FORMAT. Improve commentary on various mode
4761 clusters. Do not define OI, PQI, PHI, PSI, PDI, QF, HF, TQF,
4762 XF, or TF modes here. Remove backward-compatibility
4763 definition of CC.
4764
4765 * config/alpha/alpha-modes.def: New file; define TF mode.
4766 * config/arc/arm-modes.def: Define XF mode.
4767 * config/c4x/c4x-modes.def: Define QF and HF modes. Unset
4768 float format for SF and DF modes.
4769 * config/dsp16xx/dsp16xx-modes.def: New file; define HF mode.
4770 * config/i386/i386-modes.def: Define XF and TF modes.
4771 * config/i960/i960-modes.def: Define TF mode.
4772 * config/ia64/ia64-modes.def: Define TF and OI modes.
4773 * config/m68k/m68k-modes.def: New file; define XF mode.
4774 * config/mips/mips-modes.def: New file; define TF mode, reset
4775 formats for SF and DF modes.
4776 * config/pa/pa-modes.def: Define TF mode.
4777 * config/rs6000/rs6000.c: Define TF and PSI modes.
4778 * config/s390/s390-modes.def: Define OI mode.
4779 * config/sh/sh-modes.def: New file; define PSI mode.
4780 * config/sparc/sparc-modes.def: Define TF mode.
4781 * config/vax/vax-modes.def: New file; reset formats for SF and
4782 DF modes.
4783
4784 * config/c4x/c4x.c (c4x_override_options): No need to mess
4785 with real_format_for_mode or set REAL_MODE_FORMATs.
4786 (c4x_immed_int_constant): Don't apply GET_MODE_CLASS to rtx
4787 variable.
4788 * config/i386/i386.c (override_options): No need to set
4789 REAL_MODE_FORMATs here.
4790 * config/i960/i960.c (i960_initialize): Likewise.
4791 * config/m68k/m68k.c (m68k_override_options): Likewise.
4792 * config/ia64/ia64.c (ia64_override_options): Set REAL_MODE_FORMAT
4793 for TFmode only if not the default.
4794 * config/mips/mips.c (override_options): Likewise.
4795 * config/vax/vax.c (override_optionms): Set REAL_MODE_FORMAT for
4796 DFmode only if not the default.
4797
4798 * config/i370/i370.h (RET_REG): Don't consider TFmode.
4799 * config/m68hc11/m68hc11.c (print_operand): Don't consider XFmode.
4800 * config/dsp16xx/dsp16xx.c (hard_regno_mode_ok): #if 0 out use
4801 of modes that don't appear anywhere in the machine description.
4802
4803 * config/arc/arc-modes.def, config/arm/arm-modes.def
4804 * config/c4x/c4x-modes.def, config/frv/frv-modes.def
4805 * config/i386/i386-modes.def, config/i960/i960-modes.def
4806 * config/ia64/ia64-modes.def, config/mmix/mmix-modes.def
4807 * config/pa/pa-modes.def, config/pdp11/pdp11-modes.def
4808 * config/rs6000/rs6000-modes.def, config/s390/s390-modes.def
4809 * config/sparc/sparc-modes.def: Convert to new style for
4810 declaring extra CC modes.
4811
4812 2003-10-13 Zack Weinberg <zack@codesourcery.com>
4813
4814 * cpplex.c (_cpp_clean_line): In the common case of a line
4815 with no trigraphs and no \-newline, avoid writing to memory.
4816 (_cpp_skip_block_comment): Use a local 'cur' pointer instead
4817 of the buffer member. Make c an uchar to avoid unnecessary
4818 sign extensions.
4819
4820 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
4821
4822 * configure.in: Remove unnecessary test.
4823 * configure: Regenerate.
4824
4825 * configure.in: Fix grammatical error. Move UWIN host error to...
4826 * config.host: Here.
4827 * configure: Regenerate.
4828
4829 2003-10-13 Andreas Krebbel <krebbel1@de.ibm.com>
4830
4831 * config/s390/s390.md ("*fmadddf4", "*fmsubdf4", "*fmaddsf4",
4832 "*fmsubsf4"): Insns are now dependent on TARGET_FUSED_MADD instead
4833 of flag_unsafe_math_optimizations.
4834 * config/s390/s390.h ("MASK_NO_FUSED_MADD", "TARGET_NO_FUSED_MADD",
4835 "TARGET_FUSED_MADD", "TARGET_SWITCHES"): Introduced new target flags
4836 fused-madd and no-fused-madd.
4837 * doc/invoke.texi: Documented the new options fused-madd and
4838 no-fused-madd for S/390.
4839
4840 2003-10-14 Alan Modra <amodra@bigpond.net.au>
4841
4842 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose
4843 MASK_ALIGN_NATURAL if rs6000_alignment_string not given. Don't
4844 assign DEFAULT_ABI.
4845 (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Update comment.
4846 * config/rs6000/rs6000.c: Formatting.
4847 (rs6000_parse_alignment_option): Only set rs6000_alignment_flags
4848 when rs6000_alignment_string given.
4849
4850 2003-10-13 Eric Botcazou <ebotcazou@libertysurf.fr>
4851
4852 PR target/12538
4853 * config/sparc/sparc.c (MUST_SAVE_REGISTER): Delete.
4854 (sparc_flat_must_save_register_p): New function to decide whether
4855 a register must be saved/restored in the function prologue/epilogue.
4856 (sparc_flat_compute_frame_size): Use it instead of MUST_SAVE_REGISTER.
4857
4858 2003-10-12 Steven Bosscher <steven@gcc.gnu.org>
4859
4860 * config/avr/avr.c, config/avr/avr-protos.h: Convert to
4861 ISO C90 function declarations and definitions.
4862 * config/sh/sh.c, config/sh/sh-protos.h: Likewise.
4863
4864 2003-10-12 Nathanael Nerode <neroden@gcc.gnu.org>
4865
4866 * config.gcc (*-*-freebsd*): Use tm_defines instead of tiny
4867 config files which do the same thing.
4868 * config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
4869 config/freebsd6.h: Remove now unnecessary files.
4870
4871 2003-10-12 Steven Bosscher <steven@gcc.gnu.org>
4872
4873 * c-common.c (c_common_truthvalue_conversion): Warn if the
4874 address of a non-weak function is used as a truth value.
4875
4876 2003-10-12 Kazu Hirata <kazu@cs.umass.edu>
4877
4878 * config/h8300/h8300.c (WORD_REG_USED): Use SP_REG instead of
4879 a literal.
4880 * config/h8300/h8300.h (REGNO_OK_FOR_BASE_P): Use MAC_REG
4881 instead of a literal.
4882
4883 2003-10-12 Hans-Peter Nilsson <hp@bitrange.com>
4884
4885 * doc/extend.texi (Function Attributes): Mention the exceptional
4886 path for noreturn-marked functions.
4887
4888 2003-10-12 Jan Hubicka <jh@suse.cz>
4889
4890 * cgraphunit.c (cgraph_decide_inlining): Fix uninitialized variable
4891 warning.
4892
4893 2003-10-12 Danny Smith <dannysmith@users.sourceforge.net>
4894
4895 * config/i386/i386.c (x86_this_parameter): Fix typo.
4896
4897 203-10-11 Jan Hubicka <jh@suse.cz>
4898
4899 * Makefile.in (web.o): New.
4900 * web.c: New file.
4901 * rtl.h (web_main): Declare.
4902 * timervar.def (TV_WEB): New.
4903 * toplev.c (dump_file_index, dump_file_info): Add DFI_web.
4904 (rest_of_hanle_web): New.
4905 (flag_web): New static variable.
4906 (lang_independent_options): Add "web".
4907 (rest_of_compilation): Call rest_of_handle_web.
4908 * invoke.texi (-fweb): Document.
4909 * common.opt (fweb): New.
4910 * flags.h (flag_web): New.
4911 * opts.c (decode_options): Set flag_web at -O3.
4912
4913 * passes.texi (web construction): Document.
4914 * invoke.texi (-O3): Document that -fweb is enabled.
4915
4916 * regrename.c (regrename_optimize): Deal better with situation when
4917 replacement failed.
4918
4919 * sched-ebb.c: Include params.h and profile.h
4920 (schedule_ebbs): Use tracer parameters to discover superblocks
4921 * Makefile.in (sched-ebb.o): Add dependencies.
4922
4923 2003-10-11 Roger Sayle <roger@eyesopen.com>
4924
4925 * fold-const.c (negate_mathfn_p): New function to determine whether
4926 a built-in mathematical function is sign preserving, f(-x) == -f(x).
4927 Add support for BUILT_IN_ASIN, BUILT_IN_ASINF and BUILT_IN_ASINL.
4928 (tree_swap_operands_p): Change API to take an additional argument
4929 indicating that the swapped operands evaluate in reverse order.
4930 Canonicalize VAR_DECLs and PARM_DECLs last if we can, i.e. neither
4931 operand side-effects or we don't care about flag_evaluation_order.
4932 (reorder_operands_p): New function to check whether its safe to
4933 evaluate the given operands in reverse order.
4934 (negate_expr_p): We can always negate integer constants unless
4935 we honor -ftrapv and the signed type would overflow. Only allow
4936 -(A-B) into B-A if reorder_operands_p says that its OK. Allow
4937 negation of COMPLEX_CST if both real and imaginary parts can be
4938 negated. Allow negation through floating point extensions and
4939 sign-preserving built-in functions.
4940 (negate_expr): Move the code to negate integers from "fold" to
4941 here. Always negate integer constants unless we honor -ftrapv
4942 and the signed type would overflow. Always negate real constants
4943 unless we honor -ftrapping-math. Only convert -(A-B) into B-A
4944 if allowed by reorder_operands_p. Add support for COMPLEX_CST.
4945 Optimize negation through floating point extensions and
4946 sign-preserving built-in functions (as defined by negate_mathfn_p).
4947 (fold): Adjust calls to tree_swap_operands_p.
4948 (fold <NEGATE_EXPR>): Move the remaining negation optimizations
4949 to negate_expr_p/negate_expr.
4950 (fold <MINUS_EXPR>): Use reorder_operands_p to check whether we're
4951 allowed to convert (-A) - B into (-B) - A.
4952
4953 2003-10-11 Roger Sayle <roger@eyesopen.com>
4954
4955 * builtins.c (expand_builtin_strcmp): Defend against the possibility
4956 that gen_cmpstrsi may fail: Stabilize the argument list against
4957 re-evaluation and expand the library call directly using this saved
4958 argument list if a cmpstrsi sequence can't be generated.
4959 (expand_builtin_strncmp): Likewise.
4960
4961 * config/i386/i386.md (cmpstrsi, movstrsi): Disable with -Os.
4962
4963 2003-10-11 Roger Sayle <roger@eyesopen.com>
4964
4965 PR optimization/12260
4966 * simplify-rtx.c (simplify_unary_operation): Simplify all unary
4967 operations through CONST nodes. Optimize (neg (plus X C)) as
4968 (minus -C X) for constant values C.
4969 (simplify_binary_operation): Optimize (minus (neg X) C) as
4970 (minus -C X) for constant values C.
4971 (simplify_plus_minus): Avoid creating (neg (const (plus X C)),
4972 instead create (minus -C X).
4973
4974 2003-10-11 Roger Sayle <roger@eyesopen.com>
4975
4976 * expr.c (expand_expr <PLUS_EXPR>): Let expand_operands call
4977 safe_from_p for us, once it chooses an evaluation order.
4978 (expand_expr <MULT_EXPR>): Likewise.
4979 (expand_expr <MIN_EXPR> <MAX_EXPR>): Likewise. If expand_operands
4980 places the second operand in "target", swap the operands.
4981 (do_store_flag): Let expand_operands call safe_from_p for us.
4982
4983 2003-10-11 Eric Botcazou <ebotcazou@libertysurf.fr>
4984
4985 PR optimization/12544
4986 * function.c (put_var_into_stack): Don't generate ADDRESSOFs
4987 for DECL_NONLOCAL decls.
4988
4989 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
4990
4991 * expr.c: Follow spelling conventions.
4992 * final.c: Likewise.
4993 * optabs.c: Likewise.
4994 * sched-deps.c: Likewise.
4995 * sdbout.c: Likewise.
4996
4997 Sat Oct 11 12:24:23 CEST 2003 Jan Hubicka <jh@suse.cz>
4998
4999 * varasm.c (notice_global_symbol): Fix handling of variables; avoid
5000 re-computing of variable.
5001
5002 2003-10-11 Richard Henderson <rth@redhat.com>
5003
5004 * config/alpha/alpha.c (alpha_return_in_memory): Rename from
5005 return_in_memory, make static, change signature to match target hook.
5006 (alpha_setup_incoming_varargs): Make static, change signature to
5007 match target hook, add code for vms and unicos.
5008 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
5009 TARGET_PROMOTE_PROTOTYPES, TARGET_STRUCT_VALUE_RTX,
5010 TARGET_RETURN_IN_MEMORY, TARGET_SETUP_INCOMING_VARARGS,
5011 TARGET_STRICT_ARGUMENT_NAMING,
5012 TARGET_PRETEND_OUTGOING_VARARGS_NAMED): New.
5013 * config/alpha/alpha-protos.h: Update.
5014 * config/alpha/alpha.h (PROMOTE_FUNCTION_ARGS,
5015 PROMOTE_FUNCTION_RETURN, RETURN_IN_MEMORY,
5016 SETUP_INCOMING_VARARGS): Remove.
5017 * config/alpha/unicosmk.h (SETUP_INCOMING_VARARGS): Remove.
5018 * config/alpha/vms.h (SETUP_INCOMING_VARARGS): Remove.
5019
5020 2003-10-11 Ian Lance Taylor <ian@wasabisystems.com>
5021
5022 * config/arm/arm.c (arm_regno_class): Handle IWMMXT_GR_REGS.
5023
5024 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
5025
5026 * config/m68k/lb1sf68.asm: Follow spelling conventions.
5027 * config/m68k/m68k.c: Likewise.
5028 * config/m68k/m68k.h: Likewise.
5029 * config/m68k/m68k.md: Likewise.
5030
5031 2003-10-11 Roger Sayle <roger@eyesopen.com>
5032
5033 * builtins.c (expand_builtin_memcpy): Optimize case when the two
5034 pointer arguments are the equal, non-volatile and side-effect free.
5035 (expand_builtin_mempcpy): Likewise.
5036 (expand_builtin_memmove): Likewise.
5037 (expand_builtin_strcpy): Likewise.
5038 (expand_builtin_memcmp): Likewise.
5039 (expand_builtin_strcmp): Likewise.
5040 (expand_builtin_strncmp): Likewise.
5041
5042 2003-10-11 Roger Sayle <roger@eyesopen.com>
5043
5044 * combine.c (apply_distributive_law): Enable "distributive" floating
5045 point optimizations with -funsafe-math-optimizations.
5046
5047 2003-10-11 Andrew Pinski <pinskia@physics.uc.edu>
5048
5049 * genmodes.c (emit_mode_mask) Change MASK to MODE_MASK.
5050
5051 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
5052
5053 * config/m68k/m68k-protos.h: Remove the prototype for
5054 finalize_pic.
5055
5056 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
5057
5058 * config/m68k/m68k.c: Fix comment typos.
5059
5060 2003-10-11 Bernardo Innocenti <bernie@develer.com>
5061
5062 * config/m68k/m68k-protos.h (use_return_insn): Change return type from
5063 int to bool.
5064 * config/m68k/m68k.c (struct m68k_frame): Add funcdef_no member.
5065 (current_frame): New global var.
5066 (m68k_compute_frame_layout): Cache computations in current_frame.
5067 (m68k_initial_elimination_offset): Use values from current_frame
5068 instead of recomputing them.
5069 (use_return_insn): Likewise.
5070 (m68k_output_function_prologue): Likewise.
5071 (m68k_output_function_epilogue): Likewise.
5072 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Fold __PIC__ handling
5073 inside the block for __pic__.
5074
5075 2003-10-11 Peter Barada <peter@baradas.org>
5076 Bernardo Innocenti <bernie@develer.com>
5077
5078 * config/m68k/m68k.c (m68k_frame): Move before protos referencing it.
5079 (m68k_save_reg): Add boolean parameter `interrupt_handler'.
5080 (m68k_interrupt_function_p): New function.
5081 (m68k_handle_fndecl_attribute): Ditto.
5082 (m68k_compute_frame_layout): Ditto.
5083 (m68k_attribute_table): Define back-end specific attributes.
5084 (m68k_output_function_epilogue): Emit RTE instruction for interrupt
5085 functions.
5086
5087 2003-10-11 Bernardo Innocenti <bernie@develer.com>
5088
5089 * config/m68k/t-uclinux: New target Makefile fragment.
5090 * config/m68k/uclinux.h: New target macro file.
5091 * config.gcc (m68k-*-uclinux): New target definition.
5092
5093 2003-10-10 Roger Sayle <roger@eyesopen.com>
5094
5095 * builtins.c (builtin_mathfn_code): Generalize to check whether
5096 the call is to any built-in function by comparing the call's
5097 argument list against the builtin decl's function type.
5098
5099 2003-10-10 Roger Sayle <roger@eyesopen.com>
5100
5101 * cse.c (constant_pool_entries_regcost): New global variable to
5102 hold the register cost component of constant_pool_entries_cost.
5103 (fold_rtx): Calculate constant_pool_entries_regcost at the same
5104 time as constant_pool_entries_cost.
5105 (cse_insn): Set both src_folded_cost and src_folded_regcost from
5106 constant_pool_entries_cost and constant_pool_entries_regcost.
5107 (cse_main): Initialize constant_pool_entries_regcost to zero.
5108
5109 * optabs.c (expand_unop): Attach a REG_EQUAL note describing
5110 the semantics of the sequence of bit operations used to negate
5111 a floating-point value.
5112 (expand_abs_nojump): Likewise attach a REG_EQUAL note describing
5113 the semantics of the bit operations used to abs a floating point
5114 value.
5115
5116 2003-10-11 Bernardo Innocenti <bernie@develer.com>
5117 Paul Dale <pauli@snapgear.com>
5118
5119 * config/m68k/lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__
5120 support.
5121 * config/m68k/m68k-none.h (ASM_SPEC): Pass --pcrel to assembler on
5122 -fpic, -fPIC, -msep-data and -mid-shared-library.
5123 * config/m68k/m68k.c (m68k_library_id_string): New global variable.
5124 (override_options): Add -msep-data and -mshared-library-id support.
5125 (m68k_output_function_prologue): Generate code to load A5 for
5126 TARGET_ID_SHARED_LIBRARY and TARGET_SEP_DATA.
5127 (m68k_output_mi_thunk): Emit indirect jump on TARGET_ID_SHARED_LIBRARY.
5128 (m68k_output_pic_call): New function.
5129 * gcc/config/m68k/m68k.h (TARGET_SEP_DATA): New target flag.
5130 (TARGET_ID_SHARED_LIBRARY): Ditto.
5131 (TARGET_SWITCHES): Add switches for -mid-shared-library and -msep-data.
5132 * gcc/config/m68k/m68k.md (call): Call m68k_output_pic_call().
5133 (call_value): Likewise.
5134
5135 2003-10-10 Zack Weinberg <zack@codesourcery.com>
5136
5137 * gengenrtl.c (find_formats, genheader): Make i an unsigned
5138 int, remove cast of NUM_RTX_CODE.
5139 * machmode.h: Make the HAVE_MACHINE_MODES #ifdef encompass the
5140 entire file. Remove the #ifs on GET_MODE_MASK etc and
5141 GET_MODE_WIDER_MODE etc.
5142
5143 2003-10-10 Eric Christopher <echristo@redhat.com>
5144
5145 * lcm.c (optimize_mode_switching): Change NORMAL_MODE
5146 to MODE_ENTRY and MODE_EXIT. Add MODE_AFTER for insns
5147 that set mode.
5148 * config/sh/sh.h (MODE_ENTRY): New macro.
5149 (MODE_EXIT): Ditto.
5150 (MODE_AFTER): Ditto.
5151 * config/sh/sh.md: Change for MODE_AFTER. Add
5152 fp_set attribute.
5153 * doc/tm.texi: Document MODE_AFTER, MODE_ENTRY, and MODE_EXIT.
5154
5155 2003-10-10 Zack Weinberg <zack@codesourcery.com>
5156
5157 * genmodes.c, mode-classes.def: New files.
5158 * machmode.def: Rewritten to genmodes.c interface.
5159 * Makefile.in (extra_modes_file): New substitution variable.
5160 (MACHMODE_H): No longer includes machmode.def or
5161 @extra_modes_file@; instead, mode-classes.def and insn-modes.h.
5162 (BUILD_RTL): Add $(BUILD_PREFIX)insn-modes.o.
5163 (OBJS-common): Add insn-modes.o.
5164 (STAGESTUFF): Add insn-modes.c, insn-modes.h, s-modes, and
5165 genmodes$(build_exeext).
5166 (insn-modes.o, insn-modes.c, insn-modes.h, s-modes, genmodes.o,
5167 genmodes$(build_exeext), $(BUILD_PREFIX_1)insn-modes.o): New targets.
5168 (s-genrtl): Don't depend on $(RTL_BASE_H).
5169 (gengenrtl.o): Don't depend on coretypes.h, $(GTM_H), real.h,
5170 or $(RTL_BASE_H); just rtl.def.
5171 * gengenrtl.c: Don't include coretypes.h, tm.h, rtl.h, or
5172 real.h. Give fake definition of CONST_DOUBLE_FORMAT and
5173 substitute definition of NUM_RTX_CODE. Add casts to avoid
5174 warnings.
5175 * machmode.h: Include insn-modes.h, not machmode.def. Include
5176 mode-classes.def to define enum mode_class. Tweak definitions
5177 of GET_MODE_CLASS, GET_MODE_SIZE, GET_MODE_BITSIZE, GET_MODE_MASK,
5178 GET_MODE_INNER, GET_MODE_WIDER_MODE, GET_CLASS_NARROWEST_MODE.
5179 (inner_mode_array): Renamed mode_inner.
5180 (mode_base_align): New.
5181 * rtl.c (mode_name, mode_class, mode_bitsize, mode_size,
5182 mode_unit_size, mode_wider_mode, mode_mask_array,
5183 inner_mode_array, class_narrowest_mode): Delete definitions.
5184 * stor-layout.c (get_mode_alignment): Use mode_base_align.
5185 * real.h: Use MIN_MODE_FLOAT and MAX_MODE_FLOAT, not QFmode
5186 and TFmode, in real_format_for_mode and REAL_MODE_FORMAT.
5187
5188 * config/ip2k/ip2k.h, config/iq2000/iq2000.h:
5189 No need to define BITS_PER_UNIT.
5190
5191 2003-10-10 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5192
5193 * config/ia64/ia64.c (ia64_vms_init_libfuncs): New function.
5194 (ia64_output_function_prologue): Only write .prologue if --with-gnu-as.
5195 (ia64_initialize_trampoline): If not using GAS, declare trampoline
5196 as global.
5197 * config/ia64/ia64.h (ASM_APP_ON, ASM_APP_OFF): Add vers for not GAS.
5198 (ASM_OUTPUT_DEBUG_LABEL): Likewise.
5199
5200 * stor-layout.c (compute_record_mode): Don't force BLKmode if
5201 field is zero-length BLKmode.
5202 * expr.c (expand_expr, case COMPONENT_REF): Handle case of BLKmode
5203 zero-size references.
5204
5205 * combine.c (distribute_links): Properly test for REG being set.
5206
5207 * config/alpha/alpha.c (alpha_expand_block_mode): Don't use
5208 gen_lowpart and company except for REG.
5209
5210 2003-10-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5211
5212 * pa64-hpux.h (LINK_SPEC): Use `-z' option with HP ld.
5213
5214 2003-10-10 Nathanael Nerode <neroden@gcc.gnu.org>
5215
5216 * config.gcc (mips*-*-netbsd*): Remove content-free line.
5217
5218 2003-10-10 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
5219
5220 * gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t,
5221 gcov_position_t and gcov_type.
5222
5223 2003-10-09 Kaz Kojima <kkojima@gcc.gnu.org>
5224
5225 * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
5226 * configure: Regenerate.
5227
5228 2003-10-09 Kazu Hirata <kazu@cs.umass.edu>
5229
5230 * config/h8300/h8300.md (define_asm_attributes): Specify
5231 the length of an asm insn more precisely.
5232
5233 2003-10-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5234
5235 * config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.
5236
5237 2003-10-09 Bob Wilson <bob.wilson@acm.org>
5238
5239 * config/xtensa/xtensa.c (xtensa_dbx_register_number): Change first
5240 FP register number to 48 and MAC16 accumulator to 0x210.
5241
5242 2003-10-09 Nathanael Nerode <neroden@gcc.gnu.org>
5243
5244 * config.gcc: Remove redundant thread_file setting clauses for
5245 various *-*-linux* targets.
5246
5247 2003-10-09 Kazu Hirata <kazu@cs.umass.edu>
5248
5249 * config/h8300/h8300.md (define_asm_attributes): New.
5250
5251 2003-10-09 Roger Sayle <roger@eyesopen.com>
5252
5253 * optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note
5254 to the comparison, as emit_libcall_block calls copy_rtx on equiv.
5255
5256 2003-10-09 Dorit Naishlos <dorit@il.ibm.com>
5257
5258 * haifa-sched.c (ok_for_early_schedule): New function.
5259 (early_queue_to_ready): New function.
5260 (schedule_block): Allow early removal of insns from Q.
5261 (schedule_insn): Update INSN_TICK in case of premature
5262 issue.
5263 * common.opt (sched_stalled_insns): New flag.
5264 (sched_stalled_insns_dep): New flag.
5265 * flags.h: Same above flags.
5266 * opts.c: Same as above.
5267 * toplev.c: Same as above.
5268 * target.h (targetm.sched.is_costly_dependence): New
5269 hook.
5270 * target-def.h: Same as above.
5271 * config/rs6000/rs6000.h: (rs6000_sched_costly_dep):
5272 Support new flag -msched-costly-dep.
5273 (DEFAULT_SCHED_COSTLY_DEP): Define.
5274 * config/rs6000/rs6000.c:
5275 (rs6000_is_costly_dependence): New function.
5276 (is_load_insn, is_store_insn): New functions.
5277 (is_load_insn1, is_store_insn1, is_mem_ref): New
5278 functions.
5279 * doc/invoke.texi (-fsched-stalled-insns-dep)
5280 (-fsched-stalled-insns, -msched-costly-dep): Document
5281 options.
5282 * doc/tm.texi (is_costly_dependence): Define new
5283 scheduler target hook.
5284
5285 2003-10-09 Jason Merrill <jason@redhat.com>
5286
5287 PR c++/6392
5288 * c-common.c (c_build_qualified_type): Look through arrays first.
5289 (c_apply_type_quals_to_decl): Look through arrays.
5290
5291 * c-common.c (c_apply_type_quals_to_decl): Unset TREE_READONLY for
5292 types with constructors.
5293
5294 * coverage.c (build_ctr_info_value): Use build_decl to make a
5295 VAR_DECL.
5296 (create_coverage): Likewise.
5297
5298 * stmt.c (resolve_asm_operand_names): Call check_unique_operand_names
5299 here.
5300 (expand_asm_operands): Not here.
5301 (parse_input_constraint): No longer static.
5302 * tree.h: Declare it.
5303
5304 2003-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
5305
5306 * config/sh/t-linux (SHLIB_LINK): Override to use a linker script
5307 libgcc_s.so.
5308 (SHLIB_INSTALL): Likewise.
5309
5310 2003-10-08 Nathanael Nerode <neroden@gcc.gnu.org>
5311
5312 * doc/install.texi: Remove reference to removed 'pthreads' thread
5313 option.
5314
5315 2003-10-08 Aldy Hernandez <aldyh@redhat.com>
5316
5317 * config/rs6000/rs6000.md ("abssi2_isel"): Add early clobber to
5318 operand 2.
5319
5320 2003-10-08 Nathanael Nerode <neroden@gcc.gnu.org>
5321
5322 * config.gcc: Don't accept --enable-threads=pthreads. Clean
5323 up related case statements.
5324 * configure.in: Don't accept --enable-threads=pthreads,
5325 decosf1, mach, or os2 (none of which work anyway). Alphabetize
5326 supported thread files in case clause.
5327 * configure: Regenerate.
5328
5329 2003-10-08 Geoffrey Keating <geoffk@apple.com>
5330
5331 * function.c (pad_to_arg_alignment): Move 'boundary_in_bytes'
5332 definition to above SPARC_STACK_BOUNDARY_HACK.
5333
5334 2003-10-08 Jason Merrill <jason@redhat.com>
5335
5336 * c-pretty-print.c (pp_c_postfix_expression)
5337 <COMPOUND_LITERAL_EXPR>: Fix thinko.
5338
5339 2003-10-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5340
5341 * mklibgcc.in: Don't hide undefined or typeless symbols.
5342
5343 2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5344
5345 PR optimization/12142
5346 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
5347 uses of the register in the SET_SRC. Remove unnecessary argument.
5348 * pa.c (legitimize_pic_address): Before reload, use a scratch register
5349 for the intermediate result in loading the address of a SYMBOL_REF.
5350 Set the MEM_NOTRAP_P flag for the MEM. Add a REG_EQUAL to the insn
5351 which loads the SYMBOL_REF address.
5352
5353 2003-10-08 Timo Kokkonen <tjko@iki.fi>
5354 Eric Botcazou <ebotcazou@libertysurf.fr>
5355
5356 PR bootstrap/12490
5357 * scan-decls.c (MAX_EXTERN_C_BRACES): New preprocessor constant
5358 to define the size of the extern_C_braces array. Set it to 200.
5359 (scan_decls): Abort when extern_C_braces_length is out-of-bounds.
5360
5361 2003-10-08 Carlo Wood <carlo@alinoe.com>
5362
5363 * Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand
5364 a space after the -o option. flex 2.5.31 understands both, with
5365 and without the space. Removed that space.
5366
5367 2003-10-08 Richard Sandiford <rsandifo@redhat.com>
5368
5369 * config/mips/mips.c (mips_frame_info): Add cprestore_size field.
5370 (compute_frame_size): Initialize it. Remove the .cprestore slot
5371 from args_size.
5372 (mips_output_function_prologue): Simplify accordingly.
5373 (mips_debugger_offset): Change the mips16 frame pointer offset from
5374 current_function_outgoing_args to cfun->machine->frame.args_size.
5375 (mips_initial_elimination_offset): Likewise.
5376 (mips_expand_prologue): Likewise.
5377 (mips_expand_epilogue): Likewise.
5378
5379 2003-10-08 Richard Sandiford <rsandifo@redhat.com>
5380
5381 * config/mips/mips.h (EXTRA_CONSTRAINT): Add 'W' constraint.
5382 (EXTRA_MEMORY_CONSTRAINT): Define.
5383 (CAN_ELIMINATE): Remove lwu workaround.
5384 * config/mips/mips.md (*zero_extendsidi2_mem): Enable for mips16 too.
5385 Use a 'W' constraint for the source operand.
5386
5387 2003-10-08 Kazu Hirata <kazu@cs.umass.edu>
5388
5389 * genopinit.c (main): Output code to declare undefined
5390 variables.
5391
5392 2003-10-07 Kelley Cook <kcook@gcc.gnu.org>
5393
5394 * gengtype-lex.l: Remove -Wtraditional cruft.
5395 * Makefile.in (gengtype-lex.c): Likewise.
5396
5397 2003-10-07 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5398
5399 * cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.
5400
5401 2003-10-07 Jason Merrill <jason@redhat.com>
5402
5403 PR c++/12519
5404 * c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if
5405 it isn't a decl.
5406
5407 2003-10-07 Alexandre Oliva <aoliva@redhat.com>
5408
5409 * gcc.c (cpp_options): Only pass -fworking-directory for -g* if
5410 not overridden.
5411 Fixes PR bootstrap/12173.
5412
5413 2003-10-07 Zack Weinberg <zack@codesourcery.com>
5414
5415 * errors.c: Don't include coretypes.h or tm.h.
5416 (trim_filename): Use IS_DIR_SEPARATOR.
5417 * Makefile.in: Update dependencies of errors.o and
5418 $(BUILD_PREFIX_1)errors.o.
5419
5420 2003-10-07 Geoffrey Keating <geoffk@apple.com>
5421
5422 * function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into
5423 account when aligning arguments.
5424 * calls.c (STACK_POINTER_OFFSET): Move default from here ...
5425 * defaults.h (STACK_POINTER_OFFSET): ... to here.
5426 * config/sparc/sparc.h (STACK_BOUNDARY): Add comment about how
5427 it's wrong when TARGET_ARCH64 && TARGET_STACK_BIAS.
5428 (SPARC_STACK_BOUNDARY_HACK): Define.
5429 * config/rs6000/rs6000.c (function_arg): On non-SVR4 systems,
5430 arrange for vector parameters to varargs functions to be passed
5431 in both memory and GPRs when appropriate.
5432 (rs6000_va_arg): Vector arguments passed in memory are 16-byte
5433 aligned.
5434
5435 * hooks.c (hook_bool_tree_true): New.
5436 (hook_rtx_tree_int_null): New.
5437 (hook_rtx_rtx_null): Use NULL, not 0.
5438 * hooks.h: Add 'extern' to everything.
5439 (hook_bool_tree_true): New.
5440 (hook_rtx_tree_int_null): New.
5441 * targhooks.c (hook_bool_CUMULATIVE_ARGS_true): New.
5442 * targhooks.h (hook_bool_CUMULATIVE_ARGS_true): New.
5443 * config/rs6000/rs6000-protos.h (setup_incoming_varargs): Remove
5444 prototype.
5445 * config/rs6000/rs6000.c (rs6000_return_in_memory): New.
5446 (setup_incoming_varargs): Prototype.
5447 (TARGET_PROMOTE_FUNCTION_ARGS): Define.
5448 (TARGET_PROMOTE_FUNCTION_RETURN): Define.
5449 (TARGET_STRUCT_VALUE_RTX): Define.
5450 (TARGET_RETURN_IN_MEMORY): Define.
5451 (TARGET_SETUP_INCOMING_VARARGS): Define.
5452 (TARGET_STRICT_ARGUMENT_NAMING): Define.
5453 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Define.
5454 (init_cumulative_args): Use rs6000_return_in_memory.
5455 (setup_incoming_varargs): Make 'static'.
5456 * config/rs6000/rs6000.h (PROMOTE_FUNCTION_ARGS): Delete.
5457 (PROMOTE_FUNCTION_RETURN): Delete.
5458 (STRUCT_VALUE): Delete.
5459 (RETURN_IN_MEMORY): Delete.
5460 (SETUP_INCOMING_VARARGS): Delete.
5461
5462 2003-10-07 Gerald Pfeifer <gerald@pfeifer.com>
5463
5464 * doc/invoke.texi (Warning Options): Simplify and clarify the
5465 descriptions of -Wnonnull and -Winit-self.
5466
5467 2003-10-07 Richard Earnshaw <rearnsha@arm.com>
5468
5469 * optabs.c (init_intraclass_conv_libfuncs): Fix order of array
5470 indicees for floating-point conversersion libcalls.
5471
5472 2003-10-07 Nathanael Nerode <neroden@gcc.gnu.org>
5473
5474 * Makefile.in: Add more comments separating large conceptually
5475 separate sections.
5476
5477 * configure.in: Clean up thread file logic.
5478 * configure: Regenerate.
5479
5480 2003-10-07 Danny Smith <dannysmith@users.sourceforge.net>
5481
5482 * config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
5483 (switch_to_section): Handle in_readonly_data.
5484 * config/i386/winnt.c (i386_pe_asm_named_section): Handle
5485 readonly data.
5486
5487 2003-10-07 Richard Earnshaw <rearnsha@arm.com>
5488
5489 * arm.md (cmpsi2_addneg): New ARM pattern. Add peephole2 to generate
5490 it.
5491 (cbranchne_decr1): New Thumb pattern.
5492 * arm.c (arm_addimm_operand): New insn predicate.
5493 * arm-protos.h: Add a prototype for it.
5494 * arm.h (PREDICATE_CODES): Add it.
5495
5496 2003-10-07 Dorit Naishlos <dorit@il.ibm.com>
5497
5498 * sched-int.h (sched_info): New field
5499 sched_max_insns_priority.
5500 * sched-rgn.c (init_ready_list): Add invocations to
5501 targetm.sched.adjust_priority.
5502 (sched_max_insns_priority): Init new field.
5503 * sched-ebb.c (sched_max_insns_priority): Init new field.
5504 * haifa-sched.c (set_priorities): Set
5505 sched_info->sched_max_insns_priority.
5506 * config/rs6000/rs6000.h:
5507 (rs6000_sched_restricted_insns_priority_str): Support new
5508 flag -mprioritize-restricted-insns.
5509 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Define.
5510 * config/rs6000/rs6000.c (is_dispatch_slot_restricted): New
5511 function.
5512 (rs6000_adjust_priority): Change priority of restricted
5513 insns, using above new function and new flag.
5514 * doc/invoke.texi (-mprioritize-restricted-insns): Document
5515 new option.
5516
5517 2003-10-07 Zack Weinberg <zack@codesourcery.com>
5518
5519 * expr.c (cmpstr_optab, cmpmem_optab): New.
5520 * genopinit.c: Initialize them.
5521 * optabs.h: Declare them.
5522 * optabs.c (init_optabs): Clear them.
5523 (prepare_cmp_insn): Use cmpstr_optab and cmpmem_optab to find
5524 block memory compare insns, not conditional chains. Restructure
5525 the fallback generation of a call to memcmp/bcmp for better
5526 readability.
5527
5528 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
5529
5530 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.
5531 (mips_save_restore_fn): New typedef.
5532 (mips_add_large_offset_to_sp, mips_emit_frame_related_store): Remove.
5533 (mips_set_frame_expr, mips_frame_set): Move above prologue code.
5534 (save_restore_insns): Remove, replacing with...
5535 (mips_save_restore_reg, mips_for_each_saved_reg): ...these new fns.
5536 (mips_save_reg, mips_restore_reg): New function.
5537 (mips_expand_prologue, mips_expand_epilogue): Rework.
5538 * config/mips/mips.h (MIPS_TEMP1_REGNUM, MIPS_TEMP2_REGNUM): Remove.
5539 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): New macros.
5540 (MIPS_PROLOGUE_TEMP, MIPS_EPILOGUE_TEMP): New macros.
5541
5542 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
5543
5544 * config/mips/mips.c (mips_expand_prologue): Remove unused
5545 traversal of function arguments.
5546
5547 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
5548
5549 * doc/invoke.texi: Remove documentation of -mentry.
5550 * config/mips/mips.c (mips_entry_string, mips_entry): Remove.
5551 (override_options, mips_save_reg_p): Remove handling.
5552 (compute_frame_size, mips_output_function_prologue): Likewise.
5553 (mips_expand_prologue, mips_expand_epilogue): Likewise.
5554 * config/mips/mips.h (mips_entry_string): Remove declaration.
5555 (TARGET_OPTIONS): Remove -mentry.
5556 * config/mips/mips16.S: Remove mention of -mentry.
5557
5558 2003-10-06 Zack Weinberg <zack@codesourcery.com>
5559
5560 * libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
5561 (LTI_extenddfxf2, LTI_extenddftf2, LTI_truncdfsf2, LTI_truncxfsf2)
5562 (LTI_trunctfsf2, LTI_truncxfdf2, LTI_trunctfdf2, LTI_floatsisf)
5563 (LTI_floatdisf, LTI_floattisf, LTI_floatsidf, LTI_floatdidf)
5564 (LTI_floattidf, LTI_floatsixf, LTI_floatdixf, LTI_floattixf)
5565 (LTI_floatsitf, LTI_floatditf, LTI_floattitf, LTI_fixsfsi, LTI_fixsfdi)
5566 (LTI_fixsfti, LTI_fixdfsi, LTI_fixdfdi, LTI_fixdfti, LTI_fixxfsi)
5567 (LTI_fixxfdi, LTI_fixxfti, LTI_fixtfsi, LTI_fixtfdi, LTI_fixtfti)
5568 (LTI_fixunssfsi, LTI_fixunssfdi, LTI_fixunssfti, LTI_fixunsdfsi)
5569 (LTI_fixunsdfdi, LTI_fixunsdfti, LTI_fixunsxfsi, LTI_fixunsxfdi)
5570 (LTI_fixunsxfti, LTI_fixunstfsi, LTI_fixunstfdi, LTI_fixunstfti)
5571 (extendsfdf2_libfunc, extendsfxf2_libfunc, extendsftf2_libfunc)
5572 (extenddfxf2_libfunc, extenddftf2_libfunc, truncdfsf2_libfunc)
5573 (truncxfsf2_libfunc, trunctfsf2_libfunc, truncxfdf2_libfunc)
5574 (trunctfdf2_libfunc, floatsisf_libfunc, floatdisf_libfunc)
5575 (floattisf_libfunc, floatsidf_libfunc, floatdidf_libfunc)
5576 (floattidf_libfunc, floatsixf_libfunc, floatdixf_libfunc)
5577 (floattixf_libfunc, floatsitf_libfunc, floatditf_libfunc)
5578 (floattitf_libfunc, fixsfsi_libfunc, fixsfdi_libfunc, fixsfti_libfunc)
5579 (fixdfsi_libfunc, fixdfdi_libfunc, fixdfti_libfunc, fixxfsi_libfunc)
5580 (fixxfdi_libfunc, fixxfti_libfunc, fixtfsi_libfunc, fixtfdi_libfunc)
5581 (fixtfti_libfunc, fixunssfsi_libfunc, fixunssfdi_libfunc)
5582 (fixunssfti_libfunc, fixunsdfsi_libfunc, fixunsdfdi_libfunc)
5583 (fixunsdfti_libfunc, fixunsxfsi_libfunc, fixunsxfdi_libfunc)
5584 (fixunsxfti_libfunc, fixunstfsi_libfunc, fixunstfdi_libfunc)
5585 (fixunstfti_libfunc): Delete.
5586 * optabs.h (struct optab_handlers): Break out of struct optab.
5587 (struct convert_optab, convert_optab, enum convert_optab_index,
5588 convert_optab_table, sext_optab, zext_optab, trunc_optab,
5589 sfix_optab, ufix_optab, sfixtrunc_optab, ufixtrunc_optab,
5590 sfloat_optab, ufloat_optab): New.
5591 (set_conv_libfunc): Prototype.
5592 (GEN_FCN): Use C90 indirect call syntax, remove unnecessary cast.
5593 (trunc_optab): Renamed btrunc_optab.
5594 * builtins.c (expand_builtin_mathfn): Update to match.
5595 * optabs.c (extendtab, fixtab, fixtrunctab, floattab): Delete.
5596 (convert_optab_table, new_convert_optab, init_convert_optab)
5597 (init_interclass_conv_libfuncs, init_intraclass_conv_libfuncs)
5598 (set_conv_libfunc): New.
5599 (can_extend_p, gen_extend_insn, can_fix_p, can_float_p)
5600 (expand_float, expand_fix): Use new conversion optabs,
5601 not old insn code tables or long chains of ifs.
5602 (init_optabs): No need to clear old insn code tables.
5603 Initialize the new optabs, not the old libfunc array entries.
5604 Don't handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
5605 * genopinit.c: Initialize conversion optabs, not the
5606 former insn code tables. Remove unnecessary casts.
5607 Handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
5608 * expr.c (convert_move): Remove redundant check that
5609 to_real==from_real. Use the conversion optabs instead
5610 of long chains of tests of modes. Move partial-integer-mode
5611 interconversion above all integer conversion. Do not recurse
5612 on a value forced into a register in the original mode.
5613
5614 * config/gofast.h, config/frv/frv.c, config/ia64/ia64.c
5615 * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
5616 * config/sparc/sparc.c: Use set_conv_libfunc to adjust entries
5617 in new conversion optabs; do not reference the old libfunc
5618 array entries. No need to include libfuncs.h.
5619
5620 2003-10-06 Roger Sayle <roger@eyesopen.com>
5621
5622 * config/i386/i386.c (ix86_expand_setcc): Annotate the floating
5623 point comparison sequence with a REG_EQUAL note that describes
5624 the comparison's semantics.
5625
5626 2003-10-06 Roger Sayle <roger@eyesopen.com>
5627
5628 * expr.c (expand_expr <COND_EXPR>): Handle the void type semantics
5629 of COND_EXPR when expanding the "A op 0 ? FOO : A" optimizations.
5630
5631 2003-10-06 Roger Sayle <roger@eyesopen.com>
5632 Zack Weinberg <zack@codesourcery.com>
5633
5634 * optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL
5635 instruction by using LCT_CONST and then calling emit_libcall_block
5636 ourselves.
5637
5638 2003-10-06 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
5639
5640 PR optimization/11974
5641 * optabs.c (expand_unop): Promote libcall outmode according to
5642 hard_libcall_value.
5643
5644 2003-10-06 Zack Weinberg <zack@codesourcery.com>
5645
5646 * real.h (REAL_MODE_FORMAT): New macro.
5647 * c-cppbuiltin.c, optabs.c, real.c, config/alpha/alpha.c
5648 * config/c4x/c4x.c, config/i370/i370.c, config/i386/freebsd.h
5649 * config/i386/i386.c, config/i960/i960.c, config/ia64/ia64.c
5650 * config/m68k/m68k.c, config/mips/mips.c, config/rs6000/rs6000.c
5651 * config/vax/vax.c: Use REAL_MODE_FORMAT instead of referring
5652 directly to real_format_for_mode array, wherever possible.
5653
5654 2003-10-06 Devang Patel <dpatel@apple.com>
5655
5656 * dwarf2out.c (is_main_source): Remove variable.
5657 (dwarf2out_start_source_file): Do not check is_main_source.
5658 Do not reset is_main_source.
5659 (dwarf2out_init): Do not initialize is_main_source.
5660
5661 2003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5662
5663 * fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
5664 (irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21
5665 introduced some multi-line prototypes.
5666 * fixinc/fixincl.x: Regenerate.
5667
5668 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
5669
5670 * config/mips/mips.h (PREDICATE_CODES): Add stack_operand.
5671 * config/mips/mips.c (stack_operand): New predicate.
5672 * config/mips/mips.md: Use it for the destination of mips16 insns
5673 that store $31.
5674
5675 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
5676
5677 * config/mips/mips.md (*lowsi): Renamed from lowsi.
5678 (*lowdi): Likewise lowdi.
5679 (*lowsi_mips16, *lowdi_mips16): New patterns.
5680 * config/mips/mips.c (mips_const_insns, mips_output_move): Remove
5681 mips16 CONSTANT_RELOC handling.
5682 (mips_delegitimize_address): Adjust for new sdata representation.
5683
5684 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
5685
5686 * config/mips/mips.c (mips_arg_info): If MUST_PASS_IN_STACK,
5687 skip any remaining register arguments.
5688
5689 2003-10-06 Ulrich Weigand <uweigand@de.ibm.com>
5690
5691 * reload.c (find_reloads_subreg_address): Use correct offset for
5692 paradoxical MEM subregs on big-endian targets.
5693
5694 2003-10-06 Andrew Haley <aph@redhat.com>
5695
5696 * tree.c (get_callee_fndecl): Call
5697 lang_hooks.lang_get_callee_fndecl.
5698 * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): New.
5699 (lhd_get_callee_fndecl): New.
5700
5701 2003-10-06 Andrew Pinski <apinski@apple.com>
5702
5703 * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
5704 error in calculating the length of the string.
5705 (machopic_stub_name): Likewise.
5706
5707 2003-10-06 Roger Sayle <roger@eyesopen.com>
5708
5709 * optabs.c (prepare_float_lib_cmp): Attach a REG_EQUAL note
5710 describing the return value of the comparison libcall to the
5711 REG_RETVAL instruction of the emitted sequence.
5712
5713 2003-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
5714
5715 PR optimization/12215
5716 * cse.c (cse_set_around_loop): Emit the move at the beginning
5717 of the next basic block for trapping sets.
5718
5719 2003-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
5720
5721 PR optimization/11637
5722 * combine.c (adjust_for_new_dest): New function to adjust the
5723 notes and LOG_LINKS when the dest of an insn has changed.
5724 (try_combine): Use it when deleting the first insn of a two-insn
5725 parallel or splitting a two-load parallel.
5726
5727 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
5728
5729 * config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
5730 if TARGET_EXPLICIT_RELOCS.
5731
5732 2003-10-06 Mark Mitchell <mark@codesourcery.com>
5733
5734 PR bootstrap/12512
5735 * Makefile.in (info): Use double-colon rules.
5736 (dvi): Likewise.
5737 (generated-manpages): Likewise.
5738 * configure.in: Do not create lang.info, lang.dvi, or
5739 lang.generated-manpages hooks.
5740 * configure: Regenerated.
5741 * objc/Make-lang.in (objc.info): Remove.
5742 (objc.dvi): Remove.
5743 (objc.generated-manpages): Remove.
5744 * doc/sourcebuild.texi: Update description of info, dvi, and
5745 generated-manpages hooks.
5746
5747 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
5748
5749 * config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter.
5750
5751 2003-10-05 Andrew Pinski <apinski@apple.com>
5752
5753 * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
5754 errors in memcpy destinations.
5755 (machopic_stub_name): Likewise.
5756
5757 2003-10-05 Andrew Pinski <apinski@apple.com>
5758
5759 * config/darwin.c (machopic_non_lazy_ptr_name):
5760 Change strcat to memcpy and add length together.
5761 (machopic_stub_name): Likewise.
5762
5763 2003-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
5764
5765 * config/sh/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new
5766 signal trampoline codes.
5767
5768 2003-10-05 Chris Demetriou <cgd@broadcom.com>
5769
5770 * config/mips/mips.md (*divsf3): Move description of
5771 SB-1 F2 erratum from here to...
5772 (divsf3): Here. Disable if TARGET_FIX_SB1 is set and
5773 flag_unsafe_math_optimizations is not.
5774
5775 2003-10-05 Aldy Hernandez <aldyh@redhat.com>
5776
5777 * config/rs6000/linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE,
5778 TARGET_E500, TARGET_ISEL, and TARGET_FPRS.
5779
5780 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
5781
5782 * c-pretty-print.c: Fix comment typos.
5783 * c-pretty-print.h: Likewise.
5784 * calls.c: Likewise.
5785 * cfgloopmanip.c: Likewise.
5786 * cgraphunit.c: Likewise.
5787 * cppfiles.c: Likewise.
5788 * final.c: Likewise.
5789 * function.c: Likewise.
5790 * gcov-io.h: Likewise.
5791 * gcse.c: Likewise.
5792 * genoutput.c: Likewise.
5793 * loop.c: Likewise.
5794 * postreload.c: Likewise.
5795 * reg-stack.c: Likewise.
5796 * regmove.c: Likewise.
5797 * sched-int.h: Likewise.
5798 * sched-rgn.c: Likewise.
5799 * simplify-rtx.c: Likewise.
5800 * tree-inline.c: Likewise.
5801 * config/m68hc11/m68hc11.h: Likewise.
5802 * config/mmix/mmix.c: Likewise.
5803 * config/mn10300/mn10300.md: Likewise.
5804 * config/sh/sh.h: Likewise.
5805
5806 2003-10-05 Richard Henderson <rth@redhat.com>
5807
5808 * tree-inline.c (remap_type): New.
5809 (remap_decl): Use it. Remap DECL_SIZE*.
5810 (copy_body_r): Use it.
5811 (walk_tree): Walk TREE_TYPE too.
5812 (copy_tree_r): Don't walk subtrees of types.
5813 * tree.c (variably_modified_type_p): Restructure. Consider integer
5814 types with non-const bounds variably modified.
5815
5816 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
5817
5818 * doc/invoke.texi: Fix typos.
5819
5820 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
5821
5822 * fold-const.c: Follow spelling conventions.
5823 * function.c: Likewise.
5824 * config/c4x/c4x.h: Likewise.
5825 * config/c4x/c4x.md: Likewise.
5826 * config/frv/frv.md: Likewise.
5827 * config/rs6000/aix.h: Likewise.
5828 * config/rs6000/linux64.h: Likewise.
5829 * config/xtensa/xtensa.c: Likewise.
5830
5831 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
5832
5833 * c-pretty-print.c: Fix comment formatting.
5834 * cfglayout.c: Likewise.
5835 * cfgloopanal.c: Likewise.
5836 * cppcharset.c: Likewise.
5837 * dbxout.c: Likewise.
5838 * ggc-page.c: Likewise.
5839 * ggc.h: Likewise.
5840 * target.h: Likewise.
5841
5842 2003-10-04 Kelley Cook <kelleycook@wideopenwest.com>
5843
5844 * gengtype-lex.l: Recognize typedef of functions without PARAMS macro.
5845
5846 2003-10-04 Nathanael Nerode <neroden@gcc.gnu.org>
5847
5848 * config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
5849 Convert to ISO C90 function declarations and definitions.
5850
5851 2003-10-04 Zack Weinberg <zack@codesourcery.com>
5852
5853 * libfuncs.h
5854 (LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2)
5855 (LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2)
5856 (LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2)
5857 (LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2)
5858 (LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2)
5859 (LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2)
5860 (LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2)
5861 (eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc)
5862 (lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc)
5863 (nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc)
5864 (lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc)
5865 (gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc)
5866 (unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc)
5867 (gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc
5868 (eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc)
5869 (lttf2_libfunc, letf2_libfunc, unordtf2_libfunc):
5870 Delete.
5871 * optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le)
5872 (OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab)
5873 (le_optab, unord_optab): New.
5874
5875 * optabs.c (prepare_float_lib_cmp): Rewrite. Get the libfuncs
5876 from the code_to_optab table, not a giant switch; use
5877 swap_condition; do widening only if a comparison function that
5878 we can call exists in a wider mode, not if a cmp_optab insn or
5879 libfunc exists in a wider mode; call protect_from_queue
5880 exactly once on each operand.
5881 (init_optabs): Initialize the new optabs, not the deleted libfuncs.
5882
5883 * config/gofast.h, config/ia64/ia64.c, config/mips/mips.c
5884 * config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c:
5885 Set floating point comparison libfuncs using set_optab_libfunc
5886 on the appropriate optab.
5887
5888 * config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo.
5889 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI
5890 selector conditionals.
5891
5892 2003-10-04 Stephane Carrez <stcarrez@nerim.fr>
5893
5894 * config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is
5895 identical to m68hc12 as far as libraries are concerned.
5896
5897 2003-10-04 Eric Botcazou <ebotcazou@libertysurf.fr>
5898
5899 PR c/12446
5900 * c-typeck.c (convert_for_assignment): Issue an error for
5901 array to pointer assignment after default conversion.
5902 (digest_init): Likewise.
5903
5904 2003-10-04 Fariborz Jahanian <fjahanian@apple.com>
5905
5906 * c-decl.c (duplicate_decls): retain DECL_COMMON of old declaration
5907
5908 2003-10-03 Gerald Pfeifer <gerald@pfeifer.com>
5909
5910 * doc/extend.texi (Function Attributes): Fix title of GNU C
5911 Preprocessor manual.
5912 (C++ Extensions): Fix reference to "Predefined Macros" in the
5913 GNU C Preprocessor manual.
5914
5915 2003-10-04 Richard Earnshaw <reanrsha@arm.com>
5916
5917 * doc/extend.texi: Document how GCC estimates and relies on the size
5918 of an asm.
5919
5920 2003-10-04 Richard Sandiford <rsandifo@redhat.com>
5921
5922 * config/mips/mips.c (mips_pad_arg_upward): Pad floating-point
5923 arguments downward for big-endian o64.
5924
5925 2003-10-03 Robert Bowdidge <bowdidge@apple.com>
5926
5927 * ggc-page.c (ggc_pch_write_object): Replace fseek() with fwrite() in
5928 PCH generation, avoiding too-frequent flushes when writing to NFS
5929 file system.
5930
5931 2003-10-03 Ziemowit Laski <zlaski@apple.com>
5932
5933 * objc/objc-act.c (lookup_category): Mark as 'inline'.
5934
5935 2003-10-03 Alexander Malmberg <alexander@malmberg.org>
5936 Ziemowit Laski <zlaski@apple.com>
5937
5938 * objc/objc-act.c (add_method_to_hash_list, lookup_category):
5939 New functions.
5940 (lookup_method_in_hash_lists): New parameter indicating whether
5941 we are messaging 'Class' or 'id'.
5942 (check_duplicates): Likewise; do not assume all methods will
5943 be either class or instance methods.
5944 (generate_category, finish_class): Use lookup_category().
5945 (add_method): Use add_method_to_hash_list(); insert instance
5946 methods of root classes into the global class method hash table.
5947 (add_category): Use lookup_category(); avoid constructing
5948 duplicate categories.
5949 (really_start_method): Add method to corresponding @interface,
5950 if not already there (and if the @interface exists).
5951 (finish_message_expr, finish_objc): Adjust calls to
5952 check_duplicates().
5953
5954 2003-10-03 Roger Sayle <roger@eyesopen.com>
5955
5956 PR optimization/9325, PR java/6391
5957 * fold-const.c (fold_convert): For floating point to integer
5958 conversions, return the maximum/minimum representable integer
5959 value if the real constant overflows the destination type.
5960 * tree.c (real_value_from_int_cst): Allow the type to be NULL,
5961 meaning don't truncate the result to a floating point mode.
5962 Simplify the logic by calling real_from_integer directly.
5963 * simplify-rtx.c (simplify_unary_operation): Implement the
5964 same semantics for folding floating point to integer conversions
5965 in RTL.
5966
5967 2003-10-03 Chris Demetriou <cgd@broadcom.com>
5968
5969 * config/mips/mips.c (mips_emit_prefetch): Restructure
5970 to avoid use of arrays, handle indexed prefetch.
5971 * config/mips/mips.h (ISA_HAS_FP4, ISA_HAS_PREFETCH): Update comments.
5972 (ISA_HAS_PREFETCHX): New deffine.
5973 * config/mips/mips.md ("type" attr): Add new "prefetchx" value,
5974 update comments.
5975 (prefetch_indexed_di, prefetch_indexed_si): New insns.
5976
5977 2003-10-03 Jeff Sturm <jsturm@one-point.com>
5978 Roger Sayle <roger@eyesopen.com>
5979
5980 PR optimization/12289
5981 * calls.c (emit_call_1): Pretend to have popped the arguments
5982 to noreturn and longjmp functions instead of ignoring them.
5983 (expand_call): Don't adjust stack_pointer_dela while
5984 inhibit_defer_pop is set.
5985
5986 2003-10-03 Andreas Schwab <schwab@suse.de>
5987
5988 PR bootstrap/12276
5989 * configure.in: Check for libunwind on the host only if building
5990 a native compiler.
5991 * configure: Regenerated.
5992
5993 2003-10-03 Paolo Carlini <pcarlini@unitus.it>
5994
5995 * unwind-pe.h (read_encoded_value_with_base): Constify u and
5996 its inizialization cast.
5997
5998 2003-10-03 Richard Sandiford <rsandifo@redhat.com>
5999
6000 PR target/12485
6001 * config/mips/mips.c (mips_load_got): GOT accesses can't trap.
6002
6003 2003-10-02 Mark Mitchell <mark@codesourcery.com>
6004
6005 PR optimization/12180
6006 * tree-inline.c (inline_forbidden_p_1): Do not permit inlining of
6007 functions containing calls to __builtin_next_arg.
6008
6009 2003-10-02 Chris Demetriou <cgd@broadcom.com>
6010
6011 * config/mips/mips.c (mips_emit_prefetch): Use operand 3
6012 in instructions being output.
6013 * config/mips/mips.md (prefetch_si_address): Change third
6014 operand's constraint letter to 'I'.
6015 (prefetch_di_address): Likewise.
6016 (prefetch_si, prefetch_di): Set third operand to const0_rtx.
6017
6018 2003-10-02 Zack Weinberg <zack@codesourcery.com>
6019
6020 * system.h: Poison macros obsoleted by earlier patch.
6021 * config/cris/cris.c: C90-ify a function definition.
6022
6023 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
6024
6025 PR/12292
6026 * combine.c (make_field_assignment): Check whether rtx's code
6027 is CONST_INT before using INTVAL.
6028
6029 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
6030
6031 * cgraph.c (cgraph_node): Use INSERT instead of 1 in
6032 htab_find_slot_with_hash.
6033 (cgraph_node_for_identifier): Use NO_INSERT.
6034 (cgraph_remove_node): Use NO_INSERT.
6035 (cgraph_varpool_node): Use INSERT.
6036 (cgraph_varpool_node_for_identifier): Use NO_INSERT.
6037
6038 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
6039
6040 Waldek Hebisch <hebisch@math.uni.wroc.pl>
6041 PR/12072
6042 * varasm.c (compare_constant): Fix thinko.
6043
6044 2003-10-02 Richard Sandiford <rsandifo@redhat.com>
6045
6046 * config/frv/frv.c (frv_issue_rate): New function.
6047 (frv_pack_insns): Use it.
6048 (TARGET_SCHED_ISSUE_RATE): Define.
6049
6050 2003-10-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
6051
6052 * config/mcore/mcore.c: Convert to ISO C90 function declarations
6053 and definitions.
6054 * config/mcore/mcore.h: Likewise.
6055 * config/mcore/mcore-protos.h: Likewise.
6056
6057 2003-10-02 Richard Sandiford <rsandifo@redhat.com>
6058
6059 * config/frv/frv.c (frv_use_dfa_pipeline_interface): New function.
6060 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
6061
6062 2003-10-01 Per Bothner <pbothner@apple.com>
6063
6064 * c-lex.c (src_line): Remove unneeded static variable.
6065 (cb_line_change): Set input_line directly, instead of src_line.
6066 (get_non_padding_token): We no longer need to compensate for the
6067 "horrible things" the C++ front-end does with the current line number,
6068
6069 * cpplib.c (_cpp_pop_buffer): Do generate a _cpp_do_file_change
6070 callback even when popping the main file.
6071 * c-lex.c (fe_file_change): Handle a NULL new_map.
6072 * fix-header.c (cb_file_change): Likewise.
6073 * c-ppoutput.c (pp_file_change): Likewise.
6074
6075 * cppinit.c (cpp_read_main_file): Split into two functions:
6076 Distribute _cpp_stack_file call over the two functions.
6077 (cpp_find_main_file): New function.
6078 Don't call _cpp_do_file_change even if working_directory flag set.
6079 (cpp_push_main_file): New function.
6080 * cppfiles.c (_cpp_find_failed): New helper function.
6081 (find_file): Made non-static and renamed to _cpp_find_file.
6082 (_cpp_stack_file): No longer needed. But note the following.
6083 (stack_file): Made non-static and renamed to _cpp_stack_file.
6084 * fix-header.c (cpp_read_main_file): Replace cpp_read_main_file
6085 call with calls to cpp_find_main_file and cpp_push_main_file.
6086 (search_path_head): If there is no current buffer, use main_file.
6087 * cpphash.h: Update function declarations.
6088 * cpplib.h: Update function declarations.
6089
6090 * c-opts.c (c_common_post_options): Don't call cpp_find_main_file yet.
6091 (c_common_parse_file): No longer need to call cpp_read_main_file
6092 when file_index > 0 (as in multi-file or server compiation).
6093 (finish_options): Change to <built-in> is an LC_ENTER, not LC_RENAME
6094 as this now happens before cpp_push_main_file.
6095 (push_command_line_include): When done with options, pass LC_LEAVE
6096 instead of LC_RENAME to cpp_change_file and finally cpp_push_main_file.
6097 (fe_file_change): Handle NULL new_map, and simplify.
6098 * cpplex.c (_cpp_get_fresh_line): Revert my no-longer-needed
6099 08-28 change, since we're never called with a NULL buffer.
6100 (_cpp_lex_direct): Likewise.
6101 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
6102 Return false if buffer is NULL at end.
6103
6104 * cpplex.c (_cpp_get_fresh_line): Return value now just depends on
6105 whether pfile->buffer is NULL after pop, ignoring return_at_eof.
6106 * cpphash.h (struct cpp_buffer): Remove unused return_at_eof field.
6107 * cpplib.c (cpp_push_buffer): Since we no longer set return_at_eof,
6108 remove the unused return_at_eof parameter.
6109 * cppfiles.c, cpplib.c, cppmacro.c, cpppch.c, fix-header.c:
6110 Update callers of cpp_push_buffer.
6111
6112 2003-10-01 Zack Weinberg <zack@codesourcery.com>
6113
6114 * target.h (init_libfuncs): New hook.
6115 * target-def.h: Default TARGET_INIT_BUILTINS and
6116 TARGET_INIT_LIBFUNCS to hook_void_void. Add
6117 TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER.
6118 * builtins.c (default_init_builtins): Delete.
6119 * expr.h (default_init_builtins): Delete prototype.
6120 * doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST.
6121 Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL.
6122 Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL,
6123 DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL,
6124 MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL,
6125 and UMODDI3_LIBCALL,
6126
6127 * Makefile.in (optabs.o): Depends on target.h.
6128 * defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL.
6129 * optabs.c: Include target.h.
6130 (prepare_float_lib_cmp): No need for #ifdef around use of
6131 FLOAT_LIB_COMPARE_RETURNS_BOOL.
6132 (set_optab_libfunc): New function.
6133 (init_optabs): Delete use of all *_LIBCALL defines.
6134 Call targetm.init_libfuncs not INIT_TARGET_OPTABS.
6135 * optabs.h: Prototype set_optab_libfunc.
6136
6137 * config.gcc: Remove all references to pa/long_double.h,
6138 ia64/hpux_longdouble.h, and gofast.h.
6139 (mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST
6140 to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file.
6141
6142 * config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c
6143 * config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c
6144 * config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c
6145 * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
6146 * config/sparc/sparc.c, config/vax/vax.c:
6147 Provide a definition for TARGET_INIT_LIBFUNCS. Where
6148 necessary, include optabs.h, libfuncs.h, and/or config/gofast.h.
6149
6150 * config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h
6151 * config/avr/avr.h, config/cris/cris.h, config/frv/frv.h
6152 * config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h
6153 * config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h
6154 * config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h
6155 * config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h
6156 * config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h
6157 * config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS,
6158 INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros.
6159
6160 * config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0.
6161 Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
6162 * config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE,
6163 HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
6164 * config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete.
6165
6166 * config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC.
6167 * config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and
6168 SUN_INTEGER_MULTIPLY_64 to 0.
6169 * config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and
6170 SUN_INTEGER_MULTIPLY_64 to 1.
6171 * config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and
6172 SUN_INTEGER_MULTIPLY_64 to 0.
6173 * config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h:
6174 Define US_SOFTWARE_GOFAST.
6175 * config/vax/vax.h: Default TARGET_ELF to 0.
6176 * config/vax/elf.h: Redefine TARGET_ELF to 1.
6177
6178 * config/gofast.h: Don't define any macros here. Provide one
6179 static function, gofast_maybe_init_libfuncs, which does what
6180 INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST
6181 is already defined. Do not clear negation libfuncs. Do
6182 not mess with HFmode, XFmode, or TFmode libfuncs.
6183
6184 * config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME.
6185
6186 2003-10-01 Kelley Cook <kelleycook@wideopenwest.com>
6187
6188 PR C/12466
6189 * c-parse.in (parmlist_2): Mark declaration with an ellipsis as ISO C.
6190
6191 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6192
6193 * config/mips/xm-iris5.h: Remove, unnecessary.
6194 * config.build (mips-sgi-irix5*): Remove.
6195 (mips-sgi-irix6*o32): Likewise.
6196 * config.gcc (mips-sgi-irix6*o32): Remove xm_file.
6197 (mips-sgi-irix5cross64): Likewise.
6198 (mips-sgi-irix5*): Likewise.
6199 * config.host (mips-sgi-irix5*): Remove.
6200 (mips-sgi-irix6*o32): Likewise.
6201
6202 2003-10-01 Zack Weinberg <zack@codesourcery.com>
6203
6204 * dbxout.c (dbxout_fptype_value): Delete.
6205 (dbxout_type): Emit R3 for all COMPLEX_TYPEs.
6206
6207 2003-10-01 Alexandre Oliva <aoliva@redhat.com>
6208
6209 * output.h (compute_reloc_for_constant): Declare.
6210 * varasm.c (compute_reloc_for_constant): Extract from...
6211 (output_addressed_constants): ... here. Adjust all callers.
6212
6213 2003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6214
6215 * aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
6216 * configure: Rebuilt.
6217
6218 2003-10-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6219
6220 * fold-const.c (make_range): When handling unsigned, don't reverse
6221 range if high bound is zero.
6222
6223 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
6224
6225 * config/frv/frv.h (PREDICATE_CODES): Added
6226 condexec_si_media_operator, condexec_sf_add_operator and
6227 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
6228 and condexec_sf_unary_operator.
6229
6230 2003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6231
6232 * aclocal.m4: Add ultrix* to /dev/zero blacklist.
6233 * configure: Rebuilt.
6234
6235 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6236
6237 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.
6238 Allow override.
6239 * doc/tm.texi (MUST_USE_SJLJ_EXCEPTIONS): Document.
6240
6241 2003-09-23 David S. Miller <davem@redhat.com>
6242
6243 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine
6244 before redefining.
6245 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
6246
6247 2003-10-01 Steven Bosscher <steven@gcc.gnu.org>
6248
6249 * config/cris/cris-protos.h, config/cris/cris.c: Convert to ISO
6250 C90 function declarations and definitions.
6251
6252 2003-10-01 Nathanael Nerode <neroden@gcc.gnu.org>
6253
6254 * config.gcc (cris-*-linux*): Revert mistaken commit.
6255
6256 2003-10-01 Eric Botcazou <ebotcazou@libertysurf.fr>
6257
6258 PR optimization/11753
6259 * config/sparc/sparc.md (length attribute) [fcc branch]: Add 1 to
6260 the length in the non-V9 case.
6261
6262 2003-09-30 Richard Henderson <rth@redhat.com>
6263
6264 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor
6265 DWARF_ALT_FRAME_RETURN_COLUMN.
6266 * unwind-dw2.c (dwarf_reg_size_table): Expand by one.
6267 (_Unwind_GetGR, _Unwind_SetGR): Validate lookup column.
6268 (uw_frame_state_for): Return end-of-stack for null return address.
6269 * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Add.
6270
6271 * config/alpha/alpha.c (alpha_sa_mask): Add r31 for eh_return.
6272 (alpha_expand_prologue): Store a zero for it.
6273 (alpha_expand_epilogue): Don't reload it.
6274 * config/alpha/alpha.h (DWARF_ALT_FRAME_RETURN_COLUMN): New.
6275 * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Use column 64
6276 for the sigframe return address.
6277
6278 2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
6279
6280 * sdbout.c: Convert to ISO C90 prototypes.
6281 * objc/objc-act.c: Likewise.
6282
6283 2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
6284
6285 * config/i386/cygwin1.c: Convert to ISO C90 prototypes.
6286 * config/i386/winnt.c: Likewise.
6287 * config/i386/cygming.h: Likewise.
6288
6289 2003-09-30 Kazu Hirata <kazu@cs.umass.edu>
6290
6291 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
6292 (A ^ B) - B for any B.
6293
6294 2003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
6295
6296 * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
6297 powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto.
6298
6299 2003-09-30 Richard Earnshaw <rearnsha@arm.com>
6300
6301 * arm/ieee754-sf.S: Tidy formatting.
6302
6303 2003-09-30 Nicolas Pitre <nico@cam.org>
6304
6305 * arm/lib1funcs.asm (ARM_DIV_MOD_BODY): Split into ARM_DIV_BODY
6306 and ARM_MOD_BODY.
6307 (ARM_MOD_BODY): Rewritten. added clz insns for __ARM_ARCH__ >= 5.
6308 (ARM_DIV_BODY): Added clz insns for __ARM_ARCH__ >= 5,
6309 added better divisor alignment in the other case.
6310 (ARM_DIV2_ORDER): Added, finds the order of a single bit divisor.
6311 (__divsi3, __udivsi3, __modsi3, __umodsi3): rewritten using the
6312 macros above, add fast exits for divisor >= dividend, etc.
6313
6314 2003-09-30 Nicolas Pitre <nico@cam.org>
6315
6316 * arm/ieee754-df.S: Split compilation of fixunsdfsi from
6317 L_fixdfsi target.
6318 * arm/t-arm-elf (LIB1ASMFUNCS): Add _fixunsdfsi.
6319
6320 2003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
6321
6322 * config.gcc: Default use_fixproto to 'no'.
6323
6324 2003-09-30 Richard Sandiford <rsandifo@redhat.com>
6325
6326 PR optimization/12345
6327 * config/mips/mips-protos.h (mips_restore_gp): Remove.
6328 (mips_gp_save_slot): Declare.
6329 * config/mips/mips.c (mips_restore_gp): Remove in favor of...
6330 (mips_gp_save_slot): ...this new function.
6331 * config/mips/mips.md (exception_receiver): Use mips_gp_save_slot
6332 and mips_output_move to generate the output template.
6333 (call_internal): Force splitting if TARGET_SPLIT_CALLS. Don't emit
6334 a gp load after a noreturn call. Load the gp using a move rather
6335 than an exception_receiver pattern.
6336 (call_value_internal, call_value_multiple_internal): Likewise.
6337 (call_split, call_value_split, call_value_multiple_split): Clobber $28.
6338
6339 2003-09-30 Carlo Wood <carlo@alinoe.com>
6340
6341 PR debug/12319
6342 * cfglayout.c (insn_scope): Use prologue_locator and
6343 epilogue_locator; return the outer function scope for
6344 pro- and epilogue insns.
6345
6346 2003-09-29 Zack Weinberg <zack@codesourcery.com>
6347
6348 * objc/objc-act.c (encode_type): Encode INTEGER_TYPEs and
6349 REAL_TYPEs based on the bitsize of the type's mode, not the
6350 mode directly.
6351
6352 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6353
6354 * dwarf2out.c (default_eh_frame_section): Split into ...
6355 (named_section_eh_frame_section, collect2_eh_frame_section): ... new
6356 functions.
6357 * output.h (named_section_eh_frame_section): Declare.
6358 (collect2_eh_frame_section): Likewise.
6359
6360 2003-09-29 Zack Weinberg <zack@codesourcery.com>
6361
6362 * real.c (real_sqrt): Use get_canonical_qnan directly.
6363
6364 * dwarf2out.c (add_const_value_attribute): Use real_to_target.
6365
6366 * varasm.c (assemble_real): Use real_to_target directly,
6367 calculate the number of significant elements of the result
6368 array and write them out in a loop, instead of using a giant
6369 switch statement to pick the correct REAL_VALUE_TO_TARGET_*
6370 macro.
6371
6372 2003-09-29 Jan Hubicka <jh@suse.cz>
6373
6374 PR c++/12175
6375 * varasm.c (notice_global_symbol): Discard external symbols.
6376
6377 PR optimization/12286
6378 * gcov-io.c (gcov_read_words): Fix memmove call.
6379 * profile.c (compute_branch_probabilities): Add extra sanity checks.
6380
6381 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6382
6383 * config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like
6384 Solaris 7-9.
6385
6386 * fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by
6387 wildcards which explicitly match micro versions.
6388 * fixinc/fixincl.x: Regenerate.
6389
6390 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
6391
6392 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
6393 (A ^ B) - B, where B is any power of 2 minus 1.
6394
6395 2003-09-29 Jan Hubicka <jh@suse.cz>
6396
6397 * libgcov.c (gcov_exit): Fix two pastos.
6398
6399 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
6400
6401 * config/h8300/h8300.md (*tst_extzv_1_n): Combine with the
6402 define_split immediately below to form define_insn_and_split.
6403
6404 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
6405
6406 * config/h8300/h8300.md (*tstsi_variable_bit): New.
6407 (*tstsi_variable_bit_qi): Likewise.
6408
6409 2003-09-28 Phil Edwards <phil@codesourcery.com>
6410
6411 * doc/cppopts.texi: Use 'dashMP' instead of '-MP' as a cross-
6412 reference name.
6413
6414 2003-09-28 Richard Henderson <rth@redhat.com>
6415
6416 * c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
6417 file and line separately.
6418
6419 2003-09-28 Ulrich Weigand <uweigand@de.ibm.com>
6420
6421 * config/s390/s390.md ("*adddi3_carry1_cc", "*adddi3_carry1_cconly",
6422 "*adddi3_carry2_cc", "*adddi3_carry2_cconly", "*subdi3_borrow_cc",
6423 "*subdi3_borrow_cconly"): New insns.
6424 ("*addsi3_sub", "*subsi3_sub"): Remove.
6425 ("*subdi3_cc", *subdi3_cconly"): Use only if TARGET_64BIT.
6426 ("*subsi3_cc"): Fix op_type attribute.
6427
6428 2003-09-28 Richard Henderson <rth@redhat.com>
6429
6430 * stmt.c (expand_asm_operands): Take a location_t, instead of
6431 individual file and line.
6432 * c-typeck.c (c_expand_asm_operands): Likewise.
6433 * tree.h (expand_asm_operands): Update decl.
6434 * c-common.h (c_expand_asm_operands): Likewise.
6435 * c-semantics (genrtl_asm_stmt): Update call.
6436
6437 2003-09-28 Philip Blundell <philb@gnu.org>
6438
6439 * config/arm/arm.c (legitimize_pic_address): Check
6440 SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
6441 (arm_assemble_integer): Likewise.
6442
6443 2003-09-28 Steven Bosscher <steven@gcc.gnu.org>
6444
6445 * config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
6446 config/c4x/c4x-c.c, config/c4x/c4x-protos.h, config/c4x/c4x.c,
6447 config/c4x/c4x.h:
6448 Convert to ISO C90 function declarations and definitions.
6449
6450 2003-09-28 Steven Bosscher <steven@gcc.gnu.org>
6451
6452 * config/stormy16/stormy16.c, config/stormy16/stormy16-protos.h:
6453 Convert to ISO C90 function declarations and definitions.
6454
6455 2003-09-28 Richard Sandiford <rsandifo@redhat.com>
6456
6457 * config/mips/mips.c (mips_constant_info): Add reloc field.
6458 (mips_classify_constant): Initialize it. Always set SYMBOL to the
6459 underlying symbol, not to an unspec.
6460 (mips_delegitimize_address, print_operand): Clean up accordingly.
6461
6462 2003-09-28 Richard Sandiford <rsandifo@redhat.com>
6463
6464 * config/mips/mips-protos.h (mips16_gp_pseudo_reg): Remove.
6465 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Remove orphaned comment.
6466 * config/mips/mips.c (mips_reloc_offset_ok_p): New function.
6467 (mips_classify_constant): Use it.
6468 (mips_splittable_symbol_p): Add an offset argument.
6469 (mips_classify_address): Adjust call accordingly.
6470 (mips_legitimize_symbol): Handle sdata references with LO_SUM rather
6471 than a relocation unspec. Update call to mips_splittable_symbol_p.
6472 Generalize the code that copes with symbols + invalid offsets.
6473 (print_operand): Allow '%R' to be applied to small data addresses.
6474 (mips_reloc_string): Remove RELOC_GPREL16.
6475 (mips_sdata_pointer): Renamed from mips16_gp_pseudo_reg. Return $gp
6476 for TARGET_EXPLICIT_RELOCS. Return null if we can't use gp-relative
6477 relocation operators.
6478 * config/mips/mips.md (RELOC_GPREL16): Remove. Shuffle other reloc
6479 constants accordingly.
6480
6481 2003-09-27 Roger Sayle <roger@eyesopen.com>
6482
6483 * toplev.c (flag_evaluation_order): New global variable.
6484 * flags.h (flag_evaluation_order): Prototype here.
6485 * expr.c (expand_operands): If we need to preserve observable
6486 evaluation order, protect exp1 from clobbering exp0's result.
6487
6488 2003-09-28 Andreas Jaeger <aj@suse.de>
6489
6490 * c-decl.c (finish_function): Convert definition to ISO C90.
6491 * ifcvt.c (mark_loop_exit_edges): Likewise.
6492 * ra-rewrite.c (emit_colors): Likewise.
6493
6494 2003-09-27 Nathanael Nerode <neroden@gcc.gnu.org>
6495
6496 * config.gcc (alpha*-dec-osf[45]*): Disable fixproto.
6497 * config.gcc (arm*-*-uclinux*): Disable fixproto.
6498 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
6499 powerpc-*-eabialtivec*): Disable fixproto.
6500
6501 2003-09-27 Eric Botcazou <ebotcazou@libertysurf.fr>
6502
6503 PR optimization/12340
6504 * loop.h (struct induction): Document the new semantics
6505 of the 'same' field for bivs.
6506 * unroll.c (biv_total_increment): Don't count the same
6507 biv increment several times.
6508 (loop_iterations) [GENERAL_INDUCT]: Likewise.
6509
6510 2003-09-27 Graham Stott <graham.stott@btinternet.com>
6511
6512 * unroll.c (loop_interations)[GT]: Add missing break.
6513
6514 2003-09-27 Kelley Cook <kcook@gcc.gnu.org>
6515
6516 * config/chorus.h, config/darwin-c.c, config/darwin-protos.h,
6517 config/darwin.c, config/darwin.h, config/dbx.h, config/dbxcoff.h,
6518 config/dbxelf.h, config/elfos.h, config/fp-bit.h,
6519 config/freebsd-nthr.h, config/freebsd-spec.h, config/freebsd.h,
6520 config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
6521 config/freebsd6.h, config/netbsd-aout.h, config/netbsd-elf.h,
6522 config/netbsd.h, config/netware.h, config/openbsd-oldgas.h,
6523 config/openbsd.h, config/ptx4.h, config/alpha/alpha-protos.h,
6524 config/alpha/alpha.c, config/alpha/alpha.h, config/alpha/alpha.md,
6525 config/alpha/elf.h, config/alpha/ev4.md, config/alpha/ev5.md,
6526 config/alpha/ev6.md, config/alpha/freebsd.h, config/alpha/linux-elf.h,
6527 config/alpha/linux.h, config/alpha/netbsd.h, config/alpha/openbsd.h,
6528 config/alpha/osf.h, config/alpha/osf5.h, config/alpha/unicosmk.h,
6529 config/alpha/vms-cc.c, config/alpha/vms-crt0-64.c,
6530 config/alpha/vms-crt0.c, config/alpha/vms-dwarf2.asm,
6531 config/alpha/vms-dwarf2eh.asm, config/alpha/vms-ld.c,
6532 config/alpha/vms-psxcrt0-64.c, config/alpha/vms-psxcrt0.c,
6533 config/alpha/vms.h, config/alpha/vms64.h, config/alpha/vms_tramp.asm,
6534 config/alpha/xm-vms.h, config/arc/arc-modes.def,
6535 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
6536 config/arc/arc.md, config/arc/initfini.c, config/arc/lib1funcs.asm,
6537 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
6538 config/avr/avr.md, config/d30v/d30v-protos.h, config/d30v/d30v.h,
6539 config/d30v/d30v.md, config/fr30/fr30-protos.h, config/fr30/fr30.c,
6540 config/fr30/fr30.h, config/fr30/fr30.md, config/fr30/lib1funcs.asm,
6541 config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
6542 config/frv/frv-abi.h, config/frv/frv-asm.h, config/frv/frv-modes.def,
6543 config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
6544 config/frv/frv.md, config/frv/frvbegin.c, config/frv/frvend.c,
6545 config/frv/lib1funcs.asm, config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
6546 config/h8300/parityhi2.c, config/h8300/popcounthi2.c,
6547 config/i370/i370-c.c, config/i370/i370-protos.h, config/i370/i370.c,
6548 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
6549 config/i370/mvs.h, config/i370/oe.h, config/i386/darwin.h,
6550 config/i960/i960-c.c, config/i960/i960-coff.h,
6551 config/i960/i960-modes.def, config/i960/i960-protos.h,
6552 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
6553 config/i960/rtems.h, config/ia64/elf.h, config/ia64/ia64.h,
6554 config/m32r/initfini.c, config/m32r/m32r-protos.h, config/m32r/m32r.c,
6555 config/m32r/m32r.h, config/m32r/m32r.md, config/m68hc11/larith.asm,
6556 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
6557 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
6558 config/m68hc11/m68hc12.h, config/m68k/coff.h, config/m68k/crti.s,
6559 config/m68k/crtn.s, config/m68k/hp320.h, config/m68k/hp320base.h,
6560 config/m68k/lb1sf68.asm, config/m68k/linux.h, config/m68k/m68020-elf.h,
6561 config/m68k/m68k-aout.h, config/m68k/m68k-none.h,
6562 config/m68k/m68k-protos.h, config/m68k/m68k.c, config/m68k/m68k.h,
6563 config/m68k/m68k.md, config/m68k/m68kelf.h, config/m68k/m68kv4.h,
6564 config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
6565 config/m68k/rtemself.h, config/m68k/sgs.h, config/mcore/lib1.asm,
6566 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h,
6567 config/mcore/mcore-protos.h, config/mcore/mcore.c,
6568 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
6569 config/mips/elforion.h, config/mips/iris5.h, config/mips/iris6.h,
6570 config/mips/iris6gld.h, config/mips/irix6-libc-compat.c,
6571 config/mips/linux.h, config/mips/mips-protos.h, config/mips/mips.c,
6572 config/mips/mips.h, config/mips/mips.md, config/mips/netbsd.h,
6573 config/mips/openbsd.h, config/mips/r3900.h, config/mips/rtems.h,
6574 config/mips/vr.h, config/mn10300/linux.h,
6575 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
6576 config/mn10300/mn10300.h, config/mn10300/mn10300.md,
6577 config/ns32k/__unorddf2.c, config/ns32k/__unordsf2.c,
6578 config/ns32k/netbsd.h, config/ns32k/ns32k-protos.h,
6579 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/ns32k/ns32k.md,
6580 config/pdp11/2bsd.h, config/pdp11/pdp11-modes.def,
6581 config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
6582 config/pdp11/pdp11.h, config/pdp11/pdp11.md, config/rs6000/biarch64.h,
6583 config/rs6000/default64.h, config/sh/coff.h, config/sh/crt1.asm,
6584 config/sh/crti.asm, config/sh/crtn.asm, config/sh/elf.h,
6585 config/sh/embed-elf.h, config/sh/linux.h, config/sh/little.h,
6586 config/sh/netbsd-elf.h, config/sh/rtems.h, config/sh/rtemself.h,
6587 config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
6588 config/sh/sh.md, config/sh/sh64.h, config/sh/shmedia.h,
6589 config/sh/sshmedia.h, config/sh/ushmedia.h, config/sparc/pbd.h,
6590 config/sparc/sparc.h, doc/install-old.texi, fixinc/fixinc.ptx,
6591 fixinc/fixinc.svr4: GNU CC -> GCC.
6592
6593 2003-09-26 Loren James Rittle <ljrittle@acm.org>
6594
6595 * objc/objc-act.c (tm_p.h): Tweak order.
6596 * objc/Make-lang.in (objc/objc-act.o): Add $(TM_P_H).
6597
6598 2003-09-26 Nathanael Nerode <neroden@gcc.gnu.org>
6599
6600 * config.gcc (hppa*64*-*-linux* | parisc*64*-*-linux*):
6601 Include t-slibgcc-elf-ver and t-linux in tmake_file.
6602 * config.gcc (hppa*64*-*-linux* | parisc*64-*-linux*):
6603 Disable fixproto.
6604 * config.gcc (i960-*-coff*, m68k-*-aout*, sparclite-*-coff*):
6605 Disable fixproto.
6606 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*,
6607 sparcv9-*-solaris2*, sparc-*-solaris2*): Disable fixproto.
6608
6609 * config/i386/unix.h: Remove (unused) DEFAULT_ASSEMBLER_DIALECT.
6610
6611 2003-09-26 Loren James Rittle <ljrittle@acm.org>
6612
6613 * config/i386/i386.h (ix86_return_in_memory): Revert my last patch.
6614 * objc/objc-act.c (tm_p.h): Include.
6615
6616 2003-09-26 Per Bothner <pbothner@apple.com>
6617
6618 * dbxout.c (dbxout_typedefs): Output typedefs in forward order.
6619 No longer any need to reverse by recursion.
6620
6621 2003-09-26 Roger Sayle <roger@eyesopen.com>
6622 Richard Henderson <rth@redhat.com>
6623
6624 PR optimization/11741
6625 * gcse.c (pre_insert_copy_insn): Tweak the logic for finding the
6626 appropriate set to match that in hash_scan_insn. Fall back to
6627 the original copy method, if we can't validate changing insn.
6628 (pre_delete): Only delete instructions that have a single_set,
6629 instead of aborting when we encounter an PARALLEL insn with more
6630 then one SET.
6631
6632 2003-09-26 Andreas Krebbel <krebbel1@de.ibm.com>
6633
6634 * config/s390/s390.md ("builtin_setjmp_setup"): Insn deleted.
6635 ("builtin_longjmp"): Insn deleted.
6636 ("save_stack_nonlocal"): Save literal pool base pointer behind
6637 backchain and stack pointer.
6638 ("restore_stack_nonlocal"): Restore literal pool base pointer.
6639 * config/s390/s390.h (STACK_SAVEAREA_MODE): Double size of
6640 the stack save area for the nonlocal goto case.
6641
6642 2003-09-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6643
6644 PR bootstrap/12358
6645 * pa.c (output_bvb): Fix typo.
6646
6647 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
6648
6649 * expmed.c (store_bit_field): Don't search for an integer mode
6650 unless we need the result.
6651
6652 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
6653
6654 * expr.c (emit_move_insn_1): If there is no move pattern for the
6655 original mode, try using a pattern for the corresponding integer mode.
6656
6657 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
6658
6659 PR middle-end/9200
6660 * combine.c (if_then_else_cond): Tighten mode check.
6661
6662 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
6663
6664 * cppcharset.c, cpphash.h: Rename 'struct strbuf' to
6665 'struct _cpp_strbuf'.
6666
6667 * config/i386/netbsd-elf.h, config/i386/netbsd64.h,
6668 config/i386/netware.h, config/i386/nto.h, config/i386/openbsd.h,
6669 config/i386/pentium.md, config/i386/pmmintrin.h, config/i386/ppro.md,
6670 config/i386/ptx4-i.h, config/i386/rtemself.h, config/i386/sco5.h,
6671 config/i386/sol2.h, config/i386/svr3gas.h, config/i386/sysv3.h,
6672 config/i386/sysv4-cpp.h, config/i386/sysv4.h, config/i386/sysv5.h,
6673 config/i386/unix.h, config/i386/uwin.h, config/i386/vsta.h,
6674 config/i386/xm-cygwin.h, config/i386/xm-djgpp.h,
6675 config/i386/xm-mingw32.h, config/i386/xmmintrin.h: Replace
6676 "GNU CC", "GNU compiler", and "GNU C-compiler" with "GCC".
6677 * config/i386/i386-aout.h, config/i386/i386-coff.h,
6678 config/i386/i386-interix.h, config/i386/i386-interix3.h,
6679 config/i386/i386-modes.def, config/i386/i386-protos.h,
6680 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
6681 config/i386/i386elf.h, config/i386/k6.md, config/i386/kaos-i386.h,
6682 config/i386/linux-aout.h, config/i386/linux.h, config/i386/linux64.h,
6683 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
6684 config/i386/mmintrin.h, config/i386/moss.h: GNU CC -> GCC.
6685 "GNU compiler" -> GCC.
6686 * config/i386/att.h, config/i386/beos-elf.h, config/i386/biarch64.h,
6687 config/i386/bsd.h, config/i386/crtdll.h, config/i386/cygming.h,
6688 config/i386/cygwin.h, config/i386/cygwin1.c, config/i386/cygwin2.c,
6689 config/i386/darwin.h, config/i386/djgpp.h, config/i386/emmintrin.h,
6690 config/i386/freebsd-aout.h, config/i386/freebsd.h,
6691 config/i386/freebsd64.h, config/i386/gas.h: GNU CC -> GCC.
6692
6693 2003-09-25 Kelley Cook <kelleycook@wideopenwest.com>
6694
6695 * cgraph.c (dump_cgraph): Don't output newline before dump. Add in
6696 "local" to the callgraph dump. Output "after inlining" earlier.
6697 * cgraphunit.c: Fix dumpfile whitespace and commonize headers of the
6698 callgraph dumps. Correct misspellings.
6699 (cgraph_decide_inlining): Output number of insns before inlining.
6700 Output the calling function into which a function is inlined.
6701 (cgraph_decide_small_functions): Format dump file like always_inline.
6702
6703 2003-09-25 Loren James Rittle <ljrittle@acm.org>
6704
6705 * config/i386/i386.h (ix86_return_in_memory): Add prototype.
6706
6707 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
6708
6709 * config/s390/s390.c (s390_emit_prologue): Simplify accesses to
6710 FPR slots in the save area.
6711 (s390_emit_epilogue): Likewise.
6712
6713 2003-09-25 Richard Sandiford <rsandifo@redhat.com>
6714
6715 * cgraph.h (cgraph_remove_edge): Declare.
6716 * cgraph.c (cgraph_remove_edge): Make extern.
6717 * cgraphunit.c (cgraph_finalize_function): Call cgraph_remove_edge
6718 instead of cgraph_remove_call.
6719
6720 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
6721
6722 * objc/objc-act.c (gen_declaration_1): Fix printf format.
6723
6724 2003-09-25 Richard Earnshaw <rearnsha@arm.com>
6725
6726 * arm.c (all_cores): arm710t, arm720t and arm740t are all based on the
6727 arm7tdmi core.
6728
6729 2003-09-25 Ziemowit Laski <zlaski@apple.com>
6730
6731 * config/darwin-protos.h (objc_image_info_section):
6732 New prototype.
6733
6734 2003-09-25 Ziemowit Laski <zlaski@apple.com>
6735
6736 * Makefile.in (stub-objc.o): Depend on $(GGC_H).
6737
6738 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
6739
6740 * config.gcc: Get rid of more gratuitious 'x'es. Actually allow
6741 tsc701 as a --with-cpu, --with-tune setting for sparc.
6742
6743 2003-09-25 Ziemowit Laski <zlaski@apple.com>
6744
6745 * c-parse.in (objc_try_stmt): Do not specify a %type.
6746
6747 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
6748
6749 * config.gcc: New 'widely ported system' clause for rtems.
6750 Set thread file there, not in individual clauses.
6751
6752 2003-09-25 Richard Sandiford <rsandifo@redhat.com>
6753
6754 PR target/6222
6755 * config/mips/mips.c (mips_va_arg): Handle arguments that must be
6756 passed on the stack.
6757
6758 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
6759
6760 * config.gcc (widely ported systems section): Mostly alphabetize
6761 by system. Comment the case where we can't.
6762 * config.gcc (widely ported systems section): Reindent and clean up.
6763
6764 * config.gcc: Remove some unnecessary uses of 'x' in case statements.
6765 Actually allow ep9312 as an arm --with-arch setting.
6766
6767 * config.gcc (*-hpux11): Disable fixproto.
6768
6769 2003-09-24 Phil Edwards <phil@codesourcery.com>
6770
6771 PR pch/12112
6772 * gcc/cppfiles.c (pch_open_file): Return based on combined
6773 result of all files.
6774 (validate_pch): Return validate flag for current file.
6775
6776 2003-09-24 Roger Sayle <roger@eyesopen.com>
6777
6778 PR bootstrap/12358
6779 * fold-const.c (tree_swap_operands_p): Only reorder operands when
6780 one of the operands is constant.
6781
6782 2003-09-24 Ziemowit Laski <zlaski@apple.com>
6783
6784 MERGE OF objc-improvements-branch into MAINLINE:
6785 * Makefile.in (C_OBJS): Add in stub-objc.o.
6786 (c-parse.y): Change sed demarcations to begin with '@@'.
6787 (stub-objc.o): New rule.
6788 * c-common.c (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
6789 flag_replace_objc_classes): New flags.
6790 * c-common.h (RID_AT_THROW, RID_AT_TRY, RID_AT_CATCH, RID_AT_FINALLY,
6791 RID_AT_SYNCHRONIZED): New keywords.
6792 (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
6793 flag_replace_objc_classes): New flags.
6794 (lookup_interface, is_class_name, objc_is_object_ptr, objc_check_decl,
6795 objc_comptypes, objc_message_selector, lookup_objc_ivar,
6796 get_current_scope, objc_mark_locals_volatile): New prototypes,
6797 some moved from c-tree.h.
6798 * c-decl.c (get_current_scope, objc_mark_locals_volatile): New functions.
6799 (finish_decl): Adjust where objc_check_decl() gets called.
6800 * c-lang.c (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
6801 objc_comptypes, objc_message_selector, lookup_objc_ivar): Remove stubs.
6802 * c-opts.c (c_common_handle_option): Add handling for flag_nil_receivers,
6803 flag_objc_exceptions, flag_replace_objc_classes and flag_zero_link.
6804 * c-parse.in: Replace 'ifc' and 'end ifc' sed markers with '@@ifc' and
6805 '@@end_ifc', respectively.
6806 (AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY, AT_SYNCHRONIZED): New %tokens.
6807 (objc_try_stmt, superclass, class_ivars, objc_try_catch-stmt,
6808 objc_finally_block): New rules.
6809 (component_decl_list2): Clean up semantic action for @defs construct.
6810 (component_decl, c99_block_start): Remove call to add_objc_decls().
6811 (poplevel): Add call to objc_clear_super_receiver().
6812 (stmt): Add rules for @throw, @try..@catch..@finally and @synchronized
6813 constructs.
6814 (classdef, methodprotolist): Clean up/simplify.
6815 (methodprotolist2): Eliminate.
6816 (methodproto): Call add_method() instead of add_class_method() and
6817 add_instance_method().
6818 (receiver): Add TYPENAME production.
6819 (reswords): Add "throw", "try", "catch", "finally" and "synchronized".
6820 (rid_to_yy): Add AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY and
6821 AT_SYNCHRONIZED.
6822 * c-tree.h (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
6823 objc_comptypes, objc_message_selector)
6824 * c-typeck.c (comptypes): In ObjC mode, call objc_comptypes() for
6825 struct and pointer types.
6826 (build_c_cast): Do not discard ObjC protocol qualifiers.
6827 (convert_for_assignment): Cache result of comp_target_types() instead
6828 of calling it more than once.
6829 * c.opt (fnext-runtime): Update description string.
6830 (fnil-receivers, fobjc-exceptions, freplace-objc-classes, fzero-link):
6831 New ObjC/ObjC++-specific flags.
6832 * function.h (GCC_FUNCTION_H): Header guard.
6833 * gengtype-lex.l: Teach lexer about new @@... sed demarcations.
6834 * stub-objc.c: New file, to be used to satisfy references to ObjC
6835 functions by the C and C++ front-ends.
6836 * config/darwin.c (_OBJC_IMAGE_INFO): New global metadata.
6837 * config/darwin.h (FUNCTION): Add in_objc_image_info.
6838 (SECTION_FUNCTION): Add objc_image_info_section.
6839 * doc/invoke.texi: Link to GCC web site for Objective-C information.
6840 (-fconstant-string-class): Update documentation.
6841 (-fno-nil-receivers, -fobjc-exceptions, -freplace-objc-classes,
6842 -fzero-link): New documentation.
6843 * objc/Make-lang.in (objc-parse.y): Change sed demarcations to begin
6844 with '@@'.
6845 * objc/lang-specs.h (@objective-c-header): Fix -E spec.
6846 * objc/objc/objc-act.c: Replace TYPE_NAME with OBJC_TYPE_NAME
6847 throughout; provide casts for return values from memory allocation
6848 functions (xmalloc, alloca, ggc_alloc, etc.).
6849 (OBJC_VOID_AT_END): New macro.
6850 (rtl.h): Do not #include any more.
6851 (STRING_OBJECT_GLOBAL_NAME): Replaced with STRING_OBJECT_GLOBAL_FORMAT.
6852 (TAG_MSGSEND_STRET, TAG_MSGSENDSUPER_STRET, TAG_MSGSEND_NONNIL,
6853 TAG_MSGSEND_NONNIL_STRET, TAG_EXCEPTIONEXTRACT, TAG_EXCEPTIONTRYENTER,
6854 TAG_EXCEPTIONTRYEXIT, TAG_EXCEPTIONMATCH, TAG_EXCEPTIONTHROW,
6855 TAG_SYNCENTER, TAG_SYNCEXIT): New NeXT runtime entry points.
6856 (struct val_stack, catch_count_stack, exc_binding_stack, val_stack_push,
6857 val_stack_pop): New.
6858 (objc_check_decl): Fix precondition for error message, along with
6859 the message itself.
6860 (lookup_and_install_protocols): Remove nonexistent protocols from
6861 protocol list instead of returning error_mark_node.
6862 (create_builtin_decl): Use DECL_ARTIFICIAL only for VAR_DECLs.
6863 (setup_string_decl): Generalize to use STRING_OBJECT_GLOBAL_FORMAT.
6864 (synth_module_prologue): General clean-up; construct NeXT-specific
6865 runtime API prototypes if needed.
6866 (build_string_class_template): Remove.
6867 (check_string_class_template, string_layout_checked): New.
6868 (build_objc_string_object): Generalize to work with
6869 -fconstant-string-class.
6870 (build_objc_symtab_template): Fix layout for the NeXT runtime.
6871 (build_metadata_decl): New.
6872 (forward_declare_categories): Call build_metadata_decl() instead of
6873 create_builtin_decl() et al.
6874 (build_module_descriptor): Use OBJC_VOID_AT_END instead of
6875 void_list_node_1.
6876 (build_selector_reference_decl, build_class_reference_decl,
6877 build_objc_string_decl): Do not set TREE_READONLY.
6878 (get_proto_encoding): Do not call hack_method_prototype().
6879 (get_class_reference): Add failure mode for invalid class names;
6880 support -fzero-link; defer if in an ObjC++ template declaration.
6881 (objc_declare_alias, objc_declare_class): Fix up duplicate name
6882 lookup; check for global scope if in ObjC++.
6883 (is_class_name): Generalize to work with various tree nodes (TYPE_DECL,
6884 RECORD_TYPE, IDENTIFIER_NODE, etc.)
6885 (objc_is_id): Removed.
6886 (objc_is_object_ptr): New function.
6887 (get_class_ivars_from_name): New function, used for @defs construct.
6888 (get_class_ivars): Add option to return raw ivars; create a
6889 ClASS_OWN_IVARS list for each class as needed.
6890 (objc_enter_block, objc_exit_block, objc_declare_variable,
6891 objc_build_throw_stmt, val_stack_push, val_stack_pop,
6892 objc_build_try_enter_fragment, objc_build_extract_expr,
6893 objc_build_try_exit_fragment, objc_build_extract_fragment,
6894 objc_build_try_prologue, objc_build_try_epilogue,
6895 objc_build_catch_stmt, objc_build_catch_epilogue,
6896 objc_build_finally_prologue, objc_build_finally_epilogue,
6897 objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
6898 objc_build_synchronized_epilogue, build_objc_exception_stuff):
6899 New functions.
6900 (_JBLEN): _setjmp jmpbuf size (needs to be made a target hook in
6901 the future).
6902 (build_private_template): Fix up calls to get_class_ivars().
6903 (offset_is_register, forwarding_offset): Remove.
6904 (objc_method_parm_type, objc_encoded_type_size): New functions.
6905 (encode_method_prototype): Simplify to no longer depend on
6906 back-end information.
6907 (build_tmp_function_decl_xxx, build_tmp_function_decl,
6908 hack_method_prototype): Removed.
6909 (generate_protocol_references): Remove calls to
6910 build_tmp_function_decl().
6911 (generate_protocols): Adjust calls to encode_method_prototype().
6912 (build_class_template): Generate sel_id' and 'gc_object_type' fields
6913 for the NeXT runtime.
6914 (synth_forward_declarations): Call build_metadata_decl().
6915 (check_ivars): Check that the number of ivars matches also.
6916 (build_super_template): Modify super_type directly; disable debugging
6917 output while generating decl.
6918 (build_ivar_list_initializer): Skip list elements that are not
6919 FIELD_DECLs.
6920 (ivar_list_length): New function.
6921 (generate_ivar_lists): Call ivar_list_length() instead of list_length()
6922 and encode_method_prototype() instead of encode_method_def().
6923 (build_shared_structure_initializer): Generate 'sel_id' field for
6924 the NeXT runtime.
6925 (generate_category): Do not set TREE_USED.
6926 (build_keyword_selector): Ditto; transform into a function argument
6927 chain.
6928 (get_arg_type_list): If there are no user-specified arguments, use
6929 '...'; use OBJC_VOID_AT_END.
6930 (check_duplicates): Add a parameter indicating whether methods or
6931 selectors are being checked.
6932 (receiver_is_class_object): Add parameters indicating whether
6933 receiver is 'self' or 'super'; robustify.
6934 (build_message_expr): Defer call to finish_message_expr() if
6935 inside an ObjC++ template.
6936 (lookup_method_in_hash_lists): New function.
6937 (finish_message_expr): Complete rewrite/fix.
6938 (build_objc_method_call): Ditto; factor out commonalities between
6939 the GNU and NeXT runtimes; acccommodate ..._stret and ...NonNil
6940 messenger variants on the NeXT.
6941 (lookup_instance_method_static, lookup_class_method_static):
6942 Fold into a single lookup_method_static() function with an
6943 additional parameter.
6944 (add_class_method, add_instance_method): Fold into a single
6945 add_method() function with an additional parameter.
6946 (add_category): Make duplicate categories a hard error in ObjC++.
6947 (add_instance_variable): Properly handle unnamed ivars, arrays of
6948 zero or no size and bitfields. In ObjC++, check for nontrivial
6949 C++ class instances.
6950 (is_public): Allow C functions to access non-@public ivars, with
6951 a warning.
6952 (start_class): Move common initializations to
6953 synth_module_prologue(); check for global scope if in ObjC++.
6954 (continue_class): Fix calls to finish_struct().
6955 (objc_declare_protocols, start_protocol): Check for global scope
6956 if in ObjC++.
6957 (encode_pointer): Encode 'BOOL *' specially on the NeXT.
6958 (encode_aggregate_within): Rewrite to properly distinguish
6959 struct tags from typedefs in both ObjC and ObjC++.
6960 (encode_bitfield, encode_complete_bitfield): Remove.
6961 (encode_next_bitfield, encode_gnu_bitfield): New functions.
6962 (encode_field_decl): Call encode_next_bitfield() or
6963 encode_gnu_bitfield() as needed.
6964 (synth_self_and_ucmd_args): New function.
6965 (start_method_def): Use it.
6966 (objc_types_are_equivalent): New function.
6967 (comp_proto_with_proto): Use it instead of comptypes(), since
6968 we need symmetry.
6969 (really_start_method): Use lookup_method_static() instead of
6970 lookup_class_method_static() and lookup_instance_method_static();
6971 Emit 'extern "C"' if in ObjC++ mode.
6972 (add_objc_decls): Removed.
6973 (UOBJC_SUPER_scope): New variable.
6974 (get_super_receiver): Move construction of 'super' from
6975 add_objc_decls(); remove dependency on struct objc_class.
6976 (encode_method_def): Removed; encode_method_prototype() is
6977 used instead.
6978 (objc_clear_super_receiver): New function.
6979 (objc_expand_function_end): Do not do anything for ordinary
6980 C functions.
6981 (finish_method_def): Mark ObjC methods as un-inlinable.
6982 (gen_declaration_1): Emit widths of bitfields.
6983 (finish_objc): Call generate_objc_image_info() if needed;
6984 use check_duplicates() when checking for selector duplicates.
6985 (generate_objc_image_info): New function.
6986 * objc/objc-act.h (add_instance_method, add_class_method,
6987 get_class_ivars): Remove prototypes.
6988 (objc_build_throw_stmt, objc_build_try_catch_finally_stmt,
6989 objc_build_synchronized_prologue, objc_build_synchronized_epilogue,
6990 objc_build_catch_stmt, objc_build_catch_epilogue,
6991 objc_build_finally_prologue, objc_build_finally_epilogue,
6992 add_method, get_class_ivars_from_name): New prototypes.
6993 (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): New.
6994 (TYPE_PROTOCOL_LIST): Robustify to distinguish from
6995 TRANSLATION_UNIT_DECLs.
6996 (OBJC_TYPE_NAME): New.
6997 (objc_tree_code): Ensure that either <c-tree.h> or <cp/cp-tree.h>
6998 got included.
6999 (IS_SUPER): Robustify.
7000 (umsg_stret_decl, umsg_super_stret_decl, umsg_nonnil_decl,
7001 umsg_nonnil_stret_decl, objc_storage_class, objc_exception_extract_decl,
7002 objc_exception_try_enter_decl, objc_exception_try_exit_decl,
7003 objc_exception_match_decl, objc_exception_throw_decl,
7004 objc_sync_enter_decl, objc_sync_exit_decl, objc_exception_data_template,
7005 objc_setjmp_decl, objc_stack_exception_data, objc_caught_exception,
7006 objc_rethrow_exception, objc_eval_once, objc_exception_block_stack,
7007 objc_catch_type): New ObjC/ObjC++ roots.
7008 * objc/objc-tree.def (MESSAGE_SEND_EXPR, CLASS_REFERENCE_EXPR): New
7009 ObjC/ObjC++ tree node codes.
7010
7011 2003-09-24 Alexandre Oliva <aoliva@redhat.com>
7012
7013 * cpplib.c (do_pragma): Reintroduce cb_line_change call in the
7014 code path that calls a handler.
7015
7016 2003-09-24 Nathanael Nerode <neroden@gcc.gnu.org>
7017
7018 * config.gcc (c4x-*, tic4x-*, d30v-*, mmix-knuth-mmixware):
7019 Disable fixproto.
7020
7021 * config.gcc: Clean up and reindent $with_cpu=yes|no clause and
7022 the section giving $with_cpu defaults by target.
7023
7024 * config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf,
7025 arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*,
7026 rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*,
7027 rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*,
7028 rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*,
7029 i[34567]86-pc-msdosdjgpp*): Disable fixproto.
7030
7031 2003-09-24 David Edelsohn <edelsohn@gnu.org>
7032
7033 * config/rs6000/rs6000.md (movti_power): Collapse case 1 and 2
7034 together. Protect load string instruction with TARGET_STRING.
7035 (movti_string): Collapse case 1 and 2 together.
7036
7037 2003-09-24 Nathan Sidwell <nathan@codesourcery.com>
7038
7039 * c-common.c (c_common_type_for_mode): Check for VOIDmode.
7040
7041 2003-09-24 Richard Earnshaw <rearnsha@arm.com>
7042
7043 * arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in
7044 do...while(0)
7045
7046 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
7047
7048 * config.gcc: Move use_fixproto=no from generic vxworks clause to
7049 specific one.
7050
7051 * config.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto
7052 (accidentally missed in last pass).
7053
7054 2003-09-23 Andrew Pinski <apinski@apple.com>
7055
7056 PR bootstrap/12383
7057 * configure: Regenerate.
7058
7059 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
7060
7061 * config.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally
7062 missed in last pass).
7063
7064 2003-09-23 Alexandre Oliva <aoliva@redhat.com>
7065
7066 * config/mn10300/mn10300.md (andsi3): Fix cut&pasto in 0xfffffffe
7067 constant.
7068
7069 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
7070
7071 * config.gcc: Move vax-*-vms* unsupported notice up with the rest.
7072
7073 * config.gcc (alpha64*-dec-*vms*, alpha*-dec-*vms*,
7074 powerpc-*-eabisim*, powerpc-*-eabi*, powerpcle-*-eabisim*,
7075 powerpcle-*-eabi*): Disable fixproto.
7076
7077 * config.gcc: Move use_fixproto=no from generic FreeBSD clause to
7078 specific FreeBSD clauses.
7079 * config.gcc: Move use_fixproto=no from generic NetBSD clause to
7080 specific NetBSD clauses.
7081 * config.gcc: Move use_fixproto=no from generic OpenBSD clause
7082 to specific OpenBSD clauses.
7083
7084 2003-09-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7085
7086 * pa.c (hppa_expand_prologue): Do pic register save in frame marker
7087 without adding a frame note.
7088 * pa.md (allocate_stack): Save pic register in new frame marker when
7089 generating pic code.
7090
7091 2003-09-23 Kelley Cook <kelleycook@wideopenwest.com>
7092
7093 * cgraphunit.c (cgraph_expand_all_functions): Renamed from
7094 cgraph_expand_functions.
7095
7096 2003-09-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7097
7098 * Makefile.in (gnucompare*): Merge into ...
7099 (slowcompare*): ... here.
7100 (fastcompare*): New targets.
7101 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): Add checks for
7102 other "fast" cmp programs.
7103 * configure: Regenerate.
7104
7105 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7106
7107 * targhooks.c: Include output.h.
7108 * Makefile.in (targhooks.o): Add output.h to dependency list.
7109
7110 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7111
7112 * config.host: Removed superfluous newline.
7113
7114 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
7115
7116 * config.gcc: Use ${target}, not $machine.
7117 * configure.in: Don't set $machine.
7118 * configure: Regenerate.
7119
7120 2003-09-23 Geoffrey Keating <geoffk@apple.com>
7121
7122 * config/t-darwin (crt2.o): Add stmp-int-hdrs to dependencies.
7123
7124 * config/rs6000/rs6000.c (function_arg_pass_by_reference): Don't
7125 pass zero-size arrays by reference.
7126 (rs6000_va_arg): Likewise.
7127
7128 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
7129
7130 * config.gcc: Set use_fixproto=no in each specific *-gnu*
7131 configuration, rather than the generic one.
7132
7133 2003-09-23 Richard Henderson <rth@redhat.com>
7134
7135 * tree-inline.c (remap_save_expr): Map new save_expr to identity
7136 rather than to error_mark_node.
7137
7138 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7139
7140 * configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
7141 Update description.
7142 * configure: Regenerate.
7143 * config.in: Likewise.
7144 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for
7145 HAVE_GAS_SHF_MERGE value.
7146 * varasm.c (mergeable_string_section): Likewise.
7147 (mergeable_constant_section): Likewise.
7148
7149 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7150
7151 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
7152 value.
7153
7154 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7155
7156 * target.h (struct gcc_target): New member external_libcall.
7157 * target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
7158 (TARGET_ASM_OUT): Use it.
7159 * doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
7160 * targhooks.c: Convert to ISO C 90.
7161 (default_external_libcall): New function.
7162 * targhooks.h (default_external_libcall): Declare.
7163 * varasm.c (assemble_external_libcall): Use
7164 targetm.asm_out.external_libcall instead of
7165 ASM_OUTPUT_EXTERNAL_LIBCALL.
7166 * config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
7167 (mips_output_external_libcall): Declare.
7168 * config/mips/mips.c (mips_output_external_libcall): Change
7169 definition guard.
7170 Change to match TARGET_ASM_EXTERNAL_LIBCALL.
7171 Only operate for O32 ABI.
7172 * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
7173 instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
7174 * config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
7175 superceded by TARGET_ASM_EXTERNAL_LIBCALL.
7176
7177 2003-09-22 Nathnael Nerode <neroden@gcc.gnu.org>
7178
7179 * config.gcc: Do per-target disabling of fixproto here in clauses,
7180 not in t- fragments.
7181 * configure.in: Adjust to set STMP_FIXPROTO correctly.
7182 * configure: Regenerate.
7183 * config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
7184 config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
7185 t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
7186 xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
7187 * config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
7188 t-interix, t-linux-aout: Delete files consisting only of
7189 setting of STMP_FIXPROTO.
7190
7191 * config.host: Allow unknown hosts (not targets). Allow
7192 ns32k-*-netbsdelf* as a host (not a target). Remove redundant
7193 empty clauses. Remove useless obsolete-configuration clause.
7194 Prune unsupported configuration list. Collapse identical
7195 clauses for closely related systems. Rewrite comment for
7196 unsupported hosts list. Reorganize a little.
7197
7198 2003-09-22 Richard Henderson <rth@redhat.com>
7199
7200 * c-common.c (c_common_signed_or_unsigned_type): Examine mode,
7201 not precision.
7202
7203 2003-09-22 David Edelsohn <edelsohn@gnu.org>
7204 Hartmut Penner <hpenner@de.ibm.com>
7205 Segher Boessenkool <boessen@de.ibm.com>
7206
7207 * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ...
7208 (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean.
7209 (rs6000_split_altivec_in_gprs): Rename to ...
7210 (rs6000_split_multireg_move): Add support for update addressing.
7211 * config/rs6000/rs6000-protos.h: Same.
7212 * config/rs6000/altivec.md: Same.
7213 * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for
7214 multiple GPRs.
7215 (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition.
7216 (movti_power): Use new splitter for multiple GPRs.
7217 (movti_string): Same.
7218 (movti_ppc64): Same.
7219
7220 2003-09-22 Bob Wilson <bob.wilson@acm.org>
7221
7222 * config/xtensa/xtensa-protos.h: Convert to ISO C90.
7223 * config/xtensa/xtensa.c: Convert to ISO C90. Minor formatting fixes.
7224
7225 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
7226
7227 * config/mn10300/mn10300.md: Revert 2003-09-17's patch.
7228 (andsi3): Set attr cc to set_zn when using shifts or adds.
7229
7230 2003-09-22 Bernardo Innocenti <bernie@develer.com>
7231
7232 * doc/contrib.texi: Add Peter Barada, Paul Dale and myself.
7233
7234 2003-09-22 Bernardo Innocenti <bernie@develer.com>
7235
7236 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS):
7237 Resurrect -mrtd option.
7238
7239 2003-09-21 Andrew Pinski <pinskia@physics.uc.edu>
7240
7241 PR target/12281
7242 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call
7243 mark_referenced instead of setting TREE_SYMBOL_REFERENCED.
7244
7245 2003-09-22 Olivier Hainque <hainque@act-europe.fr>
7246
7247 PR target/9786
7248 * reg-stack.c (convert_regs_1): Purge possible dead eh edges
7249 after potential deletion of trapping insn. Avoids later ICE
7250 from call to fixup_abnormal_edges.
7251 (convert_regs_2): Stack the current block successors before
7252 processing this block, that is, before the potential deletion of
7253 dead edges by convert_regs_1, because these edges have been used
7254 to initialize the predecessors count.
7255
7256 2003-09-22 Eric Botcazou <ebotcazou@libertysurf.fr>
7257
7258 * real.c: Fix several nits in the head comment.
7259
7260 2003-09-21 Richard Henderson <rth@redhat.com>
7261
7262 * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
7263 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
7264 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
7265 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
7266 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Revert.
7267
7268 2003-09-21 Richard Henderson <rth@redhat.com>
7269
7270 * tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
7271 (TREE_FILENAME, TREE_LINENO): Likewise.
7272 (set_tree_locus, copy_tree_locus, set_tree_file_line): New.
7273 (TREE_LOCUS_SET_P): New.
7274 * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
7275 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
7276 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
7277 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
7278 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
7279
7280 2003-09-21 Nathanael Nerode <neroden@gcc.gnu.org>
7281
7282 * config/vax/vax-protos.h: Convert to ISO C90.
7283 * config/vax/vax.c: Convert to ISO C90.
7284
7285 2003-09-21 Graham Stott <grahams@btinternet.com>
7286
7287 PR target/12353
7288 * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint.
7289
7290 2003-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
7291
7292 PR target/12301
7293 * reorg.c (stop_search_p): Return 1 for insns that can
7294 throw internally.
7295
7296 2003-09-20 Richard Henderson <rth@redhat.com>
7297
7298 * c-format.c (gcc_diag_char_table): Add %J.
7299 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
7300 (check_format_types): Fix wanted_type name lookup.
7301 (init_dynamic_diag_info): Setup %J.
7302 * diagnostic.c (text_specifies_location): Implement %J.
7303 * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
7304 dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
7305 tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
7306 config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
7307 config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
7308
7309 * tree-inline.c: Include intl.h
7310 (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
7311 * Makefile.in (tree-inline.o): Update.
7312
7313 2003-09-20 Roger Sayle <roger@eyesopen.com>
7314
7315 * config/i386/i386.c (ix86_expand_carry_flag_compare): Fix
7316 transformation of a>=0 into (unsigned)a<0x80000000.
7317
7318 2003-09-20 Andrew Pinski <apinski@apple.com>
7319
7320 * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
7321
7322 2003-09-20 Nathanael Nerode <neroden@gcc.gnu.org>
7323
7324 * Makefile.in: Don't set (unused) DLLTOOL.
7325
7326 * config/arm/t-linux, config/arm/t-netbsd, config/arm-t-semi:
7327 Remove obsolete references to ENQUIRE.
7328
7329 2003-09-19 Nathanael Nerode <neroden@gcc.gnu.org>
7330
7331 * configure.in: Remove --with-elf, which doesn't work.
7332 * configure: Regenerate.
7333 * config.gcc: Remove references to $elf, which does nothing.
7334
7335 * config/i386/xm-vsta.h: Remove xm-file believed useless.
7336 * config.build (i386-vsta): Remove reference to it.
7337 * config.host (i386-vsta): Remove reference to it.
7338
7339 2003-09-19 Phil Edwards <phil@codesourcery.com>
7340
7341 * doc/install.texi: Document the multiple testsuite options.
7342
7343 2003-09-19 Gerald Pfeifer <gerald@pfeifer.com>
7344
7345 * doc/install.texi (Specific): Add the specific versions of GCC
7346 where support for FreeBSD 1, HP-UX version 9 and older, and AIX
7347 version 3 and older was discontinued.
7348
7349 2003-09-19 Joel Sherrill <joel@oarcorp.com>
7350
7351 * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to
7352 68881.
7353
7354 2003-09-19 Bernardo Innocenti <bernie@develer.com>
7355
7356 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Add predefines
7357 for -m68030, -m68020-60 and -m68020-40.
7358 * config/m68k/m68k.h (TARGET_68030): New target flag.
7359 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, MASK_REGPARM,
7360 TARGET_REGPARM): Remove.
7361 * config/m68k/m68k.h: Regroup and renumber target flags.
7362 * config/m68k/m68k.h (TARGET_SWITCHES): Fix some tabulations.
7363 * config/m68k/m68k.h (RETURN_POPS_ARGS): Always evaluate to 0.
7364 * config/m68k/m68k.h (FUNCTION_ARG): Likewise.
7365 * config/m68k/m68k.h (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
7366 * config/m68k/m68k-none.h: Use MASK_xxx values in M68K_CPU_xxx macros.
7367
7368 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
7369
7370 * config/m68k/t-rtems (m68k-*-rtems*): New.
7371 * config.gcc: Use config/m68k/t-rtems.
7372
7373 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
7374
7375 * config/mips/t-rtems: New.
7376 * config.gcc (mips*-*-rtems*): Use config/mips/t-rtems.
7377
7378 2003-09-19 Kelley Cook <kelleycook@wideopenwest.com>
7379
7380 * cgraph.c: Fix typo in debugging output.
7381
7382 2003-09-19 T. Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
7383 Eric Botcazou <ebotcazou@libertysurf.fr>
7384
7385 PR target/12166
7386 * config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.
7387
7388 2003-09-18 Mike Stump <mrs@apple.com>
7389
7390 * c-ppoutput.c (print): Use fileline typedef for field 'line'.
7391 (print_line, maybe_print_line, cb_define, cb_undef, cb_include,
7392 cb_ident, cb_def_pragma): Use fileline typedef.
7393 * cpphash.h (struct cpp_reader): Likewise for field out.first_line.
7394
7395 2003-09-18 Danny Smith <dannysmith@users.sourceforge.net>
7396
7397 * config/i386/winnt.c (gen_stdcall_suffix): Quit summation of
7398 total parm size if a parm has incomplete type.
7399 (gen_fastcall_suffix): Likewise.
7400
7401 2003-09-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7402
7403 * except.c (output_function_exception_table): Adjust last change
7404 to handle TYPE of INTEGER_CST.
7405
7406 2003-09-18 Mark Mitchell <mark@codesourcery.com>
7407
7408 PR target/11184
7409 * builtins.c (expand_builtin_apply): Use convert_memory_address
7410 before returning the value.
7411
7412 * alias.c (find_base_value): Simplify use of
7413 convert_memory_address.
7414 (find_base_term): Likewise.
7415 * builtins.c (expand_builtin_stejmp_setup): Likewise.
7416 (expand_builtin_longjmp): Likewise.
7417 (expand_builtin_prefetch): Likewise.
7418 (get_memory_rtx): Likewise.
7419 (expand_builtin_return): Likewise.
7420 (expand_builtin_memcpy): Likewise.
7421 (expand_builtin_strncpy): Likewise.
7422 (expand_builtin_memset): Likewise.
7423 (expand_builtin_va_arg): Likewise.
7424 (expand_builtin_va_copy): Likewise.
7425 (expand_builtin_alloca): Likewise.
7426 * calls.c (expand_call): Likewise.
7427 * except.c (expand_builtin_extract_return_addr): Likewise.
7428 (expand_builtin_eh_return): Likewise.
7429 * explow.c (convert_memory_address): Define even when
7430 POINTER_EXTEND_UNSIGNED is not defined. Do nothing if the address
7431 is already in the right mode.
7432 * explow.c (memory_address): Simplify use of convert_memory_address.
7433 (probe_stack_range): Likewise.
7434 * expmed.c (make_tree): Likewise.
7435 * expr.c (emit_block_move_in_libcall): Likewise.
7436 (expand_assignment): Likewise.
7437 (expand_expr): Likewise.
7438 * function.c (assign_parms): Likewise.
7439 (expand_function_end): Likewise.
7440 * integrate.c (copy_rtx_and_substitute): Likewise.
7441 * stmt.c (expand_computed_goto): Likewise.
7442
7443 2003-09-18 Roger Sayle <roger@eyesopen.com>
7444
7445 * simplify-rtx.c (simplify_unary_operation): Only transform
7446 (not (eq X Y)) into (ne X Y) when mode is BImode or STORE_FLAG_VALUE
7447 is -1. RTL "not" is a bit-wise not, "~", not a logical not "!".
7448
7449 2003-09-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7450
7451 PR target/11674
7452 * config/i386/i386.c (x86_emit_floatuns): Also handle SImode operand.
7453
7454 2003-09-18 Roger Sayle <roger@eyesopen.com>
7455
7456 * tree.def (FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR,
7457 PARITY_EXPR): Delete unused tree codes.
7458 * c-common.c (c_common_truthvalue_conversion): Delete references
7459 to FFS_EXPR and POPCOUNT_EXPR.
7460 * c-pretty-print.c (pp_c_postfix_expression): Remove FFS_EXPR.
7461 (pp_c_expression): Likewise.
7462 * expr.c (expand_expr): Delete RTL expansion of FFS_EXPR, CLZ_EXPR,
7463 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.
7464 * fold-const.c (tree_expr_nonnegative_p): Remove FFS_EXPR, CLZ_EXPR,
7465 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR. Add support for calls to
7466 BUILT_IN_FFS, BUILT_IN_PARITY and BUILT_IN_POPCOUNT and their long
7467 and long long variants.
7468
7469 2003-09-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
7470
7471 * c-pretty-print.h (pp_type_specifier_seq): Fix thinko.
7472 * c-pretty-print.c: Fix formatting.
7473 (pp_c_integer_constant): Append type annotation to literals. Tidy.
7474 (pp_c_type_specifier): Tidy.
7475 (pp_c_compound_literal): New function.
7476 (pp_c_initializer): Simplify..
7477 (pp_c_initializer_list): Likewise.
7478 (pp_c_brace_enclosed_initializer_list): New function.
7479 (pp_c_postfix_expression): Simplify.
7480
7481 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
7482
7483 * config/mn10300/mn10300.md (andsi3, iorsi3, xorsi3,
7484 one_complsi2, bit-clear, bit-set, iorqi3): Make them set_zn.
7485
7486 2003-09-17 Richard Henderson <rth@redhat.com>
7487
7488 * tree-optimize.c (tree_rest_of_compilation): Save and restore
7489 input_location.
7490
7491 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
7492
7493 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Give -lpthread before -lc.
7494
7495 2003-09-17 Richard Henderson <rth@redhat.com>
7496
7497 * cfg.c (dump_flow_info): Skip register dump if reg_n_info null.
7498
7499 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7500
7501 * configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.
7502 * configure: Regenerate.
7503
7504 2003-09-17 Mark Mitchell <mark@codesourcery.com>
7505
7506 PR debug/12066
7507 * dbxout.c (dbxout_init): Use a langhook to find builtin types.
7508 * langhooks-def.h (lhd_return_null_tree_v): New function.
7509 (LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro.
7510 (LANG_HOOKS_DECLS): Add it to the intializer.
7511 * langhooks.c (lhd_return_null_tree_v): New function.
7512 * langhooks.h (lang_hooks_for_decls): Add builtin_type_decls.
7513
7514 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
7515
7516 * configure.in: Quote gcc_config_arguments for configargs.h.
7517 * configure: Regenerated.
7518 * gccbug.in: Don't shell-expand gcc_config_arguments.
7519
7520 2003-09-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
7521
7522 PR c++/11357
7523 * c-pretty-print.c (pp_c_floating_constant): Append
7524 type-annotation to floating constants.
7525
7526 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7527
7528 * config/mips/iris5.h (TARGET_OS_CPP_BUILTINS): Define _LONGLONG.
7529 Define _ABIO32.
7530 Use it for _MIPS_SIM.
7531 * config/mips/iris6-o32.h (TARGET_OS_CPP_BUILTINS): Removed.
7532
7533 * config/mips/iris6-o32-as.h (SUBTARGET_ASM_OPTIMIZING_SPEC):
7534 Moved ...
7535 * config/mips/iris5.h (SUBTARGET_ASM_OPTIMIZING_SPEC): ... here,
7536 updating comment.
7537 Fixes PR target/10190.
7538
7539 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
7540
7541 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply
7542 to shared libraries.
7543
7544 2003-09-17 Eric Botcazou <ebotcazou@libertysurf.fr>
7545
7546 PR optimization/11646
7547 * cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the
7548 EDGE_ABNORMAL flag for EH edges.
7549 * toplev.c (rest_of_handle_cse): Delete unreachable blocks
7550 if dead edges were purged.
7551
7552 2003-09-16 Bernardo Innocenti <bernie@develer.com>
7553
7554 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.
7555 * config/m68k/m68k-none.h (CPP_CPU_DEFAULT_SPEC): Kill all definitions.
7556 * config/m68k/m68k-none.h (CPP_FPU_SPEC): Remove.
7557 * config/m68k/m68k-none.h (CPP_SPEC): Likewise.
7558
7559 2003-09-16 Ian Lance Taylor <ian@wasabisystems.com>
7560
7561 * cfgcleanup.c (label_is_jump_target_p): Correct use of table
7562 returned by tablejump_p.
7563
7564 2003-09-16 Joel Brobecker <brobecker@gnat.com>
7565
7566 * dwarf2asm.c (dw2_asm_output_nstring): Add comment.
7567
7568 2003-09-16 Roger Sayle <roger@eyesopen.com>
7569
7570 PR bootstrap/12269
7571 * simplify-rtx.c (simplify_gen_relational): Allow the cmp_mode
7572 argument to be VOIDmode, taking the mode of the comparison from
7573 the operands. Only call simplify_relational_operation if we
7574 know the mode of the comparison. Honor FLOAT_STORE_FLAG_VALUE
7575 if comparison has a floating point result. Ensure that the
7576 result is always of the specified mode.
7577 (simplify_replace_rtx): Simplify call to simplify_gen_relational.
7578 (simplify_unary_operation): Ensure the correct mode and cmp_mode
7579 are always passed to simplify_gen_relational. Simplify NOT of
7580 comparison operator in any mode, not just BImode.
7581 (simplify_ternary_operation): Correct tests on the return value
7582 of simplify_relational_operation to use const_true_rtx, not
7583 const1_rtx. Abort if it ever returns a non-constant result.
7584
7585 * cfgloopanal.c (count_strange_loop_iterations): Use the function
7586 simplify_relational_operation, not simplify_gen_relational, if
7587 we're only interested in constant comparisons and will ignore
7588 non-constant results.
7589
7590 2003-09-16 Roger Sayle <roger@eyesopen.com>
7591
7592 * fold-const.c (tree_swap_operands_p): New function to determine
7593 the prefered ordering of operands.
7594 (fold): Numerous clean-ups. Use tree_swap_operands_p when swapping
7595 operands to commutative, comparison or ternary operators. Replace
7596 uses of TREE_SET_CODE with recursive call to fold. Remove duplicate
7597 transformation of A ? B : C into !A ? C : B.
7598
7599 2003-09-16 Jakub Jelinek <jakub@redhat.com>
7600
7601 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7602 * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7603 * config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7604 * config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7605 * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7606 * config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7607 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7608 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7609
7610 2003-09-16 Jason Merrill <jason@redhat.com>
7611 Jakub Jelinek <jakub@redhat.com>
7612
7613 * c-common.c (handle_warn_unused_result_attribute): New function.
7614 (c_common_attribute_table): Add warn_unused_result.
7615 (c_expand_expr): Issue warning when result of inlined function
7616 with warn_unused_result attribute is ignored.
7617 * calls.c (expand_call): Issue warning when result of function
7618 with warn_unused_result attribute is ignored.
7619 * c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
7620 * expr.c (expr_wfl_stack): Define.
7621 (expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
7622 pass const0_rtx as target. Chain locations into expr_wfl_stack.
7623 * tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
7624 bit if inlined function has warn_unused_result attribute.
7625 * input.h (expr_wfl_stack): Declare.
7626 * doc/extend.texi: Document warn_unused_result attribute.
7627
7628 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
7629
7630 * cpplib.c (do_pragma): Remove unnecessary cb_line_change.
7631
7632 2003-09-15 Bob Wilson <bob.wilson@acm.org>
7633
7634 * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
7635 ATTRIBUTE_UNUSED.
7636 (call_insn_operand): For PIC, don't allow a direct call to a
7637 function in a different section than the current one.
7638
7639 2003-09-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
7640
7641 * doc/invoke.texi (Warning Options): Add missing hyphen before
7642 "Wimport". Change "-Wno-endif-labels" to "-Wendif-labels".
7643 Move "-Wold-style-definition" to the C-only section.
7644 Fix the ordering of the warning options.
7645
7646 2003-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7647 Jeff Law <law@redhat.com>
7648
7649 * gcse.c (remove_reachable_equiv_notes): New.
7650 replace_store_insn): Call it. Update antic list.
7651 (store_killed_in_insn): Take REG_EQUAL notes into account.
7652 (build_store_vectors, delete_store): Add parameter to
7653 replace_store_insn call.
7654
7655 2003-09-15 Bob Wilson <bob.wilson@acm.org>
7656
7657 * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use
7658 SYMBOL_REF_LOCAL_P.
7659
7660 2003-09-15 Kazu Hirata <kazu@cs.umass.edu>
7661
7662 * expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
7663 (FUNCTION_ARG_PADDING): Use DEFAULT_FUNCTION_ARG_PADDING.
7664 * config/ia64/ia64.c (ia64_hpux_function_arg_padding):
7665 Likewise.
7666 * config/m68hc11/m68hc11.c (m68hc11_function_arg_padding):
7667 Likewise.
7668 * config/rs6000/rs6000.c (function_arg_padding): Likewise.
7669 * config/sparc/sparc.c (function_arg_padding): Likewise.
7670
7671 2003-09-15 Vladimir Makarov <vmakarov@redhat.com>
7672
7673 * haifa-sched.c (schedule_block): Use ready_remove_first instead
7674 of choose_ready for non-dfa insn scheduling.
7675
7676 2003-09-15 Andreas Jaeger <aj@suse.de>
7677 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7678
7679 * doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
7680 * c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
7681 * c-parse.in: Warn about old-style parameter definition.
7682 * c-common.c: Define warn_old_style_defintion.
7683 * c-common.h: Declare it.
7684 * c.opt: Add Wold-style-defintion.
7685
7686 2003-09-15 Andreas Jaeger <aj@suse.de>
7687
7688 * config/rs6000/altivec.h: Convert () prototypes to ISO C90.
7689 * config/rs6000/rs6000.c: Likewise.
7690
7691 2003-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7692
7693 PR optimization/10914
7694 * expr.h (get_condition, canonicalize_condition): Declaration changed.
7695 * cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
7696 and canonicalize_condition calls.
7697 * gcse.c (fis_get_condition, delete_null_pointer_checks_1,
7698 delete_null_pointer_checks): Ditto.
7699 * ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
7700 * predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
7701 * loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
7702 (canonicalize_condition, get_condition): Allow to return comparisons
7703 of cc mode registers.
7704 * loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
7705 cc mode registers comparison in condition.
7706
7707 2003-09-12 Mark Mitchell <mark@codesourcery.com>
7708
7709 * coverage.c (create_coverage): Do not call pushlevel/poplevel.
7710 * langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
7711 function.
7712 * langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
7713
7714 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
7715
7716 * combine.c (simplify_comparison): Convert
7717 (ne (and (lshiftrt (xor X CST) Y) 1) 0) into
7718 (eq (and (lshiftrt X Y) 1) 0).
7719
7720 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
7721
7722 * alias.c: Follow spelling conventions.
7723 * cpphash.h: Likewise.
7724 * fold-const.c: Likewise.
7725
7726 2003-09-14 Alexandre Oliva <aoliva@redhat.com>
7727
7728 * c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
7729 * c-lex.c (cb_line_change): Skip line changing whenever
7730 c-ppoutput.c would.
7731
7732 2003-09-14 Steven Bosscher <steven@gcc.gnu.org>
7733
7734 * ra.c: Convert to ISO C90 prototypes.
7735 * ra-build.c: Likewise.
7736 * ra-colorize.c: Likewise.
7737 * ra-debug.c: Likewise.
7738 * ra-rewrite.c: Likewise.
7739
7740 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
7741
7742 * Makefile.in (%.dvi): Remove excess $(docdir).
7743
7744 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
7745
7746 * function.c (STACK_BYTES): Move definition to head of file.
7747 (assign_parms): Don't pass current_function_pretend_args_size
7748 directly to SETUP_INCOMING_VARARGS. For partial register arguments,
7749 round current_function_pretend_args_size up to STACK_BYTES. Skip any
7750 excess before laying out the argument.
7751
7752 2003-09-14 Andreas Jaeger <aj@suse.de>
7753
7754 * objc/objc-act.c: Convert to ISO C90 prototypes.
7755 * objc/objc-act.h: Likewise.
7756
7757 2003-09-14 Olaf Hering <olh@suse.de>
7758
7759 * config/rs6000/rs6000.c: Fix typo: Remove extra ')'.
7760
7761 2003-09-13 Andrew Pinski <pinskia@physics.uc.edu>
7762
7763 PR target/12021
7764 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Remove the asserts
7765 as they already are done in config/m68k/m68k.h.
7766 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Likewise
7767
7768 * config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
7769 (machopic_output_stub): Only generate pic base symbols when using pic
7770 and generate them in the form L00000000$spb.
7771
7772 2003-09-13 Richard Henderson <rth@redhat.com>
7773
7774 * cgraphunit.c (cgraph_assemble_pending_functions): Export.
7775 (cgraph_finalize_function): Revert TREE_ASM_WRITTEN check.
7776 * cgraph.h: Update.
7777
7778 2003-09-12 Dale Johannesen <dalej@apple.com>
7779
7780 * config/rs6000/rs6000.c: Fix typos in previous.
7781
7782 2003-09-12 Ziemowit Laski <zlaski@apple.com>
7783
7784 * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
7785 when allocating pp->buffer.
7786
7787 2003-09-12 Geoffrey Keating <geoffk@apple.com>
7788
7789 * config/darwin.c (machopic_select_rtx_section): Use
7790 const_data_section for things that might require relocation.
7791
7792 2003-09-12 H.J. Lu <hongjiu.lu@intel.com>
7793
7794 PR bootstrap/12264
7795 * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
7796
7797 2003-09-12 Bob Wilson <bob.wilson@acm.org>
7798
7799 * config/xtensa/elf.h (ASM_SPEC): Remove no-density option. Reformat.
7800 * config/xtensa/linux.h (ASM_SPEC): Likewise.
7801 * config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
7802 -mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
7803 -m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
7804 -m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
7805 -m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
7806 -m[no-]hard-float-rsqrt options. Delete corresponding MASK_* macros
7807 and redefine corresponding TARGET_* macros with constants from the
7808 xtensa-config.h header.
7809 * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
7810 for the options listed above.
7811
7812 2003-09-12 Dale Johannesen <dalej@apple.com>
7813
7814 * config/rs6000/rs6000-protos.h: Use C90 prototypes.
7815 * config/rs6000/rs6000-c.c: Ditto.
7816 * config/rs6000/rs6000.c: Ditto.
7817 * config/rs6000/ sysv4.h: Ditto.
7818
7819 2003-09-12 Chris Lattner <sabre@nondot.org>
7820
7821 * loop.c: Move comments describing BIV's and GIV's to top of file
7822
7823 2003-09-12 Roger Sayle <roger@eyesopen.com>
7824
7825 PR optimization/8967
7826 * alias.c (write_dependence_p): Modify to take an additional constp
7827 argument that controls whether the UNCHANGING_RTX_P flags are used.
7828 (anti_dependence, output_dependence): Adjust write_dependence_p
7829 callers to pass this additional argument, to return the same result.
7830 (unchanging_anti_dependence): New variant of anti_dependence that
7831 ignores the UNCHANGING_RTX_P property on memory references.
7832 * rtl.h (unchaning_anti_dependence): Prototype here.
7833 * flow.c (init_propagate_block): Place fake constant mem writes on
7834 the mem_set_list so that dead writes to const variables are deleted.
7835 (insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
7836 (mark_used_regs): Likewise.
7837
7838 2003-09-12 Richard Sandiford <rsandifo@redhat.com>
7839
7840 * config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
7841 (mcore_secondary_reload_class): Declare.
7842 (mcore_output_inline_const_forced): Remove.
7843 * config/mcore/mcore.md (movsi): Remove the code that forced
7844 non-inlineable constants into a register if the target was r15
7845 or the stack pointer. Remove constant restrictions from the main
7846 define_insn. Remove r <- I, r <- M and r <- N alternatives in favor
7847 of an r <- P alternative. Remove fallback define_insn for reload.
7848 (movhi, movqi): Use gen_lowpart rather than gen_SUBREG. Remove reload
7849 define_insn. Use mcore_output_move in the remaining define_insn.
7850 Adjust condition and constraints in the way as for movsi.
7851 (movdi): Always split unacceptable constants into two. Use
7852 simplify_gen_subreg instead of operand_subword{,_force}.
7853 * config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
7854 (mcore_output_move): Support HImode and QImode moves as well.
7855 (mcore_m15_operand_p): New function.
7856 (mcore_reload_class): Use it to detect cases where LRW_REGS are better.
7857 (mcore_secondary_reload_class): New function.
7858 * config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
7859 terms of mcore_secondary_reload_class.
7860
7861 2003-09-11 Mike Stump <mrs@apple.com>
7862
7863 * c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
7864
7865 2003-09-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7866
7867 * builtins.c (fold_builtin_logarithm): if N can't be truncated to
7868 MODE exactly, then only convert logN(N) -> 1.0 if
7869 flag_unsafe_math_optimizations is set.
7870
7871 * builtins.c (builtin_dconsts_init, dconstpi, dconste,
7872 init_builtin_dconsts): Delete.
7873 * emit-rtl.c (dconstpi, dconste): Define.
7874 (init_emit_once): Initialize dconstpi & dconste.
7875 * real.h (dconstpi, dconste): Declare.
7876
7877 2003-09-11 Alexandre Oliva <aoliva@redhat.com>
7878
7879 PR fortran/11522
7880 * dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
7881 for ultimate origin even if block is abstract.
7882
7883 2003-09-11 Roger Sayle <roger@eyesopen.com>
7884
7885 * combine.c (combine_simplify_rtx): Move several NOT and NEG
7886 optimizations from here...
7887 * simplify-rtx.c (simplify_unary_operation): to here. Recursively
7888 simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
7889
7890 2003-09-11 Richard Henderson <rth@redhat.com>
7891
7892 * cgraphunit.c (cgraph_finalize_function): Add nested arg.
7893 Tweek tests for function already generated.
7894 (cgraph_expand_function): Don't double announce in !unit-at-a-time.
7895 * cgraph.h (cgraph_finalize_function): Update for extra arg.
7896 * c-decl.c (finish_function): Likewise.
7897
7898 2003-09-10 Joe Buck <jbuck@welsh-buck.org>
7899
7900 * c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
7901
7902 2003-09-10 Jerry Quinn <jlquinn@optonline.net>
7903
7904 * real.c: Update URL to VAX floating point docs.
7905 (decode_vax_d): Extract 8 exponent bits instead of 7.
7906
7907 2003-09-10 Ian Lance Taylor <ian@wasabisystems.com>
7908
7909 * combine.c (force_to_mode): Set fuller_mask based only on mask,
7910 not op_mode.
7911
7912 2003-09-11 Jan Hubicka <jh@suse.cz>
7913
7914 * c-objc-common.c (c_cannot_inline_tree_fn): Warn
7915 on why function is not inlinable; do not check
7916 the body.
7917 (inline_forbidden_p): Move to...
7918 * tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
7919 deal with alloca, longjmp.
7920 (inline_forbidden_p): New static function.
7921 (find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
7922 find_builtin_longjmp_call): Kill.
7923
7924 2003-09-10 Richard Henderson <rth@redhat.com>
7925
7926 * cgraph.h (struct cgraph_node): Rename lowered to analyzed.
7927 * cgraphunit.c: Update to match.
7928 (record_call_1): Rearrange. Call lang hook for language nodes.
7929 (cgraph_analyze_function): Don't call lower_function.
7930 * langhooks.h (struct lang_hooks_for_callgraph): Replace
7931 lower_function with analyze_expr.
7932 * langhooks-def.h: Update to match.
7933 * langhooks.c (lhd_callgraph_analyze_expr): New.
7934
7935 2003-09-10 Martin Husemann <martin@duskware.de>
7936
7937 PR target/11965
7938 * config/sparc/sparc.c (sparc_v8plus_shift): Protect against
7939 constants greater than 63.
7940 * config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
7941 against constants greater than 31.
7942 (*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
7943 constants greater than 63.
7944
7945 2003-09-09 Richard Henderson <rth@redhat.com>
7946
7947 * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
7948 * cgraph.h (cgraph_finalize_function): Update.
7949 * c-decl.c (finish_function): Update.
7950
7951 2003-09-09 Devang Patel <dpatel@apple.com>
7952
7953 * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
7954 * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
7955
7956 2003-09-09 Eric Christopher <echristo@redhat.com>
7957
7958 * configure.in: Change usage of 'head' to 'sed 1q'.
7959 * configure: Regenerate.
7960
7961 2003-09-09 Richard Henderson <rth@redhat.com>
7962
7963 * except.c: Include cgraph.h.
7964 (output_function_exception_table): Invoke
7965 cgraph_varpool_mark_needed_node.
7966 * Makefile.in (except.o): Update.
7967
7968 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
7969
7970 * Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS
7971 and use it throughout.
7972
7973 2003-09-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7974
7975 * builtins.c (real_dconstp, fold_builtin_logarithm,
7976 fold_builtin_exponent): New, split out from fold_builtin. Also
7977 generalize to add log2, log10, exp2 and exp10/pow10 equivalents.
7978 * emit-rtl.c (dconst3, dconst10, dconstthird): New.
7979 (init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu
7980 of hardcoded array size.
7981 * fold-const.c (fold): Add cases for exp2, exp10 and pow10.
7982 (tree_expr_nonnegative_p): Likewise.
7983 * real.h (dconst3, dconst10, dconstthird): New.
7984
7985 2003-09-09 Jan Hubicka <jh@suse.cz>
7986
7987 * cgraphunit.c (cgraph_finalize_function): Fix handling of extern
7988 inline functions.
7989 (cgraph_finalize_compilation_unit): Fix crash when dealing with lost
7990 DECL_SAVED_TREE.
7991
7992 2003-09-09 Roger Sayle <roger@eyesopen.com>
7993
7994 * builtins.c (fold_builtin_cabs): Protect the complex argument
7995 against multiple evaluation when optimizing cabs* into sqrt*.
7996
7997 2003-09-09 Jan Hubicka <jh@suse.cz>
7998
7999 * varasm.c (notice_global_symbol): Properly deal with weak symbols.
8000
8001 2003-09-08 Kelley Cook <kelleycook@wideopenwest.com>
8002
8003 * Makefile.in: Revert yesterday's change.
8004
8005 2003-09-08 Bernardo Innocenti <bernie@develer.com>
8006 Peter Barada <peter@baradas.org>
8007
8008 * config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
8009 * config/m68k/hp320.h (REGISTER_NAMES): Likewise.
8010 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
8011 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
8012 * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
8013 * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
8014 * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
8015 (m68k_compute_frame_layout): New function.
8016 (m68k_initial_elimination_offset): New function.
8017 (m68k_output_function_prologue): ColdFire-specific movem handling.
8018 (m68k_output_function_epilogue): Likewise.
8019 * config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg.
8020 (ARG_POINTER_REGNUM): Add new definition.
8021 (INITIAL_FRAME_POINTER_OFFSET): Remove macro.
8022 (ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
8023 (CAN_ELIMINATE): Likewise.
8024 (INITIAL_ELIMINATION_OFFSET): Likewise.
8025
8026 2003-09-08 Bernardo Innocenti <bernie@develer.com>
8027
8028 * config/m68k/m68k.c (m68k_output_function_prologue): Simplify
8029 by removing redundant variable cfa_store_offset.
8030
8031 2003-09-08 Mark Mitchell <mark@codesourcery.com>
8032
8033 * langhooks-def.h (lhd_register_builtin_type): New function.
8034 (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro.
8035 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
8036 * langhooks.h (lang_hooks_for_types): Add register_builtin_type.
8037 * langhooks.c (lhd_register_builtin_type): New function.
8038 * c-common.h (c_register_builtin_type): Declare.
8039 * c-common.c (c_register_builtin_type): New function.
8040 * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to
8041 c_register_builtin_type.
8042 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg,
8043 __float80, and __float128 macros.
8044 * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg,
8045 __float80, and __float128 types.
8046
8047 2003-09-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8048
8049 * builtin-types.def
8050 (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE,
8051 BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE,
8052 BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New.
8053 * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH,
8054 BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL,
8055 BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN,
8056 BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF,
8057 BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN,
8058 BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF,
8059 BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF,
8060 BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL,
8061 BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW,
8062 BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF,
8063 BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH,
8064 BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT,
8065 BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF,
8066 BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL):
8067 New.
8068 * doc/extend.texi: Document new builtins.
8069
8070 2003-09-09 Jan Hubicka <jh@suse.cz>
8071
8072 * cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated
8073 finalization.
8074 * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested
8075 functions, check for COMDAT.
8076 (cgraph_assemble_pending_functions): Break out from...
8077 (cgraph_finalize_function): ... here; allow redefinig of extern inline
8078 functions.
8079 (record_call_1): Record function references only in non-unit-at-a-time
8080 mode.
8081 (cgraph_analyze_function): Reset current_function_decl.
8082 (cgraph_finalize_compilation_unit): Assemble pending functions.
8083
8084 2003-09-08 Mark Mitchell <mark@codesourcery.com>
8085
8086 * mklibgcc.in (libcc.a): Depend on stmp-dirs.
8087 (libgov.a): Likewise.
8088 (libgcc_eh.a): Likewise.
8089
8090 2003-09-08 Roger Sayle <roger@eyesopen.com>
8091
8092 * fold-const.c (operand_equal_p): Clarify documentation.
8093
8094 2003-09-08 Richard Henderson <rth@redhat.com>
8095
8096 * c-decl.c (c_expand_body_1): Push and pop function context here.
8097 * tree-optimize.c (tree_rest_of_compilation): ... not here. Take
8098 nested argument instead of computing nesting ourselves.
8099
8100 2003-09-08 Jakub Jelinek <jakub@redhat.com>
8101
8102 * toplev.c (rest_of_handle_stack_regs): Call split_all_insns before
8103 regstack if optimizing but not scheduling after reload.
8104
8105 2003-09-08 Jakub Jelinek <jakub@redhat.com>
8106
8107 * config/sparc/sparc.c (struct machine_function): New type.
8108 (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
8109 (sparc_override_options): Initialize init_machine_status.
8110 (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand,
8111 tie_symbolic_operand, tle_symbolic_operand): New functions.
8112 (symbolic_operand): Disallow tls_symbolic_operand.
8113 (symbolic_memory_operand): Likewise.
8114 (tls_call_delay, sparc_cannot_force_const_mem, legitimate_constant_p,
8115 constant_address_p, legitimate_pic_operand_p, legitimate_address_p):
8116 New functions.
8117 (sparc_tls_symbol): New variable.
8118 (sparc_tls_get_addr, sparc_tls_got, legitimize_tls_address,
8119 legitimize_address): New functions.
8120 (print_operand): Handle %&.
8121 (sparc_init_machine_status, get_some_local_dynamic_name,
8122 get_some_local_dynamic_name_1): New functions.
8123 (sparc_output_dwarf_dtprel): New function.
8124 * config/sparc/sparc.h (CONSTANT_ADDRESS_P): Moved into
8125 constant_address_p.
8126 (LEGITIMATE_PIC_OPERAND_P): Moved into legitimate_pic_operand_p.
8127 (LEGITIMATE_CONSTANT_P): Moved into legitimate_constant_p.
8128 (GO_IF_LEGITIMATE_ADDRESS): Moved into legitimate_address_p.
8129 (LEGITIMIZE_ADDRESS): Moved into legitimize_address.
8130 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
8131 (TARGET_TLS, TARGET_SUN_TLS, TARGET_GNU_TLS): Define.
8132 (ASM_OUTPUT_DWARF_DTPREL): Define.
8133 (PREDICATE_CODES): Add tgd_symbolic_operand, tld_symbolic_operand,
8134 tie_symbolic_operand, tle_symbolic_operand.
8135 * config/sparc/sparc.md (UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_TLSLDO,
8136 UNSPEC_TLSIE, UNSPEC_TLSLE, UNSPEC_TLSLD_BASE): New constants.
8137 (tls_call_delay): New attribute.
8138 (in_call_delay): Use it.
8139 (movqi, movhi, movsi, movdi): Call legitimize_tls_address if needed.
8140 (tgd_hi22, tgd_lo10, tgd_add32, tgd_add64, tgd_call32, tgd_call64,
8141 tldm_hi22, tldm_lo10, tldm_add32, tldm_add64, tldm_call32, tldm_call64,
8142 tldo_hix22, tldo_lox10, tldo_add32, tldo_add64, tie_hi22, tie_lo10,
8143 tie_ld32, tie_ld64, tie_add32, tie_add64, tle_hix22_sp32,
8144 tle_lox10_sp32, tle_hix22_sp64, tle_lox10_sp64): New insns.
8145 (tldo_ldub_sp32, tldo_ldub1_sp32, tldo_ldub2_sp32, tldo_ldsb1_sp32,
8146 tldo_ldsb2_sp32, tldo_ldub_sp64, tldo_ldub1_sp64, tldo_ldub2_sp64,
8147 tldo_ldub3_sp64, tldo_ldsb1_sp64, tldo_ldsb2_sp64, tldo_ldsb3_sp64,
8148 tldo_lduh_sp32, tldo_lduh1_sp32, tldo_ldsh1_sp32, tldo_lduh_sp64,
8149 tldo_lduh1_sp64, tldo_lduh2_sp64, tldo_ldsh1_sp64, tldo_ldsh2_sp64,
8150 tldo_lduw_sp32, tldo_lduw_sp64, tldo_lduw1_sp64, tldo_ldsw1_sp64,
8151 tldo_ldx_sp64, tldo_stb_sp32, tldo_stb_sp64, tldo_sth_sp32,
8152 tldo_sth_sp64, tldo_stw_sp32, tldo_stw_sp64, tldo_stx_sp64): New
8153 insns.
8154 * config/sparc/sparc-protos.h (legitimate_constant_p,
8155 constant_address_p, legitimate_pic_operand_p, legitimate_address_p,
8156 legitimize_tls_address, legitimize_address, tls_symbolic_operand,
8157 tls_call_delay, sparc_output_dwarf_dtprel): New prototypes.
8158 * config/sparc/linux.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
8159 * config/sparc/linux64.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Likewise.
8160 * configure.in (sparc*-*-*): Add TLS check.
8161 * configure: Rebuilt.
8162
8163 2003-09-07 Eric Botcazou <ebotcazou@libertysurf.fr>
8164
8165 PR target/11689
8166 * config/i386/i386.c (memory_address_length): Fix computation when
8167 the base is esp or ebp.
8168
8169 2003-09-07 Mark Mitchell <mark@codesourcery.com>
8170
8171 PR c++/11852
8172 * varasm.c (initializer_constant_valid_p): Correct logic for
8173 CONSTRUCTORs.
8174
8175 2003-09-07 Roger Sayle <roger@eyesopen.com>
8176
8177 * expr.c (expand_operands): New function to expand an operand pair.
8178 (expand_expr): Call expand_operands whenever we need to expand both
8179 operands of a binary operator.
8180 (do_store_flag): Likewise for operands of comparison operations.
8181
8182 2003-09-07 Roger Sayle <roger@eyesopen.com>
8183
8184 * combine.c (combine_simplify_rtx): Don't convert -(A*B) into
8185 (-A)*B if we care about sign-dependent rounding.
8186
8187 2003-09-07 Gabriel Dos Reis <gcc@integrable-solutions.net>
8188
8189 * c-pretty-print.h (pp_c_left_brace): Declare.
8190 (pp_c_right_brace): Likewise.
8191 * c-pretty-print.c (pp_c_left_brace): Now a function
8192 (pp_c_right_brace): Likewise.
8193
8194 2003-09-07 Jan Hubicka <jh@suse.cz>
8195
8196 * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
8197
8198 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
8199
8200 * diagnostic.c (warn_deprecated_use): Move to toplev.c
8201
8202 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
8203
8204 * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
8205 * Makefile.in (langhooks.o): Depend on diagnostic.h
8206
8207 2003-09-06 James E Wilson <wilson@tuliptree.org>
8208
8209 * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
8210 simplify.
8211
8212 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
8213
8214 * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
8215 and use it throughout.
8216
8217 2003-09-07 Jan Hubicka <jh@suse.cz>
8218
8219 * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
8220
8221 * toplev.c (rest_of_decl_compilation): Do not finalize external
8222 virables.
8223
8224 * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
8225 functions.
8226 (cgraph_varpool_finalize_decl): Notice global symbol when needed.
8227
8228 2003-09-06 Jan Hubicka <jh@suse.cz>
8229
8230 PR target/12070
8231 * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
8232
8233 PR opt/12082
8234 * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
8235
8236 2003-09-06 Gabriel Dos Reis <gdr@integrable-solutions.net>
8237
8238 * diagnostic.c (announce_function): Move to toplev.c.
8239
8240 2003-09-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8241
8242 * gcse.c (expr_equiv_p): Don't consider anything to be equal to
8243 volatile mem.
8244
8245 2003-09-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8246
8247 * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
8248 when gc checking is enabled.
8249
8250 2003-09-06 Steven Bosscher <steven@gcc.gnu.org>
8251
8252 PR c/9862
8253 * c-decl.c (c_expand_body_1): Move return warning from here...
8254 (finish_function): ...to here.
8255
8256 2003-09-05 Geoffrey Keating <geoffk@apple.com>
8257
8258 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
8259 a subset of the input class.
8260
8261 2003-09-05 Kazu Hirata <kazu@cs.umass.edu>
8262
8263 * config/i860/i860.c: Follow spelling conventions.
8264 * config/i860/i860.h: Likewise.
8265 * config/sh/sh.h: Likewise.
8266
8267 2003-09-05 Nitin Yewale <NitinY@KPITCummins.com>
8268
8269 * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
8270 * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
8271 * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
8272
8273 2003-09-05 Roger Sayle <roger@eyesopen.com>
8274 Richard Henderson <rth@redhat.com>
8275
8276 PR optimization/1823
8277 * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
8278 multiplication to implement division by constant integer.
8279
8280 2003-09-05 Jan Hubicka <jh@suse.cz>
8281
8282 * opts.c (decode_options): Enable unit-at-a-time at -O2.
8283 * params.def (max-inline-insns-single): Set to 500
8284 (max-inline-insns-auto): Set to 150
8285 * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
8286
8287 2003-09-04 Richard Henderson <rth@redhat.com>
8288
8289 * cgraph.c (cgraph_mark_reachable_node): Split out from ...
8290 (cgraph_mark_needed_node): Remove needed argument.
8291 * cgraph.h: Update to match.
8292 * cgraphunit.c (decide_is_function_needed): Split out from ...
8293 (cgraph_finalize_function): Reorg. Avoid deferred_inline_function
8294 if we generated the function.
8295 (record_call_1): Update for cgraph_mark_reachable_node.
8296 * varasm.c (mark_referenced): Likewise.
8297 * objc/objc-act.c (mark_referenced_methods): Likewise.
8298
8299 2003-09-04 DJ Delorie <dj@redhat.com>
8300
8301 * targhooks.c: Add comment explaining the migration process.
8302
8303 2003-09-04 Eric Christopher <echristo@redhat.com>
8304
8305 * config/frv/t-frv: Fix path for frv-abi.h.
8306 * config/frv/frv-asm.h: Fix string concatenation.
8307
8308 2003-09-04 DJ Delorie <dj@redhat.com>
8309
8310 * builtins.c (apply_args_size): Guard against a NULL cfun.
8311 (expand_builtin_apply_args_1): Likewise.
8312 (expand_builtin_apply): Likewise.
8313 Fixes PR bootstrap/12172.
8314
8315 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8316
8317 * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
8318 assembler supports Sun syntax for cmov.
8319 * configure: Regenerate.
8320 * config.in: Likewise.
8321 * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
8322 HAVE_AS_IX86_CMOV_SUN_SYNTAX.
8323 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
8324 Fixes PR target/12101.
8325
8326 2003-09-04 Matt Austern <austern@apple.com>
8327
8328 * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
8329 with verbosity 0, instead of DECL_NAME, for human-readable string.
8330
8331 2003-09-04 Eric Christopher <echristo@redhat.com>
8332
8333 * targhooks.c (default_return_in_memory): Allow
8334 unconverted ports.
8335
8336 2003-09-04 Eric Christopher <echristo@redhat.com>
8337
8338 * targhooks.c (default_return_in_memory): Fix typo
8339 in last checkin.
8340
8341 2003-09-04 Eric Christopher <echristo@redhat.com>
8342
8343 * targhooks.c (default_return_in_memory): Fix default
8344 definition.
8345
8346 2003-09-04 Bernardo Innocenti <bernie@develer.com>
8347
8348 * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
8349 deleted function.
8350 * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
8351 enable coff-only code in m68k.c.
8352
8353 2003-09-04 Nick Clifton <nickc@redhat.com>
8354
8355 * config.gcc: Add v850e1 target. Allow --with-cpu to accept
8356 v850e1.
8357 * config/v850/v850.h: Accept v850e1 as a default CPU.
8358 Accept -mv850e1 as a command line option.
8359 * doc/invoke.texi: Document new -mv850e1 command line switch.
8360 * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
8361 -mv850e.
8362
8363 2003-09-04 Nick Clifton <nickc@redhat.com>
8364
8365 * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
8366 * config/v850/t-v850: Only produce one extra multilib - for
8367 the v850e.
8368 * config/v850/t-v850e: New file: Only produce one extra
8369 multilib - for the v850.
8370
8371 2003-09-04 Jakub Jelinek <jakub@redhat.com>
8372
8373 * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
8374 * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
8375 * unwind.h (_Unwind_GetBSP): New prototype.
8376 * libgcc-std.ver: Add empty GCC_3.3.2 version.
8377 * mkmap-symver.awk: For symbol versions with no exported symbols,
8378 don't put anything into version script, just change all symbol
8379 versions which inherit from it to inherit from its ancestor.
8380
8381 2003-09-04 Eric Christopher <echristo@redhat.com>
8382
8383 * config/mips/mips.c (mips_expand_prologue): Convert to
8384 calls.struct_value_rtx hook.
8385 (reg_or_const_float_1_operand): New.
8386 * config/mips/mips.h: Update Comments.
8387 (mips_arg): Add reg_or_const_float_1_operand.
8388 * config/mips/mips.md (divdf3); Convert to expander.
8389 (divsf3): Ditto.
8390 (*divdf3): New pattern.
8391 (*divsf3): Ditto.
8392
8393 2003-09-04 Jan Hubicka <jh@suse.cz>
8394
8395 * toplev.c (wrapup_global_declarations): Fix final pass in
8396 unit-at-atime mode.
8397
8398 2003-09-04 Mark Mitchell <mark@codesourcery.com>
8399
8400 * doc/extend.texi: Document removal of cast-as-lvalue extension in
8401 C++.
8402
8403 2003-09-04 Nicolas Roche <roche@act-europe.fr>
8404
8405 * gcc.c (process_command): Fix typo.
8406
8407 2003-09-03 David O'Brien <obrien@FreeBSD.org>
8408
8409 optimization/11980
8410 * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
8411 (PTRDIFF_TYPE): Likewise.
8412 (WCHAR_TYPE_SIZE): Likewise.
8413
8414 2003-09-03 DJ Delorie <dj@redhat.com>
8415
8416 * targhooks.c: New file.
8417 * targhooks.h: New file.
8418 * Makefile.in: Add targhooks.o support.
8419 (function.o): Depend on$(TARGET_H).
8420 (stmt.o): Likewise.
8421 (combine.o): Depend on $(TREE_H) and $(TARGET_H).
8422 * builtins.c (apply_args_size, expand_builtin_apply_args_1,
8423 expand_builtin_apply): Convert to calls.struct_value_rtx hook.
8424 (expand_builtin_saveregs): Convert to
8425 calls.expand_builtin_saveregs hook.
8426 * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
8427 here, instead of ...
8428 (get_parm_info) ... here.
8429 (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
8430 hook.
8431 (finish_function): Handle calls.promote_prototypes hook here too.
8432 * c-typeck.c (convert_arguments): Convert to
8433 calls.promote_prototypes hook.
8434 (c_convert_parm_for_inlining): Likewise.
8435 * calls.c (initialize_argument_information): Convert to
8436 calls.promote_function_args hook.
8437 (expand_call): Convert to calls.struct_value_rtx,
8438 calls.strict_argument_naming,
8439 calls.pretend_outgoing_varargs_named, and
8440 calls.promote_function_return hooks. Pass fndecl to
8441 aggregate_value_p. Initialize CUMULATIVE_ARGS before calling
8442 hooks, so they can use that.
8443 (emit_library_call_value_1): Likewise.
8444 * combine.c (setup_incoming_promotions): Convert to
8445 calls.promote_function_args hook.
8446 * emit-rtl.c: Convert to calls.struct_value_rtx hook.
8447 * expr.c (expand_assignment): Pass call to aggregate_value_p.
8448 (expand_expr): Likewise.
8449 * expr.h: Remove support for SETUP_INCOMING_VARARGS,
8450 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
8451 RETURN_IN_MEMORY macro defaults.
8452 * final.c (profile_function): Convert to calls.struct_value_rtx
8453 hook.
8454 * function.c (aggregate_value_p): Accept function type tree as
8455 second parameter; try to deduce fntype from it. Convert to
8456 calls.return_in_memory hook.
8457 (assign_parms): Convert to calls.setup_incoming_varargs,
8458 calls.strict_argument_naming, calls.promote_function_args,
8459 calls.pretend_outgoing_varargs_named hooks. Pass fndecl to
8460 aggregate_value_p.
8461 (expand_function_start): Likewise. Convert to
8462 calls.struct_value_rtx hook.
8463 (expand_function_end): Convert to calls.promote_function_return hook.
8464 (allocate_struct_function): Pass fndecl to aggregate_value_p.
8465 * hard-reg-set.h: Update comments to new hook names.
8466 * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
8467 * reg-stack.c (stack_result): Likewise.
8468 * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
8469 * stmt.c (expand_value_return): Convert to
8470 calls.promote_function_return hook.
8471 * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
8472 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
8473 TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
8474 TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
8475 TARGET_STRICT_ARGUMENT_NAMING,
8476 TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
8477 * target.h: Likewise.
8478 * tree.h (aggregate_value_p): Also takes a tree to deduce function
8479 attributes from (for target hooks).
8480 * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
8481 PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
8482 STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
8483 EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
8484 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
8485 to hooks.
8486
8487 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
8488 to aggregate_value_p.
8489 * config/arm/arm.c (arm_init_cumulative_args,
8490 arm_output_mi_thunk): Likewise.
8491 * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
8492 Likewise.
8493 * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
8494 mips_can_use_return_insn): Likewise.
8495 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
8496 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
8497 * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
8498 aggregate_value_p.
8499 * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
8500 function to aggregate_value_p.
8501 * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
8502 aggregate_value_p.
8503
8504 * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
8505 (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
8506 sh_function_arg_advance, sh_pass_in_reg_p): New. * config/sh/sh.c
8507 (sh_handle_renesas_attribute, sh_promote_prototypes,
8508 sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
8509 sh_setup_incoming_varargs, sh_strict_argument_naming,
8510 sh_pretend_outgoing_varargs_named): New decls.
8511 (targetm): Add new hooks.
8512 (calc_live_regs): Save MACL and MACH if the function has the
8513 renesas attribute.
8514 (sh_expand_prologue): Support renesas attribute.
8515 (sh_builtin_saveregs): Make static.
8516 (sh_build_va_list): Support renesas attribute.
8517 (sh_va_start): Likewise.
8518 (sh_va_arg): Likewise.
8519 (sh_promote_prototypes): New.
8520 (sh_function_arg): New, moved from sh.h. Support renesas
8521 attribute.
8522 (sh_function_arg_advance): Likewise.
8523 (sh_return_in_memory): Likewise.
8524 (sh_strict_argument_naming): Likewise.
8525 (sh_pretend_outgoing_varargs_named): Likewise.
8526 (sh_struct_value_rtx): New.
8527 (sh_attribute): Add renesas attribute.
8528 (sh_handle_renesas_attribute): New.
8529 (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
8530 (sh_ms_bitfield_layout_p): Support renesas attribute also.
8531 (sh_output_mi_thunk): Pass function to aggregate_value_p. *
8532 config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
8533 -mhitachi.
8534 (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
8535 target hooks.
8536 (sh_args): Add renesas_abi flag.
8537 (INIT_CUMULATIVE_ARGS): Set it. Pass fndecl to aggregate_value_p.
8538 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
8539 (PASS_IN_REG_P): Support renesas attribute. Pass DF and TF on the
8540 stack for the renesas abi.
8541 (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
8542 SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
8543 PROMOTE_PROTOTYPES): Moved to sh.c. * config/sh/sh.md (call): Set
8544 call cookie to indicate renesas calls.
8545
8546 2003-09-03 Mostafa Hagog <mustafa@il.ibm.com>
8547
8548 * gcse.c (replace_one_set): New function.
8549 (pre_insert_copy_insn): Change the order of copying
8550 to make copy propagation discover additional PRE opportunities.
8551
8552 2003-09-03 Roger Sayle <roger@eyesopen.com>
8553
8554 PR optimization/11700.
8555 * simplify-rtx.c (simplify_subreg): Check that the subreg offset
8556 of a hard register is representable before trying to simplify it
8557 using subreg_hard_regno.
8558
8559 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8560
8561 * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
8562 * configure: Regenerate.
8563
8564 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8565
8566 * intl.h (N_): Remove parentheses.
8567
8568 2003-09-03 Bernardo Innocenti <bernie@develer.com>
8569
8570 * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
8571 * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
8572 definition and code blocks compiled when not defined.
8573 * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
8574 * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
8575 * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
8576 * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
8577
8578 2003-09-03 Jeff Sturm <jsturm@one-point.com>
8579
8580 * cgraphunit.c (visited_nodes): New static variable.
8581 (record_call_1): Use walk_tree with visited_nodes.
8582 (cgraph_create_edges): Use walk_tree with visited_nodes.
8583 Setup/teardown visited_nodes hashtable.
8584
8585 2003-09-03 Roger Sayle <roger@eyesopen.com>
8586
8587 * toplev.c (flag_rounding_math): New global variable.
8588 (f_options): Add to the list of language independent options.
8589 * flags.h (flag_rounding_math): Prototype here.
8590 (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
8591 * common.opt (frounding-math): New common command line option.
8592 * opts.c (common_handle_option): Handle OPT_frounding_math.
8593 (set_fast_math_flags): -ffast-math clears flag_rounding_math.
8594
8595 * doc/invoke.texi: Document this new command line option.
8596
8597 2003-09-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8598
8599 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
8600
8601 2003-09-03 Jan Hubicka <jh@suse.cz>
8602
8603 * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
8604 * c-decl.c (finish_function): Kill arguments, always use cgraph path.
8605 * c-objc-common.c: Kill include of gt-c-objc-common.h
8606 (expand_deferred_fns, deffer_fn): Kill function.
8607 (deferred_fns): Kill variable.
8608 (finish_cdtor): Update finish_function call.
8609 (c_objc_common_finish_file): Always call cgraph code.
8610 * c-parse.c: Regenerate.
8611 * c-parse.y: Regenerate.
8612 * c-tree.h (finish_function): Update prototype.
8613 * objc-acct.c (build_module_descriptor, finish_method_def):
8614 Update call of finish_function.
8615 * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
8616 forward prototype.
8617 (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
8618 function and assemble it if needed.
8619 (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
8620 mode.
8621 (cgraph_optimize): Likewise.
8622 (cgraph_expand_function): In non-unit-at-a-time mode keep function body
8623 even when it has no inline callees.
8624 * c-parse.in: Update calls to finish_function.
8625
8626 2003-09-03 Nick Clifton <nickc@redhat.com>
8627
8628 * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
8629 Use #error to generate the message if TARGET_DEFAULT is not
8630 recognised.
8631
8632 2003-09-03 Richard Sandiford <rsandifo@redhat.com>
8633
8634 * config/mips/mips.h (MASK_UNUSED1): Remove.
8635 (MASK_XGOT, TARGET_XGOT): Define.
8636 (TARGET_SWITCHES): Add an entry for -mxgot.
8637 (ASM_SPEC): Map -mxgot to -xgot.
8638 * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
8639 whether we're using a big-GOT sequences.
8640 (mips_legitimize_const_move, mips_expand_call): Likewise.
8641 (override_options): Revert 2003-01-09 change.
8642 * doc/invoke.texi: Document -mxgot.
8643
8644 2003-09-02 Jason Merrill <jason@redhat.com>
8645
8646 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
8647 * config/sparc/sol2.h: Not here.
8648
8649 2003-09-02 Roger Sayle <roger@eyesopen.com>
8650
8651 * expr.c (expand_expr): The code following both_summands performs
8652 the same task as simplify_gen_binary. Replace all gotos to
8653 both_summands with a call to simplify_gen_binary and delete the
8654 now unused label.
8655
8656 2003-09-02 Jason Merrill <jason@redhat.com>
8657
8658 PR c++/7327
8659 * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
8660
8661 2003-09-02 Jeff Sturm <jsturm@one-point.com>
8662
8663 * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
8664 (cgraph_optimize_function): Set current_function_decl to the
8665 fndecl we're integrating from.
8666
8667 2003-09-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8668
8669 * builtins.def: Break out _Complex math functions into their
8670 own category.
8671
8672 2003-09-02 Andreas Jaeger <aj@suse.de>
8673
8674 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
8675
8676 2003-09-02 Josef Zlomek <zlomekj@suse.cz>
8677
8678 * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
8679 finding the note again.
8680
8681 2003-09-02 Nathanael Nerode <neroden@gcc.gnu.org>
8682
8683 * config.gcc: Remove host-specific rewrites of target_alias.
8684
8685 2003-09-01 Mark Mitchell <mark@codesourcery.com>
8686
8687 * Makefile.in (genprogs): Fix typo.
8688
8689 * Makefile.in (gencheck.o): Remove build commands.
8690 (dummy-conditions.o): Likewise.
8691 (read-rtl.o): Likewise.
8692 (gensupport.o): Likewise.
8693 (genconfig$(build_exeext)): Remove rule.
8694 (genconfig.o): Remove build commands.
8695 (genflags$(build_exeext)): Remove rule.
8696 (genflags.o): Remove build commands.
8697 (gencodes$(build_exeext)): Remove rule.
8698 (gencodes.o): Remove build commands.
8699 (genconstants.o): Remove build commands.
8700 (genemit$(build_exeext)): Remove rule.
8701 (genemit.o): Remove build commands.
8702 (genrecog$(build_exeext)): Remove rule.
8703 (genrecog.o): Remove build commands.
8704 (genextract$(build_exeext)): Remove rule.
8705 (genextract.o): Remove build commands.
8706 (genpeep$(build_exeext)): Remove rule.
8707 (genpeep.o): Remove build commands.
8708 (genattr$(build_exeext)): Remove rule.
8709 (genattr.o): Remove build commands.
8710 (genprognames): New variable.
8711 (genprogs): Likewise.
8712 (genobjs): Likewise.
8713 (genprogs): New rule.
8714 (genobjs): Likewise.
8715 (genattrtab.o): Remove build commands.
8716 (genautomata.o): Likewise.
8717 (genoutput$(build_exeext)): Remove rule.
8718 (genoutput.o): Remove build commands.
8719 (gengenrtl.o): Likewise.
8720 (genpreds.o): Likewise.
8721 (gengtype.o): Likewise.
8722 (genconditions.o): Likewise.
8723 (gen-protos.o): Likewise.
8724 (scan.o): Likewise.
8725 (fix-header.o): Likewise.
8726 (scan-decls.o): Likewise.
8727 (check-g++): Combine with other check targets.
8728 (check-gcc): Likewise.
8729 (check-g77): Likewise.
8730 (check-objc): Likewise.
8731
8732 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
8733
8734 * config.gcc: Remove host-specific stuff which is unused here
8735 since the introduction of config.host.
8736
8737 * doc/fragments.texi: Mention config.host.
8738 * doc/sourcebuild.texi: Mention config.host. Give brief descriptions
8739 of config.build, config.host, and config.gcc.
8740
8741 2003-09-01 Zack Weinberg <zack@codesourcery.com>
8742
8743 * c-decl.c (pushdecl): Don't put variables on
8744 C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
8745 incomplete.
8746
8747 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
8748
8749 * config.host: New file.
8750 * config.gcc: Remove some host-specific stuff and some
8751 logic needed only for repeated invocation.
8752 * configure.in: Use config.host.
8753 * configure: Regenerate.
8754
8755 2003-09-01 Josef Zlomek <zlomekj@suse.cz>
8756
8757 * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
8758 * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
8759 * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
8760 (fold): Kill BIT_ANDTC_EXPR and label bit_and.
8761 * tree.def (BIT_ANDTC_EXPR): Kill.
8762
8763 2003-08-31 Nathanael Nerode <neroden@gcc.gnu.org>
8764
8765 * configure.in: Remove uses of "for x in .. ${foo}" idiom.
8766 * configure: Regenerate.
8767
8768 * config.gcc: Remove references to install_headers_dir, now unused
8769 since introduction of config.build.
8770 * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
8771
8772 * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
8773 config.build.
8774
8775 * config.build: New file.
8776 * config.gcc: Remove some build-specific stuff.
8777 * configure.in: Use config.build.
8778 * configure: Regnerate.
8779
8780 2003-08-31 Steven Bosscher <steven@gcc.gnu.org>
8781 Roger Sayle <roger@eyesopen.com>
8782
8783 PR middle-end/11823
8784 * stmt.c (expand_end_case_type): Only use jump tables for dense
8785 switch statements when optimizing for size.
8786
8787 2003-08-31 Olivier Hainque <hainque@act-europe.fr>
8788
8789 * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
8790 the != 0 case, which ensures pending stack adjustments are flushed.
8791
8792 2003-08-30 Zack Weinberg <zack@codesourcery.com>
8793
8794 * configure.frag: Delete file.
8795 * configure.in: Rename the substitution variables
8796 dep_host_xmake_file and dep_tmake_file to xmake_file and
8797 tmake_file respectively. Do not expand $srcdir in the
8798 value of these; leave that for Make. Introduce a new
8799 substitution varaible, all_lang_makefrags, which lists
8800 subdirectory Make-lang.in files; exclude these from
8801 all_lang_makefiles, which is now only for subdirectory
8802 outputs. Do not invoke configure.frag. Do not set nor
8803 AC_SUBST_FILE target_overrides, host_overrides, or
8804 language_fragments. Create build subdirectories in
8805 config.status extra commands.
8806 * configure: Regenerate.
8807 * Makefile.in: Update substitutions to match changes to
8808 configure. Use include directives instead of @-insertions
8809 to read in host, target, and language fragments.
8810 (Makefile rule): Do not invoke configure.frag. Do not copy
8811 config.status to config.run before executing it. Set
8812 CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
8813 regenerated.
8814 (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
8815
8816 2003-08-30 Zack Weinberg <zack@codesourcery.com>
8817
8818 * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
8819 * c-typeck.c (same_translation_unit_p): New function.
8820 (comptypes): Use it instead of flags parameter to identify
8821 structure types from different translation units.
8822 * c-decl.c (duplicate_decls): Always call comptypes with
8823 COMPTYPE_STRICT flags argument.
8824 (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
8825 to file_scope_decl.
8826
8827 2003-08-30 Zack Weinberg <zack@codesourcery.com>
8828
8829 * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
8830 * c-decl.c (struct c_scope): Remove "incomplete" field.
8831 (pushdecl): Attach variables with incomplete types to
8832 the TYPE_MAIN_VARIANT of the incomplete type in question.
8833 (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
8834 to complete, not at current_scope->incomplete. All such
8835 variables do need completion.
8836
8837 2003-08-30 Richard Earnshaw <rearnsha@arm.com>
8838 Nicolas Pitre <nico@cam.org>
8839
8840 * arm/lib1funcs.asm (RETCOND): Delete.
8841 (RETLDM): New assembler macro. Use it for returning with ldm/ldr.
8842 (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
8843 (__ARM_ARCH__): Move here from ieee754-?f.S.
8844 (RET, RETc): Clean up definitions.
8845 (DIV_FUNC_END): Renamed from FUNC_END. All uses changed.
8846 (FUNC_END): New macro that marks the end of any function.
8847 (ARM_FUNC_START): New macro that allows an assembler routine to be
8848 implemented in ARM code even if a Thumb-only build.
8849 Unconditionally include ieee754-?f.S.
8850 * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
8851 Mark ends of functions.
8852 Split into separate conditionally-compiled units.
8853 Use RETLDM to return from routines.
8854 * arm/ieee754-sf.S: Similarly.
8855 * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
8856 Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
8857 _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
8858 _fixsfsi and _fixunssfsi.
8859
8860 * arm/ieee754-df.S (__muldf3): Fix bug when result of a
8861 multiplication underflows to zero.
8862 (__adddf3): Fix bug when using VFP ordering on little-endian
8863 processors.
8864 (__fixdfsi): Use rrx to extract the carry into a register instead of
8865 MRS instruction. Optimize later use of result.
8866 * arm/ieee754-sf.S (__fixsfsi): Likewise.
8867 (__fixunssfsi): Use a better sequence for handling negative-or-zero.
8868
8869 2003-08-29 Richard Henderson <rth@redhat.com>
8870
8871 * tree-optimize.c: New file.
8872 * Makefile.in (OBJS-archive): Add tree-optimize.o.
8873 (tree-optimize.o): New.
8874 * c-decl.c (store_parm_decls): Use allocate_struct_function.
8875 (finish_function): Don't free_after_parsing or free_after_compilation.
8876 (set_save_expr_context): Move to tree-optimize.c.
8877 (c_expand_body_1): Use tree_rest_of_compilation.
8878 * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
8879 * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
8880 * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
8881 iterate until closure.
8882 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
8883 LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
8884 (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
8885 * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
8886 * toplev.h (tree_rest_of_compilation): Declare it.
8887
8888 2003-08-29 Richard Henderson <rth@redhat.com>
8889
8890 * function.h (struct function): Add rtl_inline_init, saved_for_inline.
8891 * integrate.c (save_for_inline): Set saved_for_inline.
8892 * c-semantics.c (genrtl_scope_stmt): Check it.
8893 * toplev.c (wrapup_global_declarations): Check it.
8894 (rest_of_handle_inlining): Set and check rtl_inline_init.
8895 (rest_of_compilation): Remove out of date comment.
8896
8897 2003-08-29 Richard Henderson <rth@redhat.com>
8898
8899 * function.c (allocate_struct_function): New, split out of ...
8900 (prepare_function_start, init_function_start): ... here.
8901 * expr.c (init_expr): Use ggc_alloc_cleared.
8902 * stmt.c (init_stmt_for_function): Likewise.
8903 * tree.h (allocate_struct_function): Declare.
8904
8905 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
8906
8907 * config.gcc: Don't use negated character class in shell case
8908 clause.
8909
8910 2003-08-29 Richard Henderson <rth@redhat.com>
8911
8912 * function.h (struct function): Move function_frequency and
8913 max_jumptable_ents before start of bit field members.
8914
8915 2003-08-29 Richard Henderson <rth@redhat.com>
8916
8917 * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
8918 (fold_builtin_constant_p) ... not here.
8919
8920 2003-08-29 Richard Henderson <rth@redhat.com>
8921
8922 * c-tree.h (C_DECL_FILE_SCOPE): Move ...
8923 * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
8924 * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
8925
8926 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8927
8928 * builtins.def: Fix typos.
8929 (ATTR_MATHFN_FPROUNDING_STORE): New macro.
8930 (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
8931 BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
8932 BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
8933 BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
8934
8935 * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
8936 Use ATTR_MATHFN_FPROUNDING_ERRNO.
8937
8938 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
8939
8940 * config.gcc (i386-*-vsta): Fix obvious bogosity.
8941
8942 * fixinc/inclhack.def: Remove special cases for unsupported
8943 PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
8944 * fixinc/fixincl.x: Regenerate.
8945
8946 2003-08-29 Mark Mitchell <mark@codesourcery.com>
8947
8948 * Makefile.in (cpp.info): Just state dependencies.
8949 (gcc.info): Likewise.
8950 (gccint.info): Likewise.
8951 (gccinstall.info): Likewise.
8952 (cppinternals.info): Likewise.
8953 (cpp.dvi): Likewise.
8954 (gcc.dvi): Likewise.
8955 (gccint.dvi): Likewise.
8956 (gccinstall.dvi): Likewise.
8957 (cppinternals.dvi): Likewise.
8958 (gcov.1): Likewise.
8959 (cpp.1): Likewise.
8960 (gcc.1): Likewise.
8961 (gfdl.7): Likewise.
8962 (gpl.7): Likewise.
8963 (fsf-funding.7): Likewise.
8964 ($(objdir)/%.info): New pattern rule.
8965 (%.dvi): Likewise.
8966
8967 2003-08-29 Kelley Cook <kelleycook@wideopenwest.com>
8968
8969 * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
8970 (restage2): Likewise.
8971 (restage3): Likewise.
8972 (restage4): Likewise.
8973 (restageprofile): Likewise.
8974 (restagefeedback): Likewise.
8975 (bubblestrap): Likewise.
8976
8977 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
8978
8979 * config.gcc: Narrow unsupported target match to avoid clobbering
8980 i?86-sequent-sysv4*.
8981
8982 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8983
8984 * builtins.c (mathfn_built_in): Handle new math builtins.
8985
8986 2003-08-28 Per Bothner <per@bothner.com>
8987
8988 Fix (hopefully temporary) for breakage caused by my 08-21 patch.
8989 * cpplex.c (_cpp_get_fresh_line): Check for null buffer.
8990 (_cpp_lex_buffer): Likewise.
8991 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
8992
8993 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
8994
8995 * config/s390/s390.md ("*mulsi3_sign"): New insn.
8996 ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
8997 ("mulsidi3"): ... this new insn.
8998 ("umulsidi3"): New insn.
8999 ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
9000 mixed-mode matching constraints.
9001 ("udivmodsi4", "udivmoddisi3"): New insns.
9002 ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
9003
9004 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9005
9006 * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
9007 BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
9008 BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
9009 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
9010 BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
9011 BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
9012 BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
9013 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
9014 BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
9015 BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
9016 BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
9017 * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
9018 BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
9019 BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
9020 BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
9021 * tree.c: Assign new type_nodes.
9022 * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
9023 TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
9024 (float_ptr_type_node, double_ptr_type_node,
9025 long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
9026
9027 * doc/extend.texi: Document new builtins.
9028
9029 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9030
9031 * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
9032 BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
9033
9034 * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
9035 BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
9036 BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
9037 BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
9038 BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
9039 BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
9040 BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
9041 BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
9042 BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
9043 BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
9044
9045 * doc/extend.texi: Document new builtins.
9046
9047 2003-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
9048
9049 * fixinc/mkfixinc.sh: Remove special case code for unsupported
9050 variants of i?86, powerpcle, and thumb.
9051 * fixinc/mkfixinc.sh: Remove special case code for unsupported
9052 arm and hppa variants.
9053
9054 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9055
9056 * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
9057 BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
9058 BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
9059 BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
9060 BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
9061 BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
9062 BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
9063 BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
9064 BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
9065 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
9066
9067 * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
9068 BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
9069 BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
9070 BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
9071 BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
9072 BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
9073 BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
9074 BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
9075 BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
9076 BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
9077 BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
9078 BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
9079 BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
9080 BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
9081 BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
9082 BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
9083 BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
9084 BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
9085 BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
9086 BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
9087 BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
9088 BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
9089 BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
9090 BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
9091 BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
9092 BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
9093 BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
9094 BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
9095 BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
9096 BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
9097 BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
9098
9099 * doc/extend.texi: Document new builtins.
9100
9101 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
9102
9103 * config/s390/s390.c (legitmate_constant_p): Use LARL on
9104 zSeries machines even in 31-bit addressing mode.
9105 (legitimate_reload_constant_p): Likewise.
9106 (legitimize_pic_address): Likewise.
9107 (legitimize_tls_address): Likewise.
9108 (s390_split_branches): Likewise.
9109 (s390_dump_pool): Likewise.
9110 (s390_mainpool_finish): Likewise.
9111 (s390_chunkify_start): Likewise.
9112 (s390_select_rtx_section): Likewise.
9113 * config/s390/s390.md ("doloop_si"): Likewise.
9114 ("pool_start_31", "pool_end_31"): Likewise.
9115 ("pool_start_64", "pool_end_64"): Likewise.
9116 ("main_base_31_small", "main_base_31_large"): Likewise.
9117 ("main_base_64"): Likewise.
9118 ("reload_base_31", "reload_base_64"): Likewise.
9119 ("*movsi_larl"): New insn.
9120 ("cjump", "icjump"): Use long branches on zSeries machines.
9121 ("jump"): Likewise.
9122 ("call"): Use BRASL on zSeries machines.
9123 ("call_value", "call_value_tls"): Likewise.
9124 ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
9125 and replace by ...
9126 ("*bras", "*brasl", "*basr") ... these new insns.
9127 ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
9128 "bas_31_r"): Remove and replace by ...
9129 ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
9130 ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
9131 "bas_64_tls", "bas_31_tls"): Remove and replace by ...
9132 ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
9133 ("*return_si", "*return_di"): Remove and replace by ...
9134 ("*return"): ... this new insn.
9135 ("rotlsi3"): Allow on zSeries machines.
9136
9137 * config/s390/s390.c (legitimize_reload_constant_p): Use
9138 LL/LH type instructions in z/Architecture mode.
9139 * config/s390/s390.md ("*movsi_lli"): Likewise.
9140 ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
9141 ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
9142 ("*extendqisi2"): Use LB in z/Architecture mode.
9143 ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
9144 z/Architecture mode.
9145 ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
9146 Likewise.
9147
9148 * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
9149 and 31-bit mode.
9150 ("ptr_extend"): Allow only in 64-bit mode.
9151
9152 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
9153
9154 * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
9155 (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
9156 definitions.
9157 (main): Only use standard_startfile_prefix if native.
9158 * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
9159
9160 2003-08-27 Per Bothner <pbothner@apple.com>
9161
9162 * cpperror.c (print_location): Don't check for !pfile->buffer. That
9163 test fails following my 08-21 change, and it seems unnecessary anyway.
9164 (cpp_error): Likewise.
9165
9166 2003-08-27 Jason Merrill <jason@redhat.com>
9167
9168 * real.c (do_multiply): Initialize with memset.
9169
9170 2003-08-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9171
9172 * gcov.c (typedef struct arc_info): New field cs_count.
9173 (accumulate_line_counts): Find cycles correctly.
9174
9175 2003-08-27 Ulrich Weigand <uweigand@de.ibm.com>
9176
9177 * config/s390/s390.c (struct machine_function): Remove member
9178 literal_pool_label.
9179 (s390_optimize_prolog): Replace TEMP_REG argument with
9180 TEMP_USED and BASE_USED. Do not check get_pool_size ().
9181 (general_s_operand): Accept all immediates before reload if
9182 ALLOW_IMMEDIATE. If not ALLOW_IMMEDIATE, reject literal pool
9183 references.
9184 (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
9185 (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
9186 (s390_alloc_pool): New function.
9187 (s390_new_pool): Call it.
9188 (s390_dump_pool): Add REMOTE_LABEL argument.
9189 (s390_chunkify_start): Add BASE_REG argument. Do not check
9190 get_pool_size ().
9191 (s390_chunkify_finish): Add BASE_REG argument. Adapt
9192 s390_dump_pool call.
9193 (s390_pool_count, s390_nr_constants): Remove.
9194 (s390_output_constant_pool): Remove.
9195 (s390_mainpool_start): New function.
9196 (s390_mainpool_finish): New function.
9197 (s390_mainpool_cancel): New function.
9198 (s390_reorg): Implement main literal pool handling.
9199 (s390_emit_prologue): Emit main_pool placeholder instead of
9200 literal_pool_31 / literal_pool_64 insns.
9201 * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
9202 (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
9203 * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
9204 ("main_base_31_small", "main_base_31_large"): New insns.
9205 ("main_base_64", "main_pool"): New insns.
9206 ("literal_pool_31", "literal_pool_64"): Remove.
9207
9208 2003-08-27 Nathanael Nerode <neroden@gcc.gnu.org>
9209
9210 * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
9211 fixinc.ptx.
9212 * fixinc/inclhack.def (undefine_null): Don't generate \r characters.
9213 Prettify a little.
9214 * fixinc/fixincl.x: Regenerate.
9215
9216 2003-08-27 Richard Earnshaw <rearnsha@arm.com>
9217
9218 * lib1funcs.asm (L_ieee754_sp): New. Include ieee754-sf.S.
9219 (L_ieee754_dp): New. Include ieee754-df.S.
9220 * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
9221 and compilation in apcs-26 mode.
9222 * arm/ieee754-df.S: Likewise.
9223 * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
9224 (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
9225
9226 2003-08-27 Nicolas Pitre <nico@cam.org>
9227
9228 * arm/ieee754-sf.S: New.
9229 * arm/ieee754-df.S: New.
9230
9231 2003-08-27 Jakub Jelinek <jakub@redhat.com>
9232
9233 * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
9234 and restore it if returning NULL.
9235
9236 2003-08-27 Richard Sandiford <rsandifo@redhat.com>
9237
9238 * calls.c (initialize_argument_information): If an argument has no
9239 stack space associated with it, and BLOCK_REG_PADDING is defined,
9240 use it to decide at which end the argument should be padded.
9241 * function.c (assign_parms): Allocate BLKmode stack slots.
9242 * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
9243 (mips_pad_reg_upward): Declare.
9244 * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
9245 (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
9246 (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
9247 (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
9248 * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
9249 (mips_expand_call): Remove code for generating structure shifts.
9250 (mips_arg_info): Don't set struct_p. Don't set fpr_p for non-float
9251 types unless using the EABI.
9252 (function_arg_advance): Don't generate shift instructions.
9253 (function_arg): Don't return them. Don't short-circuit the
9254 check for double structure chunks for DFmode arguments.
9255 (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
9256 (mips_expand_prologue): Remove code to emit structure shifts.
9257 * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
9258 structure passing (inet_ntoa, inet_lnaof, inet_netof). Update
9259 comments to say that only structure returns are a problem.
9260
9261 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
9262
9263 * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
9264 Fix to match produced versions.
9265 * fixinc/inclhack.def (longlong_t): New disabled test, ported
9266 from fixinc.svr4.
9267 * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
9268 from fixinc.ptx.
9269 * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
9270 ported from fixinc.ptx.
9271
9272 2003-08-26 Per Bothner <pbothner@apple.com>
9273
9274 * cpplib.h (struct cpp_token): Change type of field line to fileline.
9275 (cpp_error_with_line): Use fileline for appropriate parameter.
9276 * cpphash.h (struct cpp_macro): Change type of field line to fileline.
9277 (struct cpp_reader): Likewise for fields line and directive_line.
9278 (_cpp_begin_message): Use fileline for appropriate parameter.
9279 * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
9280 cpp_error): Use fileline for appropriate parameters and variables.
9281 (print_location): New local lin, since it is not a fileline.
9282
9283 2003-08-26 Roger Sayle <roger@eyesopen.com>
9284
9285 PR middle-end/12002
9286 * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
9287 (FLOAT_TYPE_P): Define in terms of these two new macros.
9288 * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
9289 for complex floating point types.
9290
9291 2003-08-26 Ulrich Weigand <uweigand@de.ibm.com>
9292
9293 * config/s390/s390.c (emit_prologue): Don't check literal pool size.
9294 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
9295 s390_output_pool_entry.
9296
9297 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
9298
9299 * fixinc/inclhack.def (svr4_preproc_lint_on,
9300 svr4_preproc_lint_off, svr4_preproc_machine): New disabled
9301 fixes, ported from fixinc.svr4.
9302
9303 2003-08-26 Mark Mitchell <mark@codesourcery.com>
9304
9305 * doc/install.texi (Prerequisites): Mention GNU make requirement.
9306
9307 * Makefile.in (AR_FOR_TARGET): Export it.
9308 (AR_CREATE_FOR_TARGET): Likewise.
9309 (AR_FLAGS_FOR_TARGET): Likewise.
9310 (AR_EXTRACT_FOR_TARGET): Likewise.
9311 (AWK): Likewise.
9312 (BUILD_PREFIX): Likewise.
9313 (BUILD_PREFIX_1): Likewise.
9314 (DESTDIR): Likewise.
9315 (GCC_FOR_TARGET): Likewise.
9316 (INCLUDES): Likewise.
9317 (INSTALL_DATA): Likewise.
9318 (LIB1ASMSRC): Likewise.
9319 (LIBGCC2_CFLAGS): Likewise.
9320 (MACHMODE_H): Likewise.
9321 (NM_FOR_TARGET): Likewise.
9322 (RANLIB_FOR_TARGET): Likewise.
9323 (libsubdir): Likewise.
9324 (slibdir): Likewise.
9325 (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
9326 exporting.
9327 (libgcc.a): Don't pass them here.
9328 (stmp-multilib): Or here.
9329 (install-libgcc): Or here.
9330 (install-multilib): Or here.
9331 (POSTSTAGE1_FLAGS_TO_PASS): Or here.
9332 (stage1_build): Or here.
9333
9334 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
9335
9336 * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
9337 "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
9338
9339 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
9340
9341 * config/s390/s390.md ("*fmadddf", "*fmsubdf",
9342 "*fmaddsf", "*fmsubsf"): New insns.
9343
9344 2003-08-26 Roger Sayle <roger@eyesopen.com>
9345
9346 * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
9347 (C1*C2)/X when unsafe math optimizations are allowed.
9348 (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
9349 math optimizations. Minor code clean-ups. Recursively call
9350 fold when constructing sub-expressions.
9351
9352 2003-08-26 Roger Sayle <roger@eyesopen.com>
9353
9354 * builtins.c (fold_builtin_bitop): New function to perform constant
9355 folding of ffs, clz, ctz, popcount and parity builtin functions
9356 and their long and long long variants (such as ffsl and ffsll).
9357 (fold_builtin): fold_builtin_bitop when appropriate.
9358 * simplify-rtx.c (simplify_unary_operation): Honor both
9359 CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
9360 evaluating clz and ctz at compile-time, for operands wider
9361 than HOST_WIDE_INT.
9362
9363 2003-08-26 Nathan Sidwell <nathan@codesourcery.com>
9364
9365 * builtins.c (build_function_call_expr): Don't set
9366 TREE_SIDE_EFFECTS here.
9367 * expr.c (emit_block_move_via_libcall): Likewise.
9368 (clear_storage_via_libcall): Likewise.
9369 * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
9370 CALL_EXPRs.
9371
9372 * gcse.c (is_too_expensive): New function.
9373 (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
9374
9375 2003-08-25 Zack Weinberg <zack@codesourcery.com>
9376
9377 * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
9378 commented-out logic to use DCE threads (if present), add
9379 support for POSIX threads.
9380 * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
9381 #defines for -pthread. Add -lpthread to LIB_SPEC when
9382 -pthread. In both cases take -mt as a synonym for -pthread
9383 for acc compatibility.
9384 Define GTHREAD_USE_WEAK to 0.
9385 * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
9386 Remove old logic for DCE threads from LIB_SPEC.
9387 * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
9388
9389 2003-08-25 Roger Sayle <roger@eyesopen.com>
9390
9391 * builtins.c (expand_builtin_mathfn): Rearrange so that we only
9392 return 0 for invalid argument types. Instead drop through to a
9393 call of expand_call at the bottom of function. If op is SQRT,
9394 try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
9395
9396 2003-08-25 Richard Henderson <rth@redhat.com>
9397
9398 * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
9399 result when op0 is SImode.
9400
9401 2003-08-25 Nathanael Nerode <neroden@twcny.rr.com>
9402
9403 * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
9404 from fixinc.svr4.
9405 * fixinc/fixincl.x: Regenerate.
9406 * fixinc/tests/base/sys/signal.h: Regenerate.
9407
9408 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
9409
9410 * combine.c (simplify_comparison): Re-enable widening of comparisons
9411 with non-paradoxical subregs of non-REG expressions.
9412
9413 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
9414
9415 * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
9416
9417 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
9418
9419 * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
9420
9421 2003-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
9422
9423 * pretty-print.h (pp_maybe_newline_and_indent): New macro.
9424 * c-pretty-print.h (c_pretty_printer): Now typedef to the
9425 structure. Be consistent with pretty-print.h abd cxx-pretty-print.h
9426 (struct c_pretty_print_info): Document. Add new fields.
9427 (pp_type_specifier_seq): Rename from pp_c_type_specifier.
9428 (pp_direct_abstract_declarator): New macro.
9429 (pp_ptr_operator): Likewise.
9430 (pp_simple_type_specifier): Likewise.
9431 (pp_expression): Likewise.
9432 (pp_parameter_list): Rename from pp_parameter_declaration.
9433 * c-pretty-print.c (pp_c_whitespace): Now a function.
9434 (pp_c_left_paren): Likewise.
9435 (pp_c_right_paren): Likewise.
9436 (pp_c_dot): Likewise.
9437 (pp_c_ampersand): Likewise.
9438 (pp_c_arrow): Likewise.
9439 (pp_c_semicolon): Likewise.
9440 (pp_c_type_cast): New function.
9441 (pp_c_space_for_pointer_operator): Likewise.
9442 (pp_c_call_argument_list): Likewise.
9443 (pp_c_cv_qualifier): Adjust prototype.
9444 (pp_c_type_qualifier_list): Likewise.
9445 (pp_c_pointer): Likewise. Handle REFERENCE_TYPE here.
9446 (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
9447 Adjust to follow standard grammar.
9448 (pp_c_specifier_qualifier_list): Adjusr prototype. Handle
9449 REFERENCE_TYPE. Tidy.
9450 (pp_c_parameter_type_list): Adjust prototype. Tidy.
9451 (pp_c_parameter_declaration): Remove.
9452 (pp_c_abstract_declarator): Adjust prototype.
9453 (pp_c_direct_abstract_declarator): Likewise.
9454 (pp_c_type_id): Likewise.
9455 (pp_c_storage_class_specifier): Likewise.
9456 (pp_c_function_specifier): Likewise.
9457 (pp_c_declaration_specifiers): Likewise.
9458 (pp_c_direct_declarator): Likewise.
9459 (pp_c_declarator): Likewise.
9460 (pp_c_declarator): Likewise.
9461 (pp_c_declaration): Likewise.
9462 (pp_c_attributes): Likewise. Tidy.
9463 (pp_c_function_definition): Adjust prototype.
9464 (pp_c_char): Likewise.
9465 (pp_c_string_literal): Likewise.
9466 (pp_c_integer_constant): Likewise.
9467 (pp_c_character_constant): Likewise.
9468 (pp_c_bool_constant): Likewise.
9469 (pp_c_enumeration_constant): Likewise.
9470 (pp_c_floating_constant): Likewise.
9471 (pp_c_constant): Likewise.
9472 (pp_c_identifier): Likewise.
9473 (pp_c_primary_expression): Likewise. Remove TARGET_EXPR case. Tidy.
9474 (pp_c_initializer): Adjust prototype.
9475 (pp_c_init_declarator): Likewise.
9476 (pp_c_initializer_list): Likewise.
9477 (pp_c_id_expression): Likewise.
9478 (pp_c_postfix_expression): Likewise.
9479 (pp_c_expression_list): Likewise.
9480 (pp_c_unary_expression): Likewise.
9481 (pp_c_cast_expression): Likewise.
9482 (pp_c_multiplicative_expression): Likewise.
9483 (pp_c_additive_expression): Likewise.
9484 (pp_c_shift_expression): Likewise.
9485 (pp_c_relational_expression): Likewise.
9486 (pp_c_equality_expression): Likewise.
9487 (pp_c_and_expression): Likewise.
9488 (pp_c_exclusive_or_expression): Likewise.
9489 (pp_c_inclusive_or_expression): Likewise.
9490 (pp_c_logical_and_expression): Likewise.
9491 (pp_c_logical_or_expression): Likewise.
9492 (pp_c_conditional_expression): Likewise.
9493 (pp_c_assignment_expression): Likewise.
9494 (pp_c_expression): Likewise. Tidy.
9495 (pp_c_statement): Likewise. Document.
9496 (pp_c_pretty_printer_init): Adjust prototype. Tidy.
9497
9498 * c-lang.c (c_initialize_diagnostics): Update.
9499 * c-common.h (strip_pointer_operator): Declare.
9500 * c-common.c (strip_pointer_operator): Define.
9501
9502 2003-08-25 Mark Mitchell <mark@codesourcery.com>
9503
9504 PR c++/8795
9505 * tree.h (build_method_type_directly): Declare.
9506 * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
9507 (vector_size_helper): Likewise.
9508 * tree.c (build_method_type_directly): New function.
9509 (build_method_type): Use it.
9510
9511 2003-08-24 Richard Henderson <rth@redhat.com>
9512
9513 * config/i386.i386.c (ix86_return_in_memory): Reformat. Return true
9514 for 16-byte vector modes if sse not enabled; warn for abi change.
9515 (ix86_value_regno): Only return xmm0 for 16-byte vector types.
9516
9517 2003-08-24 Kazu Hirata <kazu@cs.umass.edu>
9518
9519 * rtlanal.c (may_trap_p): Simplify an integer comparison.
9520
9521 2003-08-24 Nathanael Nerode <neroden@gcc.gnu.org>
9522
9523 * fixinc/inclhack.def (AAB_svr4_replace_byteorder): Enhance
9524 comment. Enable for DYNIX/ptx systems (when they switch to
9525 regular fixincludes).
9526 * fixinc/fixincl.x: Regenerate.
9527
9528 2003-08-23 Jason Eckhardt <jle@rice.edu>
9529
9530 * config/i860/t-i860: New.
9531 * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
9532
9533 2003-08-23 Jakub Jelinek <jakub@redhat.com>
9534
9535 * c-decl.c (pushdecl): Only put decls which finish_struct will do
9536 something about onto incomplete chain.
9537 (finish_struct): If not removing type from incomplete
9538 list, update prev.
9539
9540 2003-08-20 Jan Hubicka <jh@suse.cz>
9541
9542 PR target/11369
9543 * i386.c (ix86_expand_carry_flag_compare): Validate operand.
9544
9545 PR target/11031
9546 * i386.c (const_0_to_3_operand, const_0_to_7_operand,
9547 const_0_to_15_operand, const_0_to_255_operand): New predicates.
9548 * i386.h (PREDICATE_CODES): Add these.
9549 * i386.c (pinsrw and pextrw patterns): Use them.
9550
9551 PR target/10984
9552 * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
9553
9554 PR target/8869
9555 * expr.c (convert_modes): Deal properly with integer to vector
9556 constant conversion.
9557
9558 PR target/8871
9559 * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
9560
9561 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
9562
9563 * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
9564 * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
9565 ("*movhi"): ... this.
9566 ("movqi", "*movqi"): Likewise.
9567 ("movqi_64"): Remove.
9568 ("*zero_extendhisi2_31"): Change predicate to s_operand.
9569
9570 2003-08-23 Dale Johannesen <dalej@apple.com>
9571 * calls.c (emit_library_call_value_1): Fix obvious errors in
9572 arguments to emit_group_store.
9573
9574 2003-08-23 Jason Eckhardt <jle@rice.edu>
9575
9576 * calls.c (emit_library_call_value_1): Remove code related
9577 to LIBGCC_NEEDS_DOUBLE.
9578 * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
9579 * doc/tm.texi: Likewise.
9580 * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
9581
9582 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
9583
9584 * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
9585
9586 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
9587
9588 * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
9589 as well. Put memory references in the varargs alias set.
9590 (mips_expand_prologue): Remove varargs handling from here.
9591
9592 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
9593
9594 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
9595 s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
9596 s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
9597 for function pointer calls.
9598 * config/s390/s390.md ("*negdi2_31"): Likewise.
9599
9600 2003-08-23 Roger Sayle <roger@eyesopen.com>
9601
9602 * combine.c (apply_distributive_law): Correct comment.
9603
9604 2003-08-23 Jason Eckhardt <jle@rice.edu>
9605
9606 * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
9607
9608 2003-08-22 Jason Eckhardt <jle@rice.edu>
9609
9610 * config/i860/i860.c (i860_build_va_list): Create the va_decl
9611 declaration. Document the va_list structure.
9612 (i860_va_start): Initialize the va_list structure.
9613 (i860_va_arg): Rewrite completely.
9614 * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
9615 * config/i860/varargs.asm: Do not allocate or initialize
9616 a va_list. Return the address of the register save area.
9617
9618 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
9619
9620 * config/iq2000/iq2000.c: Fix comment typos.
9621 * config/iq2000/iq2000.md: Likewise.
9622
9623 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
9624
9625 * config/iq2000/iq2000.c: Follow spelling conventions.
9626 * config/iq2000/iq2000.h: Likewise.
9627 * config/mn10300/mn10300.c: Likewise.
9628
9629 2003-08-22 Jason Eckhardt <jle@rice.edu>
9630
9631 * config/i860/i860.c (output_move_double): Don't set latehalf
9632 to zero for CONST_INT (since it could be, e.g., -1).
9633
9634 * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
9635 (MODSI3_LIBCALL): ...with this one.
9636 (UREMSI3_LIBCALL): Replace this macro...
9637 (UMODSI3_LIBCALL): ...with this one.
9638
9639 2003-08-22 Jason Eckhardt <jle@rice.edu>
9640
9641 * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
9642 (output_delayed_branch): Remove prototype.
9643 (single_insn_src_p): Remove prototype.
9644 * config/i860/i860.c (single_insn_src_p): Remove function.
9645 (output_delayed_branch): Remove function.
9646 (output_delay_insn): Remove function.
9647 (va_start): Remove unconditional test and dead code, re-format.
9648 Fix coding style and spelling problems in various comments.
9649 * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
9650 (blockage pattern): ...and use it here.
9651 (all define_peephole patterns related to delayed branches): Remove.
9652 Fix coding style and spelling problems in various comments.
9653
9654 2003-08-22 Jason Eckhardt <jle@rice.edu>
9655
9656 * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
9657 Remove all uses of the PARAMS macro. Remove superflous prototypes.
9658 Convert all function definitions from traditional to ISO C90 syntax.
9659 * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
9660 with 'GCC'. Remove all uses of the PARAMS macro.
9661 * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
9662 * config/i860/i860.md: Likewise.
9663 * config/i860/sysv4.h: Likewise.
9664 * config/i860/varargs.asm: Likewise.
9665
9666 2003-08-22 Jason Eckhardt <jle@rice.edu>
9667
9668 * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
9669 argument.
9670 (tdesc_section): Add prototype.
9671 Update copyright dates.
9672 * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
9673 (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
9674 (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
9675 (targetm): Likewise.
9676 (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
9677 for '%d' where necessary.
9678 (i860_va_start): Remove 'stdarg_p' argument. Make conditional checks
9679 on 'stdarg_p' unconditional. Divide current_function_args_info.ints
9680 by UNITS_PER_WORD when referencing (likewise for .floats).
9681 (I860_SVR4_VARARGS): Rename...
9682 (I860_SVR4_VA_LIST): ...to this.
9683 Call build() with 't' rather than 'field'.
9684 (i860_rtx_costs): New function.
9685 (TARGET_RTX_COSTS): Define.
9686 (i860_internal_label): New function.
9687 (TARGET_ASM_INTERNAL_LABEL): Define.
9688 (i860_file_start): New function.
9689 Update copyright dates.
9690 * config/i860/i860.h (CPP_PREDEFINES): Remove.
9691 (TARGET_CPU_CPP_BUILTINS): Define.
9692 (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
9693 (CONST_COSTS): Remove (and move code to i860_rtx_costs).
9694 (ASM_FILE_START): Remove.
9695 (ASM_FILE_START_1): Remove.
9696 (ASM_GLOBALIZE_LABEL): Remove.
9697 (ASM_OUTPUT_INTERNAL_LABEL): Remove.
9698 (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
9699 with targetm.asm_out.internal_label.
9700 Update copyright dates.
9701 * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
9702 (CPP_PREDEFINES): Remove.
9703 (TARGET_OS_CPP_BUILTINS): Define.
9704 (GLOBAL_ASM_OP): Define.
9705 (ASM_FILE_START): Remove.
9706 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
9707 (TARGET_ASM_FILE_START): Define.
9708 Update copyright dates.
9709
9710 2003-08-22 Jason Eckhardt <jle@rice.edu>
9711
9712 * gcc/config.gcc (i860-*-sysv4*): Add target.
9713 * config/i860/i860-protos.h: New.
9714 * config/i860/i860.c: New.
9715 * config/i860/i860.h: New.
9716 * config/i860/i860.md: New.
9717 * config/i860/sysv4.h: New.
9718 * config/i860/varargs.asm: New.
9719 * config/i860/x-sysv4: New.
9720
9721 2003-08-22 Jason Eckhardt <jle@rice.edu>
9722
9723 * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
9724 Remove all uses of PARAMS macro.
9725 Convert all function definitions to ISO C90 syntax.
9726 * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
9727 * config/pa/fptr.c: Likewise.
9728 * config/pa/lib2funcs.asm: Likewise.
9729 * config/pa/long_double.h: Likewise.
9730 * config/pa/milli64.S: Likewise.
9731 * config/pa/pa-64.h: Likewise.
9732 * config/pa/pa-hpux.h: Likewise.
9733 * config/pa/pa-hpux10.h: Likewise.
9734 * config/pa/pa-hpux11.h: Likewise.
9735 * config/pa/pa-linux.h: Likewise.
9736 * config/pa/pa-modes.def: Likewise.
9737 * config/pa/pa-osf.h: Likewise.
9738 * config/pa/pa-pro-end.h: Likewise.
9739 * config/pa/pa.md: Likewise.
9740 * config/pa/pa32-linux.h: Likewise.
9741 * config/pa/pa64-linux.h: Likewise.
9742 * config/pa/pa64-hpux.h: Likewise.
9743 * config/pa/pa64-regs.h: Likewise.
9744 * config/pa/quadlib.c: Likewise.
9745 * config/pa/rtems.h: Likewise.
9746 * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
9747 all uses of the PARAMS macro.
9748 * config/pa/pa.h: Likewise.
9749 * config/pa/som.h: Likewise.
9750
9751 * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
9752 Remove all uses of PARAMS macro.
9753 Convert all function definitions to ISO C90 syntax.
9754 * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
9755 Remove all uses of PARAMS macro.
9756 * config/iq2000.h: Remove all uses of PARAMS macro.
9757 * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
9758
9759 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
9760
9761 * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
9762 * config/s390/s390.c (gen_consttable): Remove.
9763 (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
9764 (s390_output_pool_entry): New function.
9765 * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
9766 UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
9767 UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
9768 (UNSPECV_POOL_ENTRY): ... this new constant.
9769 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
9770 "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
9771 ("*pool_entry"): ... and replace by this new insn.
9772 ("literal_pool_31"): Do not emit anchor label if pool empty.
9773
9774 * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
9775 (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
9776 (s390_fixup_clobbered_return_reg): Remove.
9777 (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
9778 (s390_return_addr_rtx): Always retrieve return address from save area
9779 slot. Use save_return_addr_p to force slot to be filled.
9780 (s390_emit_prologue): Remove has_hard_reg_initial_val test.
9781
9782 2003-08-22 Chris Demetriou <cgd@broadcom.com>
9783
9784 * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
9785 (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
9786 * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
9787 around SB-1 errata if TARGET_FIX_SB1 is set.
9788 (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
9789 * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
9790
9791 2003-08-22 Roger Sayle <roger@eyesopen.com>
9792
9793 * hashtable.c (ht_expand): Avoid calculating rehash for the common
9794 case that the first probe hits an empty hash table slot.
9795
9796 2003-08-22 Mark Mitchell <mark@codesourcery.com>
9797
9798 * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
9799
9800 2003-08-22 Mark Mitchell <mark@codesourcery.com>
9801
9802 * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
9803 (ptr_extend_plus_imm): ... this.
9804 * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
9805 optimization in C++.
9806 (ia64_output_mi_thunk): Support ILP32 mode.
9807
9808 2003-08-22 Bernardo Innocenti <bernie@develer.com>
9809
9810 * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
9811 function.
9812 * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
9813
9814 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
9815
9816 * config/i386/i386.c (const_int_1_operand): Simplify an
9817 integer comparison.
9818
9819 2003-08-22 Alan Modra <amodra@bigpond.net.au>
9820
9821 * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
9822 * config/rs6000/ppc64-fp.c: Likewise.
9823
9824 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
9825
9826 * cfgcleanup.c: Fix comment typos.
9827 * emit-rtl.c: Likewise.
9828 * optabs.c: Likewise.
9829 * ra-build.c: Likewise.
9830 * rtlanal.c: Likewise.
9831 * tree.h: Likewise.
9832
9833 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
9834
9835 * c-decl.c: Fix comment formatting.
9836 * cfgrtl.c: Likewise.
9837 * combine.c: Likewise.
9838 * convert.c: Likewise.
9839 * dominance.c: Likewise.
9840 * dwarf2out.c: Likewise.
9841 * dwarfout.c: Likewise.
9842 * expmed.c: Likewise.
9843 * fold-const.c: Likewise.
9844 * gcov.c: Likewise.
9845 * genattrtab.c: Likewise.
9846 * ggc-common.c: Likewise.
9847 * mips-tfile.c: Likewise.
9848 * regmove.c: Likewise.
9849
9850 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
9851
9852 * builtin-attrs.def: Fix comment formatting.
9853 * c-pretty-print.c: Likewise.
9854 * diagnostic.h: Likewise.
9855 * langhooks.h: Likewise.
9856 * recog.c: Likewise.
9857 * simplify-rtx.c: Likewise.
9858 * tree.def: Likewise.
9859
9860 2003-08-22 Bernardo Innocenti <bernie@develer.com>
9861
9862 * config/m68k/m68k-protos.h: Convert to ISO C90.
9863 * config/m68k/m68k.c: Likewise.
9864
9865 2003-08-21 Bernardo Innocenti <bernie@develer.com>
9866 Paul Dale <pauli@snapgear.com>
9867 Peter Barada <peter@baradas.org>
9868
9869 * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
9870 ColdFire cores.
9871
9872 2003-08-21 Zack Weinberg <zack@codesourcery.com>
9873
9874 * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
9875 * config.gcc (*-*-openbsd): Don't set tm_file.
9876 (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
9877 arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
9878 h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
9879 i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
9880 i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
9881 m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
9882 m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
9883 m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
9884 mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
9885 sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
9886 xscale-*-coff): Use explicit and complete lists of target headers
9887 to include. Move definitions to tm_defines where appropriate.
9888 (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
9889 not-yet-contributed configuration.
9890
9891 * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
9892 * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
9893 * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
9894 * config/i386/nto.h, config/iq2000/iq2000.h,
9895 * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
9896 * config/m68k/linux.h, config/m68k/m68k-aout.h
9897 * config/m68k/m68k-none.h, config/m68k/m68kv4.h
9898 * config/m68k/netbsd.h, config/m68k/openbsd.h
9899 * config/m68k/sgs.h, config/mcore/mcore-pe.h,
9900 * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
9901 * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
9902 Remove includes of other target config headers, and
9903 definitions of macros moved to tm_defines lists. Add #undefs
9904 where now necessary to prevent redefinition warnings.
9905
9906 * config/h8300/coff.h: New file split out of...
9907 * config/h8300/elf.h: ...here.
9908 * config/m68k/hp320base.h: New file split out of...
9909 * config/m68k/hp320.h: ...here.
9910 * config/rs6000/lynxbase.h: New file split out of...
9911 * config/rs6000/lynx.h: ...here.
9912
9913 * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
9914 * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
9915
9916 * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
9917 * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
9918 * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
9919 Remove unnecessary #ifndef.
9920 * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
9921 [under IN_LIBGCC2] with config/.
9922
9923 2003-08-21 Per Bothner <pbothner@apple.com>
9924
9925 * cppfiles.c (stack_file): Correctly pass return_at_eof parameter
9926 to cpp_push_buffer.
9927 * cpplex.c (_cpp_get_fresh_line): Don't buffer->prev - handled
9928 by return_at_eof check. Always call _cpp_pop_buffer at end.
9929
9930 2003-08-21 Kazu Hirata <kazu@cs.umass.edu>
9931
9932 PR target/11805
9933 * config/h8300/h8300.md (two anonymous patterns): Remove.
9934
9935 2003-08-21 Richard Sandiford <rsandifo@redhat.com>
9936
9937 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
9938 * config/mips/mips.c (function_arg_pass_by_reference): Never return
9939 true for n32 & n64.
9940
9941 2003-08-21 Josef Zlomek <zlomekj@suse.cz>
9942
9943 * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
9944 and similarly in (A | C) == D where C & ~D != 0.
9945
9946 2003-08-20 Geoffrey Keating <geoffk@apple.com>
9947
9948 PR 8180
9949 * configure.in: When testing with_libs and with_headers, treat
9950 'no' as unset. Based on a patch by Dan Kegel <dank@kegel.com>.
9951 * configure: Regenerate.
9952
9953 2003-08-20 Peter Barada <peter@baradas.org>
9954
9955 * longlong.h (umul_ppmm): Add ColdFire support.
9956
9957 2003-08-20 Peter Barada <peter@baradas.org>
9958 Bernardo Innocenti <bernie@develer.com>
9959
9960 * config/m68k/m68k-none.h: Introduce new ColdFire archs.
9961 * config/m68k/m68k.h: Likewise.
9962 * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
9963 * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
9964 * config/m68k/linux.h: Likewise.
9965 * config/m68k/m68k.c: Likewise.
9966 * config/m68k/m68k.md: Likewise.
9967 * config/m68k/m68kelf.h: Likewise.
9968 * config/m68k/netbsd-elf.h: Likewise.
9969 * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
9970
9971 2003-08-20 Bernardo Innocenti <bernie@develer.com>
9972
9973 * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
9974 * config/m68k/m68k.md: Likewise.
9975
9976 2003-08-20 Mark Mitchell <mark@codesourcery.com>
9977
9978 PR java/11996
9979 Revert this change:
9980 2003-08-19 Mark Mitchell <mark@codesourcery.com>
9981 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
9982 types with precisions other than those given by native machine
9983 modes.
9984
9985 2003-08-20 Gunther Nikl <gni@gecko.de>
9986
9987 * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
9988 selected by FSGLMUL_USE_S and FSGLDIV_USE_S
9989 * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
9990 * config/m68k/m68k.md (anonymous define_insn): Likewise
9991 * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
9992 * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
9993 code selected by NO_ASM_FMOVECR
9994
9995 2003-08-20 Gunther Nikl <gni@gecko.de>
9996
9997 * config/m68k/m68k.c (output_move_const_into_data_reg,
9998 output_move_himode): unify MOTOROLA/MIT handling of moveq
9999 * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
10000 Likewise
10001
10002 2003-08-20 Gunther Nikl <gni@gecko.de>
10003
10004 * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
10005 label name
10006 * config/m68k/m68k.c (m68k_output_function_epilogue): replace
10007 HOST_WIDE_INT_PRINT_DEC with %wd
10008
10009 2003-08-20 Loren James Rittle <ljrittle@acm.org>
10010
10011 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
10012 redefine warning.
10013
10014 2003-08-20 Roger Sayle <roger@eyesopen.com>
10015
10016 PR middle-end/11984
10017 * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
10018 operands before calling tree_int_cst_lt when performing associative
10019 transformations.
10020
10021 2003-08-20 Jason Merrill <jason@redhat.com>
10022
10023 * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
10024 (EXPR_CHECK): Don't check for 'r' or 's' if we're
10025 checking IS_EXPR_CODE_CLASS.
10026 * calls.c (calls_function_1): Likewise.
10027 * fold-const.c (fold): Likewise.
10028 * tree.c (iterative_hash_expr): Likewise.
10029 * tree-inline.c (walk_tree, copy_tree_r): Likewise.
10030
10031 2003-08-20 Gunther Nikl <gni@gecko.de>
10032
10033 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
10034 depending on MOTOROLA_BSR
10035 * config/m68k/m68k.md (anonymous define_insn): Likewise
10036
10037 2003-08-20 Jason Merrill <jason@redhat.com>
10038
10039 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
10040 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
10041 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
10042 * dojump.c (do_jump): Likewise.
10043 * fold-const.c (operand_equal_p, fold): Likewise.
10044 (tree_expr_nonnegative_p): Likewise.
10045
10046 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
10047 TYPE_USER_ALIGN for FIELD_DECLs.
10048
10049 * attribs.c (decl_attributes): Rebuild the function pointer type after
10050 changing the target type.
10051 * tree.c (get_qualified_type): Also check that the attributes match.
10052
10053 2003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
10054
10055 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
10056 * objc/config-lang.in (stagestuff): ... to here.
10057
10058 2003-08-19 Mark Mitchell <mark@codesourcery.com>
10059
10060 PR c++/11946
10061 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
10062 NOP_EXPR) when necessary.
10063 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
10064 types with precisions other than those given by native machine
10065 modes.
10066
10067 2003-08-19 Geoffrey Keating <geoffk@apple.com>
10068
10069 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
10070 because some macro is defined.
10071
10072 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
10073 options.
10074 * config/i386/darwin.h (ASM_SPEC): New.
10075 (SUBTARGET_EXTRA_SPECS): New.
10076 * config/rs6000/darwin.h (ASM_SPEC): New.
10077 (SUBTARGET_EXTRA_SPECS): New.
10078 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
10079 a cross-compiler between two different processors on Darwin.
10080 * configure: Regenerate.
10081
10082 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
10083
10084 * builtins.c: Fix comment typos.
10085 * c-common.c: Likewise.
10086 * c-decl.c: Likewise.
10087 * c-pretty-print.c: Likewise.
10088 * cfgbuild.c: Likewise.
10089 * cfglayout.c: Likewise.
10090 * cfgloopanal.c: Likewise.
10091 * cgraphunit.c: Likewise.
10092 * cppfiles.c: Likewise.
10093 * dwarfout.c: Likewise.
10094 * expr.c: Likewise.
10095 * fold-const.c: Likewise.
10096 * gcse.c: Likewise.
10097 * ggc-page.c: Likewise.
10098 * haifa-sched.c: Likewise.
10099 * pretty-print.c: Likewise.
10100 * tree.c: Likewise.
10101 * tree.h: Likewise.
10102 * value-prof.c: Likewise.
10103
10104 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
10105
10106 * c-decl.c: Follow spelling conventions.
10107 * cppfiles.c: Likewise.
10108
10109 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
10110
10111 * c-common.c: Fix comment formatting.
10112 * c-common.h: Likewise.
10113 * c-decl.c: Likewise.
10114 * cppinit.c: Likewise.
10115 * cpplib.h: Likewise.
10116 * emit-rtl.c: Likewise.
10117 * input.h: Likewise.
10118 * line-map.h: Likewise.
10119 * opts.c: Likewise.
10120 * opts.h: Likewise.
10121 * simplify-rtx.c: Likewise.
10122
10123 2003-08-19 Daniel Jacobowitz <drow@mvista.com>
10124
10125 * unwind-c.c: Add libgcc-style exception.
10126 * unwind-dw2.c: Likewise.
10127 * unwind-pe.h: Likewise.
10128 * unwind-sjlj.c: Likewise.
10129 * unwind.inc: Likewise.
10130
10131 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
10132
10133 PR c/5582 PR c++/10538
10134 * langhooks-def.h (lhd_decl_uninit): Declare.
10135 (LANG_HOOKS_DECL_UNINIT): New macro.
10136 (LANG_HOOKS_INITIALIZER): Adjust.
10137 * langhooks.h (struct lang_hooks): Add new field
10138 decl_uninit.
10139 * langhooks.c (lhd_decl_uninit): Define.
10140 * c-common.c (c_decl_uninit_1): New function.
10141 (c_decl_uninit): New function.
10142 (warn_init_self): Define.
10143 * c-common.h (c_decl_uninit): Declare.
10144 (warn_init_self): Declare.
10145 * c.opt: Introduce -Winit-self.
10146 * c-opts.c (c_common_handle_options): Set warn_init_self.
10147 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
10148 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
10149 * function.c (uninitialized_vars_warning): Call the language hook.
10150 * doc/invoke.texi: Document -Winit-self.
10151
10152 2003-08-19 Chris Demetriou <cgd@broadcom.com>
10153
10154 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
10155 to use better predicates and constraints. Define new
10156 instruction to handle "trap_if" with DI-mode arguments.
10157 (conditional_trap): FAIL if trap code is not 0.
10158
10159 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
10160
10161 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
10162 strstr with $pb to a strcompare with "<pic base>"
10163 (ix86_output_addr_diff_elt): Output the real pic base.
10164
10165 2003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
10166
10167 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
10168 (LANG_HOOKS_INITIALIZER): Correct.
10169 * c-lang.c: Likewise.
10170
10171 2003-08-19 Jan Hubicka <jh@suse.cz>
10172
10173 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
10174 (cgraph_varpool_mark_needed_node): Likewise.
10175 * cgraph.h (notice_global_symbol): Declare
10176 * varasm.c (notice_global_symbol): Break out from ...
10177 (assemble_start_function): ... here; update for variables.
10178 (assemble_variable): Use notice_global_symbol.
10179
10180 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
10181
10182 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
10183 expect SFmode and DFmode arguments to be passed in FPRs,
10184 regardless of the underlying type.
10185
10186 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
10187
10188 PR target/11924
10189 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
10190 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
10191
10192 2003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
10193
10194 PR c/11207
10195 * c-typeck.c (set_init_index): Check for negative index.
10196
10197 2003-08-18 Bob Wilson <bob.wilson@acm.org>
10198
10199 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
10200 call0 ABI.
10201 * config/xtensa/crtn.asm (_init, _fini): Likewise.
10202 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
10203 __umodsi3, __modsi3): Likewise.
10204 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
10205 $(INCLUDES).
10206
10207 2003-08-18 Aldy Hernandez <aldyh@redhat.com>
10208
10209 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
10210
10211 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
10212
10213 * config/mips/mips.md: Quote C code in braces. Remove use of
10214 fake const0_rtx operands. Remove double backslashes. Use \;.
10215 Remove workarounds for bogus warnings.
10216
10217 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
10218
10219 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
10220 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
10221 rather than TARGET_MIPS4300.
10222 (mulsf3_internal, mulsf3_r4300): Likewise.
10223
10224 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
10225
10226 * config/mips/mips.md: Renumber unspecs. Clean up comments.
10227
10228 2003-08-17 Roger Sayle <roger@eyesopen.com>
10229
10230 * simplify-rtx.c (associative_constant_p): New function to test
10231 whether an RTX expression is an immediate constant.
10232 (simplify_associative_operation): New function to perform some
10233 reassociation optimizations of associative binary expressions.
10234 (simplify_binary_operation): Use simplify_associative_operation
10235 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
10236 Floating point expressions are only reassociated when unsafe
10237 math optimizations are permitted.
10238
10239 2003-08-17 Andreas Jaeger <aj@suse.de>
10240
10241 * config/alpha/alpha.md: Remove usage of PARAMS.
10242
10243 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
10244 * config/i386/i386-interix.h: Likewise.
10245 * config/i386/winnt.c: Likewise.
10246 * config/i386/cygming.h: Likewise.
10247 * config/i386/cygwin2.c: Likewise.
10248 * config/darwin.c: Likewise.
10249 * config/darwin-c.c: Likewise.
10250 * config/darwin-protos.h: Likewise.
10251 * config/darwin.h: Likewise.
10252 * config/s390/s390-protos.h: Likewise.
10253 * config/s390/s390.c: Likewise.
10254 * config/ia64/ia64.c: Likewse
10255 * config/ia64/ia64-protos.h: Likewise.
10256 * config/ia64/ia64-c.c: Likewise.
10257
10258 2003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10259
10260 * config/sparc/sparc.c: Convert to ISO C.
10261
10262 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
10263 * config/sparc/sparc.c: Likewise.
10264
10265 2003-08-16 Nathan Sidwell <nathan@codesourcery.com>
10266
10267 PR c++/11512
10268 * stmt.c (expand_expr_stmt_value): Don't warn about any void
10269 typed expression.
10270
10271 2003-08-16 Jan Hubicka <jh@suse.cz>
10272
10273 * i386.c (ix86_fntype_regparm): Rename from ...
10274 (ix86_function_regparm): ... this one; add fastcall and local
10275 functions.
10276 (ix86_function_ok_for_sibcall): Update.
10277 (ix86_return_pops_args): Likewise.
10278 (init_cumulative_args): Likewise.
10279 (x86_can_output_mi_thunk): Likewise.
10280 (function_arg): Fix formating.
10281 (x86_this_parameter): Fix fastcall.
10282 (x86_output_mi_thunk): Likewise.
10283
10284 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
10285 body as reachable; mark nested functions as needed too.
10286 (dump_cgraph): Do not output global.calls.
10287 * cgraph.h (cgraph_global_info): Kill.
10288 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
10289 (record_call_1): Speedup.
10290 (cgraph_analyze_function): Break out from ...; compute inlining
10291 parameters.
10292 (cgraph_finalize_compilation_unit): ... here.
10293 (cgraph_mark_inline): Kill computation of calls.
10294 (cgraph_decide_inlining): Do not compute most of initial values.
10295
10296 2003-08-14 Roger Sayle <roger@eyesopen.com>
10297
10298 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
10299 to negate if either operand is easy to negate, if we don't care
10300 about sign-dependent rounding.
10301 (negate_expr): Make the logic to negate a REAL_CST explicit.
10302 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
10303 that's easy to negate, if we don't honor sign-dependent rounding.
10304 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
10305 negate, and the symmetric A * -B as -A * B if A is easy to negate.
10306 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
10307 -C/D if B and C are cheap to negate. Add an explicit rule to
10308 optimize X/-1.0 as -X when we don't care about signaling NaNs.
10309
10310 2003-08-14 Zack Weinberg <zack@codesourcery.com>
10311
10312 * Makefile.in (tm_file): Rename tm_include_list.
10313 (tm_p_file): Rename tm_p_include_list.
10314 (build_xm_file): Rename build_xm_include_list.
10315 (host_xm_file): Rename host_xm_include_list.
10316 (xm_file): Rename xm_include_list.
10317 (xm_file_list): Add to be substituted.
10318 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
10319 Update to match.
10320 (bt-load.o): Add missing dependency on $(TM_H).
10321 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
10322 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
10323 build_xm_file, generate both *_file_list and *_include_list
10324 values from it. (xm_file_list was formerly not being generated.)
10325 In *_include_list, prefix the names of all headers found in
10326 $(srcdir)/config with config/. In each loop, consider only
10327 the special case files that can actually appear in that list.
10328 AC_SUBST all *_file_list and all *_include_list variables; do
10329 not AC_SUBST the plain *_file variables.
10330 * configure: Regenerate.
10331
10332 2003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10333
10334 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
10335
10336 2003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10337
10338 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
10339 direct calls.
10340 (attr_length_call): Include it here. Improve length estimate for
10341 local calls.
10342 (output_call): Use targetm.binds_local_p.
10343
10344 2003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10345
10346 * builtins.c (CASE_MATHFN): New helper macro.
10347 (mathfn_built_in): Simplify and sort.
10348
10349 * protoize.c (substr): Delete, callers changed to `strstr'.
10350
10351 2003-08-13 Zack Weinberg <zack@codesourcery.com>
10352
10353 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
10354 * config/iq2000/xm-iq2000.h: Delete file.
10355
10356 2003-08-13 Geoffrey Keating <geoffk@apple.com>
10357
10358 * gengtype.c (walk_type): Process a subobject before processing
10359 the pointer that points to the subobject.
10360
10361 2003-08-13 Per Bothner <pbothner@apple.com>
10362
10363 * regclass.c (init_reg_modes): Make non-static.
10364 Rename to init_reg_modes_once per new naming convention.
10365 (init_regs): Don't call init_reg_modes here.
10366 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
10367 * rtl.h (init_reg_modes_once): New declaration.
10368 * toplev.c (backend_init): Call init_regs after init_emit_once.
10369
10370 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
10371
10372 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
10373 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
10374
10375 2003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
10376
10377 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
10378 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
10379
10380 2003-08-13 Dale Johannesen <dalej@apple.com>
10381
10382 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
10383 handling of decrement-and-branch farther than 32 bits.
10384
10385 2003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
10386
10387 * configure.in (make_compare_target): Move test to ...
10388 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
10389 * configure: Regenerate.
10390
10391 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
10392
10393 * config/mips/iris6.h: Convert to C90 prototypes.
10394 * config/mips/irix6-libc-compat.c: Likewise.
10395 * config/mips/mips-protos.h: Likewise.
10396 * config/mips/mips.c: Likewise.
10397
10398 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
10399
10400 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
10401 for selected machines. Comment heavily.
10402 fixinc/fixincl.x: Rebuild.
10403 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
10404
10405 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
10406
10407 * config/mips/mips.h: Tweak various comments.
10408 * config/mips/mips.c: Likewise.
10409
10410 2003-08-11 James E Wilson <wilson@tuliptree.org>
10411
10412 PR optimization/11319
10413 PR target/10021
10414 * alias.c (find_base_value, case REG): Return 0 not src if no base
10415 found.
10416
10417 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10418
10419 * gcse.c (gmalloc): Fix last change.
10420
10421 2003-08-11 Roger Sayle <roger@eyesopen.com>
10422
10423 * simplify-rtx.c (simplify_binary_operation): Replace calls to
10424 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
10425 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
10426 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
10427
10428 2003-08-11 Roger Sayle <roger@eyesopen.com>
10429
10430 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
10431 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
10432 typecode for an ABS_EXPR.
10433
10434 * doc/c-tree.texi: Document ABS_EXPR.
10435
10436 2003-08-11 Roger Sayle <roger@eyesopen.com>
10437
10438 * fold-const.c (fold): Optimize any associative floating point
10439 operator with -funsafe-math-optimizations, not just MULT_EXPR.
10440
10441 2003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
10442
10443 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
10444 information in SHmedia case too.
10445 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
10446 Likewise.
10447 (__set_fpscr): Use an access via GOT for PIC case.
10448
10449 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
10450
10451 * configure.in (intermodule): Make switch test more portable.
10452 * configure: Regenerate.
10453
10454 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
10455
10456 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
10457 (restrap): Likewise.
10458
10459 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10460
10461 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
10462 (grealloc): Size argument is a size_t.
10463 (gcalloc): New function. Use throughout in lieu of
10464 gmalloc/memset.
10465
10466 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
10467 xmalloc/memset.
10468 * config/ia64/ia64.c (ia64_reorg): Likewise.
10469 * conflict.c (conflict_graph_new): Likewise.
10470 * fixinc/fixincl.c (run_compiles): Likewise.
10471 * genattrtab.c (optimize_attrs): Likewise.
10472 * genrecog.c (new_decision): Likewise.
10473 * haifa-sched.c (schedule_block): Likewise.
10474 * hashtable.c (ht_create): Likewise.
10475
10476 2003-08-11 Bob Wilson <bob.wilson@acm.org>
10477
10478 * config/xtensa/lib2funcs.S: Fix whitespace.
10479 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
10480 syntax where appropriate. Remove unnecessary backslash escapes.
10481 Reformat comments and fix some code formatting.
10482 (extendqisi2): Rearrange conditional.
10483 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
10484 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
10485 of fatal_insn.
10486
10487 2003-08-11 Richard Sandiford <rsandifo@redhat.com>
10488
10489 * config/mips/mips.c: Various formatting fixes.
10490 (override_options): Resync -mtune handling with gas.
10491 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
10492 * config/mips/mips.h: More formatting fixes.
10493 (mips_abi): Move declaration.
10494 * config/mips/mips.md (exception_receiver): Add mode to
10495 unspec_volatile.
10496
10497 2003-08-11 Aldy Hernandez <aldyh@redhat.com>
10498
10499 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
10500 evsplatfi here.
10501 (bdesc_1arg): Remove evsplati and evsplatfi.
10502
10503 2003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
10504
10505 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
10506 into account.
10507
10508 2003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10509
10510 * builtins.c (expand_builtin_strcat): Optimize constant strings.
10511
10512 2003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
10513
10514 * pretty-print.c (pp_base_indent): Rename from pp_indent.
10515 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
10516 (struct c_pretty_print_info): Add more fields.
10517 (pp_c_left_paren): Move to c-pretty-print.c.
10518 (pp_c_right_paren): Likewise.
10519 (pp_c_left_brace): Likewise.
10520 (pp_c_right_brace): Likewise.
10521 (pp_c_left_bracket): Likewise.
10522 (pp_c_right_bracket): Likewise.
10523 (pp_c_declarator): Declare.
10524 (pp_c_direct_declarator): Likewise.
10525 (pp_c_specifier_qualifier_list): Likewise.
10526 (pp_c_type_id): Likewise.
10527 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
10528 (pp_c_type_qualifier_list): New.
10529 (pp_c_pointer): Likewise.
10530 (pp_c_parameter_type_list): Likewise.
10531 (pp_c_function_definition): Likewise.
10532 (pp_c_id_expression): Likewise.
10533 (pp_c_simple_type_specifier): Tidy.
10534 (pp_c_unary_expression): Likewise.
10535 (pp_c_expression): Likewise.
10536 (pp_c_pretty_printer_init): Likewise.
10537 (pp_c_specifier_qualifier_list): Rework..
10538 (pp_c_abstract_declarator): Likewise.
10539 (pp_c_postfix_expression): Likewise.
10540 (pp_c_primary_expression): Likewise.
10541 (pp_c_cast_expression): Likewise.
10542 (pp_c_direct_abstract_declarator): Likewise.
10543 (pp_c_storage_class_specifier): Likewise.
10544 (pp_c_function_specifier): Likewise.
10545 (pp_c_declaration_specifiers): Likewise.
10546 (pp_c_direct_declarator): Likewise.
10547 (pp_c_declarator): Likewise.
10548 (pp_c_declaration): Likewise.
10549 (pp_c_statement): Likewise.
10550 (pp_c_integer_constant): Rename from pp_c_integer_literal.
10551 (pp_c_character_constant): Rename from pp_c_character_literal.
10552 (pp_c_bool_constant): Rename from pp_c_bool_literal.
10553 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
10554 (pp_c_floating_constant): Rename from pp_c_real_literal.
10555 (pp_c_constant): Rename from pp_c_literal.
10556 * c-lang.c: Include diagnostic.h and c-pretty-print.h
10557 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
10558 (c_initialize_diagnostics): New.
10559 * Makefile.in (c-lang.o): Update dependency.
10560
10561 2003-08-10 Nathan Sidwell <nathan@codesourcery.com>
10562
10563 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
10564
10565 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
10566
10567 * config/mips/mips.c (mips_no_mips16_string): Remove.
10568 (override_options): Don't handle -mips16 as part of -mipsN.
10569 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
10570 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
10571 (TARGET_OPTIONS): Remove -mno-mips16.
10572
10573 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
10574
10575 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
10576 (coprocessor2_operand): Likewise.
10577 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
10578 (lookup_name): Remove declaration.
10579 (abort_with_insn): Remove. Replace all uses with fatal_insn.
10580 (mips16, mips_abicalls): Remove.
10581 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
10582 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
10583 (coprocessor_operand, coprocessor2_operand): Remove.
10584 (override_options): Don't set mips16 or mips_abicalls.
10585 (print_operand): Don't expect SIGN_EXTEND operands.
10586 (mips_secondary_reload_class): Likewise.
10587 (mips_output_conditional_branch): Remove disabled long-branch code.
10588 * config/mips/mips.h (call_used_regs): Remove declaration.
10589 (may_call_alloca): Likewise.
10590 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
10591 (mips_abicalls, mips16): Remove declarations.
10592 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
10593 (CC1_SPEC): Remove outdated comment.
10594 (MIPS_VERSION, MACHINE_TYPE): Remove.
10595 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10596 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
10597 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
10598 (PUSH_ROUNDING): Likewise.
10599 (ASSEMBLER_SCRATCH_REGNUM): Remove.
10600 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
10601 and mips16 with TARGET_MIPS16.
10602
10603 2003-08-09 Per Bothner <pbothner@apple.com>
10604
10605 * cppinit.c (cpp_read_main_file): Split out source-independent
10606 initialization to separate function ...
10607 (cpp_post_options): New function.
10608 * cppfiles.c (cpp_stack_file): Rename public name to ...
10609 (_cpp_stack_file): New internal function name.
10610 * cpplib.h: Update accordingly.
10611 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
10612 (cpp_read_main_file): Don't initialize line here.
10613 * c-opts.c (c_common_post_options): Call cpp_post_options.
10614 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
10615 * fix-header.c (read_scan_file): Call cpp_post_options.
10616
10617 2003-08-09 Per Bothner <per@bothner.com>
10618
10619 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
10620
10621 2003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10622
10623 * pa.c (pa_asm_output_mi_thunk): Fix typo.
10624
10625 2003-08-09 Neil Booth <neil@daikokuya.co.uk>
10626
10627 PR preprocessor/11839
10628 * cppfiles.c (open_file): Handle ENOTDIR.
10629
10630 2003-08-09 Richard Sandiford <rsandifo@redhat.com>
10631
10632 PR target/11699
10633 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
10634
10635 2003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10636
10637 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
10638 source/destination is not a register operand.
10639
10640 2003-08-08 Richard Henderson <rth@redhat.com>
10641
10642 PR target/11535
10643 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
10644 RETURN_ADDRESS_POINTER_REGNUM.
10645 (ia64_expand_prologue): Don't frob it.
10646 (ia64_output_function_epilogue): Likewise.
10647 (ia64_return_addr_rtx): New.
10648 (ia64_split_return_addr_rtx): New.
10649 * config/ia64/ia64-protos.h: Update.
10650 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
10651 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
10652 (GENERAL_REGNO_P): Don't check it.
10653 (AR_*_REGNUM): Renumber.
10654 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
10655 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
10656 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
10657 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
10658 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
10659 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
10660 (movdi_ret_addr): New.
10661
10662 2003-08-08 Geoffrey Keating <geoffk@apple.com>
10663
10664 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
10665
10666 2003-08-08 Roger Sayle <roger@eyesopen.com>
10667
10668 * tree.h (get_identifier) Define a macro form of get_identifier
10669 that calls get_identifier_with_length when the string is constant.
10670 (get_identifier_with_length): Change type of second argument to
10671 size_t in prototype.
10672 * stringpool.c (get_identifier): Undefine the macro before giving
10673 the function definition.
10674 (get_identifier_with_length): Change type of second argument to
10675 size_t in function definition.
10676 * hashtable.c (calc_hash): Change type of second argument to size_t.
10677 (ht_lookup): Change type of third argument to size_t. Reorganize
10678 to speed-up the cases where the hash table slot is empty, or the
10679 first probe matches (i.e. there isn't a collision).
10680 * hashtable.h (ht_lookup): Adjust function prototype.
10681
10682 2003-08-08 Bernardo Innocenti <bernie@develer.com>
10683
10684 PR target/9697
10685 PR target/11777
10686 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
10687
10688 2003-08-08 Neil Booth <neil@daikokuya.co.uk>
10689
10690 * common.opt: Add debug switches.
10691 * flags.h (use_gnu_debug_info_extensions): Boolify.
10692 * opts.c (write_symbols, debug_info_level,
10693 use_gnu_debug_info_extensions): Move from toplev.c.
10694 (set_debug_level): New.
10695 (common_handle_options): Handle debug switches.
10696 (print_help): Display target options directly.
10697 * toplev.c (debug_hooks): Don't initialize.
10698 (write_symbols, debug_info_level,
10699 use_gnu_debug_info_extensions): Move to opts.c.
10700 (debug_args, display_help, decode_g_option): Remove.
10701 (process_options): Set no debug if level zero here,
10702 and no-debug-hooks. Error here if impossible debug format selected.
10703 * toplev.h (display_help, decode_g_option): Remove.
10704
10705 2003-08-08 Richard Sandiford <rsandifo@redhat.com>
10706
10707 * tree.c (get_file_function_name_long): Fix size of alloca() area.
10708
10709 2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
10710
10711 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
10712 and gcc_cv_prog_cmp_skip.
10713 * configure: Regenerate.
10714
10715 2003-08-08 Stan Cox <scox@redhat.com>
10716
10717 * config/iq2000: New port.
10718 * config.gcc (iq2000-*-elf): Added.
10719 * doc/install.texi (Specific): Add iq2000 description.
10720
10721 2003-08-08 Andreas Schwab <schwab@suse.de>
10722
10723 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
10724 and insert missing empty argument.
10725 * configure: Regenerate.
10726
10727 2003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10728
10729 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
10730 (attr_length_millicode_call): Likewise.
10731 (attr_length_call): Likewise. Revise some maximum insn lengths.
10732 (attr_length_indirect_call): Likewise.
10733 (output_call): Fix thinko that added extra nop.
10734 * pa.h (IN_NAMED_SECTION_P): Define.
10735
10736 PR c++/11712
10737 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
10738 __STDC_EXT__ when using C++ dialect.
10739
10740 2003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
10741
10742 * sh.c (calc_live_regs): If the return address pointer is live,
10743 force pr live.
10744 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
10745 for saves / restores.
10746 (sh_expand_epilogue): If sh_media_register_for_return returns a
10747 register number, flag the instructions that restores PR_MEDIA_REG
10748 as possibly dead.
10749 Remove dead update of offset.
10750 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
10751 we can use the result of get_hard_reg_initial_val.
10752 * sh.md (UNSPEC_RA): New constant.
10753 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
10754 (load_ra). Handle UNSPEC_RA.
10755 (sibcall_media): Use PR_MEDIA_REG.
10756
10757 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
10758 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
10759 needs saving on SHmedia.
10760
10761 2003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
10762
10763 * config/s390/s390.md: Replace all occurrences of \\t with \t.
10764
10765 2003-08-07 Richard Sandiford <rsandifo@redhat.com>
10766
10767 * local-alloc.c (combine_regs): Fix comment typo.
10768
10769 2003-08-06 Zack Weinberg <zack@codesourcery.com>
10770
10771 * c-decl.c (builtin_decls): Replace with first_builtin_decl
10772 and last_builtin_decl.
10773 (c_init_decl_processing): Initialize both.
10774 (c_reset_state): Iterate from first_builtin_decl to
10775 last_builtin_decl inclusive to reintroduce builtins.
10776
10777 2003-08-06 David Mosberger <davidm@hpl.hp.com>
10778
10779 * doc/extend.texi (Function Attributes): Document the IA-64 version
10780 of the "model" attribute.
10781
10782 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
10783 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
10784 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
10785
10786 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
10787 (ia64_encode_section_info): Likewise.
10788 (ia64_attribute_table): Add "model" attribute.
10789 (TARGET_ENCODE_SECTION_INFO): Define.
10790 (small_addr_symbolic_operand): New function.
10791 (got_symbolic_operand): Return 0 for a symbolref to an object
10792 in the small address area.
10793 (enum ia64_addr_area): New type.
10794 (small_ident1): New variable.
10795 (small_ident2): Likewise.
10796 (init_idents): New function.
10797 (ia64_get_addr_area): Likewise.
10798 (ia64_encode_addr_area): Likewise.
10799 (ia64_encode_section_info): Likewise.
10800 (ia64_expand_load_address): For symbolic references to objects in
10801 the small-address-area, load the address via gen_rtx_SET() (which,
10802 eventually, will expand into "addl").
10803
10804 2003-08-06 Per Bothner <pbothner@apple.com>
10805
10806 * line-map.h (fileline): New typedef.
10807 (struct line_map, linemap_add, linemap_lookup): Use it.
10808 * input.h (struct location_s): Comment notes that long-term we want
10809 to replace it by fileline.
10810
10811 2003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
10812
10813 Fix SHcompact exception handling:
10814 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
10815 by the prologue, return a MEM with return_address_pointer_rtx
10816 as address.
10817 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
10818 (RETURN_ADDR_OFFSET): Don't define.
10819 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
10820 registers that are visible in compact mode. Show that SHmedia
10821 registers still exist in compact mode, even if there are not
10822 readily accessible.
10823 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
10824 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
10825 and DW_EH_PE_pcrel for pic data.
10826 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
10827 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
10828 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
10829 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
10830 * sh.md (movsi_media-1): New splitter.
10831
10832 2003-08-06 Graeme Peterson <gp@qnx.com>
10833
10834 * config/i386/nto.h: New.
10835 * config/i386/t-nto: New.
10836 * config.gcc (i[34567]86-*-nto-qnx*): New.
10837
10838 2003-08-06 Phil Edwards <pme@gcc.gnu.org>
10839
10840 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
10841
10842 2003-08-06 Alan Modra <amodra@bigpond.net.au>
10843
10844 * calls.c (load_register_parameters): Arrange for call_fusage to
10845 report the whole register as used when shifting to the msb.
10846
10847 2003-08-05 Roger Sayle <roger@eyesopen.com>
10848
10849 * builtins.c (expand_builtin): When not optimizing, call the library
10850 function for all builtins that have library functions (except alloca).
10851
10852 2003-08-05 Alexandre Oliva <aoliva@redhat.com>
10853
10854 * c.opt: Introduce -fworking-directory.
10855 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
10856 * c-common.h (flag_working_directory): Declare.
10857 * c-common.c (flag_working_directory): Define.
10858 * c-opts.c (c_common_handle_options): Set it.
10859 (sanitize_cpp_opts): Set...
10860 * cpplib.h (struct cpp_options): ... working_directory option.
10861 (struct cpp_callbacks): Add dir_change.
10862 * cppinit.c (read_original_filename): Call...
10863 (read_original_directory): New. Look for # 1 "directory//"
10864 and process it.
10865 (cpp_read_main_file): Call dir_change callback if working_directory
10866 option is set.
10867 * gcc.c (cpp_unique_options): Pass -g*.
10868 * c-lex.c (cb_dir_change): New.
10869 (init_c_lex): Set dir_change callback.
10870 * toplev.c (src_pwd): New static variable.
10871 (set_src_pwd, get_src_pwd): New functions.
10872 * toplev.h (get_src_pwd, set_src_pwd): Declare.
10873 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
10874 * dwarf2out.c (gen_compile_unit_die): Likewise.
10875 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
10876
10877 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
10878
10879 * pretty-print.h (pp_set_line_maximum_length): Make macro.
10880 (pp_set_prefix): Likewise.
10881 (pp_destroy_prefix): Likewise.
10882 (pp_remaining_character_count_for_line): Likewise.
10883 (pp_clear_output_area): Likewise.
10884 (pp_formatted_text): Likewise.
10885 (pp_last_position_in_text): Likewise.
10886 (pp_emit_prefix): Likewise.
10887 (pp_append_text): Likewise.
10888 (pp_flush): Likewise.
10889 (pp_format_text): Likewise.
10890 (pp_format_verbatim): Likewise.
10891 (pp_tree_identifier): Tidy.
10892 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
10893 (pp_base_format_verbatim): Rename from pp_format_verbatim.
10894 (pp_base_flush): Rename from pp_flush.
10895 (pp_base_set_line_maximum_length): Rename from
10896 pp_set_line_maximum_length.
10897 (pp_base_clear_output_area): Rename from pp_clear_output_area.
10898 (pp_base_set_prefix): Rename from pp_set_prefix.
10899 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
10900 (pp_base_emit_prefix): Rename from pp_emit_prefix.
10901 (pp_base_append_text): Rename from pp_append_text.
10902 (pp_base_formatted_text): Rename from pp_formatted_text.
10903 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
10904 (pp_base_remaining_character_count_for_line): Rename from
10905 pp_remaining_character_count_for_line.
10906 * diagnostic.h (diagnostic_format_decoder): Tidy.
10907 (diagnostic_flush_buffer): Likewise.
10908 * c-pretty-print.h: (pp_c_string_literal): Declare.
10909 (pp_c_real_literal): Likewise.
10910 (pp_c_integer_literal): Likewise.
10911 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
10912 pp_identifier.
10913 (pp_c_character_literal): Tidy.
10914 (pp_c_string_literal): Make public.
10915 (pp_c_bool_literal): Likewise.
10916 (pp_c_integer_literal): Likewise.
10917 (pp_c_real_literal): Likewise.
10918
10919 * Makefile.in (C_PRETTY_PRINT_H): New variable.
10920 (c-pretty-print.o): Update dependence.
10921
10922 2003-08-05 Chris Demetriou <cgd@broadcom.com>
10923
10924 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
10925 ".set nomacro" state.
10926 (fix_truncsfsi2_macro): Likewise.
10927
10928 2003-08-05 Steven Bosscher <steven@gcc.gnu.org>
10929
10930 * tree.h (DID_INLINE_FUNC): Remove macro.
10931 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
10932 add tree check for FUNCTION_DECL.
10933 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
10934 (struct tree_decl): Rename inlined_function_flag to
10935 declared_inline_flag.
10936 * c-common.h (c_lang_decl): Remove.
10937 (DECL_ESTIMATED_INSNS): Remove.
10938 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
10939 (DECL_DECLARED_INLINE_P): Remove.
10940 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
10941 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
10942 (finish_function): Make uninlinable a bool. Fixup call to
10943 tree_inlinable_function_p() and fix some code style issues.
10944 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
10945 * cgraph.c (dump_cgraph): Likewise.
10946 * cgraphunit.c (cgraph_decide_inlining): Likewise
10947 (cgraph_finalize_compilation_unit): Likewise.
10948 Also update call to tree_inlinable_function_p().
10949 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
10950 look at DECL_DECLARED_INLINE and reverse logic.
10951 * print-tree.c (print_node): Likewise.
10952 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
10953 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
10954 prototype.
10955 * tree-inline.c (inlinable_function_p): Split up in this function to
10956 check for basic inlining inhibiting conditions, and new
10957 limits_allow_inlining() function. Warn if inlining is impossible
10958 because the inline candidate calls alloca or uses sjlj exceptions.
10959 (limits_allow_inlining): this new function to check if the inlining
10960 limits are satisfied. Throttle from currfn_max_inline_insns, not from
10961 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
10962 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
10963 Update prototypes.
10964 (tree_inlinable_function_p): Make a bool. Update call to
10965 inlinable_function_p
10966 (expand_call_inline): Use limits_allow_inlining() when not in
10967 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
10968 instead see if the function was declared `inline'.
10969
10970 2003-08-05 Josef Zlomek <zlomekj@suse.cz>
10971
10972 * gcse.c (try_replace_reg): Fix updating of note.
10973
10974 2003-08-04 Roger Sayle <roger@eyesopen.com>
10975
10976 PR middle-end/11771
10977 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
10978 logic in negate_expr, i.e. we don't invert (A-B) for floating
10979 point types unless flag_unsafe_math_optimizations.
10980
10981 2003-08-04 Roger Sayle <roger@eyesopen.com>
10982
10983 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
10984 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
10985 for floating point expressions with -ffast-math.
10986 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
10987 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
10988
10989 2003-08-04 Roger Sayle <roger@eyesopen.com>
10990
10991 * c-common.c (flag_noniso_default_format_attributes): Delete.
10992 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
10993 (c_attrs_initialized): Delete.
10994 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
10995 always call c_init_attributes.
10996 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
10997 set c_attrs_initialized when done.
10998 (c_common_insert_default_attributes): Delete.
10999 * c-common.h (flag_noniso_default_format_attributes): Delete.
11000 (c_coomon_insert_default_attributes): Delete prototype.
11001 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
11002 flag_noniso_default_format_attributes.
11003
11004 * c-decl.c (c_insert_default_attributes): Delete.
11005 * c-tree.h (c_insert_default_attributes): Delete prototype.
11006
11007 * attribs.c (decl_attributes): Don't call insert_default_attributes
11008 langhook. Update function description comment.
11009 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
11010 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
11011 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
11012 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
11013
11014 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
11015 define.
11016
11017 2003-08-04 Richard Sandiford <rsandif@redhat.com>
11018
11019 * config/mips/mips.c (override_options): Disable -G on targets that
11020 have no .section support.
11021 (mips_select_section): Use default_select_section for such targets.
11022
11023 2003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
11024
11025 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
11026 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
11027 * fixinc/fixincl.x: Rebuild.
11028 * fixinc/tests/base/regexp.h: New test.
11029
11030 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
11031
11032 * c-ppoutput.c (cb_line_change): Don't skip line changing while
11033 parsing macro arguments in the top-level context.
11034
11035 2003-08-04 Neil Booth <neil@daikokuya.co.uk>
11036
11037 * config.in: Remove HAVE_LSTAT.
11038 * configure, configure.in: Don't test for lstat.
11039
11040 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
11041
11042 * opts.c (decode_options): Do language-specific initialization for
11043 the global diagnostic context.
11044 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
11045 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
11046 (LANG_HOOKS_INITIALIZER): Adjust.
11047 * langhooks.h (struct lang_hooks): Add new field
11048 initialize_diagnostics.
11049 * langhooks.c (lhd_initialize_diagnostics): Define.
11050
11051 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
11052
11053 * pretty-print.h: Adjust macro definitions.
11054 * pretty-print.c (pp_newline): Rename to pp_base_newline.
11055 (pp_character): Rename to pp_base_character.
11056 (pp_string): Rename to pp_base_string.
11057 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
11058 (pp_newline): Likewise. Adjust.
11059 (pp_c_char): Adjust.
11060
11061 2003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11062
11063 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
11064 BUILT_IN_LLABS): Move to miscellaneous section.
11065
11066 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
11067
11068 PR preprocessor/11534
11069 * cppexp.c (parse_defined): Warn only if -pedantic.
11070
11071 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
11072
11073 * cppfiles.c (stack_file): Use file path.
11074
11075 2003-08-02 Roger Sayle <roger@eyesopen.com>
11076
11077 * builtin-types.def (BT_SSIZE): New primitive type.
11078 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
11079 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
11080 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
11081 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
11082 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
11083 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
11084 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
11085 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
11086 few functions that define default attributes using it.
11087 * c-common.c (c_common_insert_default_attributes): Do nothing.
11088
11089 * doc/extend.texi: Document these "new" builtins.
11090
11091 2003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
11092
11093 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
11094 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
11095 when -mieee-fp set and -shared not set.
11096 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
11097
11098 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
11099
11100 * cppfiles.c (struct _cpp_file): Rename once_only_next to
11101 next_file. Remove import and pragma_once, add once_only.
11102 (find_file): Add new file structures to the all_files list.
11103 (should_stack_file): Mark #import-ed files once-only, and
11104 don't stack them if the file has already been stacked.
11105 (_cp_mark_file_once_only): Simplify.
11106 * cpphash.h (struct cpp_reader): Rename once_only_files
11107 to all_files. Rename saw_pragma_once to seen_once_only.
11108 (_cpp_mark_file_once_only): Update prototype.
11109 * cpplib.c (do_pragma_once): Update.
11110
11111 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
11112
11113 * cppfiles.c (ENOTDIR): Remove.
11114 (open_file_in_dir): Rename find_file_in_dir. Handle errors
11115 other than ENOENT here.
11116 (once_only_file_p): Rename should_stack_file.
11117 (find_file, open_file_failed, read_file_guts): Report errors
11118 with full path name.
11119 (read_file): Move pch handling to should_stack_file.
11120 (should_stack_file): Handle PCH and once-only issues, and
11121 reading the file.
11122 (stack_file): Don't do file reads.
11123
11124 2003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11125
11126 * libgcov.c (gcov_exit): Cleanup and fix.
11127 * profile.c (compute_value_histograms): Don't try to read profiles
11128 that are not present.
11129
11130 2003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11131
11132 * builtins.def: Categorize.
11133
11134 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
11135 Mind fp rounding.
11136 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
11137
11138 2003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
11139
11140 * config.gcc: Enable posix threads by default on darwin.
11141
11142 2003-08-01 Jakub Jelinek <jakub@redhat.com>
11143
11144 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
11145 even if nehedges1 is 0.
11146
11147 2003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
11148
11149 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
11150 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
11151 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
11152 and defintions.
11153
11154 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
11155 * fixinc/fixincl.x: Regenerate.
11156 * fixinc/tests/base/math.h: Regenerate to match test_text change.
11157
11158 2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11159
11160 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
11161
11162 2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11163
11164 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
11165 for accesses to exc_ptr.
11166
11167 2003-08-01 Geoffrey Keating <geoffk@apple.com>
11168
11169 * doc/sourcebuild.texi (Front End Directory): Don't make references
11170 to libsubdir, it's not part of the interface to frontends.
11171 * doc/install.texi (Configuration): Help users read faster by saying
11172 that GCC's configure options are the standard autoconf ones.
11173 Mention --libdir. Update the default rules for finding the
11174 assembler. Don't use libsubdir since we haven't said what it means.
11175 (Specific): In the Solaris 7 notes, update the place to put the
11176 assembler.
11177 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
11178 * doc/cpp.texi (Search Path): Actually, the search path
11179 depends on libdir, which can relocate with cpp.
11180 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
11181 now a private interface between the Makefile and the driver.
11182
11183 2003-08-01 Richard Henderson <rth@redhat.com>
11184
11185 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
11186
11187 * varasm.c (lookup_constant_def): New function.
11188 * rtl.h (lookup_constant_def): Declare it.
11189 * dwarf2out.c (loc_descriptor_from_tree): Use it.
11190 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
11191
11192 2003-08-01 Zack Weinberg <zack@codesourcery.com>
11193
11194 * c-decl.c (gettags, pushdecl_function_level): Delete.
11195 (last_function_parm_vars): Rename last_function_parm_others.
11196 (current_function_parm_vars): Rename current_function_parm_others.
11197 (struct c_scope): Rewrite comment explaining this data structure.
11198 Add names_last, blocks_last, parms_last fields. Rename
11199 incomplete_list to incomplete.
11200 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
11201 (poplevel): Ignore second argument. No need to nreverse
11202 anything. Restructure such that each list is processed
11203 exactly once. Use 'const location_t *locus' syntactic sugar
11204 variable where useful. Issue unused variable warnings
11205 ourselves, do not rely on function.c.
11206 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
11207 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
11208 (implicitly_declare): decl cannot be error_mark_node.
11209 (undeclared_variable): Manipulate scope structure directly.
11210 (c_make_fname_decl): Likewise.
11211 (getdecls, c_init_decl_processing): Fix comment.
11212 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
11213 for 'last' variable.
11214 (grokparms): No need to nreverse parms list.
11215 (store_parm_decls_newstyle): Set up the parms_last and
11216 names_last fields of the new scope too.
11217 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
11218 on parms to begin with; check this under ENABLE_CHECKING. Set
11219 up parms_last.
11220 (check_for_loop_decls): Refer directly to current_scope->tags.
11221 Use consistent quote style in diagnostics.
11222 (c_write_global_declarations): The names list is not backward.
11223
11224 * c-common.h: Don't prototype gettags.
11225 * c-parse.in: Call poplevel with second argument 0 always.
11226
11227 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11228
11229 * builtins.def: Resort builtins.
11230
11231 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11232
11233 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
11234 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
11235 Prepend "__builtin_" onto NAME with string concatenation. Remove
11236 explicit "__builtin_" from each macro call.
11237
11238 Reformat entire file.
11239
11240 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11241
11242 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
11243 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
11244
11245 2003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
11246
11247 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
11248 CCL1, or CCL2 modes with floating point operations.
11249
11250 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
11251 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
11252 "*subdf3_cconly"): New insns.
11253 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
11254
11255 2003-08-01 Neil Booth <neil@daikokuya.co.uk>
11256
11257 * Makefile.in: Refine dependencies.
11258 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
11259 * c.opt: Update help for -Wimport.
11260 * cppfiles.c: Include hashtab.h. Update comments.
11261 (stack_file): Read the file before updating dependencies.
11262 (once_only_file_p): Be smarter about marking once-only files.
11263 (_cpp_mark_file_once_only): Correct the check for existence on
11264 the list.
11265 (open_file_failed): Use name not path, which is NULL.
11266 * cpphash.h: Don't include hashtab.h.
11267 (struct _cpp_file): Remove.
11268 (struct cpp_reader): Update.
11269 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
11270 * cpplib.h (struct cpp_options): Remove warn_import.
11271 (cpp_simplify_path): Remove.
11272
11273 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
11274
11275 PR c++/11295
11276 * doc/extend.texi (Statement Expressions): Document C++ semantics.
11277
11278 2003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
11279
11280 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
11281
11282 2003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11283
11284 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
11285 throughout.
11286 * builtins.def: Likewise.
11287
11288 2003-07-31 Jason Merrill <jason@redhat.com>
11289
11290 * Makefile.in (bubblestrap): Don't require a previous full
11291 bootstrap.
11292
11293 * expr.c (mostly_zeros_p): No longer static.
11294 * tree.h: Declare it.
11295 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
11296 unless we need to do substitutions.
11297
11298 2003-07-31 Roger Sayle <roger@eyesopen.com>
11299
11300 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
11301 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
11302 as pow(x,2.0) when the latter will be expanded back into x*x.
11303 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
11304 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
11305 pow can never set errno when used with an integer exponent.
11306 Always use expand_powi when exponent is -1, 0, 1 or 2.
11307 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
11308 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
11309 the pow forms of these expressions.
11310
11311 2003-07-31 Geoffrey Keating <geoffk@apple.com>
11312
11313 * Makefile.in (libexecdir): New.
11314 (libsubdir): Use gcc instead of gcc-lib.
11315 (libexecsubdir): New.
11316 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
11317 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
11318 gcc-lib.
11319 (installdirs): Make libexecsubdir.
11320 (install-common): Put executables in libexecsubdir.
11321 (itoolsdir): Use libexecsubdir.
11322 (itoolsdatadir): New.
11323 (install-mkheaders): Separate data files and executables.
11324 (install-collect2): Put executables in libexecsubdir.
11325 (uninstall): Remove libexecsubdir.
11326 * mkheaders.in: Update for new arrangement of files.
11327 (libexecdir): New.
11328 (libexecsubdir): New.
11329 (itoolsdir): Use libexecsubdir.
11330 (itoolsdatadir): New.
11331 * gcc.c (gcc_libexec_prefix): New.
11332 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
11333 (standard_exec_prefix_1): Use libexec.
11334 (standard_exec_prefix_2): New.
11335 (standard_libexec_prefix): New.
11336 (process_command): Update for new arrangement of files. Compute
11337 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
11338
11339 2003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
11340
11341 * inclhack.def (stdio_va_list): Avoid bogus replacement which
11342 triggers on Interix.
11343 * fixincl.x: Regenerate.
11344
11345 2003-07-31 Jakub Jelinek <jakub@redhat.com>
11346
11347 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
11348 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
11349
11350 2003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11351
11352 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
11353
11354 2003-07-31 Per Bothner <pbothner@apple.com>
11355
11356 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
11357 (add_input_filename): New function.
11358 (handle_options): Call add_input_filename directly instead of
11359 with a lang hook.
11360 * opts.h (in_fnames, num_in_fnames): Moved here.
11361 (add_input_filename): Declare.
11362 * c-decl.c: Need to #include opts.h.
11363 * Makefile.in (c-decl.o): Also depends on opts.h.
11364 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
11365 (c_common_handle_filename): Replaced by add_input_filename.
11366 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
11367 Remove.
11368 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
11369 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
11370 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
11371 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
11372
11373 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11374
11375 * combine.c (try_combine): Set JUMP_LABEL for newly created
11376 unconditional jump.
11377
11378 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11379
11380 * fold-const.c (fold): Fold some comparisons of bit operations.
11381
11382 2003-07-31 Jan Hubicka <jh@suse.cz>
11383
11384 * cgraph.c (create_edge): Fix typo.
11385 * i386.c (pic_symbolic_operand): Reorder tests.
11386
11387 2003-07-31 Nathan Sidwell <nathan@codesourcery.com>
11388
11389 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
11390 more fully.
11391 (Gcov Data Files): Update.
11392
11393 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11394
11395 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
11396 default.
11397
11398 * gthr-posix.c: New file.
11399 * gthr-posix.h: Define _REENTRANT if missing.
11400 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
11401
11402 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
11403 by gthr-posix.o.
11404 * config/alpha/t-osf-pthread: New file.
11405
11406 * fixinc/inclhack.def (alpha_pthread): New fix.
11407 * fixinc/fixincl.x: Regenerate.
11408 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
11409
11410 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
11411 warning.
11412 Fixes PR bootstrap/9330.
11413
11414 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11415
11416 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
11417 without GNU ld.
11418 Update comment.
11419 * configure: Regenerate.
11420
11421 2003-07-31 Vladimir Makarov <vmakarov@redhat.com>
11422
11423 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
11424 setter.
11425
11426 2003-07-30 Roger Sayle <roger@eyesopen.com>
11427
11428 * builtins.def: Alphabetize.
11429
11430 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
11431
11432 * doc/c-tree.texi: Normalize spellings of "lowercase" and
11433 "uppercase".
11434 * doc/cpp.texi: Likewise.
11435 * doc/md.texi: Likewise.
11436 * doc/rtl.texi: Likewise.
11437 * doc/tm.texi: Likewise.
11438
11439 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
11440
11441 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
11442 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
11443 of cc1obj.
11444
11445 2003-07-30 Chris Demetriou <cgd@broadcom.com>
11446
11447 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
11448 macros before defining them.
11449
11450 2003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
11451
11452 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
11453 UNSPECV_BLOCKAGE): New constants.
11454 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
11455 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
11456 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
11457 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
11458
11459 (all insns and expanders): Write output control string as brace block
11460 where appropriate. Remove \-escapes for doublequote characters.
11461
11462 2003-07-31 Jan Hubicka <jh@suse.cz>
11463
11464 * gcse.c (insert_store): Fix typo in previous patch.
11465
11466 2003-07-30 Neil Booth <neil@daikokuya.co.uk>
11467
11468 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
11469
11470 2003-07-30 Andi Kleen <ak@muc.de>
11471
11472 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
11473
11474 2003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11475
11476 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
11477 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
11478 GCOV_N_VALUE_COUNTERS): New.
11479 * profile.c (compute_value_histograms): New static function.
11480 (branch_prob): Read back the value histograms.
11481 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
11482 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
11483 * value-prof.c: Add comment on reading the profile.
11484 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
11485 * doc/invoke.texi (-fprofile-values): Document behavior with
11486 -fbranch-probabilities.
11487
11488 2003-07-30 David Edelsohn <edelsohn@gnu.org>
11489
11490 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
11491
11492 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
11493
11494 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
11495 symbolically.
11496
11497 2003-07-30 Jan Hubicka <jh@suse.cz>
11498
11499 * gcse.c (insert_store): Ignore fake edges.
11500
11501 * c-common.c (flag_vtable_gc): Kill.
11502 * c-common.g (flag_vtable_gc): Kill.
11503 * c-opts (c_common_handle_option): Kill.
11504 * c.opt (fvtable-gc): Kill.
11505 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
11506 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
11507 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
11508
11509 * invoke.texi (-ftable-gc): Kill documentation.
11510
11511 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
11512 just because function body is missing.
11513
11514 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
11515
11516 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
11517
11518 * unwind-sjlj.c: Fix typo in file description.
11519
11520 2003-07-30 Alan Modra <amodra@bigpond.net.au>
11521
11522 * calls.c (load_register_parameters): When shifting reg sized values
11523 to the msb, move the value to a reg first.
11524
11525 2003-07-29 Geoffrey Keating <geoffk@apple.com>
11526
11527 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
11528 * line-map.h (linemap_add): Update comments.
11529 * line-map.c (linemap_add): Update comments, interpret zero-length
11530 filename as "<stdin>".
11531
11532 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
11533
11534 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
11535
11536 2003-07-29 Zack Weinberg <zack@codesourcery.com>
11537
11538 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
11539 New static variables.
11540 (struct c_scope): Add parms and warned_forward_parm_decls
11541 fields; remove parm_order.
11542 (storedecls, storetags): Delete.
11543 (poplevel): Also clear bindings on the parms chain.
11544 (pushdecl): Handle forward declarations of parameters, and
11545 chain PARM_DECLs on the parms list, not the names list.
11546 (lookup_name_current_level): Check for PARM_DECLs on the parms
11547 list too.
11548 (push_parm_decl): Don't update parm_order.
11549 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
11550 warning, only once per parameter list, and set TREE_ASM_WRITTEN
11551 on the decls here. Then move the forward decls to the names list.
11552 (grokparms): Set last_function_parm_vars.
11553 (get_parm_info): Don't use gettags or getdecls. No need to
11554 extract non-parms from the parms list, or reorganize the parms
11555 list. Feed nonparms back in the TREE_TYPE of the list node
11556 returned. Issue only one error per parameter list for "void"
11557 appearing more than once in said parameter list. Collapse
11558 parmlist_tags_warning into this function to avoid double scan
11559 of tags list.
11560 (start_function): Set current_function_parm_vars.
11561 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
11562 directly. Get non-parms from current_function_parm_vars; no
11563 need to extract them from the parms chain. Properly bind tags
11564 in the new scope.
11565 (store_parm_decls_oldstyle): No need to extract non-parameters
11566 from the parms chain, nor to store them back afterward. Move
11567 declaration to top of function, restructure code reordering
11568 DECL_ARGUMENTS.
11569 (store_parm_decls): No need to save and restore warn_shadow.
11570 * c-parse.in: Don't call parmlist_tags_warning nor
11571 clear_parm_order. Call mark_forward_parm_decls when forward
11572 parm decls are encountered.
11573 * c-tree.h: Prototype mark_forward_parm_decls; not
11574 clear_parm_order or parmlist_tags_warning.
11575
11576 2003-07-29 Geoffrey Keating <geoffk@apple.com>
11577
11578 * c-common.c (allow_pch): Remove.
11579 * c-common.h (allow_pch): Remove.
11580 (c_common_no_more_pch): Declare.
11581 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
11582 * c-pch.c: Include hosthooks.h.
11583 (c_common_valid_pch): Don't check allow_pch.
11584 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
11585 (c_common_no_more_pch): New.
11586 * ggc-common.c: Include hosthooks.h.
11587 (gt_pch_save): Call gt_pch_get_address.
11588 (gt_pch_restore): Call gt_pch_use_address.
11589 * hooks.c (hook_voidp_size_t_null): New.
11590 (hook_bool_voidp_size_t_false): New.
11591 * hooks.h (hook_voidp_size_t_null): New.
11592 (hook_bool_voidp_size_t_false): New.
11593 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
11594 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
11595 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
11596 HOST_HOOKS_GT_PCH_USE_ADDRESS.
11597 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
11598 gt_pch_use_address.
11599 * doc/hostconfig.texi (Host Common): Document
11600 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
11601 * Makefile.in (c-pch.o): Depend on hosthooks.h.
11602 (ggc-common.o): Likewise.
11603
11604 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
11605 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
11606 (pch_address_space): New.
11607 (darwin_rs6000_gt_pch_get_address): New.
11608 (darwin_rs6000_gt_pch_use_address): New.
11609
11610 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
11611
11612 PR preprocessor/11569
11613 PR preprocessor/11649
11614 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
11615 * cppfiles.c: Completely rewritten.
11616 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
11617 struct cpp_path is now struct cpp_dir.
11618 (remove_duplicates): Don't simplify path names.
11619 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
11620 cpp_stack_file.
11621 * cpphash.h: Include hashtab.h.
11622 (_cpp_file): Declare.
11623 (struct cpp_buffer): struct include_file is now struct _cpp_file,
11624 and struct cpp_path is now struct cpp_dir. Rename members.
11625 (struct cpp_reader): Similarly. New members once_only_files,
11626 file_hash, file_hash_entries, quote_ignores_source_dir,
11627 no_search_path, saw_pragma_once. Remove all_include_files and
11628 max_include_len. Make some members bool.
11629 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
11630 (_cpp_stack_file): Renamed from _cpp_read_file.
11631 (_cpp_stack_include): Renamed from _cpp_execute_include.
11632 (_cpp_init_files): Renamed from _cpp_init_includes.
11633 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
11634 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
11635 (cpp_read_next_file): Rename and move to cppfiles.c.
11636 (cpp_read_main_file): Update.
11637 * cpplib.c (run_directive): Update for renamed members.
11638 (do_include_common, _cpp_pop_buffer): Update.
11639 (do_import): Undeprecate #import.
11640 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
11641 * cpplib.h: Remove file_name_map_list.
11642 (cpp_options): Remove map_list.
11643 (cpp_dir): Rename from cpp_path. New datatype for name_map.
11644 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
11645
11646 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
11647
11648 * Makefile.in: Make stamp-objdir safe for parallel builds.
11649
11650 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
11651
11652 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
11653 (info): Depend on stmp-docobjdir.
11654
11655 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11656
11657 * configure: Regenerate.
11658
11659 2003-07-29 Jan Hubicka <jh@suse.cz>
11660
11661 PR C++/11131
11662 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
11663 in !unit-at-a-time mode.
11664
11665 2003-07-28 Geoffrey Keating <geoffk@apple.com>
11666
11667 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
11668 main function.
11669
11670 2003-07-28 Mark Mitchell <mark@codesourcery.com>
11671
11672 PR c++/11667
11673 * c-common.c (shorten_compare): Take into account differences
11674 between C and C++ representation for enumeration types.
11675 * tree.h (set_min_and_max_values_for_integral_type): Declare.
11676 * stor-layout.c (set_min_and_max_values_for_integral_type): New
11677 function, broken out from ...
11678 (fixup_signed_type): ... here and ...
11679 (fixup_unsigned_type): ... here.
11680
11681 2003-07-28 Zack Weinberg <zack@codesourcery.com>
11682
11683 * c-decl.c: Update commentary, adjust blank lines throughout.
11684 (struct c_scope): Fix indentation. Reorder members so
11685 outer-context pointers come first, booleans last.
11686 (duplicate_decls, define_label): Use a 'locus' variable for
11687 diagnostic locations in a few more places.
11688 (warn_if_shadowing): Un-split a conditional that fits on one line.
11689 (c_init_decl_processing): No need to clear current_scope and
11690 current_function_scope.
11691 (start_decl): Merge if/else if statements with same action.
11692 (push_parm_decl): Rename old_immediate_size_expand to use
11693 save_foo convention; save/restore around entire function.
11694 (grokdeclarator): Remove unnecessary braces.
11695
11696 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
11697 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
11698
11699 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
11700 when warn_declaration_after_statement. Call pedwarn_c90, not
11701 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
11702 * c-common.c (warn_declaration_after_statement): Define.
11703 * c-common.h (warn_declaration_after_statement): Declare.
11704 * c.opt (Wdeclaration-after-statement): New.
11705 * c-errors.c (pedwarn_c90): New function.
11706 * c-opts.c (c_common_handle_option) <case
11707 OPT_Wdeclaration_after_statement>: New.
11708 * c-tree.h (pedwarn_c90): Declare.
11709 * doc/invoke.texi (Option Summary): Document
11710 -Wdeclaration-after-statement.
11711 (Warning Options): Ditto.
11712
11713 2003-07-28 Jan Hubicka <jh@suse.cz>
11714
11715 * i386.md (memory attribute) Avoid accessing uninitialized memory
11716 for ishift1 type instructions.
11717
11718 2003-07-28 Jakub Jelinek <jakub@redhat.com>
11719
11720 * configure.in (--enable-checking): Add fold category.
11721 (ENABLE_FOLD_CHECKING): Define if requested.
11722 * configure: Rebuilt.
11723 * config.in: Rebuilt.
11724 * doc/install.texi: Document it.
11725 * fold-const.c: Include md5.h.
11726 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
11727 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
11728 print_fold_checksum): New functions.
11729
11730 * fold-const.c (fold): Never modify argument passed to fold, instead
11731 change a copy and return it.
11732 * convert.c (convert_to_integer): Likewise.
11733
11734 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
11735
11736 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
11737 cleanup of junk after #else and #endif directives. Collapse repeated
11738 clauses into for statment.
11739
11740 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
11741
11742 2003-07-27 Zack Weinberg <zack@codesourcery.com>
11743
11744 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
11745 (keep_next_if_subblocks): Rename next_is_function_body.
11746 (pushlevel): Adjust commentary. Always set ->keep on the
11747 outermost level of a function. Don't set ->keep_if_subblocks.
11748 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
11749 (store_parm_decls): Adjust to match.
11750 (finish_function): Adjust to match.
11751 Call poplevel with all three arguments zero.
11752
11753 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
11754 New functions split out of store_parm_decls.
11755 Avoid unnecessary work. Use local variables consistently.
11756 (store_parm_decls): Likewise.
11757
11758 (finish_function): No need to set functionbody flag on call to
11759 poplevel.
11760 (struct language_function): Remove scope field.
11761 (c_push_function_context, c_pop_function_context): No need to
11762 save and restore current_scope.
11763
11764 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
11765
11766 * doc/extend.texi (Deprecated Features): Implicit typename is
11767 gone. Default args on types is going.
11768
11769 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
11770
11771 * Makefile.in (ifcvt.o): Depend on target.h
11772 * ifcvt.c (target.h): Include.
11773 (if_convert): Don't call mark_loop_exit_edges if we can't
11774 modify jumps.
11775
11776 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11777
11778 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
11779
11780 2003-07-26 Richard Henderson <rth@redhat.com>
11781
11782 PR inline-asm/11676
11783 * cse.c (count_reg_usage): Handle asm_operands properly.
11784
11785 2003-07-26 Roger Sayle <roger@eyesopen.com>
11786
11787 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
11788 (DEF_EXT_FALLBACK_BUILTIN): Delete.
11789 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
11790 the regular DEF_EXT_LIB_BUILTIN macro.
11791 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
11792 the regular DEF_LIB_BUILTIN macro.
11793 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
11794 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
11795 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
11796 DEF_EXT_LIB_BUILTIN macro.
11797
11798 * c-decl.c (duplicate_decls): Remove code to handle builtin
11799 functions prototyped without an argument list.
11800
11801 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
11802
11803 * config/i386/winnt.c: Revert 2003-07-08 change.
11804 (i386_pe_section_type_flags): Remove error_with_decl here too.
11805
11806 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
11807
11808 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
11809 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
11810 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
11811 (v850_handle_data_area_attribute): Likewise.
11812
11813 2003-07-26 Geoffrey Keating <geoffk@apple.com>
11814
11815 * varasm.c (output_constant_def_contents): Use
11816 ASM_DECLARE_CONSTANT_NAME if defined.
11817 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
11818 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
11819 objects get at least one byte to prevent assembler problems.
11820 (ASM_DECLARE_CONSTANT_NAME): New.
11821
11822 * Makefile.in (libbackend.o): Remove options_.h.
11823 (mostlyclean): Likewise.
11824
11825 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
11826 insert a label at the end of an function under Mach-O.
11827
11828 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
11829
11830 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
11831
11832 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
11833 equality.
11834 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
11835
11836 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
11837
11838 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
11839
11840 * doc/passes.texi (Passes): Mention pretty-printing and
11841 diagnostic files.
11842
11843 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
11844
11845 * doc/extend.texi (Function Attributes): GNU C++ does now allow
11846 unused parameter decls.
11847 (Attribute Syntax): GNU C++ does not allow label attributes to be
11848 after the ':'.
11849
11850 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
11851
11852 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
11853 (objc_declare_class): Likewise.
11854 (error_with_ivar): Likewise.
11855 (start_class): Likewise.
11856 (warn_with_method): Likewise.
11857
11858 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
11859
11860 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
11861 from GCC.
11862 * calls.c (try_to_integrate): Don't use xxx_with_decl.
11863 (expand_call): Likewise.
11864 * dwarfout.c (output_reg_number): Likewise.
11865 * expr.c (expand_expr): Likewise.
11866 * function.c (assign_temp): Likewise.
11867 (uninitialized_vars_warning): Likewise.
11868 (setjmp_args_warning): Likewise.
11869 (expand_function_end): Likewise.
11870 * stmt.c (fixup_gotos): Likewise.
11871 (warn_about_unused_variables): Likewise.
11872 (expand_end_bindings): Likewise.
11873 * stor-layout.c (layout_decl): Likewise.
11874 (place_field): Likewise.
11875 * toplev.c (check_global_declarations): Likewise.
11876 (rest_of_handle_inlining): Likewise.
11877 (default_tree_printer): New function.
11878 (general_init): Initialize diagnostic machinery before routing
11879 signals to the ICE machinery. Set default tree printer.
11880 * toplev.h (pedwarn_with_decl): Remove declaration.
11881 (warning_with_decl): Likewise.
11882 (error_with_decl): Likewise.
11883 (pedwarn): Remove attribute for the time being.
11884 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
11885 * varasm.c (named_section): Likewise.
11886 (make_decl_rtl): Likewise.
11887 (assemble_variable): Likewise.
11888 (merge_weak): Likewise.
11889 (declare_weak): Likewise.
11890
11891 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
11892 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
11893 (format_with_decl): Remove.
11894 (diagnostic_for_decl): Likewise.
11895 (pedwarn_with_decl): Likewise.
11896 (warning_with_decl): Likewise.
11897 (error_with_decl): Likewise.
11898 (diagnostic_initialize): Adjust.
11899 (diagnostic_count_diagnostic): Likewise.
11900 (announce_function): Likewise.
11901 (lhd_print_error_function): Likewise.
11902 (diagnostic_report_current_module): Likewise.
11903 (default_diagnostic_starter): Likewise.
11904 (diagnostic_report_diagnostic): Likewise.
11905 (default_diagnostic_finalizer): Likewise.
11906 (verbatim): Likewise.
11907 (error): Likewise.
11908 (warning): Likewise.
11909 * opts.c (common_handle_option): Likewise.
11910 * pretty-print.c: New file.
11911 * c-pretty-print.h (pp_base): Override.
11912 * c-pretty-print.c: Adjust use of macros throughout.
11913 (pp_buffer): New macro.
11914 (pp_newline): Likewise.
11915 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
11916 * Makefile.in (DIAGNOSTIC_H): New variable.
11917 (c-errors.o): Use it.
11918 (c-objc-common.o): Likewise.
11919 (c-common.o): Likewise.
11920 (c-opts.o): Likewise.
11921 (c-format.o): Likewise.
11922 (diagnostic.o): Likewise.
11923 (opts.o): Likewise.
11924 (toplev.o): Likewise.
11925 (rtl-error.o): Likewise.
11926 (dwarf2out.o): Likewise.
11927 (jump.o): Likewise.
11928 (pretty-print.o): New rule.
11929
11930 2003-07-24 Roger Sayle <roger@eyesopen.com>
11931
11932 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
11933 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
11934 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
11935 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
11936 (DEF_FRONT_END_LIB_BUILTIN): Delete.
11937 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
11938 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
11939
11940 * builtins.c (build_string_literal): New function to construct
11941 a char* pointer to a string literal.
11942 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
11943 "rtx target" to be consistent with other expand_builtin_* functions.
11944 Change 3rd argument from "int unlocked" to "bool unlocked".
11945 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
11946 c-common.c to avoid front-end dependencies. Optimize printf("")
11947 as a no-op when the result isn't required. Handle embedded NULs
11948 in format string.
11949 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
11950 from c-common.c to avoid front-end dependencies. Likewise, optimize
11951 fprintf(fp,"") as a no-op when the result isn't required, evaluating
11952 fp for side-effects. Handle embedded NULs in format string.
11953 (expand_builtin_sprintf): Fix typo.
11954 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
11955 optimizing. Adjust calls of expand_builtin_fputs to match the API
11956 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
11957 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
11958 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
11959
11960 * c-common.c (is_valid_printf_arglist): Delete.
11961 (c_expand_builtin): Delete.
11962 (c_expand_builtin_printf): Moved to builtins.c. Delete.
11963 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
11964 (c_expand_expr): No longer treat CALL_EXPRs specially.
11965 (CALLED_AS_BUILT_IN): Delete.
11966
11967 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11968
11969 PR optimization/11631
11970 * gcse.c (store_motion): Connect infinite loops to exit.
11971
11972 2003-07-24 Jason Merrill <jason@redhat.com>
11973
11974 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
11975 (boolean_true_node, boolean_false_node): Likewise.
11976 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
11977 * tree.c (build_common_tree_nodes): Init boolean_type_node.
11978 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
11979 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
11980 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
11981 (truthvalue_true_node): Renamed from boolean_true_node.
11982 (truthvalue_false_node): Renamed from boolean_false_node.
11983 * c-decl.c: Just set truthvalue_* to integer_*.
11984 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
11985
11986 2003-07-24 Roger Sayle <roger@eyesopen.com>
11987
11988 * c-decl.c (match_builtin_function_types): New subroutine of
11989 duplicate_decls to test whether a redeclaration of a builtin
11990 function is suitably close, i.e. the return type and all of
11991 the argument types have the same modes as the builtin expects.
11992 (duplicate_decls): Fuzzy type matching for builtin functions
11993 moved to match_builtin_function_types.
11994
11995 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11996
11997 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
11998 flag correctly.
11999
12000 2003-07-24 Zack Weinberg <zack@codesourcery.com>
12001
12002 * c-decl.c: Search-and-replace change 'binding level' to
12003 'scope' in commentary.
12004 (struct binding_level): Now struct c_scope.
12005 (current_binding_level): Now current_scope.
12006 (free_binding_level): Now scope_freelist.
12007 (current_function_level): Now current_function_scope.
12008 (global_binding_level): Now global_scope.
12009 (make_binding_level): Now make_scope.
12010 (pop_binding_level): Now pop_scope.
12011
12012 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12013
12014 * configure.in (libgcc_visibility): Add missing whitespace.
12015
12016 2003-07-24 Richard Henderson <rth@redhat.com>
12017
12018 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
12019 __gcc_personality_v0.
12020
12021 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
12022
12023 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
12024
12025 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
12026
12027 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
12028 documentation missed from my 2003-07-09 patch.
12029
12030 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
12031
12032 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
12033 it's not provided.
12034 * configure: Rebuild.
12035
12036 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
12037
12038 PR c/10602
12039 * c-typeck.c (type_lists_compatible_p): Do not compare
12040 arguments if one of them is an error_mark_node
12041
12042 2003-07-24 Alan Modra <amodra@bigpond.net.au>
12043
12044 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
12045 if current_function_calls_eh_return.
12046
12047 2003-07-23 Mark Mitchell <mark@codesourcery.com>
12048
12049 * doc/c-tree.texi (OFFSET_TYPE): Update description.
12050
12051 2003-07-23 Bob Wilson <bob.wilson@acm.org>
12052
12053 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
12054 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
12055 __umodsi3, __modsi3): Increase frame size to 32.
12056
12057 2003-07-23 Geoffrey Keating <geoffk@apple.com>
12058
12059 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
12060 prototype.
12061
12062 2003-07-23 Mark Mitchell <mark@codesourcery.com>
12063
12064 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
12065
12066 PR optimization/10679
12067 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
12068
12069 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12070
12071 PR target/11607 and PR target/11516
12072 * pa.md (extzv, extv, insv): Revert latter half of last patch.
12073
12074 2003-07-22 Mark Mitchell <mark@codesourcery.com>
12075
12076 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
12077 * varasam.c (output_constant): Likewise.
12078
12079 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
12080
12081 * alias.c: Fix comment formatting.
12082 * c-common.c: Likewise.
12083 * c-decl.c: Likewise.
12084 * c-opts.c: Likewise.
12085 * combine.c: Likewise.
12086 * cpplib.c: Likewise.
12087 * diagnostic.c: Likewise.
12088 * dojump.c: Likewise.
12089 * final.c: Likewise.
12090 * fold-const.c: Likewise.
12091 * gcc.c: Likewise.
12092 * gcse.c: Likewise.
12093 * ggc-page.c: Likewise.
12094 * jump.c: Likewise.
12095 * loop.c: Likewise.
12096 * mips-tfile.c: Likewise.
12097 * recog.c: Likewise.
12098 * regclass.c: Likewise.
12099 * regmove.c: Likewise.
12100 * tree.c: Likewise.
12101 * tree.h: Likewise.
12102
12103 2003-07-22 Per Bothner <pbothner@apple.com>
12104
12105 * line-map.c (add_line_map): Handle invalid LEAVE request.
12106 Fixes PR preprocessor/11361.
12107
12108 2003-07-22 Per Bothner <pbothner@apple.com>
12109
12110 * diagnostic.c.(diagnostic_report_current_module): Update to match
12111 2003-06-05 changes to push_srcloc and pop_srcloc.
12112
12113 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
12114
12115 * doc/trouble.texi: Better document two-stage name lookup.
12116
12117 2003-07-22 Eric Christopher <echristo@redhat.com>
12118
12119 * config/s390.c (s390_valid_pointer_mode): New.
12120 (TARGET_VALID_POINTER_MODE): Use.
12121 (s390_emit_prologue): Add tpf profiling hooks.
12122 (s390_emit_epilogue): Ditto.
12123 * config/s390.h (MASK_TPF): New.
12124 (TARGET_TPF): Use.
12125 (POINTERS_EXTEND_UNSIGNED): Define.
12126 * config/s390.md (ptr_extend): New pattern.
12127
12128 2003-07-22 Zack Weinberg <zack@codesourcery.com>
12129
12130 * hashtable.c (approx_sqrt): Make static.
12131 * hashtable.h: Don't prototype approx_sqrt.
12132 * line-map.c (init_line_maps): Rename linemap_init.
12133 (free_line_maps): Rename linemap_free.
12134 (add_line_map): Rename linemap_add.
12135 (lookup_line): Rename linemap_lookup.
12136 (print_containing_files): Rename linemap_print_containing_files.
12137 * linemap.h: Update to match.
12138
12139 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
12140 linemap routines to use new names.
12141
12142 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
12143
12144 * c-common.c (handle_packed_attribute): Don't pack a struct via a
12145 typedef. Propagate packedness from a main variant.
12146
12147 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
12148
12149 * Makefile.in (install-common): Add dependency on installdirs.
12150
12151 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
12152
12153 * c-common.c (c_common_type_for_mode): Return integer types for
12154 pointer modes.
12155
12156 2003-07-22 Geoffrey Keating <geoffk@apple.com>
12157
12158 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
12159 (finish_decl): Call maybe_apply_pragma_weak here.
12160 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
12161 TREE_PUBLIC and TREE_STATIC are decided.
12162 (start_function): Move call to maybe_apply_pragma_weak. Check that
12163 DECL_ASSEMBLER_NAME isn't set too early.
12164
12165 * cpplex.c (_cpp_process_line_notes): Mention option name in
12166 trigraphs warning.
12167
12168 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
12169
12170 * combine.c (if_then_else_cond): Simplify the comparison of
12171 rtx against -1, 0, and 1.
12172 * loop.c (check_dbra_loop): Likewise.
12173 * optabs.c (emit_conditional_move): Likewise.
12174 (emit_conditional_add): Likewise.
12175 * config/i386/i386.md (*movsi_or): Likewise.
12176 (*movdi_or_rex6): Likewise.
12177
12178 2003-07-22 Jan Hubicka <jh@suse.cz>
12179
12180 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
12181
12182 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
12183
12184 * cppfiles.c (open_file_pch): Don't put unused entries in the
12185 splay tree. Remove dead code.
12186
12187 2003-07-21 Geoffrey Keating <geoffk@apple.com>
12188
12189 * c-common.h (num_in_fnames): Declare.
12190 (c_static_assembler_name): Move from here...
12191 * c-tree.h (c_static_assembler_name): ... to here.
12192 * c-opts.c: Don't include langhooks-def.h.
12193 (c_static_assembler_name): Move to c-decl.c.
12194 (num_in_fnames): Make externally visible.
12195 * c-decl.c: Include langhooks-def.h.
12196 (c_static_assembler_name): Move from c-opts.c.
12197 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
12198 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
12199
12200 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
12201 when it's not needed.
12202
12203 2003-07-21 Jakub Jelinek <jakub@redhat.com>
12204
12205 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
12206 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
12207 (rs6000_emit_prologue): Save FPRs inline if set.
12208
12209 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
12210
12211 * config/ia64/ia64.md (prefetch): Support predicate.
12212
12213 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
12214
12215 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
12216 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
12217 table.
12218
12219 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
12220
12221 PR optimization/11536
12222 * unroll.c (loop_iterations): Do not replace a register holding
12223 the final value by its equivalent before the loop if it is not
12224 invariant.
12225
12226 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
12227
12228 * doc/extend.texi: Fixes to spelling, grammar, and diction.
12229
12230 2003-07-21 Ben Elliston <bje@wasabisystems.com>
12231
12232 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
12233 (V850 Options): Spelling fixes.
12234
12235 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
12236
12237 * doc/invoke.texi: Fixes to style, grammar and diction.
12238
12239 2003-07-20 Roger Sayle <roger@eyesopen.com>
12240
12241 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
12242 * system.h (SMALL_STACK): Poison obsolete target macro.
12243 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
12244
12245 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
12246
12247 * configure.in: Cache the results of testing for cmp's capabilities.
12248 * configure: Regenerate.
12249
12250 2003-07-20 Mark Mitchell <mark@codesourcery.com>
12251
12252 PR debug/11279
12253 * dwarf2out.c (gen_enumeration_type_die): Remember that
12254 enumerators can be unsigned.
12255
12256 2003-07-19 Zack Weinberg <zack@codesourcery.com>
12257
12258 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
12259 (push_label_level, pop_label_level): Kill.
12260 (struct binding_level): Rename level_chain to outer.
12261 Add outer_function field. Change parm_flag, function_body,
12262 keep, keep_if_subblocks to 1-bit bitfields of type bool.
12263 (current_function_level): New variable.
12264 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
12265 (keep_next_level, declare_parm_level, warn_if_shadowing):
12266 Update to match.
12267 (struct language_function): Kill named_labels, shadowed_labels fields.
12268 (c_init_decl_processing, start_function, c_push__function_context)
12269 (c_pop_function_context): No need to muck with named_labels nor
12270 shadowed_labels.
12271
12272 (make_binding_level): No need to clear the structure here.
12273 (pop_binding_level): Always operate on current_binding_level.
12274 Update current_function_level if necessary.
12275 (pushlevel): Don't clear named_labels. Update current_function_level
12276 if necessary. Use "true" and "false" where appropriate.
12277 (poplevel): Diagnose labels defined but not used, or vice
12278 versa, and clear out label-meanings leaving scope, while
12279 walking down the decls list, for all binding levels.
12280 Handle LABEL_DECLs appearing in the shadowed list.
12281 pop_binding_level takes no arguments.
12282 (pushdecl_function_level): Use current_function_level.
12283
12284 (make_label, bind_label): New static functions.
12285 (declare_label): New exported function.
12286 (lookup_label, define_label): Rewritten for new data structure.
12287 (shadow_label): Kill.
12288
12289 * c-tree.h: Prototype declare_label; don't prototype
12290 push_label_level, pop_label_level, nor shadow_label.
12291 * c-parse.in: Remove all calls to push_label_level and
12292 pop_label_level. Use declare_label for __label__ decls.
12293
12294 * doc/extend.texi: Clarify that __label__ can be used to
12295 declare labels with local scope in any nested block, not
12296 just statement expressions. Cross-reference nested functions
12297 section from local labels section.
12298
12299 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12300
12301 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
12302
12303 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
12304
12305 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
12306
12307 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12308
12309 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
12310 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
12311
12312 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
12313
12314 * config/s390/s390.c (legitimize_pic_address): Access local symbols
12315 relative to the GOT instead of relative to the literal pool base.
12316 (s390_output_symbolic_const): Handle new GOT-relative accesses.
12317 * config/s390/s390.md ("call"): Access local functions and PLT stubs
12318 relative to the GOT instead of relative to the literal pool base.
12319 ("call_value"): Likewise.
12320 ("call_value_tls"): Likewise.
12321
12322 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
12323 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
12324 (s390_chunkify_finish): Likewise.
12325 (s390_chunkify_cancel): Likewise.
12326 (s390_reorg): Adapt caller.
12327 (find_base_register_in_addr,
12328 find_base_register_ref, replace_base_register_ref): Delete.
12329 (find_ltrel_base, replace_ltrel_base): New functions.
12330 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
12331 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
12332 base vs. index register usage.
12333 (struct constant_pool): Remove 'anchor'.
12334 (s390_add_anchor): Delete.
12335 (s390_dump_pool): Remove anchor handling.
12336 * config/s390/s390.md ("reload_anchor"): Remove.
12337
12338 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
12339 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
12340 (s390_emit_prologue): Use it.
12341 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
12342 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
12343 hard-code register 14.
12344 * config/s390/s390-protos.h (s390_load_got): Declare.
12345
12346 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
12347 Support TImode constants.
12348 * config/s390/s390.md ("consttable_ti"): New.
12349 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
12350
12351 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
12352 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
12353 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
12354 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
12355 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
12356 New symbolic constants.
12357 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
12358 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
12359 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
12360 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
12361 symbolic UNSPEC values.
12362 * config/s390/s390.c (larl_operand, s390_short_displacement,
12363 bras_sym_operand, s390_cannot_force_const_mem,
12364 s390_delegitimize_address, s390_decompose_address,
12365 legitimize_pic_address, s390_output_symbolic_const,
12366 s390_function_profiler): Use symbolic UNSPEC values.
12367
12368 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12369
12370 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
12371 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
12372 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
12373 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
12374 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
12375 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
12376 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
12377 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
12378 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
12379 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
12380 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
12381 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
12382 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
12383 postreload.c prefix.c print-tree.c protoize.c ra-build.c
12384 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
12385 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
12386 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
12387 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
12388 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
12389 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
12390 casts.
12391
12392 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
12393
12394 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
12395 * toplev.h (warning): Remove attribute.
12396
12397 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
12398
12399 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
12400 (pop_label_level): Likewise.
12401 (duplicate_decls): Likewise.
12402 (implicitly_declare): Likewise.
12403 (shadow_label): Likewise.
12404 (start_decl): Likewise.
12405 (finish_decl): Likewise.
12406 (grokdeclarator): Likewise.
12407 (get_parm_info): Likewise.
12408 (detect_field_duplicates): Likewise.
12409 (finish_struct): Likewise.
12410 (start_function): Likewise.
12411 (store_parm_decls): Likewise.
12412 (finish_function): Likewise.
12413 (c_expand_body_1): Likewise.
12414 (check_for_loop_decls): Likewise.
12415 (merge_translation_unit_decls): Likewise.
12416
12417 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
12418
12419 * common.opt: Document --param.
12420 * opts.c (columns, undocumented_msg): New.
12421 (print_help): Get number of columns from environment. Print
12422 --param help. Tweak newline handling.
12423 (print_param_help): New.
12424 (print_filtered_help): Better handling of duplicates. Complain
12425 about undocumented switches.
12426 (print_switch): New.
12427 (wrap_help): Improve wrapping, use COLUMNS.
12428 * opts.sh: Ignore comments in records.
12429 * params.def: Fix typos and remove trailing periods.
12430 * toplev.c (display_help): Don't dump --param help.
12431 * doc/sourcebuild.texi: Update.
12432
12433 2003-07-18 Richard Henderson <rth@redhat.com>
12434
12435 PR target/11556
12436 * optabs.c (prepare_operand): Fail gracefully instead of abort
12437 if the predicate doesn't satisfy.
12438 (gen_cond_trap): Allow prepare_operand to fail.
12439
12440 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
12441
12442 * c-common.c: Don't undefine GCC_DIAG_STYLE.
12443 (fname_decl): Don't use xxx_with_decl.
12444 (c_add_case_label): Likewise.
12445 (handle_section_attribute): Likewise.
12446 (handle_alias_attribute): Likewise.
12447 (handle_no_instrument_function_attribute): Likewise.
12448 (handle_no_limit_stack_attribute): Likewise.
12449 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
12450 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
12451
12452 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12453
12454 * Makefile.in (ifcvt.o): Add cfgloop.h.
12455 * basic-block.h (EDGE_LOOP_EXIT): New flag.
12456 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
12457 * ifcvt.c: Include cfgloop.h.
12458 (mark_loop_exit_edges): New static function.
12459 (if_convert): Call it.
12460 (find_if_header): Ignore branches out of loops.
12461
12462 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
12463
12464 * combine.c (simplify_comparison): Don't share rtx when converting
12465 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
12466
12467 2003-07-18 David Edelsohn <edelsohn@gnu.org>
12468
12469 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
12470 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
12471 (MUST_PASS_IN_STACK): Define.
12472 (BLOCK_REG_PADDING): Define.
12473
12474 2003-07-18 Richard Henderson <rth@redhat.com>
12475
12476 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
12477 to skip the addr_vec.
12478
12479 2003-07-18 Alexandre Oliva <aoliva@redhat.com>
12480
12481 * combine.c (combinable_i3pat): Don't forbid occurrences of
12482 i2dest or i1dest in inner_dest if inner_dest is a mem.
12483
12484 2003-07-18 Jan Hubicka <jh@suse.cz>
12485
12486 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
12487
12488 2003-07-17 Jakub Jelinek <jakub@redhat.com>
12489
12490 PR target/11087
12491 * loop.c (basic_induction_var): Check if convert_modes emitted any
12492 instructions. Remove them and return 0 if so.
12493
12494 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
12495
12496 PR optimization/11083
12497 * toplev.c (rest_of_handle_addresof): Rename into
12498 rest_of_handle_addressof. Delete unreachable blocks
12499 if dead edges were purged after the addressof pass.
12500
12501 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
12502
12503 * Makefile.in, configure, configure.in: Remove handling of
12504 lang-options.h and options_.h.
12505 * toplev.c (struct lang_opt, documented_lang_options): Remove.
12506 (display_help): Don't use documented_lang_options.
12507
12508 2003-07-17 Zack Weinberg <zack@codesourcery.com>
12509
12510 * c-decl.c (pushdecl_function_level): Make static, return nothing.
12511 (kept_level_p): Fold into poplevel.
12512 (undeclared_variable): Moved here from c-typeck.c. Export.
12513 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
12514 (undeclared_variable): Prototype here. Don't prototype
12515 kept_level_p nor pushdecl_function_level.
12516 * c-parse.in: Change first argument to poplevel from
12517 "kept_level_p()" to "KEEP_MAYBE".
12518 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
12519
12520 2003-07-17 Roger Sayle <roger@eyesopen.com>
12521
12522 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
12523 commutative operands instead of modifying the RTL in-place.
12524
12525 2003-07-17 Mark Mitchell <mark@codesourcery.com>
12526
12527 PR optimization/11557
12528 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
12529 unless we know which function is being called.
12530
12531 2003-07-17 Roger Sayle <roger@eyesopen.com>
12532
12533 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
12534 whether to reorder the operands of a commutative binary operator.
12535
12536 2003-07-17 Roger Sayle <roger@eyesopen.com>
12537
12538 * fold-const.c (const_binop): Avoid performing the FP operation at
12539 compile-time, if either operand is NaN and we honor signaling NaNs,
12540 or if we're dividing by zero and either flag_trapping_math is set
12541 or the desired mode doesn't support infinities.
12542 (fold_initializer): New function to fold an expression ignoring any
12543 potential run-time exceptions or traps.
12544 * tree.h (fold_initializer): Prototype here.
12545 * c-typeck.c (build_binary_op): Move to the end of the file so
12546 that intializer_stack is in scope. If constructing an initializer,
12547 i.e. when initializer_stack is not NULL, use fold_initializer to
12548 fold expressions.
12549 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
12550 performing FP operations at compile-time, if they would raise an
12551 exception at run-time.
12552
12553 2003-07-17 Geoffrey Keating <geoffk@apple.com>
12554
12555 PR 11498
12556 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
12557 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
12558 (GTFILES): Add langhooks.c.
12559 (gt-langhooks.h): New.
12560 * c-common.h (c_static_assembler_name): Prototype.
12561 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
12562 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
12563 * c-opts.c: Include langhooks-def.h.
12564 (c_static_assembler_name): New.
12565 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
12566 (var_labelno): New.
12567 (lhd_set_decl_assembler_name): Give static objects with context
12568 unique names.
12569 * varasm.c (var_labelno): Delete.
12570 (make_decl_rtl): Don't change the assembler name once it's set.
12571
12572 * c-opts.c (this_input_filename): New.
12573 (finish_options): Take new parameter, name of file being compiled.
12574 Update callers. Set this_input_filename.
12575 (push_command_line_include): Use this_input_filename not
12576 main_input_filename.
12577
12578 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
12579
12580 * Makefile.in: Depend .pot generation on options.c.
12581 * po/exgettext: Add an extra_files variable containing additional
12582 files to scan.
12583
12584 2003-07-17 Zack Weinberg <zack@codesourcery.com>
12585
12586 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
12587 c_write_global_declarations.
12588
12589 * c-decl.c: Fix typos in several comments. Remove all
12590 #if 0 blocks; reindent as needed. Remove unused argument
12591 to declare_parm_level; all callers changed.
12592 * c-parse.in: Update calls to declare_parm_level. Avoid
12593 issuing a double warning in some circumstances.
12594 * c-typeck.c: Update calls to declare_parm_level.
12595 * c-tree.h: Update prototype of declare_parm_level.
12596
12597 * c-pragma.c (apply_pragma_weak): Don't complain about a
12598 redundant #pragma weak.
12599
12600 * objc/objc-act.c (forward_declare_categories,
12601 build_selector_reference_decl, build_class_reference_decl,
12602 build_objc_string_decl, synth_forward_declarations,
12603 build_protocol_reference): Set TREE_PUBLIC on synthetic
12604 forward decl to 0, consistent with eventual definition.
12605 Correct comments to match.
12606
12607 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
12608 in regexp that don't form a range expression.
12609 * fixinc/fixincl.def: Regenerate.
12610
12611 2003-07-17 Richard Henderson <rth@redhat.com>
12612
12613 PR target/10907
12614 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
12615 even with !TARGET_CONST_GP.
12616 (ia64_function_ok_for_sibcall): Reject non-local functions.
12617
12618 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
12619
12620 * c-common.c (c_estimate_num_insns_1): Don't handle
12621 METHOD_CALL_EXPR.
12622 * expr.c (safe_from_p): Likewise.
12623 * gengtype.c (adjust_field_tree_exp): Likewise.
12624 * stmt.c (warn_if_unused_value): Likewise
12625 * tree.c (first_rtl_op): Likewise.
12626 * tree.def: Don't define METHOD_CALL_EXPR.
12627 * java/lang.c (java_estimate_num_insns_1): Don't handle
12628 METHOD_CALL_EXPR.
12629
12630 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
12631
12632 PR other/11466
12633 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
12634 and its restrictions for the SPARC64 port.
12635 Move the entry of "-mimpure-text" before that of "-mv8".
12636
12637 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
12638 Phil Edwards <phil@jaj.com>
12639
12640 * doc/install.texi (*-*-solaris2*): Document the step-by-step
12641 procedure to bootstrap and install.
12642 Document the preference for the legacy Sun tools in /usr/bin
12643 over the POSIX tools in /usr/xpg4/bin for the build process.
12644
12645 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
12646
12647 * c.opt: Document Uncodumented; use it. Document ObjC options.
12648 * opts.c (print_filtered_help): Skip undocumented switches.
12649 * opts.h (CL_UNDOCUMENTED): New.
12650 * opts.sh: Handle Undocumented.
12651 * toplev.c (documented_lang_options): Prevent its becoming empty.
12652 objc:
12653 * lang-options.h: Remove.
12654
12655 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
12656
12657 * loop.c (check_ext_dependent_givs): Pass const struct loop *
12658 instead of struct loop_info * as argument. Accept BIVs with
12659 increment +/- 1 provided there is a friendly exit test against
12660 a loop-invariant value.
12661 (strength_reduce): Adapt call to check_ext_dependent_givs.
12662
12663 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
12664 Con Bradley <con.bradley@superh.com>
12665
12666 * sh-protos.h (sh_get_pr_initial_val): Declare.
12667 * sh.c (regno_reg_class): Make its elements type enum reg_class.
12668 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
12669 and live_regs_mask arguments. Changed all callers.
12670 (save_schedule_s): New structure.
12671 (save_schedule): New typedef.
12672 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
12673 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
12674 In interrupts handlers, also save registers that are usually
12675 partially saved, and make sure there is at least one general purpose
12676 register saved if a target register needs saving.
12677 Add casts in comparisons to avoid warnings.
12678 (sh_media_register_for_return): return -1 for interrupt handlers.
12679 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
12680 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
12681 registers used are available.
12682 Set RTX_FRAME_RELATED_P where appropriate.
12683 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
12684 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
12685 (initial_elimination_offset): Likewise.
12686 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
12687 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
12688 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
12689 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
12690 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
12691 and for target registers.
12692 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
12693 (regno_reg_class): Make its elements type enum reg_class.
12694 (CONSTRAINT_LEN): Don't use isdigit.
12695 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
12696 (FUNCTION_ARG): Add parentheses to avoid warnings.
12697 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
12698 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
12699 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
12700 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
12701 * sh.md (xordi3+1): Remove unused variable regno.
12702 (return_media): Check that tr0 is available before using it.
12703
12704 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
12705
12706 * c.opt: Document more options.
12707
12708 2003-07-16 Roger Sayle <roger@eyesopen.com>
12709
12710 * combine.c (subst): Also handle (subreg (const_double ...)) case
12711 if created by a substitution, by using the original inner mode.
12712
12713 2003-07-16 Roger Sayle <roger@eyesopen.com>
12714
12715 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
12716 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
12717 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
12718
12719 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
12720
12721 * doc/install.texi (--without-headers): New.
12722
12723 Partial Fix PR/10129
12724 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
12725 (machopic_output_function_base_name): New; print the true pic label.
12726 (machopic_classify_ident): Pic Base is always a defined data.
12727 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
12728 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
12729
12730 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
12731 if they are not floating point registers.
12732
12733 PR c/10962
12734 * ggc.h: Add header guards.
12735 * c-decl.c (finish_struct): Sort fields if
12736 number greater than 15 and there are no
12737 anonymous structs/unions.
12738 * c-common.h: Include ggc.h.
12739 (sorted_fields_type): New struct.
12740 (field_decl_cmp): New prototype.
12741 (resort_sorted_fields): New prototype.
12742 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
12743 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
12744 as s, removing other fields.
12745 * c-typeck.c (lookup_field): Use s in lang_type.
12746 These were mostly moved from cp/class.c:
12747 * c-common.c (field_decl_cmp): New static function.
12748 (field_decl_cmp): New function.
12749 (resort_sorted_fields): New function.
12750
12751 2003-07-16 Geoffrey Keating <geoffk@apple.com>
12752
12753 * config/darwin.c (machopic_select_section): Use decl_readonly_section
12754 to do most of the work.
12755
12756 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
12757
12758 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
12759 * config/mmix/mmix.c: Convert functions to ISO C90.
12760 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
12761 formatting.
12762 (mmix_get_hard_reg_initial_val): Tweak section head comment.
12763
12764 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
12765
12766 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
12767
12768 2003-07-16 Jakub Jelinek <jakub@redhat.com>
12769
12770 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
12771 (uw_update_context_1): Use it.
12772 * config/rs6000/rs6000.c (insn_after_throw): Remove.
12773 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
12774 in parent frame if _Unwind_* called directly instead of through
12775 .plt.
12776 (rs6000_emit_eh_toc_restore): Remove.
12777 (rs6000_emit_prologue): Update stack pointer before doing any saving
12778 if current_function_calls_eh_return. Generate unwind info for $r2.
12779 (rs6000_emit_epilogue): Restore stack pointer after doing all
12780 restoring if current_function_calls_eh_return. Restore $r2.
12781 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
12782 * config/rs6000/rs6000.md (eh_return): Remove call to
12783 rs6000_emit_eh_toc_restore.
12784 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
12785 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
12786
12787 2003-07-15 Jakub Jelinek <jakub@redhat.com>
12788
12789 * expr.c (emit_block_move): Don't move anything if size is const 0.
12790 (clear_storage): Test against const0_rtx instead of comparing INTVAL
12791 against 0.
12792
12793 2003-07-15 David S. Miller <davem@redhat.com>
12794
12795 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
12796 emit nop if the last real insn is CALL_INSN.
12797
12798 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
12799
12800 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
12801 as "nul".
12802 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
12803
12804 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
12805
12806 * config/i386/winnt.c (associated_type): Artificial methods are not
12807 affected by the import/export status of their class unless they are
12808 COMDAT.
12809 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
12810
12811 * config/i386/winnt.c: Fix GCC copyright comment.
12812
12813 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
12814
12815 PR c++/11531
12816 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
12817 not recursing on hard error.
12818 (diagnostic_for_decl): Likewise.
12819 * diagnostic.def: Rearrange.
12820
12821 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
12822
12823 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
12824 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
12825
12826 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
12827 Richard Henderson <rth@redhat.com>
12828
12829 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
12830 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
12831 (_Unwind_SetGR): Likewise.
12832 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
12833 (Unwind_SpTmp): New typedef.
12834 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
12835 (uw_update_context): Use _Unwind_GetPtr.
12836 (init_dwarf_reg_size_table): Move above uw_init_context_1.
12837 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
12838 Use _Unwind_SetSpColumn.
12839 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
12840 Use _Unwind_GetPtr.
12841
12842 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
12843
12844 * c.opt: Document more options.
12845 * toplev.c (documented_lang_options): Remove all local help strings.
12846
12847 2003-07-15 Mark Mitchell <mark@codesourcery.com>
12848
12849 PR debug/11473
12850 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
12851 base classes.
12852
12853 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
12854
12855 PR target/10795
12856 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
12857 swap comparison operands if doing so would generate an
12858 unrecognizable insn.
12859
12860 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
12861
12862 PR optimization/11320
12863 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
12864 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
12865 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
12866 current_sched_info->compute_jump_reg_dependencies. Record which
12867 registers are used and which registers are set by the jump.
12868 Clear deps->reg_conditional_sets after a barrier.
12869 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
12870 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
12871 (init_deps): Initialize reg_conditional_sets.
12872 (free_deps): Clear reg_conditional_sets.
12873 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
12874 Mark registers live on entry of the fallthrough block and conditionally
12875 set as set by the jump. Mark registers live on entry of non-fallthrough
12876 blocks as used by the jump.
12877 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
12878 Mark new parameters as unused.
12879
12880 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
12881
12882 * doc/invoke.texi: Resync MIPS -march documentation.
12883
12884 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
12885
12886 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
12887 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
12888 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
12889 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
12890 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
12891 (mips_issue_rate): Handle PROCESSOR_R9000.
12892 (mips_use_dfa_pipeline_interface): Likewise.
12893 * config/mips/9000.md: New file.
12894 * config/mips/mips.md: Include it.
12895 (define_attr cpu): Add r9000.
12896 (mulsi3_mult3): Use "mul" for rm9000 code.
12897
12898 2003-07-15 Stan Cox <scox@redhat.com>
12899
12900 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
12901 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
12902 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
12903 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
12904 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
12905 (mips_issue_rate): Handle PROCESSOR_R7000.
12906 (mips_use_dfa_pipeline_interface): Likewise.
12907 * config/mips/7000.md: New file.
12908 * config/mips/mips.md: Include it.
12909 (define_attr cpu): Add r7000.
12910 (mulsi3_mult3): Use "mul" for rm7000 code.
12911
12912 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
12913
12914 * config/mips/mips.md (define_attr type): Add condmove. Use it for
12915 the conditional move patterns.
12916 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
12917 Check for condmove type.
12918 (ir_vr54_arith): Add move type.
12919 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
12920 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
12921
12922 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
12923
12924 * c-opts.c (print_help): Remove.
12925 (c_common_handle_option): Don't handle --help.
12926 * c.opt: Document some options.
12927 (--help): Remove.
12928 * opts.c (print_filtered_help): New.
12929 (print_help): Use it.
12930
12931 2003-07-14 Geoffrey Keating <geoffk@apple.com>
12932
12933 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
12934 * tree.c: (build_common_tree_nodes_2): Likewise.
12935 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
12936 (V4DF_type_node): New.
12937
12938 * c-opts.c (push_command_line_include): Don't free deferred_opts,
12939 we'll need it.
12940 (finish_options): Reset init_cursor.
12941
12942 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
12943
12944 * expr.c (expand_assignment): Remove an unused argument
12945 SUGGEST_REG.
12946 * expr.h: Update the prototype.
12947 * function.c: Update the callers.
12948 * stmt.c: Likewise.
12949
12950 2003-07-14 Mark Mitchell <mark@codesourcery.com>
12951
12952 PR debug/11098
12953 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
12954 as DECL_ABSTRACT.
12955
12956 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
12957
12958 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
12959 with __cplusplus, not "we must use the C++ compiler's type"
12960 * fixinc/inclhack.def (void_null): Note that Interix needs this.
12961 * fixinc/fixincl.x: Regenerate.
12962
12963 2003-07-14 Geoffrey Keating <geoffk@apple.com>
12964
12965 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
12966 and unseen_objects from the global data before calling
12967 __deregister_frame_info_bases.
12968 (examine_objects): Insert objects into the seen_objects list,
12969 not unseen_objects.
12970 (_Unwind_Find_FDE): Always unlock the global object lists, even if
12971 we couldn't allocate a data structure to put in it.
12972
12973 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
12974 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
12975 (SET_TYPE_PROTOCOL_LIST): New.
12976 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
12977 (get_object_reference): Likewise.
12978
12979 2003-07-14 Jan Hubicka <jh@suse.cz>
12980
12981 * cfglayout.c (locator_file): Break out from ....
12982 (insn_file): ... here.
12983 (locator_line): Break out from ....
12984 (insn_line): ... here.
12985 * rtl.h (locator_file, locator_line): Declare.
12986 (final_start_function): Set proper line/file info.
12987
12988 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
12989
12990 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
12991 handled by pp_c_cast_expression.
12992
12993 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
12994
12995 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
12996 allocate 32768 bytes of stack. Use addition rather than subtraction
12997 when a single insn is enough.
12998 * config/mips/mips.md: Remove insns and splitters for subtracting
12999 constants.
13000 (subsi3): Only accept register operands.
13001 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
13002 (subdi3_internal_3, subsi3_internal_2): Likewise.
13003 (casesi): Use expand_binop to subtract the lower bound.
13004
13005 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
13006
13007 * config/mips/mips.c (mips_in_small_data_p): Don't handle
13008 TARGET_MIPS16 specially.
13009
13010 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
13011
13012 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
13013 mips_output_aligned_bss.
13014 * config/mips/linux.h: Likewise.
13015 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
13016 * config/mips/mips.c (mips_output_aligned_bss): New function.
13017
13018 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
13019 * config/mips/elf64.h: Likewise.
13020
13021 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
13022 mips_declare_object_name.
13023 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
13024 * config/mips/elf64.h: As for elf.h.
13025 * config/mips/iris6.h: Likewise.
13026 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
13027 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
13028 do...while (0) block.
13029 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
13030 (mips_finish_declare_object): Declare.
13031 * config/mips/mips.c (mips_declare_object_name): New function.
13032 (mips_finish_declare_object): New function.
13033
13034 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
13035 * config/mips/linux.h: Likewise.
13036
13037 * config/mips/mips.c (inside_function): Delete.
13038 (file_in_function_warning, ignore_line_number): Delete.
13039 (mips_output_filename): Don't warn about changing filenames within
13040 a function.
13041 (mips_output_lineno): Update accordingly.
13042 (mips_output_function_prologue): Don't reset the deleted variables.
13043 * config/mips/mips.h (inside_function): Delete.
13044 (file_in_function_warning, ignore_line_number): Delete.
13045
13046 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
13047 * config/mips/elf64.h: Likewise.
13048 * config/mips/openbsd.h: Likewise.
13049 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
13050 * config/mips/linux.h: Likewise.
13051 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
13052 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
13053
13054 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
13055 to the list of include files when using gas.
13056 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
13057 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
13058 * config/mips/elf64.h: Likewise.
13059 * config/mips/iris5.h: Likewise.
13060 * config/mips/linux.h: Likewise.
13061 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
13062 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
13063 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
13064 * config/mips/sdb.h: ...this new file.
13065
13066 2003-07-14 Douglas Rupp <rupp@gnat.com>
13067
13068 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
13069 argument to getcwd; use fixed buffer instead.
13070
13071 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
13072
13073 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
13074 * fixinc/fixinc.wrap: Delete.
13075
13076 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
13077
13078 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
13079 don't have 2.
13080
13081 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
13082
13083 * ggc-page.c (struct globals): Add new fields to keep track of the
13084 total allocated memory and overhead.
13085 (ggc_print_statistics): Print them.
13086 (ggc_alloc): Keep track of the total allocated memory and the
13087 overhead.
13088
13089 * tree.c (dump_tree_statistics): Increase spacing.
13090 (enum tree_node_kind): Move to ...
13091 * tree.h (enum tree_node_kind): ... here.
13092 (tree_node_counts, tree_node_sizes): Declare.
13093
13094 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
13095
13096 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
13097
13098 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
13099
13100 PR optimization/11440
13101 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
13102 SIGN_EXTRACT SETs.
13103
13104 2003-07-14 Alan Modra <amodra@bigpond.net.au>
13105
13106 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
13107 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
13108 (emit_group_load, emit_group_store): Adjust declarations.
13109 Remove most occurrences of #ifdef TREE_CODE.
13110 * expr.c (emit_group_load): Add "type" param, and use
13111 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
13112 aligned accesses if !SLOW_UNALIGNED_ACCESS.
13113 (emit_group_store): Likewise.
13114 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
13115 emit_group_load and emit_group_store calls.
13116 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
13117 BLOCK_REG_PADDING to determine whether we need endian_correction.
13118 (load_register_parameters): Localize vars. Handle shifting of
13119 small values to the correct end of regs. Adjust emit_group_load
13120 call.
13121 (expand_call, emit_library_call_value_1): Adjust emit_group_load
13122 and emit_group_store calls.
13123 * function.c (assign_parms): Set mem alignment for stack slots.
13124 Adjust emit_group_store call. Store values at the "wrong" end
13125 of regs to the stack. Use BLOCK_REG_PADDING.
13126 (locate_and_pad_parm): Save where_pad.
13127 (expand_function_end): Adjust emit_group_load call.
13128 * stmt.c (expand_value_return): Adjust emit_group_load call.
13129 * Makefile.in (calls.o): Depend on $(OPTABS_H).
13130 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
13131 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
13132 (MUST_PASS_IN_STACK): Define.
13133 (BLOCK_REG_PADDING): Define.
13134 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
13135 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
13136 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
13137 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
13138 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
13139
13140 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
13141
13142 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
13143
13144 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13145
13146 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
13147 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
13148
13149 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
13150
13151 PR other/11123
13152 * toplev.c: Don't cut off option names.
13153
13154 2003-07-13 Andreas Jaeger <aj@suse.de>
13155
13156 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
13157 to integer of different size.
13158
13159 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
13160
13161 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
13162 to (eq (and X 1) 0).
13163
13164 2003-07-13 Andreas Jaeger <aj@suse.de>
13165
13166 * config.gcc: Add pmmintrin.h for x86_64-*-*.
13167
13168 2003-07-13 Zack Weinberg <zack@codesourcery.com>
13169
13170 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
13171 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
13172 list. Move these all together down by cpplib.
13173
13174 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
13175 definition of CPPCHAR_SIGNED_T.
13176
13177 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
13178 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
13179 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
13180
13181 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
13182 * cppinit.c (cpp_create_reader): Likewise.
13183
13184 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
13185 * cpptrad.c: Likewise. All callers changed.
13186 * cpplib.c: All callers changed.
13187 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
13188 * hashtable.h: Define GTY(x) to nothing here too.
13189
13190 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13191
13192 * stor-layout.c (compute_record_mode): Remove very obsolete test
13193 that forces BLKmode for records with fields crossing word boundary.
13194
13195 2003-07-13 Zack Weinberg <zack@codesourcery.com>
13196
13197 * Makefile.in: Remove orphan reference to acconfig.h.
13198
13199 2003-07-13 Andreas Jaeger <aj@suse.de>
13200
13201 * cgraphunit.c: Convert prototypes to ISO C90.
13202
13203 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
13204
13205 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
13206 (for OpenBSD).
13207 * fixinc/fixincl.x: Rebuild.
13208
13209 2003-07-12 Zack Weinberg <zack@codesourcery.com>
13210
13211 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
13212 i?86-*-*. Use correct name of cache variable.
13213 * configure: Regenerate.
13214
13215 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
13216
13217 * config/alpha/alpha.c: Fix comment typos.
13218 * config/alpha/alpha.md: Likewise.
13219 * config/arm/arm.c: Likewise.
13220 * config/arm/arm.md: Likewise.
13221 * config/arm/lib1funcs.asm: Likewise.
13222 * config/avr/avr.md: Likewise.
13223 * config/arm/README-interworking: Fix typos.
13224
13225 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
13226
13227 * c-format.c: Fix comment formatting.
13228 * c-typeck.c: Likewise.
13229 * coverage.c: Likewise.
13230 * cppcharset.c: Likewise.
13231 * cpplib.c: Likewise.
13232 * dbxout.c: Likewise.
13233 * gcov-io.h: Likewise.
13234 * toplev.c: Likewise.
13235
13236 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
13237
13238 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
13239 fix.
13240
13241 2003-07-12 Zack Weinberg <zack@codesourcery.com>
13242
13243 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
13244 uses three-argument AC_DEFINE so no acconfig.h entries are
13245 needed.
13246 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
13247 which contains the GAS version number as a scaled integer.
13248 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
13249 ability to check for ELF assembler.
13250 (gcc_GAS_CHECK_FEATURE): New macro.
13251 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
13252 assembler feature checks using gcc_GAS_CHECK_FEATURE.
13253 Use three-argument AC_DEFINE everywhere.
13254 * acconfig.h: Deleted.
13255 * config.in, configure: Regenerate.
13256
13257 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
13258
13259 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
13260 (on OpenBSD).
13261 * fixinc/fixincl.x: Regenerate.
13262
13263 * fixinc/inclhack.def (gnu_types): Improve comment.
13264
13265 2003-07-12 Andreas Jaeger <aj@suse.de>
13266
13267 * fp-test.c (main): Use ISO C90 prototype.
13268
13269 * version.c: Remove unneded include of ansidecl.h.
13270
13271 * cgraph.h: Convert prototypes to ISO C90.
13272 * cgraph.c: Likewise.
13273 * fix-header.c: Likewise.
13274 * ra.h: Likewise.
13275 * protoize.c: Likewise.
13276
13277 2003-07-12 Jan Hubicka <jh@suse.cz>
13278
13279 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
13280 warning.
13281
13282 2003-07-12 Jan Hubicka <jh@suse.cz>
13283 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13284
13285 * cgraph.c (cgraph_max_uid): New global variable.
13286 (cgraph_node): Set uid field.
13287 (create_edge): Keep inline flags consistent.
13288 (dump_cgraph): Dump more info.
13289 * cgraph.h (struct cgraph_local_info): Remove inline_many and
13290 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
13291 (struct cgraph_global_info): Add insns, calls, cloned_times,
13292 will_be_output.
13293 (struct cgraph_node): Add uid.
13294 (struct cgraph_edge): Add inline_call.
13295 (cgraph_max_uid, cgraph_inline_p): Declare.
13296 * cgraph.c: Include params.h and fibheap.h
13297 (cgraph_mark_functions_to_inline_once): Kill.
13298 (INSNS_PER_CALL): New constant.
13299 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
13300 static variables.
13301 (cgraph_finalize_function): Do not analyze inlining.
13302 (cgraph_finalize_compilation_unit): Set inlining attributes.
13303 (cgraph_mark_functions_to_output): More consistency checks.
13304 (cgraph_optimize_function): Set current_function_decl to NULL.
13305 (cgraph_expand_function): Use new inline flags.
13306 (cgraph_postorder): Expand from cgraph_expand_functions.
13307 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
13308 (cgraph_inlined_into, cgraph_inlined_callees,
13309 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
13310 cgraph_mark_inline, cgraph_check_inline_limits,
13311 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
13312 cgraph_decide_inlining, cgraph_inline_p): New functions.
13313 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
13314 PARAM_INLINE_UNIT_GROWTH): New parameters.
13315 * tree-inline.c (struct inline_data): New field current_decl.
13316 (expand_call_inline): Avoid forward declarations; use
13317 inlinable_function_p.
13318 (optimize_inline_calls): Set id.current_decl.
13319
13320 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
13321
13322 * configure.in: Remove wrongly added definition of
13323 local_prefix.
13324 * configure: Regenerate.
13325
13326 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13327
13328 * rtl.def (NOTE): Do not use padding.
13329
13330 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
13331
13332 * doc/install.tex: Update required binutils for i?86-*-linux*
13333
13334 2003-07-11 Richard Henderson <rth@redhat.com>
13335
13336 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
13337
13338 2003-07-11 Mark Mitchell <mark@codesourcery.com>
13339
13340 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
13341 TRANSLATION_UNIT_DECL as top_level.
13342
13343 2003-07-11 Jakub Jelinek <jakub@redhat.com>
13344
13345 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
13346 then fall back to cmpstrM.
13347 * builtins.c (expand_builtin_memcmp): Likewise.
13348 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
13349 (s390_expand_cmpmem): ... this.
13350 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
13351 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
13352 from cmpstr* patterns. Rename call to s390_expand_cmpstr
13353 to s390_expand_cmpmem.
13354 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
13355 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
13356 to cmpmem*.
13357 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
13358 cmpstr* patterns.
13359 * doc/md.texi (cmpstrM): Describe as String compare insn, not
13360 Block compare insn.
13361 (cmpmemM): Add.
13362
13363 2003-07-11 Loren James Rittle <ljrittle@acm.org>
13364
13365 * config/i386/freebsd.h (SET_ASM_OP): Remove.
13366 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
13367 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
13368 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
13369
13370 2003-07-11 Richard Henderson <rth@redhat.com>
13371
13372 * function.c (assign_parms): Don't recombine complex args if
13373 fnargs is unchanged from orig_fnargs.
13374 (split_complex_args): Return args without complex before copying.
13375 Re-layout the modified parameters.
13376
13377 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
13378
13379 * regclass.c (choose_hard_reg_mode): Add third argument.
13380 Changed all callers.
13381 * rtl.h (choose_hard_reg_mode): Update declaration.
13382 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
13383 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
13384
13385 2003-07-11 Geoffrey Keating <geoffk@apple.com>
13386
13387 * c-decl.c (finish_decl): Handle 'used' here...
13388 * cgraphunit.c (cgraph_finalize_function): ... and here ...
13389 * c-common.c: (handle_used_attribute): ... not here.
13390
13391 * configure.in (onstep): Support --enable-intermodule.
13392 * Makefile.in (OBJS-common): New.
13393 (OBJS-md): New.
13394 (OBJS-archive): New.
13395 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
13396 (OBJS-onestep): New.
13397 (libbackend.a): Support @onestep@.
13398 (libbackend.o): New.
13399 * configure: Regenerate.
13400
13401 * c-common.h (c_reset_state): New prototype.
13402 (c_parse_file): New prototype.
13403 (finish_file): Move prototype from c-tree.h.
13404 * c-decl.c: Include <hashtab.h>.
13405 (builtin_decls): New.
13406 (current_file_decl): New.
13407 (duplicate_decls): Add extra parameter. Change all callers. Don't
13408 output duplicate common symbols.
13409 (link_hash_hash): New.
13410 (link_hash_eq): New.
13411 (poplevel): Handle popping of the top level.
13412 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
13413 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
13414 (pushdecl_top_level): Likewise.
13415 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
13416 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
13417 (finish_decl): Handle TRANSLATION_UNIT_DECL.
13418 (merge_translation_unit_decls): New.
13419 (c_write_global_declarations): New.
13420 (c_reset_state): New.
13421 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
13422 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
13423 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
13424 TRANSLATION_UNIT_DECL.
13425 (c_objc_common_finish_file): Call merge_translation_unit_decls.
13426 * c-opts.c (in_fnames): Rename from in_fname.
13427 (c_common_decode_option): Handle multiple input filenames.
13428 (c_common_post_options): Likewise.
13429 (c_common_parse_file): Likewise; also, call c_parse_file rather than
13430 yyparse.
13431 * c-parse.in: Move cleanup code to c_parse_file.
13432 (free_parser_stacks): Move contents to c_parse_file.
13433 (c_parse_file): New.
13434 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
13435 for integer types.
13436 (C_DECL_FILE_SCOPE): New.
13437 (finish_file): Move prototype to c-common.h.
13438 (merge_translation_unit_decls): New prototype.
13439 (comptypes): Add extra parameter to prototype.
13440 (c_write_global_declarations): New prototype.
13441 * c-typeck.c (tagged_types_tu_compatible_p): New.
13442 (function_types_compatible_p): Add extra parameter, change all callers.
13443 (type_lists_compatible_p): Likewise.
13444 (comptypes): Likewise.
13445 (struct tagged_tu_seen): New.
13446 (tagged_tu_seen_base): New.
13447 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
13448 (c_mark_addressable): Remove #if 0 code.
13449 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
13450 comment explaining why it shouldn't have to.
13451 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
13452 options.
13453 * cppinit.c (cpp_read_next_file): New.
13454 (cpp_read_main_file): Use it.
13455 * cpplib.c (undefine_macros): New.
13456 (cpp_undef_all): New.
13457 * cpplib.h (cpp_read_next_file): Prototype.
13458 (cpp_undef_all): Prototype.
13459 * langhooks-def.h (write_global_declarations): Remove prototype.
13460 * toplev.h (write_global_declarations): Add prototype.
13461 * tree.c (decl_type_context): Use switch statement, handle
13462 TRANSLATION_UNIT_DECL.
13463 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
13464 (TRANSLATION_UNIT_DECL): New kind of tree.
13465 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
13466 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
13467 * doc/invoke.texi: Make attempt to document new functionality.
13468
13469 2003-05-19 Per Bothner <bothner@apple.com>
13470
13471 * gcc.c (combine_inputs): New.
13472 (process_command): Set combine_inputs.
13473 (do_spec_1): Handle combine_inputs.
13474 (main): Likewise.
13475
13476 2003-07-10 James E Wilson <wilson@tuliptree.org>
13477
13478 PR optimization/9745
13479 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
13480 loop_insn_emit_before.
13481 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
13482
13483 2003-07-10 Zack Weinberg <zack@codesourcery.com>
13484
13485 * cppcharset.c: Fix comment.
13486 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
13487 (EILSEQ): #define to EINVAL if not already defined.
13488 (convert_using_iconv): #if out when !HAVE_ICONV.
13489 (init_iconv_desc): Handle !HAVE_ICONV here...
13490 (cpp_init_iconv): ...not here.
13491
13492 2003-07-11 Neil Booth <neil@daikokuya.co.uk>
13493
13494 * common.opt: More --help messages.
13495 * opts.c (print_help): Use puts().
13496 * toplev.c (f_options): Remove help text.
13497 (display_help): Don't dump f_options.
13498
13499 2003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
13500
13501 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
13502 Move i?86-*-interix* to the don't-fix list.
13503 * fixinc/fixinc.interix: Delete with extreme prejudice.
13504
13505 2003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
13506
13507 PR bootstrap/10758
13508 * doc/install.texi: Document requirements for ia64-*-hpux* target.
13509
13510 2003-07-10 Roger Sayle <roger@eyesopen.com>
13511
13512 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
13513
13514 2003-07-10 Zack Weinberg <zack@codesourcery.com>
13515
13516 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
13517 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
13518 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
13519 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
13520 convert_no_conversion, convert_using_iconv): New functions.
13521 (APPLY_CONVERSION): New macro.
13522 (struct conversion, conversion_tab): New data structure.
13523 (init_iconv_desc): Check conversion_tab for a custom conversion
13524 primitive before trying to use iconv.
13525 (convert_cset): Deleted.
13526 (cpp_init_iconv): Use UTF- terminology, not UCS-.
13527 (_cpp_destroy_iconv): Update to match.
13528 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
13529 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
13530 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
13531 (_cpp_interpret_string_notranslate): New function, moved here
13532 from cpplib.c.
13533
13534 * cpphash.h (convert_f, struct cset_converter): New types.
13535 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
13536 are now struct cset_converter, not bare iconv_t.
13537 Update prototypes.
13538 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
13539 all callers changed.
13540
13541 2003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
13542
13543 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
13544 to opts.sh command line.
13545 * opts.sh: Write to temporary files with a move-if-change at the end.
13546
13547 2003-07-10 Denis Chertykov <denisc@overta.ru>
13548 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13549
13550 * combine.c (gen_binary): Handle the CLOBBER rtx and
13551 don't build a binary operation with it.
13552
13553 2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13554
13555 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
13556 store_killed_after, store_killed_before): Keep track of the correct
13557 dependency function to use.
13558
13559 2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
13560 * toplev.c (do_compile): Don't try to open dump files before
13561 lang_dependent_init initializes dump_base_name.
13562
13563 2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13564
13565 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
13566 Use ARRAY_SIZE.
13567 * config/frv/frv.c (frv_expand_builtin): Likewise.
13568 * config/sh/sh.c (sh_media_init_builtins): Likewise.
13569
13570 2003-07-09 Mark Mitchell <mark@codesourcery.com>
13571
13572 PR c++/10032
13573 * doc/invoke.texi (C++ Dialect Options): Change documentation of
13574 -fpermissive.
13575
13576 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
13577
13578 * tm.texi (RETURN_ADDR_OFFSET): Document.
13579
13580 2003-07-10 Nathan Sidwell <nathan@codesourcery.com>
13581
13582 * gcov-io.h: Update documentation.
13583 (GCOV_UNSIGNED2STRING): New.
13584 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
13585 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
13586 GCOV_TAG_SUMMARY_LENGTH): Adjust.
13587 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
13588 GCOV_TAG_COUNTER_NUM): New.
13589 (GCOV_BLOCK_SIZE): Number of words.
13590 (gcov_var): Adjust buffer type.
13591 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
13592 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
13593 count, not byte count.
13594 (gcov_open): Adjust overread init.
13595 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
13596 gcov_write_string, gcov_write_tag, gcov_write_length,
13597 gcov_write_tag_length): Adjust.
13598 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
13599 (gcov_sync, gcov_seek): Adjust.
13600 * gcov-dump.c (print_usage): Show gcc version only.
13601 (dump_file): Use GCOV_UNSIGNED2STRING.
13602 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
13603 * gcov.c (print_version): Show gcc version only.
13604 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
13605 GCOV_TAG_*_NUM macros.
13606 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
13607 GCOV_TAG_COUNTER_LENGTH.
13608 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
13609 Use GCOV_TAG_COUNTER_NUM.
13610 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
13611 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
13612
13613 2003-07-10 Andreas Schwab <schwab@suse.de>
13614
13615 * gcov-dump.c (dump_file): Fix missing address operator.
13616
13617 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
13618
13619 PR c/11449
13620 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
13621 of HOST_WIDE_INT.
13622 (fold_single_bit_test): If sign_bit_p() fails, assume that the
13623 bit being tested is not a sign bit.
13624
13625 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
13626
13627 * config/h8300/h8300.md (a peephole2): New.
13628
13629 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
13630
13631 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
13632 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
13633 from ld-linux.so.2 to ld.so.1.
13634 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
13635 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
13636 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
13637 nor -Wl,-rpath-link.
13638 (LIB_SPEC): Add -rpath-link if !static.
13639 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
13640 * config/mn10300/mn10300.c (mn10300_protect_label): New
13641 variable.
13642 * config/mn10300/linux.h (PRINT_OPERAND,
13643 PRINT_OPERAND_ADDRESS): Set it during their execution.
13644 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
13645 mn10300_protect_label is set.
13646 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
13647 -Wl,-rpath-link.
13648 (LIB_SPEC, STARTFILE_SPEC): Define.
13649 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
13650 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
13651 FLOAT_BIT_ORDER_MISMATCH.
13652 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
13653 * config.gcc (am33_2.0-*-linux*): Added.
13654 * config/mn10300/linux.h: New.
13655 * config/mn10300/t-linux: New.
13656
13657 2003-07-10 Andreas Jaeger <aj@suse.de>
13658
13659 * fold-const.c: Properly wrap prototypes.
13660
13661 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
13662
13663 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
13664 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
13665 Moved from...
13666 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
13667 * config/mn10300/mn10300.h: GTY-declare it.
13668 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
13669 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
13670 prototype. Use incoming RTL argument.
13671 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
13672 * config/mn10300/mn10300.md (int_label): Move C statements...
13673 (GOTaddr2picreg): ... here.
13674 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
13675 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
13676 * config/mn10300/mn10300.c (mn10300_encode_section_info):
13677 ... here. New function.
13678 (TARGET_ENCODE_SECTION_INFO): Define to it.
13679 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
13680 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
13681 pattern name.
13682 (mn10300_loadPC): Define as insn splittable after reload.
13683 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
13684 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
13685 be defined in .rodata even in PIC, now that the assembler
13686 supports that.
13687 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
13688 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
13689 symbol take an underscore prefix.
13690 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
13691 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
13692 legitimize_pic_address): Declare.
13693 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
13694 the PIC register as fixed.
13695 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
13696 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
13697 PIC.
13698 (LEGITIMATE_PIC_OPERAND_P): Define.
13699 (PIC_OFFSET_TABLE_REGNUM): Define.
13700 (GOT_SYMBOL_NAME): Define.
13701 (SYMBOLIC_CONST_P): Define.
13702 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
13703 symbols.
13704 (MN10300_GLOBAL_P): Test it.
13705 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
13706 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
13707 * config/mn10300/mn10300.c (print_operand): Handle unspec.
13708 (expand_prologue): Set PIC register.
13709 (call_address_operand): Don't match SYMBOL_REFs in PIC.
13710 (legitimize_address): Call legitimize_pic_address.
13711 (legitimize_pic_address): New fn.
13712 (legitimate_pic_operand_p): New fn.
13713 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
13714 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
13715 UNSPEC_PLT): New constants.
13716 (pop_pic_reg): New insn.
13717 (movsi): Adjust non-PIC addresses.
13718 (builtin_setjmp_receiver): Restore the PIC register.
13719 (casesi): New insn.
13720 (call): Adjust non-PIC addresses.
13721 (int_label, GOTaddr2picreg): New expands.
13722 (am33_loadPC): New insn.
13723 (mn10300_loadPC): New expand.
13724 (call_next_insn): New insn.
13725 (add_GOT_to_pic_reg): New expand.
13726 (symGOT2reg, symGOT2reg_i): New expands.
13727 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
13728 (sym2PIC, sym2PLT): New expands.
13729
13730 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
13731
13732 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
13733 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
13734 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
13735 to flag_unsafe_math_optimizations.
13736 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
13737 * config/mn10300/mn10300.c (expand_prologue): Mark
13738 FP-register-saving insns as frame-related.
13739 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
13740 * config/mn10300/mn10300.c
13741 (mn10300_get_live_callee_saved_regs): Don't search past
13742 LAST_EXTENDED_REGNUM.
13743 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
13744 * config/mn10300/mn10300.md: Remove excessive line breaks from
13745 `@' output patterns that were accounted as additional
13746 alternatives.
13747 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
13748 Re-introduce changes accidentally removed in Richard Sandiford's
13749 2000-12-05's patch.
13750 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
13751 Re-instate am33-2 lost in merge from net GCC.
13752 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
13753 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
13754 floating-point registers.
13755 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
13756 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
13757 pessimizations that had gone in on 2000-05-08.
13758 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
13759 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
13760 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
13761 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
13762 operand 0.
13763 * (movhi): Likewise.
13764 * (movsi): Likewise.
13765 * (movsf): Likewise.
13766 * (movdi): Likewise.
13767 * (movdf): Likewise.
13768 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
13769 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
13770 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
13771 (expand_prologue, expand_epilogue): Save and restore FP regs.
13772 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
13773 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
13774 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
13775 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
13776 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
13777 Do not clobber cc0.
13778 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
13779 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
13780 Discourage the two-argument, longer opcodes.
13781 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
13782 ones.
13783 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
13784 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
13785 * config/mn10300/mn10300.md (cmpsf): New pattern.
13786 (branch): Test mdep.fpCC and output fbCC.
13787 * config/mn10300/mn10300.c (print_operand): Output conditions.
13788 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
13789 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
13790 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
13791 mulsf3, divsf3): Use the `F' constraint for FP values.
13792 * config/mn10300/mn10300.c (const_1f_operand): New function.
13793 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
13794 * config/mn10300/mn10300.md (sqrtsf2): New expand.
13795 (rsqrtsf2): New insn.
13796 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
13797 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
13798 previous check-in.
13799 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
13800 * config/mn10300/mn10300.md (abssf2, negdf2): On
13801 TARGET_AM33_2, expand to...
13802 (abssf2_am33_2, negdf2_am33_2): New insns.
13803 (addsf3, subsf3, mulsf3, divsf3): Likewise.
13804 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
13805 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
13806 movdi, movdf): Added FP regs.
13807 * invoke.texi (-mam33-2, -mno-am33-2): Document.
13808 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
13809 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
13810 New macros.
13811 (REGNO_AM33_2_FP_P): Renamed to...
13812 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
13813 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
13814 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
13815 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
13816 regs from GENERAL_REGS.
13817 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
13818 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
13819 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
13820 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
13821 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
13822 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
13823 as FP_REGS.
13824 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
13825 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
13826 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
13827 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
13828 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
13829 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
13830 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
13831 AM33/2.0 floating-point registers.
13832 (CONDITIONAL_REGISTER_USAGE): Adjust.
13833 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
13834 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
13835 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
13836 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
13837 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
13838 (MULTILIB_DIRNAMES): Likewise.
13839 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
13840 `__AM33_2__' when `-mam33-2' is given.
13841 (TARGET_AM33_2): Define.
13842 (TARGET_SWITCHES): Adjust.
13843 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
13844 when appropriate.
13845
13846 2003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
13847
13848 * doc/install.texi: Add missing @.
13849
13850 2003-07-09 Bob Wilson <bob.wilson@acm.org>
13851
13852 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
13853
13854 2003-07-09 Aldy Hernandez <aldyh@redhat.com>
13855
13856 PR/11144
13857 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
13858
13859 2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
13860
13861 PR bootstrap/11043
13862 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
13863 "x-crtfini.o" with "crtinit.o", "crtfini.o".
13864
13865 * fixinc/inclhack.def (limits_ifndefs): Add select test.
13866 * fixinc/fixincl.x: Rebuild.
13867
13868 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
13869 * fixinc/fixincl.x: Rebuild.
13870
13871 2003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
13872
13873 * doc/install.texi (Configuration): Document the valgrind option
13874 to --enable-checking.
13875
13876 2003-07-09 Jan Hubicka <jh@suse.cz>
13877
13878 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
13879
13880 2003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13881
13882 * c-lex.c (cb_ident): Cast cstr.text to const char *.
13883
13884 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
13885
13886 * gcov-io.h: Update documentation.
13887 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
13888 GCOV_NOTE_MAGIC.
13889 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
13890 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
13891 (struct gcov_var): Change buffer's type. Add endian flag.
13892 (gcov_open): Remove mode in libgcov.
13893 (gcov_magic): Prototype.
13894 * gcov-io.c (from_file): New.
13895 (gcov_open): Clear endian flag.
13896 (gcov_magic): New.
13897 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
13898 pointers.
13899 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
13900 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
13901 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
13902 * gcov-iov.c (main): Correct cast.
13903 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
13904 conversion.
13905 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
13906 (coverage_init): Use GCOV_NOTE_SUFFIX.
13907 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
13908 Rename to gcov_version, and return flag.
13909 (gcov_exit): Use gcov_version.
13910 (__gcov_init): Use gcov_version.
13911 * Makefile.in (coverageexts): Update.
13912 * gcov.c (print_version): Remove endianness conversion.
13913 (create_file_names): Use GCOV_NOTE_SUFFIX.
13914 (read_graph_file): Use gcov_magic.
13915 (read_count_file): Likewise.
13916 * gcov-dump.c (dump_file): Remove endianness conversion, use
13917 gcov_magic.
13918
13919 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
13920
13921 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
13922 coverage is on.
13923 * configure: Regenerated.
13924 * Makefile.in (ALL_CFLAGS): Correct its comment.
13925
13926 2003-07-08 Mark Mitchell <mark@codesourcery.com>
13927
13928 * fold-const.c (make_range): Do not access operand 1 for a
13929 zero-operand operator.
13930
13931 2003-07-09 Neil Booth <neil@daikokuya.co.uk>
13932
13933 * toplev.c (warn_dummy, W_options): Die.
13934 (display_help): Don't print W_options.
13935 * common.opt: Add W_options help from toplev.c.
13936
13937 2003-07-09 Andreas Jaeger <aj@suse.de>
13938
13939 * opts.c (wrap_help): Only pass int arguments as arguments to
13940 printf's '*' modifier. Change argument of function.
13941
13942 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
13943
13944 * doc/invoke.texi: Fix misspelling of "@item".
13945
13946 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
13947
13948 * config/i386/i386.md: Remove an old comment about
13949 NOTICE_UPDATE_CC.
13950
13951 2003-07-09 Jan Hubicka <jh@suse.cz>
13952
13953 * cgraph.c (cgraph_node_name): New function.
13954 (dump_cgraph): Use it.
13955 * cgraph.h (cgraph_dump_file): Declare.
13956 (cgraph_node_name): Declare.
13957 * cgraphunit.c: Include timevar.h
13958 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
13959 (cgraph_optimize_function): Use TV_INTEGRATION.
13960 (cgraph_mark_local_functions): reorganize dumps.
13961 (cgraph_mark_functions_to_inline_once): Likewise.
13962 (cgraph_optimize): Likewise; use timevar.
13963 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
13964 * toplev.c (dump_file_index): Add DFI_cgraph.
13965 (dump_file_info): Likewise.
13966 (cgraph_dump_file): New global variable.
13967 (do_compile): Open and close cgraph dump.
13968 * invoke.texi (-d): Document new flag; renumber.
13969
13970 2003-07-08 Roger Sayle <roger@eyesopen.com>
13971
13972 PR c/11370
13973 * calls.c (emit_call_1): Don't bother popping the arguments off of
13974 the stack after a noreturn function call; The adjustment is dead.
13975 (expand_call): Likewise.
13976
13977 2003-07-08 Geoffrey Keating <geoffk@apple.com>
13978
13979 * expr.c (MOVE_MAX_PIECES): Move from here...
13980 * defaults.h (MOVE_MAX_PIECES): ... to here.
13981
13982 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
13983
13984 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
13985
13986 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13987
13988 * genattr.c (internal_dfa_insn_code): Don't prototype.
13989 * genattrtab.c (attr_desc): Add `static_p' field.
13990 (expand_units): Make blockage range and ready cost functions
13991 static.
13992 (write_attr_get): Don't add extern prototypes in C file. Mark
13993 static functions as appropriate.
13994 (find_attr, make_internal_attr): Initialize static_p.
13995 * genattrtab.h (ATTR_STATIC): New macro.
13996 * genautomata.c (output_internal_reset_func): Mark output function
13997 as inline.
13998 (make_internal_dfa_insn_code_attr): Mark output function as static.
13999
14000 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14001
14002 * genattrtab.h: Add new macros for attr `special' flags.
14003 * genattrtab.c (attr_desc): Reorder/resize fields better.
14004 Use attr `special' macros in all calls to make_internal_attr.
14005 * genautomata.c: Likewise.
14006
14007 2003-07-09 Jan Hubicka <jh@suse.cz>
14008
14009 * c-common.c (c_estimate_num_insns_1): New static function.
14010 (c_estimate_num_insns): New global function.
14011 * c-common.h (DECL_NUM_STMTS): Rename to...
14012 (DECL_ESTIMATED_INSNS): ... this.
14013 (c_estimate_num_insns): Declare.
14014 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
14015 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
14016 * c-semantics.c (add_stmt): Do not account statements.
14017 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
14018 New.
14019 * langhooks.h (lang_hooks_for_tree_inlining): Add
14020 estimate_num_insns
14021 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
14022 to 100.
14023 (max-inline-insns): set to 300.
14024 (min-inline-insns): set to 10.
14025 * tree-inline.c (struct inline_data): Rename inlined_stmts to
14026 inlined-insns.
14027 (INSNS_PER_STMT): Kill.
14028 (inlinable_function_p): Compute and store body size.
14029 (expand_call_inline): Likewise.
14030 (optimize_inline_calls): Likewise.
14031
14032 2003-07-08 James E Wilson <wilson@tuliptree.org>
14033
14034 PR target/10021
14035 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
14036 loop over new variable t2 instead of t.
14037
14038 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
14039
14040 PR bootstrap/11455
14041 * config/i386/winnt.c: Replace use of error(), warning() with
14042 error_with_decl(), warning_with_decl(), throughout.
14043
14044 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
14045
14046 * opts.c (wrap_help): Use unsigned int, not size_t.
14047
14048 2003-07-08 Stephane Carrez <stcarrez@nerim.fr>
14049
14050 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
14051 as .file/.loc directives are incompatible with linker relaxation.
14052
14053 2003-07-08 Zack Weinberg <zack@codesourcery.com>
14054
14055 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
14056 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
14057 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
14058 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
14059 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
14060 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
14061 Escape { and } characters which are not part of range expressions.
14062 * fixinc/fixincl.x: Regenerate.
14063 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
14064
14065 2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
14066
14067 PR c/1687
14068 * tree-inline.c (find_alloca_call): Use
14069 walk_tree_without_duplicates, instead of walk_tree.
14070 (find_builtin_longjmp_call): Likewise.
14071 * c-objc-common.c (c_cannot_inline_fn): Likewise.
14072 * c-semantics.c (find_reachable_label): Likewise.
14073
14074 2003-07-08 Jakub Jelinek <jakub@redhat.com>
14075
14076 PR c/11420
14077 * config/i386/i386.c (ix86_check_movabs): New function.
14078 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
14079 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
14080 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
14081
14082 2003-07-08 Chris Demetriou <cgd@broadcom.com>
14083
14084 * Makefile.in (install-po): Cope with empty CATALOGS.
14085
14086 2003-07-08 Richard Sandiford <rsandifo@redhat.com>
14087
14088 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
14089 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
14090 (SECTION_FUNCTION_TEMPLATE): Delete.
14091 * config/mips/elf.h: As for elf64.h.
14092 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
14093 * config/mips/linux.h: As for elf.h
14094 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
14095 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
14096 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
14097 of in_sdata from current_section_name and current_section_flags.
14098 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
14099 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
14100 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
14101 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
14102 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
14103 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
14104 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
14105 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
14106 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
14107 (override_options): Remove setting of MASK_GPOPT.
14108 (mips_output_external): Use mips_in_small_data_p to check whether a
14109 symbol needs an .extern directive. Don't emit such directives for
14110 TARGET_EXPLICIT_RELOCS.
14111 (mips_declare_object): Update accordingly.
14112 (mips_select_rtx_section): Call named_section rather than
14113 SMALL_DATA_SECTION.
14114 (mips_select_section): Use default_elf_section_section for everything
14115 except .text string constants.
14116 (mips_in_small_data_p): New function.
14117 (mips_encode_section_info): Remove small data handling.
14118 (mips_unique_section): Delete.
14119 (iris6_section_type_flags): New function.
14120 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
14121
14122 2003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14123
14124 PR Target/11453
14125 * pa.md: Disparage all mtsar constraints.
14126 (extzv, extv, insv): Don't fail on length of {32|64}.
14127
14128 2003-07-08 Zack Weinberg <zack@codesourcery.com>
14129
14130 * system.h: Poison MAP_CHARACTER.
14131 * config/i370/i370-protos.h (mvs_map_char): Delete.
14132 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
14133 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
14134 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
14135
14136 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
14137
14138 * toplev.c (randomize): Correct call to time().
14139
14140 2003-07-08 Jakub Jelinek <jakub@redhat.com>
14141
14142 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
14143 REG_EQUIV notes as well.
14144
14145 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
14146
14147 * doc/md.texi: Fix the description of addmodecc.
14148
14149 2003-07-07 Zack Weinberg <zack@codesourcery.com>
14150
14151 * Makefile.in (top_builddir): Set to "..", not ".".
14152 (INTLLIBS, INTLDEPS): Delete.
14153 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
14154 (LIBDEPS): Add $(LIBICONV_DEP).
14155 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
14156 (INCLUDES): Replace -I../intl with @INCINTL@.
14157 ($(top_builddir)/intl/libintl.a): Delete rule.
14158 (stage2-start, stage3-start, stage4-start, stageprofile-start,
14159 stagefeedback-start): Use $$ for variable to be evaluated by
14160 shell, not make.
14161 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
14162 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
14163 * aclocal.m4: sinclude ../config/progtest.m4. Add
14164 contents of lcmessage.m4 from gettext distro.
14165 * configure.in: Check for wchar.h and setlocale. Set
14166 LIBICONV_DEP to the empty string and substitute it.
14167 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
14168 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
14169 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
14170 in $LIBINTL, to avoid linking it twice.
14171 * configure, config.in: Regenerate.
14172
14173 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
14174
14175 * fixinc/mkfixinc.sh: Remove winnt support.
14176 * fixinc/fixinc.winnt: Delete with extreme prejudice.
14177
14178 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
14179
14180 * Makefile.in: Update.
14181 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
14182 * c.opt: Update documentation.
14183 * common.opt: Add some help text.
14184 * opts.c: Include intl.h.
14185 (wrap_help, print_help): New.
14186 (find_opt, handle_option, common_handle_option): opt_text now
14187 contains the '-'. Use print_help to output help.
14188 * opts.h (struct cl_option): New member "help".
14189 * opts.sh: Update to handle help text output and to prepend
14190 options with '-'.
14191 * toplev.c (display_help): Remove some help text.
14192
14193 2003-07-07 David Edelsohn <edelsohn@gnu.org>
14194 Fariborz Jahanian <fjahanian@apple.com>
14195
14196 * configure.in: Test for PowerPC mfcr field support in assembler.
14197 * config.in, configure: Regenderated.
14198
14199 * config/rs6000/power4.md: Add mfcrf reservation.
14200 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
14201 * config/rs6000/rs6000.c (mfcr_operation): Define.
14202 (print_operand): Add 'Q' case for mfcrf.
14203 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
14204 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
14205 (movcc_internal1): Emit optional field operand for mfcr and set
14206 "type" attribute appropriately.
14207 (mfcr SCC): Likewise.
14208 (movesi_from_cr_one): New.
14209
14210 2003-07-07 Roger Sayle <roger@eyesopen.com>
14211
14212 * config/i386/i386.md: Correct check-in of incorrect version.
14213
14214 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14215
14216 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
14217 adjacent stdio calls.
14218 * c-decl.c (c_print_identifier): Likewise.
14219 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
14220 * print-rtl.c (print_rtx): Likewise.
14221 * print-tree.c (print_node_brief, print_node): Likewise.
14222 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
14223
14224 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
14225 * config.in, configure: Regenerated.
14226
14227 2003-07-07 Roger Sayle <roger@eyesopen.com>
14228
14229 PR target/10979
14230 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
14231 Changed to define_expand patterns that copy operand[1] to prevent
14232 it from being clobbered before emitting an atan2?f3_1 insn.
14233 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
14234 patterns that actually specify the behaviour of x87's FPATAN.
14235
14236 2003-07-07 Jakub Jelinek <jakub@redhat.com>
14237
14238 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
14239 clearing of SYMBOL_FLAG_LOCAL bit.
14240 If vcall_offset fits into signed 16-bit immediate, use
14241 one instruction for both addition and load.
14242
14243 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
14244
14245 * opts.c (common_handle_option): Correct handling of the
14246 -falign- switches that do and don't take an argument.
14247
14248 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
14249
14250 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
14251 today.
14252 (pushhi1_h8300hs): Likewise.
14253
14254 2003-07-07 Andreas Jaeger <aj@suse.de>
14255
14256 * genextract.c: Convert remaining prototypes to ISO C90.
14257
14258 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
14259 * fold-const.c (fold_single_bit_test): Likewise.
14260 * diagnostic.c (default_diagnostic_finalizer): Likewise.
14261 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
14262
14263 * gengtype.c (write_array): Generate ISO C90 prototypes.
14264
14265 * genflags.c (gen_proto): Generate ISO C90 prototypes.
14266
14267 2003-07-07 Roger Sayle <roger@eyesopen.com>
14268
14269 PR optimization/11059
14270 * expr.c (can_store_by_pieces): Return true if length is zero.
14271 (store_by_pieces): If length is zero and endp is two, abort,
14272 othwerise, if length is zero and endp is not two, return "to".
14273 (clear_by_pieces): Do nothing if length is zero.
14274 (clear_storage): Do nothing if length is zero.
14275 (store_constructor): Simplify code when size is zero, or the
14276 target has already been cleared. This avoids emitting a
14277 blockage instruction when initializing empty structures.
14278
14279 2003-07-07 Andreas Jaeger <aj@suse.de>
14280
14281 * mips-tfile.c: Convert prototypes to ISO C90.
14282 * mips-tdump.c: Convert prototypes to ISO C90.
14283
14284 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
14285
14286 * rtl.h (emit_line_note): Take a location_t.
14287 (emit_line_note_force): Remove.
14288 (set_file_and_line_for_statement): Take a location_t.
14289 * tree.g (emit_line_note): Take a location_t.
14290 * emit-rtl.c (emit_line_note): Take a location_t.
14291 (emit_line_note_force): Remove.
14292 * function.c (init_function_start): Adjust emit_line_note call.
14293 (expand_function_end): Use force_next_line_note, not
14294 emit_line_note_force.
14295 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
14296 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
14297 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
14298 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
14299 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
14300 genrtl_continue_stmt, genrtl_switch_stmt,
14301 genrtl_asm_stmt): Likewise.
14302 * expr.c (expand_expr): Likewise.
14303 * integrate.c (expand_inline_function): Likewise.
14304 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
14305 (expand_decl_init): Adjust emit_line_note call.
14306
14307 2003-07-07 Dale Johannesen <dalej@apple.com>
14308
14309 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
14310
14311 2003-07-07 Andreas Jaeger <aj@suse.de>
14312
14313 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
14314 * config/i386/i386.c: Likewise.
14315
14316 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
14317
14318 * config/h8300/h8300.md: Use gen_int_mode instead of
14319 GEN_INT (trunc_int_for_mode (...)).
14320
14321 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
14322
14323 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
14324 2 bytes and then subtract 2 from the stack pointer.
14325 (pushhi1_h8300hs): Likewise.
14326
14327 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
14328
14329 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
14330 -frandom-seed.
14331 * configure: Regenerated.
14332 * Makefile.in: Remove extraneous comment.
14333 * toplev.c (randomize): Protect against potential multiple calls.
14334 * doc/invoke.texi (-frandom-seed): Document use for in coverage
14335 files.
14336
14337 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14338 Eric Botcazou <ebotcazou@libertysurf.fr>
14339
14340 PR optimization/11198
14341 * alias.c (objects_must_conflict_p): Return 1 if the types have
14342 the same alias set, not if the alias sets only conflict.
14343
14344 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
14345
14346 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
14347 (convert_cset): Change inbuf to type ICONV_CONST char.
14348 * Makefile.in (LIBS): Add LIBICONV.
14349
14350 * doc/invoke.texi (-falign-functions): Document that
14351 when n is zero then a machine-dependent default is used.
14352 (-falign-labels): Document that when n is zero then a
14353 machine-dependent default is used and that -falign-labels =1
14354 is equivalent to -fno-align-labels.
14355 (-falign-loops): Likewise.
14356 (-falign-jumps): Likewise.
14357
14358 2003-07-06 Art Haas <ahaas@airmail.net>
14359
14360 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
14361 initializer syntax.
14362
14363 2003-07-06 James E Wilson <wilson@tuliptree.org>
14364
14365 PR optimization/9812
14366 * rtl.h (mem_for_const_double): Delete prototype.
14367 * varasm.c (mem_for_const_double): Delete function.
14368 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
14369 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
14370 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
14371 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
14372 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
14373 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
14374 comment about confused support for XFmode constants.
14375
14376 2003-07-07 Jan Hubicka <jh@suse.cz>
14377
14378 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
14379
14380 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
14381
14382 * config/h8300/h8300.c: Fix comment typos.
14383 * config/h8300/h8300.md: Likewise.
14384 * config/i386/athlon.md: Likewise.
14385 * config/i386/i386.c: Likewise.
14386 * config/i386/pentium.md: Likewise.
14387 * config/ia64/ia64.c: Likewise.
14388 * config/ia64/itanium1.md: Likewise.
14389 * config/ia64/itanium2.md: Likewise.
14390 * config/m32r/m32r.md: Likewise.
14391 * config/m68hc11/m68hc11.c: Likewise.
14392 * config/mcore/mcore.c: Likewise.
14393 * config/mips/sr71k.md: Likewise.
14394 * config/mips/t-iris5-as: Likewise.
14395 * config/mmix/mmix.h: Likewise.
14396 * config/ns32k/ns32k.h: Likewise.
14397 * config/ns32k/NOTES: Fix a typo.
14398
14399 2003-07-06 Andreas Jaeger <aj@suse.de>
14400
14401 * stmt.c: Convert remaining prototypes to ISO C90.
14402 * cfglayout.c: Likewise.
14403 * dbxout.c: Likewise.
14404 * gcc.c: Likewise.
14405 * genemit.c: Likewise.
14406
14407 * basic-block.h: Convert prototypes to ISO C90.
14408 * c-parse.in: Likewise.
14409 * c-pragma.h: Likewise.
14410 * c-typeck.c: Likewise.
14411 * cfghooks.h: Likewise.
14412 * cfgloopanal.c: Likewise.
14413 * dbxout.h: Likewise.
14414 * debug.h: Likewise.
14415 * dwarf2asm.h: Likewise.
14416 * gcov.c: Likewise.
14417 * gengtype-lex.l: Likewise.
14418 * sched-int.h: Likewise.
14419 * timevar.c: Likewise.
14420
14421 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
14422
14423 * c-common.h (c_comon_handle_filename,
14424 c_common_missing_arguement): New.
14425 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
14426 LANG_HOOKS_MISSING_ARGUMENT): New.
14427 * c-opts.c (missing_arg): Rename c_common_missing_argument,
14428 update to be an appropriate langhook.
14429 (c_common_handle_option): Don't handle filenames.
14430 (c_common_handle_filename): New.
14431 * hooks.c (hook_void_constcharptr,
14432 hook_bool_constcharptr_size_t_false): New.
14433 * hooks.h (hook_void_constcharptr,
14434 hook_bool_constcharptr_size_t_false): New.
14435 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
14436 LANG_HOOKS_MISSING_ARGUMENT): New.
14437 (LANG_HOOKS_INITIALIZER): Update.
14438 * langhooks.h (struct lang_hooks): Add handle_filename and
14439 missing_argument.
14440 * opts.c (handle_option): Don't handle filenames here, but ...
14441 (handle_options): ... here.
14442 (common_handle_option): Don't handle missing arguments here.
14443 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
14444 LANG_HOOKS_MISSING_ARGUMENT): New.
14445
14446 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
14447
14448 * Makfile.in: Remove traces of mbchar.
14449 * c-parse.in (MULTIBYTE_CHARS): Remove.
14450 * config.in (MULTIBYTE_CHARS): Remove.
14451 * configure: Remove --enable-mbchar.
14452 * configure.in: Remove --enable-mbchar.
14453 * mbchar.c, mbchar.h: Remove.
14454 * system.h: Poison MULTIBYTE_CHARS.
14455 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
14456 * config/linux.h (MULTIBYTE_CHARS): Remove.
14457 * config/svr4.h (MULTIBYTE_CHARS): Remove.
14458 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
14459
14460 2003-07-06 Andreas Jaeger <aj@suse.de>
14461
14462 * varray.c (varray_check_failed): Fix typo.
14463
14464 * unroll.c: Convert prototypes to ISO C90.
14465 * varasm.c: Likewise.
14466 * varray.c: Likewise.
14467 * varray.h: Likewise.
14468 * vmsdbgout.c: Likewise.
14469 * xcoffout.c: Likewise.
14470 * xcoffout.h: Likewise.
14471
14472 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
14473
14474 * gcov-io.h: Add a local time stamp.
14475 (struct gcov_info): Add stamp field.
14476 (gcov_truncate): New.
14477 * coverage.c (read_counts_file): Skip the stamp.
14478 (coverage_begin_output): Write the stamp.
14479 (build_gcov_info): Declare and init the stamp.
14480 (coverage_finish): Only unlink data file, if stamp is zero.
14481 * gcov-dump.c (dump_file): Dump the stamp.
14482 * gcov.c (bbg_stamp): New.
14483 (release_structures): Clear bbg_stamp.
14484 (read_graph_file): Read stamp.
14485 (read_count_file): Check stamp.
14486 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
14487
14488 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
14489
14490 * tree.h (default_flag_random_seed): Remove.
14491 * toplev.h (local_tick): Declare.
14492 * tree.c (flag_random_seed, default_flag_random_seed): Move to
14493 toplev.c.
14494 (append_random_chars): Don't call default_flag_random_seed.
14495 * toplev.c (flag_random_seed): Define here. Set local_tick.
14496 (local_tick): Define.
14497 (randomize): New, moved from tree.c.
14498 (print_switch_values): Adjust.
14499 (toplev_main): Call randomize.
14500
14501 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
14502
14503 * tree.h (crc32_string): Declare.
14504 * tree.c (append_random_chars): Remove.
14505 (crc32_string): New.
14506 (get_file_function_name_long): Use crc32_string here.
14507
14508 2003-07-06 Andreas Jaeger <aj@suse.de>
14509
14510 * gcc.c: Convert prototypes to ISO C90.
14511 * gcc.h: Likewise.
14512 * gcov-dump.c: Likewise.
14513 * gcov-iov.c: Likewise.
14514 * gcse.c: Likewise.
14515 * genattrtab.h: Likewise.
14516 * ggc.h: Likewise.
14517 * global.c: Likewise.
14518 * graph.c: Likewise.
14519 * graph.h: Likewise.
14520 * hosthooks.h: Likewise.
14521 * hooks.h: Likewise.
14522 * hooks.c: Likewise.
14523 * hashtable.h: Likewise.
14524 * hashtable.c: Likewise.
14525 * haifa-sched.c: Likewise.
14526 * integrate.h: Likewise.
14527 * integrate.c: Likewise.
14528 * input.h: Likewise.
14529 * ifcvt.c: Likewise.
14530 * jump.c: Likewise.
14531 * langhooks-def.h: Likewise. Add extern to prototypes.
14532 * langhooks.c: Likewise.
14533 * langhooks.h: Likewise.
14534 * lcm.c: Likewise.
14535 * local-alloc.c: Likewise.
14536 * loop-init.c: Likewise.
14537 * loop-unroll.c: Likewise.
14538 * loop-unswitch.c: Likewise.
14539 * loop.c: Likewise.
14540 * loop.h: Likewise. Add extern to prototypes.
14541 * machmode.h: Likewise.
14542 * main.c: Likewise.
14543 * mbchar.c: Likewise.
14544 * mbchar.h: Likewise.
14545 * mkdeps.c: Likewise.
14546 * mkdeps.h: Likewise.
14547 * optabs.c: Likewise.
14548 * optabs.h: Likewise.
14549 * output.h: Likewise.
14550 * gccspec.c: Likwise.
14551 * postreload.c: Likewise.
14552 * prefix.c: Likewise.
14553 * prefix.h: Likewise.
14554 * print-rtl.c: Likewise.
14555 * print-tree.c: Likewise.
14556 * profile.c: Likewise.
14557 * read-rtl.c: Likewise.
14558 * real.c: Likewise.
14559 * real.h: Likewise.
14560 * recog.c: Likewise.
14561 * recog.h: Likewise.
14562 * reg-stack.c: Likewise.
14563 * regclass.c: Likewise.
14564 * regmove.c: Likewise.
14565 * regrename.c: Likewise.
14566 * regs.h: Likewise.
14567 * reload.c: Likewise.
14568 * reload.h: Likewise.
14569 * reload1.c: Likewise.
14570 * reorg.c: Likewise.
14571 * resource.c: Likewise.
14572 * resource.h: Likewise.
14573 * rtl-error.c: Likewise.
14574 * rtl.c: Likewise.
14575 * rtl.h: Likewise.
14576 * rtlanal.c: Likewise.
14577 * sbitmap.c: Likewise.
14578 * sbitmap.h: Likewise.
14579 * scan-decls.c: Likewise.
14580 * scan.c: Likewise.
14581 * sched-deps.c: Likewise.
14582 * sched-ebb.c: Likewise.
14583 * sched-int.h: Likewise.
14584 * sched-rgn.c: Likewise.
14585 * sched-vis.c: Likewise.
14586 * sibcall.c: Likewise.
14587 * simplify-rtx.c: Likewise.
14588 * sreal.c: Likewise.
14589 * sreal.h: Likewise.
14590 * ssa-ccp.c: Likewise.
14591 * ssa-dce.c: Likewise.
14592 * ssa.c: Likewise.
14593 * ssa.h: Likewise.
14594 * stack.h: Likewise.
14595 * stmt.c: Likewise.
14596 * stor-layout.c: Likewise.
14597 * stringpool.c: Likewise.
14598 * target.h: Likewise.
14599 * timevar.c: Likewise.
14600 * timevar.h: Likewise.
14601 * tlink.c: Likewise.
14602 * tracer.c: Likewise.
14603 * tree-inline.c: Likewise.
14604 * tree-inline.h: Likewise.
14605 * tree.c: Likewise.
14606 * tree.h: Likewise.
14607
14608 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
14609
14610 * combine.c (nonzero_bits1): Fix a warning.
14611
14612 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
14613
14614 * config/h8300/h8300.c (compute_mov_length): Correct the
14615 length of loading CONST0_RTX (SFmode).
14616
14617 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
14618
14619 * toplev.c (output_clean_symbol_name): Remove.
14620 * toplev.h (output_clean_symbol_name): Remove.
14621 * config/alpha/alpha.c (unicosmk_output_module_name): Use
14622 lbasename & clean_symbol_name.
14623
14624 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
14625
14626 * ggc.h: Follow spelling conventions.
14627 * config/i386/i386.c: Likewise.
14628 * config/i386/winnt.c: Likewise.
14629 * config/rs6000/rs6000.c: Likewise.
14630
14631 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
14632
14633 * bt-load.c: Fix comment typos.
14634 * c-incpath.c: Likewise.
14635 * cfg.c: Likewise.
14636 * cfgcleanup.c: Likewise.
14637 * cfgloop.h: Likewise.
14638 * cfgloopmanip.c: Likewise.
14639 * cfgrtl.c: Likewise.
14640 * diagnostic.h: Likewise.
14641 * dwarfout.c: Likewise.
14642 * emit-rtl.c: Likewise.
14643 * et-forest.c: Likewise.
14644 * et-forest.h: Likewise.
14645 * expr.c: Likewise.
14646 * gcse.c: Likewise.
14647 * genattr.c: Likewise.
14648 * jump.c: Likewise.
14649 * langhooks.h: Likewise.
14650 * local-alloc.c: Likewise.
14651 * loop-unroll.c: Likewise.
14652 * loop-unswitch.c: Likewise.
14653 * ra-build.c: Likewise.
14654 * regclass.c: Likewise.
14655 * regmove.c: Likewise.
14656 * rtl.def: Likewise.
14657 * rtlanal.c: Likewise.
14658 * sched-ebb.c: Likewise.
14659 * sched-rgn.c: Likewise.
14660 * simplify-rtx.c: Likewise.
14661 * ssa.c: Likewise.
14662 * tracer.c: Likewise.
14663 * tree.c: Likewise.
14664
14665 2003-07-05 Zack Weinberg <zack@codesourcery.com>
14666
14667 * cppcharset.c: Use the correct return type for the fallback iconv
14668 macro.
14669
14670 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14671
14672 Blame to Jan Hubicka <jh@suse.cz>
14673 * cfglayout.c (record_effective_endpoints): Split insns before
14674 first basic block correctly.
14675
14676 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14677
14678 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
14679 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
14680 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
14681
14682 2003-07-05 Andreas Jaeger <aj@suse.de>
14683
14684 * genattrtab.c (write_attr_get): Revert part of last patch to
14685 always write out a prototype.
14686
14687 * genemit.c (gen_split): Readd lost unused attributes in last
14688 patch.
14689
14690 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14691
14692 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
14693 different from header.
14694
14695 2003-07-05 Andreas Schwab <schwab@suse.de>
14696
14697 * config/m68k/m68k.c: Remove code protected by CRDS.
14698 * config/m68k/m68k.md: Likewise.
14699
14700 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
14701
14702 PR driver/11417
14703 * c-opts.c (permit_fortran_options): New.
14704 (c_common_init_options): Accept fortran front end options if
14705 it looks like we might be preprocessing Fortran.
14706 (c_common_handle_option): Don't reject switch if permit_fotran_options.
14707
14708 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14709
14710 * genattr.c (internal_dfa_insn_code): Output prototype.
14711 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
14712 * genautomata.c: Likewise.
14713 * genconditions.c: Likewise.
14714 * genemit.c: Likewise.
14715 * genextract.c: Likewise.
14716 * gengenrtl.c: Likewise.
14717 * gengtype.c: Likewise.
14718 * genopinit.c: Likewise.
14719 * genoutput.c: Likewise.
14720 * genpeep.c: Likewise.
14721 * genrecog.c: Likewise.
14722
14723 2003-07-04 Zack Weinberg <zack@codesourcery.com>
14724
14725 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
14726 (struct cpp_options): Add narrow_charset, wide_charset,
14727 bytes_big_endian fields. Remove EBCDIC field.
14728 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
14729
14730 * cpphash.h: Include <iconv.h> if we have it, otherwise
14731 provide a dummy definition of iconv_t.
14732 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
14733 (_cpp_valid_ucn): Update prototype.
14734 (_cpp_destroy_iconv): New prototype.
14735
14736 * doc/cpp.texi: Document character set handling.
14737 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
14738 * doc/extend.texi: Delete entire section on multiline strings.
14739 Rewrite section on __FUNCTION__ etc now that these are
14740 variables in C.
14741
14742 * cppucnid.tab, cppucnid.pl: New files.
14743 * cppucnid.h: New generated file.
14744 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
14745 (iconv_open, iconv, iconv_close): Provide dummy definitions
14746 if !HAVE_ICONV.
14747 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
14748 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
14749 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
14750 cpp_interpret_string, narrow_str_to_charconst,
14751 wide_str_to_charconst): New.
14752 (ucn_valid_in_identifier): Use a binary search through the
14753 ucnranges table defined in cppucnid.h, not a long chain of if
14754 statements.
14755 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
14756 character names are only valid in C++ and C99" to a warning.
14757 Issue the "meaning of \[uU] is different in traditional C"
14758 warning here. Take care not to let iconv see an invalid UCS
14759 value if we get a malformed UCN. Issue an error if we don't
14760 have iconv.
14761 (cpp_interpret_charconst): Moved here from cpplex.c. Use
14762 cpp_interpret_string to do the heavy lifting.
14763
14764 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
14765 narrow_charset, wide_charset fields of options structure.
14766 (cpp_destroy): Call _cpp_destroy_iconv.
14767 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
14768 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
14769 (cpp_interpret_charconst): Moved to cppcharset.c.
14770 * cpplib.c (dequote_string): Delete.
14771 (interpret_string_notranslate): New.
14772 (do_line, do_linemarker): Use interpret_string_notranslate.
14773
14774 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
14775
14776 * c-common.c (fname_string, combine_strings): Delete.
14777 * c-common.h (fname_string, combine_strings): Delete prototypes.
14778 * c-lex.c (ignore_escape_flag): Delete.
14779 (cb_ident): Use cpp_interpret_string, not lex_string.
14780 (get_nonpadding_token): New function.
14781 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
14782 Adjust calls to lex_string. Don't write *value twice.
14783 (lex_string): Now handles string constant concatenation.
14784 Most of the work handed off to cpp_interpret_string.
14785 Call fix_string_type here.
14786 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
14787 FUNC_NAME, throughout.
14788 (OBJC_STRING): New token type.
14789 (primary:STRING): No need to call fix_string_type here.
14790 (primary:objc_string): Make that OBJC_STRING.
14791 (objc_string nonterminal): Delete.
14792 (yylexname): Delete code to handle fake string constants.
14793 (yylexstring): Delete entirely.
14794 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
14795 to handle CPP_ATSIGN.
14796
14797 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
14798 * c-opts.c (missing_arg, c_common_handle_option): Handle
14799 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
14800 (c_common_init): Set cpp_opts->bytes_big_endian, not
14801 cpp_opts->EBCDIC. Call cpp_init_iconv.
14802 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
14803 (TARGET_EBCDIC): Delete default definition.
14804
14805 * objc/objc-act.c (build_objc_string_object): No need to
14806 handle string constant concatenation.
14807
14808 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
14809
14810 * doc/install.texi: Fix typos.
14811 * doc/invoke.texi: Likewise.
14812 * doc/tm.texi: Likewise.
14813
14814 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
14815
14816 * config/pa/fptr.c: Fix comment typos.
14817 * config/pa/pa-64.h: Likewise.
14818 * config/pa/pa.c: Likewise.
14819 * config/pa/pa.h: Likewise.
14820 * config/rs6000/603.md: Likewise.
14821 * config/rs6000/7xx.md: Likewise.
14822 * config/rs6000/darwin.h: Likewise.
14823 * config/rs6000/freebsd.h: Likewise.
14824 * config/rs6000/rs6000.c: Likewise.
14825 * config/rs6000/rs6000.md: Likewise.
14826 * config/rs6000/spe.h: Likewise.
14827
14828 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
14829
14830 * config/s390/2064.md: Change GNU CC to GCC.
14831 * config/s390/2084.md: Likewise.
14832 * config/s390/fixdfdi.h: Likewise.
14833 * config/s390/linux.h: Likewise.
14834 * config/s390/s390-modes.def: Likewise.
14835 * config/s390/s390-protos.h: Likewise.
14836 * config/s390/s390.c: Likewise.
14837 * config/s390/s390.h: Likewise.
14838 * config/s390/s390.md: Likewise.
14839 * config/s390/s390x.h: Likewise.
14840
14841 2003-07-04 Jeff Law <law@redhat.com>
14842
14843 PR c/11428
14844 * expr.c (do_store_flag): Pass in the correct result type
14845 when calling fold_single_bit_test.
14846 * fold-const.c (fold_single_bit_test): Use result_type for the
14847 result when folding a sign bit test.
14848
14849 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
14850
14851 * opts.c (common_handle_options): Negate sense of -falign- switches.
14852
14853 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
14854
14855 * Makefile.in: Replace PWD with PWD_COMMAND.
14856
14857 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14858
14859 * cfgloopanal.c (count_strange_loop_iterations): New static function.
14860 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
14861 Handle strange loops.
14862
14863 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
14864
14865 * install.texi: Even the g77 manpage is derived from
14866 the full g77 manual.
14867
14868 2003-07-04 Zack Weinberg <zack@codesourcery.com>
14869
14870 * ABOUT-NLS: Delete.
14871 * intl: Delete entire directory.
14872 * aclocal.m4: Include ../config/gettext.m4. Delete
14873 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
14874 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
14875 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
14876 Remove intl/Makefile from all_outputs.
14877 * configure, config.in: Regenerate.
14878 * Makefile.in: Expunge all references to intl subdirectory.
14879 Add -I../intl to INCLUDES.
14880 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
14881
14882 2003-07-04 Roger Sayle <roger@eyesopen.com>
14883
14884 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
14885 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
14886
14887 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
14888
14889 PR c++/5287, PR c++/7910, PR c++/11021
14890 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
14891 dllimport attribute if function is defined at declaration, but
14892 report error instead. Likewise for dllimport'd variable
14893 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
14894 declared within functions, Report error if dllimport or dllexport
14895 symbol is not global.
14896 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
14897 if defined after declaration or if inlined. Don't allow definition
14898 of static data members of C++ classes. Don't dllimport virtual
14899 methods.
14900 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
14901 (i386_pe_mark_dllimport): Remove unnecessary checks.
14902 (i386_pe_encode_section_info): Warn if the dllimport attribute
14903 and symbol prefix have been instantiated and then overridden.
14904
14905 * doc/extend.texi: Document dllimport and dllexport attributes.
14906
14907 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
14908
14909 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
14910
14911 * config/kaos.h (CPP_PREDEFINES): Delete.
14912 (TARGET_OS_CPP_BUILTINS): New.
14913
14914 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14915
14916 * c-aux-info.c: Include toplev.h after c-tree.h.
14917 * c-common.c: Likewise.
14918 (GCC_DIAG_STYLE): Undef.
14919 * c-semantics.c (GCC_DIAG_STYLE): Define.
14920 * c-tree.h (GCC_DIAG_STYLE): Likewise.
14921 * diagnostic.h (inform): Move prototype to toplev.h.
14922 * jump.c: Include diagnostic.h before toplev.h.
14923 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
14924 (warning, error, fatal_error, pedwarn, sorry, inform,
14925 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
14926
14927 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14928
14929 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
14930 at all if edge is not specified.
14931 (can_copy_bbs_p, copy_bbs): New.
14932 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
14933 * cfgloop.c (get_loop_body): Comment more precisely.
14934 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
14935 (scale_bbs_frequencies): Fix comment typo.
14936 (can_duplicate_loop_p): Use can_copy_bbs_p.
14937 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
14938
14939 2003-07-03 Devang Patel <dpatel@apple.com>
14940
14941 * c-opts.c (c_common_parse_file): Remove extra
14942 debug_hooks->start_source_file call.
14943
14944 2003-07-03 Roger Sayle <roger@eyesopen.com>
14945
14946 * real.c (real_trunc, real_floor, real_ceil): New functions
14947 to implement trunc, floor and ceil respectively.
14948 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
14949 * builtins.c (integer_valued_real_p): New function to test if
14950 a floating point expression has an integer valued result.
14951 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
14952 foo(x) where foo is an integer rounding function. Similarly,
14953 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
14954 (double)(int)x when both foo and bar are integer rounding
14955 functions and we don't need to honor errno.
14956 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
14957 New functions to fold trunc, floor and ceil.
14958 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
14959 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
14960 to fold BUILT_IN_CEIL*.
14961 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
14962 the remaining integer rounding functions.
14963
14964 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
14965
14966 * config/sparc/sparc.c (function_arg_partial_nregs): Use
14967 SPARC_INT_ARG_MAX to determine where to split unnamed
14968 complex FP arguments.
14969
14970 2003-07-03 Jan Hubicka <jh@suse.cz>
14971
14972 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
14973 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
14974 (merge_blocks_move_predecessor_nojumps,
14975 merge_blocks_move_successor_nojumps): Use merge_blocks.
14976 (try_optimize_cfg): Use merge_blocks_move.
14977 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
14978 (merge_blocks_nomove): Rename to rtl_merge_blocks.
14979 (cfg_layout_create_basic_block): New.
14980 (rtl_can_merge_blocks): New.
14981 (cfg_layout_split_block): Do not alloc aux by hand.
14982 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
14983 merge_blocks.
14984 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
14985 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
14986 * cfgloopmanip.c (loop_split_edge_with): Likewise.
14987 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
14988
14989 * basic-block.h (basic_block_def): Add field 'rbi'.
14990 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
14991 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
14992 * cfg.c (entry_exit_blocks): Add new field.
14993 * cfglayout.c: Include alloc-pool.h;
14994 (cfg_layout_pool): New.
14995 (record_effective_endpoints, fixup_reorder_chain,
14996 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
14997 of rbi.
14998 (cfg_layout_initialize_rbi): New function.
14999 (cfg_layout_initialize): Use it.
15000 (cfg_layout_finalize): Clear rbi fields.
15001 * cfglayout.h (RBI): Kill.
15002 (cfg_layout_initialize_rbi): Declare.
15003 * cfgloopmanip.c (copy_bbs): Use rbi.
15004 (record_exit_edges): Likewise.
15005 (duplicate_loop_to_header_edge): Likewise.
15006 * cfgrtl.c (cfg_layout_create_basic_block): Use
15007 cfg_layout_initialize_rbi.
15008 (cfg_layout_split_block): Use rbi.
15009 (cfg_layout_delete_block): Likewise.
15010 * loop-init.c (loop_optimizer_finalize): Likewise.
15011 * loop-unswitch.c (unswitch_loop): Likewise.
15012 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
15013
15014 * cfgrtl.c: Update comments.
15015 (try_redirect_by_replacing_jump): New argument.
15016 (redirect_branch_edge): Break out from ...
15017 (rtl_redirect_edge_and_branch): ... this one.
15018 (update_cfg_after_block_merging): Break out from ...
15019 (rtl_merge_blocks): ... this one.
15020 (cfg_layout_split_edge): New.
15021 (cfg_layout_merge_blocks): New.
15022 (cfg_layout_can_merge_blocks_p): New.
15023 (cfg_layout_redirect_edge_and_branch): Reorganize.
15024 (cfg_layout_rtl_cfg_hooks): Fill in.
15025 (cfg_layout_delete_block): Kill barriers.
15026 * cfganal.c (can_fallthru): Deal with exit blocks
15027 * cfglayout.c (cfg_layout_function_header): New function
15028 (record_effective_endpoints): Record function header.
15029 (fixup_reorder_chain): Fixup dead jumptables; place header
15030
15031 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
15032 * bb-reorder.c (cfg_layout_initialize): Update call.
15033 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
15034 edges in cfglayout mode.
15035 * cfglayout.c (cleanup_unconditional_jumps): Kill.
15036 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
15037 * cfglayout.h (cfg_layout_initialize): Update prototype.
15038 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
15039 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
15040 * flow.c (propagate_block): Do not crash when basic block ends
15041 by first insn in the chain.
15042 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
15043 do loop discovery.
15044 * tracer.c (tracer): Update call of cfg_layout_initialize.
15045
15046 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15047
15048 * Makefile.in: Use dependency variables in lieu of explicit
15049 files throughout.
15050
15051 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
15052
15053 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
15054 * tree.h: ...to here.
15055
15056 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
15057
15058 * config/s390/2064.md: Fix comment typos.
15059 * config/s390/2084.md: Likewise.
15060 * config/s390/s390.c: Likewise.
15061 * config/s390/s390.md: Likewise.
15062 * config/sh/sh.c: Likewise.
15063 * config/sh/sh.h: Likewise.
15064 * config/sh/sh.md: Likewise.
15065 * config/sparc/sparc.c: Likewise.
15066 * config/sparc/sparc.h: Likewise.
15067 * config/sparc/sparc.md: Likewise.
15068 * config/stormy16/stormy16.c: Likewise.
15069 * config/stormy16/stormy16.h: Likewise.
15070 * config/stormy16/stormy-abi: Fix a typo.
15071
15072 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
15073
15074 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
15075
15076 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15077
15078 * config/mips/mips.h (save_argv): Delete.
15079
15080 2003-07-03 Roger Sayle <roger@eyesopen.com>
15081
15082 PR target/10700
15083 * fold-const.c (extract_muldiv_1): There's nothing that can be done
15084 if the expression is a SAVE_EXPR.
15085
15086 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
15087
15088 * config/m32r/m32r.c: Fix comment typos.
15089 * config/m68hc11/m68hc11.c: Likewise.
15090 * config/m68hc11/m68hc11.h: Likewise.
15091 * config/m68k/m68k.c: Likewise.
15092 * config/mcore/mcore.c: Likewise.
15093 * config/mcore/mcore.h: Likewise.
15094 * config/mcore/mcore.md: Likewise.
15095 * config/mips/mips.c: Likewise.
15096 * config/mips/mips.h: Likewise.
15097 * config/mips/mips.md: Likewise.
15098 * config/mips/netbsd.h: Likewise.
15099 * config/mn10300/mn10300.c: Likewise.
15100
15101 2003-07-03 Andreas Schwab <schwab@suse.de>
15102
15103 * dbxout.c (pending_bincls): Move decl down inside
15104 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
15105
15106 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
15107
15108 * rtl.h (NOTE_DATA): Refer to whole union.
15109 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
15110
15111 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
15112
15113 PR optimization/11381
15114 * simplify-rtx.c (simplify_relational_operation): Check that
15115 two equal operands have no side-effects before simplifying
15116 the comparison.
15117
15118 2003-07-02 Jeff Law <law@redhat.com>
15119
15120 * expr.c (do_store_flag): Remove special case folding for
15121 single bit tests. Instead call back into the commonized folder
15122 routine.
15123 * fold-const.c (fold_single_bit_test): New function, mostly
15124 extracted from do_store_flag, with an additional case extracted
15125 from fold.
15126 (fold): Call fold_single_bit_test appropriately.
15127 * tree.h (fold_single_bit_test): Prototype.
15128
15129 2003-07-02 Zack Weinberg <zack@codesourcery.com>
15130
15131 * system.h: Include filenames.h.
15132 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
15133 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
15134 define based on HAVE_DOS_BASED_FILE_SYSTEM.
15135 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
15136 * config/i386/xm-mingw32.h: Don't define
15137 HAVE_DOS_BASED_FILE_SYSTEM,
15138 DIR_SEPARATOR, or DIR_SEPARATOR_2.
15139 * doc/hostconfig.texi: Update to match.
15140
15141 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
15142 config/i386/cygwin.h:
15143 Use IS_ABSOLUTE_PATH throughout.
15144 * gcc.c (DIR_UP): Delete, unused.
15145 * protoize.c (IS_SAME_PATH): Define in terms of
15146 FILENAME_CMP.
15147 (is_abspath): Delete.
15148
15149 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
15150
15151 * config/i386/emmintrin.h: Fix comment typos.
15152 * config/i386/i386.c: Likewise.
15153 * config/i386/i386.h: Likewise.
15154 * config/i386/sco5.h: Likewise.
15155 * config/ia64/ia64.c: Likewise.
15156 * config/ia64/itanium2.md: Likewise.
15157
15158 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
15159
15160 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
15161 DBX_USE_BINCL.
15162 (emit_bincl_stab): Same.
15163 (emit_pending_bincls): Same.
15164
15165 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
15166
15167 * config/h8300/h8300.c (compute_mov_length): Fix the length of
15168 loading CONST0_RTX (SFmode).
15169 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
15170 'G' to CONST0_RTX (SFmode).
15171 * config/h8300/h8300.md (movsf_h8300): Change the first
15172 constraint to 'G'.
15173 (movsf_h8300h): Likewise.
15174
15175 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
15176
15177 * c-common.h (c_common_init_options): New prototype.
15178 * c-opts.c (deferred_size): Remove.
15179 (defer_opt): Array is now pre-allocated.
15180 (c_common_init_options): Pre-allocate deferred_opts. Make
15181 lang_flags unsigned.
15182 (push_command_line_options): Free deferred_opts.
15183 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
15184 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
15185 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
15186 * langhooks.h (struct lang_hooks): New prototype for init_options.
15187 * main.c (main): Cast argv.
15188 * opts.c (handle_option, handle_options): Update prototypes.
15189 (decode_options): save_argc, save_argv are not global. Constify.
15190 * opts.h (decode_options): New prototype.
15191 * toplev.c (general_init): New protoype.
15192 (save_argv): Make static.
15193 (save_argc): Remove.
15194 (print_switch_values, general_init): Constify.
15195 (toplev_main): Save argv.
15196 * toplev.h (toplev_main): Update prototype.
15197 (save_argc, save_argv): Remove.
15198
15199 2003-07-02 David Edelsohn <edelsohn@gnu.org>
15200
15201 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
15202 (emit_bincl_stab): Same.
15203 (emit_pending_bincls): Same.
15204
15205 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
15206
15207 PR c++/11072
15208 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
15209
15210 2003-07-02 Andreas Schwab <schwab@suse.de>
15211
15212 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
15213
15214 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
15215
15216 PR optimization/11210
15217 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
15218 about the behaviour with regard to bitfields.
15219 * fold-const (decode_field_reference): Record outermost type in
15220 case the expression is a NOP. Strip all NOPs. Set the signedness
15221 to that of the outermost type (if any) when the bitsize is equal
15222 to the size of the type.
15223
15224 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
15225
15226 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
15227 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
15228 (adddi3_internal_3, addsi3_internal_2): Likewise.
15229
15230 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
15231
15232 * config/mips/mips.c (machine_function): Add new fields:
15233 ignore_hazard_length_p and all_noreorder_p.
15234 (mips_flag_delayed_branch): New variable.
15235 (override_options): Treat '/' as an operand punctuation character.
15236 Set up mips_flag_delayed_branch.
15237 (print_operand): Handle '/'.
15238 (mips_output_function_prologue): Put the whole function in
15239 .set noreorder and .set nomacro if all_noreorder_p is true.
15240 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
15241 (mips16_optimize_gp): Remove "first insn" parameter.
15242 (mips16_lay_out_constants): New function, split out from mips_reorg.
15243 (mips_avoid_hazard, mips_avoid_hazards): New functions.
15244 (mips_reorg): For mips16 code, call mips16_lay_out_constant
15245 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
15246 do delayed-branch scheduling followed by hazard detection.
15247 (mips_adjust_insn_length): Only account for hazards if
15248 !ignore_hazard_length_p.
15249 (mips_output_load_label): Add a nop to the o32 sequence if
15250 the target suffers from load delays.
15251 (mips_output_conditional_branch): Add %/ to the end of branches.
15252 (mips_output_division): Fill the branch delay slot with %#.
15253 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
15254 instructions. End all other %* branches with %/.
15255 (ffssi2, ffsdi2): Fix lengths.
15256 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
15257 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
15258 (fix_truncsfsi2_macro): Likewise.
15259 (mov_lwl): Set hazard to "none".
15260 (ashldi3_internal): Fill the branch delay slot with %#.
15261 (ashrdi3_internal, lshrdi3_internal): Likewise.
15262 (exception_receiver): Explicitly set $28.
15263 (hazard_nop): New pattern.
15264
15265 2003-07-02 Jan Hubicka <jh@suse.cz>
15266
15267 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
15268 before calling tree_inlinable_function_p.
15269
15270 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15271
15272 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
15273 <internal/stdio_core.h> too.
15274 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
15275 <internal/wchar_core.h> too.
15276 Substitute va_list uses in inline definition.
15277 * fixinc/fixincl.x: Regenerate.
15278
15279 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15280
15281 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
15282 Undef before redefinition.
15283 (LABEL_AFTER_LOC): Likewise.
15284 (DEFAULT_SIGNED_CHAR): Likewise.
15285 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
15286 Fix IRIX spelling.
15287
15288 * config/mips/iris3.h: Remove, unused.
15289 * config/mips/iris4.h: Likewise.
15290
15291 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
15292
15293 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
15294 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
15295 target_cpu_default.
15296
15297 * config/mips/iris5.h: Move explicit includes ...
15298 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
15299
15300 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
15301 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
15302 tm_defines.
15303
15304 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
15305 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
15306 target_cpu_default.
15307
15308 * config/mips/iris6.h: Fix IRIX spelling.
15309 (MULTILIB_DEFAULTS): Undef before redefinition.
15310
15311 * config/mips/iris6.h: Move explicit includes ...
15312 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
15313
15314 2003-07-02 Jan Hubicka <jh@suse.cz>
15315
15316 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
15317 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
15318 Use next_needed field instead of aux to maintain the queue.
15319 * cgraph.h (cgraph_node): Add next_needed.
15320 (cgraph_varpool_node): Add next_needed; remove aux.
15321 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
15322
15323 2003-07-02 Jan Hubicka <jh@suse.cz>
15324
15325 * cgraphunit.c (cgraph_finalize_function): Set finalized.
15326 (cgraph_finalize_function): Do not examine inlinablility.
15327 (cgraph_finalize_compilation_unit): Do it here.
15328 * cgraph.h (cgraph_local_info): Add finalized field.
15329
15330 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15331
15332 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
15333 (gt_pch_restore): Likewise.
15334
15335 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
15336
15337 * config/alpha/alpha.c: Fix comment typos.
15338 * config/alpha/elf.h: Likewise.
15339 * config/arm/arm.c: Likewise.
15340 * config/arm/arm.h: Likewise.
15341 * config/arm/arm.md: Likewise.
15342 * config/arm/t-arm-coff: Likewise.
15343 * config/arm/t-strongarm-pe: Likewise.
15344 * config/arm/xscale-elf.h: Likewise.
15345 * config/avr/avr.h: Likewise.
15346
15347 2003-07-01 Jeff Law <law@redhat.com>
15348
15349 * stmt.c (any_pending_cleanups): Remove another redundant test.
15350
15351 2003-07-01 David Edelsohn <edelsohn@gnu.org>
15352 J"orn Rennecke <joern.rennecke@superh.com>
15353
15354 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
15355 for MEM case.
15356
15357 2003-07-01 Devang Patel <dpatel@apple.com>
15358
15359 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
15360 (binclstatus): New.
15361 (struct dbx_file): New members - bincl_status, pending_bincl_name and
15362 prev.
15363 (pending_bincls): New.
15364 (dbxout_init): Initialize new dbx_file members.
15365 (dbxout_start_source_file): Same.
15366 (emit_bincl_stab): New function.
15367 (emit_pending_bincls): Same.
15368 (emit_pending_bincls_if_required): Same.
15369 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
15370 processed.
15371 (dbxout_begin_block): Emit pending BINCL stabs.
15372 (dbxout_end_block): Same.
15373 (dbxout_function_decl): Same.
15374 (dbxout_continue): Same.
15375 (dbxout_type): Same.
15376 (dbxout_class_name_qualifiers): Same.
15377 (dbxout_symbol): Same.
15378 (dbxout_symbol_location): Same.
15379 (dbxout_parms): Same.
15380
15381 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15382
15383 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
15384 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
15385
15386 2003-07-01 Andreas Jaeger <aj@suse.de>
15387
15388 * fold-const.c: Convert prototypes to ISO C90.
15389 * function.c: Likewise.
15390 * function.h: Likewise.
15391
15392 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
15393
15394 * doc/contrib.texi: Fix typos.
15395 * doc/invoke.texi: Likewise.
15396 * doc/passes.texi: Likewise.
15397 * doc/sourcebuild.texi: Likewise.
15398 * doc/tm.texi: Likewise.
15399
15400 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
15401
15402 * basic-block.h: Fix comment typos.
15403 * bb-reorder.c: Likewise.
15404 * c-format.c: Likewise.
15405 * cfgcleanup.c: Likewise.
15406 * cfghooks.h: Likewise.
15407 * cfgloop.c: Likewise.
15408 * cfgloopmanip.c: Likewise.
15409 * cfgrtl.c: Likewise.
15410 * cgraph.h: Likewise.
15411 * cgraphunit.c: Likewise.
15412 * combine.c: Likewise.
15413 * convert.c: Likewise.
15414 * dbxout.c: Likewise.
15415 * df.c: Likewise.
15416 * df.h: Likewise.
15417 * diagnostic.c: Likewise.
15418 * dwarf2out.c: Likewise.
15419 * et-forest.h: Likewise.
15420 * flow.c: Likewise.
15421 * fold-const.c: Likewise.
15422 * function.h: Likewise.
15423 * gcov-io.h: Likewise.
15424 * gcov.c: Likewise.
15425 * gcse.c: Likewise.
15426 * genautomata.c: Likewise.
15427 * ggc-common.c: Likewise.
15428 * ggc-page.c: Likewise.
15429 * loop-unroll.c: Likewise.
15430 * loop-unswitch.c: Likewise.
15431 * loop.c: Likewise.
15432 * mips-tfile.c: Likewise.
15433 * optabs.c: Likewise.
15434 * ra-build.c: Likewise.
15435 * ra-colorize.c: Likewise.
15436 * ra-rewrite.c: Likewise.
15437 * ra.h: Likewise.
15438 * regmove.c: Likewise.
15439 * reload.c: Likewise.
15440 * rtlanal.c: Likewise.
15441 * sched-ebb.c: Likewise.
15442 * sched-int.h: Likewise.
15443 * sched-vis.c: Likewise.
15444 * sreal.c: Likewise.
15445 * ssa-ccp.c: Likewise.
15446 * ssa.c: Likewise.
15447 * toplev.c: Likewise.
15448 * tree-inline.c: Likewise.
15449 * value-prof.c: Likewise.
15450 * value-prof.h: Likewise.
15451
15452 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
15453
15454 * rtl.h (emit_line_note_after): Remove.
15455 (emit_note_copy_after, emit_note_copy): New.
15456 * emit-rtl.c (reorder_insns_with_line_notes): Replace
15457 emit_line_note_after with emit_note_copy_after.
15458 (emit_insn_after_with_line_notes): Likewise.
15459 (emit_line_note_after): Kill.
15460 (emit_note_copy_after): New.
15461 (emit_note_copy): New.
15462 * function.c (emit_return_into_block): Use emit_note_copy_after.
15463 (thread_prologue_and_epilogue_insns): Likewise.
15464 * integrate.c (expand_inline_function): Use emit_note_copy.
15465 (copy_insn_list): Likewise.
15466 * unroll.c (copy_loop_body): Likewise.
15467 * cfglayout.c (duplicate_insn_chain): Likewise.
15468
15469 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
15470
15471 * c-tree.h (define_label): Replace filename and lineno arguments
15472 with a location_t.
15473 * c-decl.c (poplevel): Adjust define_label call.
15474 (pop_label_level): Likewise.
15475 (define_label): Replace filename and lineno arguments with a
15476 location_t.
15477 (store_parm_decls): Use DECL_SOURCE_LOCATION.
15478 * c-parse.in (label): Adjust define_label call.
15479
15480 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
15481
15482 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
15483 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
15484 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
15485 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
15486 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
15487
15488 2003-07-01 Andreas Jaeger <aj@suse.de>
15489
15490 * final.c: Convert prototypes to ISO C90.
15491 * flow.c: Likewise.
15492 * flags.h: Likewise.
15493 * gcov-io.c: Likewise.
15494 * gcov-io.h: Likewise.
15495
15496 See ChangeLog.9 for earlier changes.