frv.c (frv_use_dfa_pipeline_interface): New function.
[gcc.git] / gcc / ChangeLog
1 2003-10-02 Richard Sandiford <rsandifo@redhat.com>
2
3 * config/frv/frv.c (frv_use_dfa_pipeline_interface): New function.
4 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
5
6 2003-10-01 Per Bothner <pbothner@apple.com>
7
8 * c-lex.c (src_line): Remove unneeded static variable.
9 (cb_line_change): Set input_line directly, instead of src_line.
10 (get_non_padding_token): We no longer need to compensate for the
11 "horrible things" the C++ front-end does with the current line number,
12
13 * cpplib.c (_cpp_pop_buffer): Do generate a _cpp_do_file_change
14 callback even when popping the main file.
15 * c-lex.c (fe_file_change): Handle a NULL new_map.
16 * fix-header.c (cb_file_change): Likewise.
17 * c-ppoutput.c (pp_file_change): Likewise.
18
19 * cppinit.c (cpp_read_main_file): Split into two functions:
20 Distribute _cpp_stack_file call over the two functions.
21 (cpp_find_main_file): New function.
22 Don't call _cpp_do_file_change even if working_directory flag set.
23 (cpp_push_main_file): New function.
24 * cppfiles.c (_cpp_find_failed): New helper function.
25 (find_file): Made non-static and renamed to _cpp_find_file.
26 (_cpp_stack_file): No longer needed. But note the following.
27 (stack_file): Made non-static and renamed to _cpp_stack_file.
28 * fix-header.c (cpp_read_main_file): Replace cpp_read_main_file
29 call with calls to cpp_find_main_file and cpp_push_main_file.
30 (search_path_head): If there is no current buffer, use main_file.
31 * cpphash.h: Update function declarations.
32 * cpplib.h: Update function declarations.
33
34 * c-opts.c (c_common_post_options): Don't call cpp_find_main_file yet.
35 (c_common_parse_file): No longer need to call cpp_read_main_file
36 when file_index > 0 (as in multi-file or server compiation).
37 (finish_options): Change to <built-in> is an LC_ENTER, not LC_RENAME
38 as this now happens before cpp_push_main_file.
39 (push_command_line_include): When done with options, pass LC_LEAVE
40 instead of LC_RENAME to cpp_change_file and finally cpp_push_main_file.
41 (fe_file_change): Handle NULL new_map, and simplify.
42 * cpplex.c (_cpp_get_fresh_line): Revert my no-longer-needed
43 08-28 change, since we're never called with a NULL buffer.
44 (_cpp_lex_direct): Likewise.
45 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
46 Return false if buffer is NULL at end.
47
48 * cpplex.c (_cpp_get_fresh_line): Return value now just depends on
49 whether pfile->buffer is NULL after pop, ignoring return_at_eof.
50 * cpphash.h (struct cpp_buffer): Remove unused return_at_eof field.
51 * cpplib.c (cpp_push_buffer): Since we no longer set return_at_eof,
52 remove the unused return_at_eof parameter.
53 * cppfiles.c, cpplib.c, cppmacro.c, cpppch.c, fix-header.c:
54 Update callers of cpp_push_buffer.
55
56 2003-10-01 Zack Weinberg <zack@codesourcery.com>
57
58 * target.h (init_libfuncs): New hook.
59 * target-def.h: Default TARGET_INIT_BUILTINS and
60 TARGET_INIT_LIBFUNCS to hook_void_void. Add
61 TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER.
62 * builtins.c (default_init_builtins): Delete.
63 * expr.h (default_init_builtins): Delete prototype.
64 * doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST.
65 Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL.
66 Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL,
67 DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL,
68 MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL,
69 and UMODDI3_LIBCALL,
70
71 * Makefile.in (optabs.o): Depends on target.h.
72 * defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL.
73 * optabs.c: Include target.h.
74 (prepare_float_lib_cmp): No need for #ifdef around use of
75 FLOAT_LIB_COMPARE_RETURNS_BOOL.
76 (set_optab_libfunc): New function.
77 (init_optabs): Delete use of all *_LIBCALL defines.
78 Call targetm.init_libfuncs not INIT_TARGET_OPTABS.
79 * optabs.h: Prototype set_optab_libfunc.
80
81 * config.gcc: Remove all references to pa/long_double.h,
82 ia64/hpux_longdouble.h, and gofast.h.
83 (mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST
84 to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file.
85
86 * config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c
87 * config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c
88 * config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c
89 * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
90 * config/sparc/sparc.c, config/vax/vax.c:
91 Provide a definition for TARGET_INIT_LIBFUNCS. Where
92 necessary, include optabs.h, libfuncs.h, and/or config/gofast.h.
93
94 * config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h
95 * config/avr/avr.h, config/cris/cris.h, config/frv/frv.h
96 * config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h
97 * config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h
98 * config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h
99 * config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h
100 * config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h
101 * config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS,
102 INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros.
103
104 * config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0.
105 Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
106 * config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE,
107 HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
108 * config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete.
109
110 * config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC.
111 * config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and
112 SUN_INTEGER_MULTIPLY_64 to 0.
113 * config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and
114 SUN_INTEGER_MULTIPLY_64 to 1.
115 * config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and
116 SUN_INTEGER_MULTIPLY_64 to 0.
117 * config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h:
118 Define US_SOFTWARE_GOFAST.
119 * config/vax/vax.h: Default TARGET_ELF to 0.
120 * config/vax/elf.h: Redefine TARGET_ELF to 1.
121
122 * config/gofast.h: Don't define any macros here. Provide one
123 static function, gofast_maybe_init_libfuncs, which does what
124 INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST
125 is already defined. Do not clear negation libfuncs. Do
126 not mess with HFmode, XFmode, or TFmode libfuncs.
127
128 * config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME.
129
130 2003-10-01 Kelley Cook <kelleycook@wideopenwest.com>
131
132 PR C/12466
133 * c-parse.in (parmlist_2): Mark declaration with an ellipsis as ISO C.
134
135 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
136
137 * config/mips/xm-iris5.h: Remove, unnecessary.
138 * config.build (mips-sgi-irix5*): Remove.
139 (mips-sgi-irix6*o32): Likewise.
140 * config.gcc (mips-sgi-irix6*o32): Remove xm_file.
141 (mips-sgi-irix5cross64): Likewise.
142 (mips-sgi-irix5*): Likewise.
143 * config.host (mips-sgi-irix5*): Remove.
144 (mips-sgi-irix6*o32): Likewise.
145
146 2003-10-01 Zack Weinberg <zack@codesourcery.com>
147
148 * dbxout.c (dbxout_fptype_value): Delete.
149 (dbxout_type): Emit R3 for all COMPLEX_TYPEs.
150
151 2003-10-01 Alexandre Oliva <aoliva@redhat.com>
152
153 * output.h (compute_reloc_for_constant): Declare.
154 * varasm.c (compute_reloc_for_constant): Extract from...
155 (output_addressed_constants): ... here. Adjust all callers.
156
157 2003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
158
159 * aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
160 * configure: Rebuilt.
161
162 2003-10-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
163
164 * fold-const.c (make_range): When handling unsigned, don't reverse
165 range if high bound is zero.
166
167 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
168
169 * config/frv/frv.h (PREDICATE_CODES): Added
170 condexec_si_media_operator, condexec_sf_add_operator and
171 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
172 and condexec_sf_unary_operator.
173
174 2003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
175
176 * aclocal.m4: Add ultrix* to /dev/zero blacklist.
177 * configure: Rebuilt.
178
179 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
180
181 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.
182 Allow override.
183 * doc/tm.texi (MUST_USE_SJLJ_EXCEPTIONS): Document.
184
185 2003-09-23 David S. Miller <davem@redhat.com>
186
187 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine
188 before redefining.
189 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
190
191 2003-10-01 Steven Bosscher <steven@gcc.gnu.org>
192
193 * config/cris/cris-protos.h, config/cris/cris.c: Convert to ISO
194 C90 function declarations and definitions.
195
196 2003-10-01 Nathanael Nerode <neroden@gcc.gnu.org>
197
198 * config.gcc (cris-*-linux*): Revert mistaken commit.
199
200 2003-10-01 Eric Botcazou <ebotcazou@libertysurf.fr>
201
202 PR optimization/11753
203 * config/sparc/sparc.md (length attribute) [fcc branch]: Add 1 to
204 the length in the non-V9 case.
205
206 2003-09-30 Richard Henderson <rth@redhat.com>
207
208 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor
209 DWARF_ALT_FRAME_RETURN_COLUMN.
210 * unwind-dw2.c (dwarf_reg_size_table): Expand by one.
211 (_Unwind_GetGR, _Unwind_SetGR): Validate lookup column.
212 (uw_frame_state_for): Return end-of-stack for null return address.
213 * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Add.
214
215 * config/alpha/alpha.c (alpha_sa_mask): Add r31 for eh_return.
216 (alpha_expand_prologue): Store a zero for it.
217 (alpha_expand_epilogue): Don't reload it.
218 * config/alpha/alpha.h (DWARF_ALT_FRAME_RETURN_COLUMN): New.
219 * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Use column 64
220 for the sigframe return address.
221
222 2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
223
224 * sdbout.c: Convert to ISO C90 prototypes.
225 * objc/objc-act.c: Likewise.
226
227 2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
228
229 * config/i386/cygwin1.c: Convert to ISO C90 prototypes.
230 * config/i386/winnt.c: Likewise.
231 * config/i386/cygming.h: Likewise.
232
233 2003-09-30 Kazu Hirata <kazu@cs.umass.edu>
234
235 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
236 (A ^ B) - B for any B.
237
238 2003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
239
240 * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
241 powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto.
242
243 2003-09-30 Richard Earnshaw <rearnsha@arm.com>
244
245 * arm/ieee754-sf.S: Tidy formatting.
246
247 2003-09-30 Nicolas Pitre <nico@cam.org>
248
249 * arm/lib1funcs.asm (ARM_DIV_MOD_BODY): Split into ARM_DIV_BODY
250 and ARM_MOD_BODY.
251 (ARM_MOD_BODY): Rewritten. added clz insns for __ARM_ARCH__ >= 5.
252 (ARM_DIV_BODY): Added clz insns for __ARM_ARCH__ >= 5,
253 added better divisor alignment in the other case.
254 (ARM_DIV2_ORDER): Added, finds the order of a single bit divisor.
255 (__divsi3, __udivsi3, __modsi3, __umodsi3): rewritten using the
256 macros above, add fast exits for divisor >= dividend, etc.
257
258 2003-09-30 Nicolas Pitre <nico@cam.org>
259
260 * arm/ieee754-df.S: Split compilation of fixunsdfsi from
261 L_fixdfsi target.
262 * arm/t-arm-elf (LIB1ASMFUNCS): Add _fixunsdfsi.
263
264 2003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
265
266 * config.gcc: Default use_fixproto to 'no'.
267
268 2003-09-30 Richard Sandiford <rsandifo@redhat.com>
269
270 PR optimization/12345
271 * config/mips/mips-protos.h (mips_restore_gp): Remove.
272 (mips_gp_save_slot): Declare.
273 * config/mips/mips.c (mips_restore_gp): Remove in favor of...
274 (mips_gp_save_slot): ...this new function.
275 * config/mips/mips.md (exception_receiver): Use mips_gp_save_slot
276 and mips_output_move to generate the output template.
277 (call_internal): Force splitting if TARGET_SPLIT_CALLS. Don't emit
278 a gp load after a noreturn call. Load the gp using a move rather
279 than an exception_receiver pattern.
280 (call_value_internal, call_value_multiple_internal): Likewise.
281 (call_split, call_value_split, call_value_multiple_split): Clobber $28.
282
283 2003-09-30 Carlo Wood <carlo@alinoe.com>
284
285 PR debug/12319
286 * cfglayout.c (insn_scope): Use prologue_locator and
287 epilogue_locator; return the outer function scope for
288 pro- and epilogue insns.
289
290 2003-09-29 Zack Weinberg <zack@codesourcery.com>
291
292 * objc/objc-act.c (encode_type): Encode INTEGER_TYPEs and
293 REAL_TYPEs based on the bitsize of the type's mode, not the
294 mode directly.
295
296 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
297
298 * dwarf2out.c (default_eh_frame_section): Split into ...
299 (named_section_eh_frame_section, collect2_eh_frame_section): ... new
300 functions.
301 * output.h (named_section_eh_frame_section): Declare.
302 (collect2_eh_frame_section): Likewise.
303
304 2003-09-29 Zack Weinberg <zack@codesourcery.com>
305
306 * real.c (real_sqrt): Use get_canonical_qnan directly.
307
308 * dwarf2out.c (add_const_value_attribute): Use real_to_target.
309
310 * varasm.c (assemble_real): Use real_to_target directly,
311 calculate the number of significant elements of the result
312 array and write them out in a loop, instead of using a giant
313 switch statement to pick the correct REAL_VALUE_TO_TARGET_*
314 macro.
315
316 Mon Sep 29 22:59:05 CEST 2003 Jan Hubicka <jh@suse.cz>
317
318 PR c++/12175
319 * varasm.c (notice_global_symbol): Discard external symbols.
320
321 PR optimization/12286
322 * gcov-io.c (gcov_read_words): Fix memmove call.
323 * profile.c (compute_branch_probabilities): Add extra sanity checks.
324
325 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
326
327 * config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like
328 Solaris 7-9.
329
330 * fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by
331 wildcards which explicitly match micro versions.
332 * fixinc/fixincl.x: Regenerate.
333
334 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
335
336 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
337 (A ^ B) - B, where B is any power of 2 minus 1.
338
339 Mon Sep 29 19:05:46 CEST 2003 Jan Hubicka <jh@suse.cz>
340
341 * libgcov.c (gcov_exit): Fix two pastos.
342
343 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
344
345 * config/h8300/h8300.md (*tst_extzv_1_n): Combine with the
346 define_split immediately below to form define_insn_and_split.
347
348 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
349
350 * config/h8300/h8300.md (*tstsi_variable_bit): New.
351 (*tstsi_variable_bit_qi): Likewise.
352
353 2003-09-28 Phil Edwards <phil@codesourcery.com>
354
355 * doc/cppopts.texi: Use 'dashMP' instead of '-MP' as a cross-
356 reference name.
357
358 2003-09-28 Richard Henderson <rth@redhat.com>
359
360 * c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
361 file and line separately.
362
363 2003-09-28 Ulrich Weigand <uweigand@de.ibm.com>
364
365 * config/s390/s390.md ("*adddi3_carry1_cc", "*adddi3_carry1_cconly",
366 "*adddi3_carry2_cc", "*adddi3_carry2_cconly", "*subdi3_borrow_cc",
367 "*subdi3_borrow_cconly"): New insns.
368 ("*addsi3_sub", "*subsi3_sub"): Remove.
369 ("*subdi3_cc", *subdi3_cconly"): Use only if TARGET_64BIT.
370 ("*subsi3_cc"): Fix op_type attribute.
371
372 2003-09-28 Richard Henderson <rth@redhat.com>
373
374 * stmt.c (expand_asm_operands): Take a location_t, instead of
375 individual file and line.
376 * c-typeck.c (c_expand_asm_operands): Likewise.
377 * tree.h (expand_asm_operands): Update decl.
378 * c-common.h (c_expand_asm_operands): Likewise.
379 * c-semantics (genrtl_asm_stmt): Update call.
380
381 2003-09-28 Philip Blundell <philb@gnu.org>
382
383 * config/arm/arm.c (legitimize_pic_address): Check
384 SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
385 (arm_assemble_integer): Likewise.
386
387 2003-09-28 Steven Bosscher <steven@gcc.gnu.org>
388
389 * config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
390 config/c4x/c4x-c.c, config/c4x/c4x-protos.h, config/c4x/c4x.c,
391 config/c4x/c4x.h:
392 Convert to ISO C90 function declarations and definitions.
393
394 2003-09-28 Steven Bosscher <steven@gcc.gnu.org>
395
396 * config/stormy16/stormy16.c, config/stormy16/stormy16-protos.h:
397 Convert to ISO C90 function declarations and definitions.
398
399 2003-09-28 Richard Sandiford <rsandifo@redhat.com>
400
401 * config/mips/mips.c (mips_constant_info): Add reloc field.
402 (mips_classify_constant): Initialize it. Always set SYMBOL to the
403 underlying symbol, not to an unspec.
404 (mips_delegitimize_address, print_operand): Clean up accordingly.
405
406 2003-09-28 Richard Sandiford <rsandifo@redhat.com>
407
408 * config/mips/mips-protos.h (mips16_gp_pseudo_reg): Remove.
409 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Remove orphaned comment.
410 * config/mips/mips.c (mips_reloc_offset_ok_p): New function.
411 (mips_classify_constant): Use it.
412 (mips_splittable_symbol_p): Add an offset argument.
413 (mips_classify_address): Adjust call accordingly.
414 (mips_legitimize_symbol): Handle sdata references with LO_SUM rather
415 than a relocation unspec. Update call to mips_splittable_symbol_p.
416 Generalize the code that copes with symbols + invalid offsets.
417 (print_operand): Allow '%R' to be applied to small data addresses.
418 (mips_reloc_string): Remove RELOC_GPREL16.
419 (mips_sdata_pointer): Renamed from mips16_gp_pseudo_reg. Return $gp
420 for TARGET_EXPLICIT_RELOCS. Return null if we can't use gp-relative
421 relocation operators.
422 * config/mips/mips.md (RELOC_GPREL16): Remove. Shuffle other reloc
423 constants accordingly.
424
425 2003-09-27 Roger Sayle <roger@eyesopen.com>
426
427 * toplev.c (flag_evaluation_order): New global variable.
428 * flags.h (flag_evaluation_order): Prototype here.
429 * expr.c (expand_operands): If we need to preserve observable
430 evaluation order, protect exp1 from clobbering exp0's result.
431
432 2003-09-28 Andreas Jaeger <aj@suse.de>
433
434 * c-decl.c (finish_function): Convert definition to ISO C90.
435 * ifcvt.c (mark_loop_exit_edges): Likewise.
436 * ra-rewrite.c (emit_colors): Likewise.
437
438 2003-09-27 Nathanael Nerode <neroden@gcc.gnu.org>
439
440 * config.gcc (alpha*-dec-osf[45]*): Disable fixproto.
441 * config.gcc (arm*-*-uclinux*): Disable fixproto.
442 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
443 powerpc-*-eabialtivec*): Disable fixproto.
444
445 2003-09-27 Eric Botcazou <ebotcazou@libertysurf.fr>
446
447 PR optimization/12340
448 * loop.h (struct induction): Document the new semantics
449 of the 'same' field for bivs.
450 * unroll.c (biv_total_increment): Don't count the same
451 biv increment several times.
452 (loop_iterations) [GENERAL_INDUCT]: Likewise.
453
454 2003-09-27 Graham Stott <graham.stott@btinternet.com>
455
456 * unroll.c (loop_interations)[GT]: Add missing break.
457
458 2003-09-27 Kelley Cook <kcook@gcc.gnu.org>
459
460 * config/chorus.h, config/darwin-c.c, config/darwin-protos.h,
461 config/darwin.c, config/darwin.h, config/dbx.h, config/dbxcoff.h,
462 config/dbxelf.h, config/elfos.h, config/fp-bit.h,
463 config/freebsd-nthr.h, config/freebsd-spec.h, config/freebsd.h,
464 config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
465 config/freebsd6.h, config/netbsd-aout.h, config/netbsd-elf.h,
466 config/netbsd.h, config/netware.h, config/openbsd-oldgas.h,
467 config/openbsd.h, config/ptx4.h, config/alpha/alpha-protos.h,
468 config/alpha/alpha.c, config/alpha/alpha.h, config/alpha/alpha.md,
469 config/alpha/elf.h, config/alpha/ev4.md, config/alpha/ev5.md,
470 config/alpha/ev6.md, config/alpha/freebsd.h, config/alpha/linux-elf.h,
471 config/alpha/linux.h, config/alpha/netbsd.h, config/alpha/openbsd.h,
472 config/alpha/osf.h, config/alpha/osf5.h, config/alpha/unicosmk.h,
473 config/alpha/vms-cc.c, config/alpha/vms-crt0-64.c,
474 config/alpha/vms-crt0.c, config/alpha/vms-dwarf2.asm,
475 config/alpha/vms-dwarf2eh.asm, config/alpha/vms-ld.c,
476 config/alpha/vms-psxcrt0-64.c, config/alpha/vms-psxcrt0.c,
477 config/alpha/vms.h, config/alpha/vms64.h, config/alpha/vms_tramp.asm,
478 config/alpha/xm-vms.h, config/arc/arc-modes.def,
479 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
480 config/arc/arc.md, config/arc/initfini.c, config/arc/lib1funcs.asm,
481 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
482 config/avr/avr.md, config/d30v/d30v-protos.h, config/d30v/d30v.h,
483 config/d30v/d30v.md, config/fr30/fr30-protos.h, config/fr30/fr30.c,
484 config/fr30/fr30.h, config/fr30/fr30.md, config/fr30/lib1funcs.asm,
485 config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
486 config/frv/frv-abi.h, config/frv/frv-asm.h, config/frv/frv-modes.def,
487 config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
488 config/frv/frv.md, config/frv/frvbegin.c, config/frv/frvend.c,
489 config/frv/lib1funcs.asm, config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
490 config/h8300/parityhi2.c, config/h8300/popcounthi2.c,
491 config/i370/i370-c.c, config/i370/i370-protos.h, config/i370/i370.c,
492 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
493 config/i370/mvs.h, config/i370/oe.h, config/i386/darwin.h,
494 config/i960/i960-c.c, config/i960/i960-coff.h,
495 config/i960/i960-modes.def, config/i960/i960-protos.h,
496 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
497 config/i960/rtems.h, config/ia64/elf.h, config/ia64/ia64.h,
498 config/m32r/initfini.c, config/m32r/m32r-protos.h, config/m32r/m32r.c,
499 config/m32r/m32r.h, config/m32r/m32r.md, config/m68hc11/larith.asm,
500 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
501 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
502 config/m68hc11/m68hc12.h, config/m68k/coff.h, config/m68k/crti.s,
503 config/m68k/crtn.s, config/m68k/hp320.h, config/m68k/hp320base.h,
504 config/m68k/lb1sf68.asm, config/m68k/linux.h, config/m68k/m68020-elf.h,
505 config/m68k/m68k-aout.h, config/m68k/m68k-none.h,
506 config/m68k/m68k-protos.h, config/m68k/m68k.c, config/m68k/m68k.h,
507 config/m68k/m68k.md, config/m68k/m68kelf.h, config/m68k/m68kv4.h,
508 config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
509 config/m68k/rtemself.h, config/m68k/sgs.h, config/mcore/lib1.asm,
510 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h,
511 config/mcore/mcore-protos.h, config/mcore/mcore.c,
512 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
513 config/mips/elforion.h, config/mips/iris5.h, config/mips/iris6.h,
514 config/mips/iris6gld.h, config/mips/irix6-libc-compat.c,
515 config/mips/linux.h, config/mips/mips-protos.h, config/mips/mips.c,
516 config/mips/mips.h, config/mips/mips.md, config/mips/netbsd.h,
517 config/mips/openbsd.h, config/mips/r3900.h, config/mips/rtems.h,
518 config/mips/vr.h, config/mn10300/linux.h,
519 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
520 config/mn10300/mn10300.h, config/mn10300/mn10300.md,
521 config/ns32k/__unorddf2.c, config/ns32k/__unordsf2.c,
522 config/ns32k/netbsd.h, config/ns32k/ns32k-protos.h,
523 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/ns32k/ns32k.md,
524 config/pdp11/2bsd.h, config/pdp11/pdp11-modes.def,
525 config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
526 config/pdp11/pdp11.h, config/pdp11/pdp11.md, config/rs6000/biarch64.h,
527 config/rs6000/default64.h, config/sh/coff.h, config/sh/crt1.asm,
528 config/sh/crti.asm, config/sh/crtn.asm, config/sh/elf.h,
529 config/sh/embed-elf.h, config/sh/linux.h, config/sh/little.h,
530 config/sh/netbsd-elf.h, config/sh/rtems.h, config/sh/rtemself.h,
531 config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
532 config/sh/sh.md, config/sh/sh64.h, config/sh/shmedia.h,
533 config/sh/sshmedia.h, config/sh/ushmedia.h, config/sparc/pbd.h,
534 config/sparc/sparc.h, doc/install-old.texi, fixinc/fixinc.ptx,
535 fixinc/fixinc.svr4: GNU CC -> GCC.
536
537 2003-09-26 Loren James Rittle <ljrittle@acm.org>
538
539 * objc/objc-act.c (tm_p.h): Tweak order.
540 * objc/Make-lang.in (objc/objc-act.o): Add $(TM_P_H).
541
542 2003-09-26 Nathanael Nerode <neroden@gcc.gnu.org>
543
544 * config.gcc (hppa*64*-*-linux* | parisc*64*-*-linux*):
545 Include t-slibgcc-elf-ver and t-linux in tmake_file.
546 * config.gcc (hppa*64*-*-linux* | parisc*64-*-linux*):
547 Disable fixproto.
548 * config.gcc (i960-*-coff*, m68k-*-aout*, sparclite-*-coff*):
549 Disable fixproto.
550 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*,
551 sparcv9-*-solaris2*, sparc-*-solaris2*): Disable fixproto.
552
553 * config/i386/unix.h: Remove (unused) DEFAULT_ASSEMBLER_DIALECT.
554
555 2003-09-26 Loren James Rittle <ljrittle@acm.org>
556
557 * config/i386/i386.h (ix86_return_in_memory): Revert my last patch.
558 * objc/objc-act.c (tm_p.h): Include.
559
560 2003-09-26 Per Bothner <pbothner@apple.com>
561
562 * dbxout.c (dbxout_typedefs): Output typedefs in forward order.
563 No longer any need to reverse by recursion.
564
565 2003-09-26 Roger Sayle <roger@eyesopen.com>
566 Richard Henderson <rth@redhat.com>
567
568 PR optimization/11741
569 * gcse.c (pre_insert_copy_insn): Tweak the logic for finding the
570 appropriate set to match that in hash_scan_insn. Fall back to
571 the original copy method, if we can't validate changing insn.
572 (pre_delete): Only delete instructions that have a single_set,
573 instead of aborting when we encounter an PARALLEL insn with more
574 then one SET.
575
576 2003-09-26 Andreas Krebbel <krebbel1@de.ibm.com>
577
578 * config/s390/s390.md ("builtin_setjmp_setup"): Insn deleted.
579 ("builtin_longjmp"): Insn deleted.
580 ("save_stack_nonlocal"): Save literal pool base pointer behind
581 backchain and stack pointer.
582 ("restore_stack_nonlocal"): Restore literal pool base pointer.
583 * config/s390/s390.h (STACK_SAVEAREA_MODE): Double size of
584 the stack save area for the nonlocal goto case.
585
586 2003-09-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
587
588 PR bootstrap/12358
589 * pa.c (output_bvb): Fix typo.
590
591 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
592
593 * expmed.c (store_bit_field): Don't search for an integer mode
594 unless we need the result.
595
596 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
597
598 * expr.c (emit_move_insn_1): If there is no move pattern for the
599 original mode, try using a pattern for the corresponding integer mode.
600
601 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
602
603 PR middle-end/9200
604 * combine.c (if_then_else_cond): Tighten mode check.
605
606 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
607
608 * cppcharset.c, cpphash.h: Rename 'struct strbuf' to
609 'struct _cpp_strbuf'.
610
611 * config/i386/netbsd-elf.h, config/i386/netbsd64.h,
612 config/i386/netware.h, config/i386/nto.h, config/i386/openbsd.h,
613 config/i386/pentium.md, config/i386/pmmintrin.h, config/i386/ppro.md,
614 config/i386/ptx4-i.h, config/i386/rtemself.h, config/i386/sco5.h,
615 config/i386/sol2.h, config/i386/svr3gas.h, config/i386/sysv3.h,
616 config/i386/sysv4-cpp.h, config/i386/sysv4.h, config/i386/sysv5.h,
617 config/i386/unix.h, config/i386/uwin.h, config/i386/vsta.h,
618 config/i386/xm-cygwin.h, config/i386/xm-djgpp.h,
619 config/i386/xm-mingw32.h, config/i386/xmmintrin.h: Replace
620 "GNU CC", "GNU compiler", and "GNU C-compiler" with "GCC".
621 * config/i386/i386-aout.h, config/i386/i386-coff.h,
622 config/i386/i386-interix.h, config/i386/i386-interix3.h,
623 config/i386/i386-modes.def, config/i386/i386-protos.h,
624 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
625 config/i386/i386elf.h, config/i386/k6.md, config/i386/kaos-i386.h,
626 config/i386/linux-aout.h, config/i386/linux.h, config/i386/linux64.h,
627 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
628 config/i386/mmintrin.h, config/i386/moss.h: GNU CC -> GCC.
629 "GNU compiler" -> GCC.
630 * config/i386/att.h, config/i386/beos-elf.h, config/i386/biarch64.h,
631 config/i386/bsd.h, config/i386/crtdll.h, config/i386/cygming.h,
632 config/i386/cygwin.h, config/i386/cygwin1.c, config/i386/cygwin2.c,
633 config/i386/darwin.h, config/i386/djgpp.h, config/i386/emmintrin.h,
634 config/i386/freebsd-aout.h, config/i386/freebsd.h,
635 config/i386/freebsd64.h, config/i386/gas.h: GNU CC -> GCC.
636
637 2003-09-25 Kelley Cook <kelleycook@wideopenwest.com>
638
639 * cgraph.c (dump_cgraph): Don't output newline before dump. Add in
640 "local" to the callgraph dump. Output "after inlining" earlier.
641 * cgraphunit.c: Fix dumpfile whitespace and commonize headers of the
642 callgraph dumps. Correct misspellings.
643 (cgraph_decide_inlining): Output number of insns before inlining.
644 Output the calling function into which a function is inlined.
645 (cgraph_decide_small_functions): Format dump file like always_inline.
646
647 2003-09-25 Loren James Rittle <ljrittle@acm.org>
648
649 * config/i386/i386.h (ix86_return_in_memory): Add prototype.
650
651 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
652
653 * config/s390/s390.c (s390_emit_prologue): Simplify accesses to
654 FPR slots in the save area.
655 (s390_emit_epilogue): Likewise.
656
657 2003-09-25 Richard Sandiford <rsandifo@redhat.com>
658
659 * cgraph.h (cgraph_remove_edge): Declare.
660 * cgraph.c (cgraph_remove_edge): Make extern.
661 * cgraphunit.c (cgraph_finalize_function): Call cgraph_remove_edge
662 instead of cgraph_remove_call.
663
664 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
665
666 * objc/objc-act.c (gen_declaration_1): Fix printf format.
667
668 2003-09-25 Richard Earnshaw <rearnsha@arm.com>
669
670 * arm.c (all_cores): arm710t, arm720t and arm740t are all based on the
671 arm7tdmi core.
672
673 2003-09-25 Ziemowit Laski <zlaski@apple.com>
674
675 * config/darwin-protos.h (objc_image_info_section):
676 New prototype.
677
678 2003-09-25 Ziemowit Laski <zlaski@apple.com>
679
680 * Makefile.in (stub-objc.o): Depend on $(GGC_H).
681
682 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
683
684 * config.gcc: Get rid of more gratuitious 'x'es. Actually allow
685 tsc701 as a --with-cpu, --with-tune setting for sparc.
686
687 2003-09-25 Ziemowit Laski <zlaski@apple.com>
688
689 * c-parse.in (objc_try_stmt): Do not specify a %type.
690
691 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
692
693 * config.gcc: New 'widely ported system' clause for rtems.
694 Set thread file there, not in individual clauses.
695
696 2003-09-25 Richard Sandiford <rsandifo@redhat.com>
697
698 PR target/6222
699 * config/mips/mips.c (mips_va_arg): Handle arguments that must be
700 passed on the stack.
701
702 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
703
704 * config.gcc (widely ported systems section): Mostly alphabetize
705 by system. Comment the case where we can't.
706 * config.gcc (widely ported systems section): Reindent and clean up.
707
708 * config.gcc: Remove some unnecessary uses of 'x' in case statements.
709 Actually allow ep9312 as an arm --with-arch setting.
710
711 * config.gcc (*-hpux11): Disable fixproto.
712
713 2003-09-24 Phil Edwards <phil@codesourcery.com>
714
715 PR pch/12112
716 * gcc/cppfiles.c (pch_open_file): Return based on combined
717 result of all files.
718 (validate_pch): Return validate flag for current file.
719
720 2003-09-24 Roger Sayle <roger@eyesopen.com>
721
722 PR bootstrap/12358
723 * fold-const.c (tree_swap_operands_p): Only reorder operands when
724 one of the operands is constant.
725
726 2003-09-24 Ziemowit Laski <zlaski@apple.com>
727
728 MERGE OF objc-improvements-branch into MAINLINE:
729 * Makefile.in (C_OBJS): Add in stub-objc.o.
730 (c-parse.y): Change sed demarcations to begin with '@@'.
731 (stub-objc.o): New rule.
732 * c-common.c (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
733 flag_replace_objc_classes): New flags.
734 * c-common.h (RID_AT_THROW, RID_AT_TRY, RID_AT_CATCH, RID_AT_FINALLY,
735 RID_AT_SYNCHRONIZED): New keywords.
736 (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
737 flag_replace_objc_classes): New flags.
738 (lookup_interface, is_class_name, objc_is_object_ptr, objc_check_decl,
739 objc_comptypes, objc_message_selector, lookup_objc_ivar,
740 get_current_scope, objc_mark_locals_volatile): New prototypes,
741 some moved from c-tree.h.
742 * c-decl.c (get_current_scope, objc_mark_locals_volatile): New functions.
743 (finish_decl): Adjust where objc_check_decl() gets called.
744 * c-lang.c (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
745 objc_comptypes, objc_message_selector, lookup_objc_ivar): Remove stubs.
746 * c-opts.c (c_common_handle_option): Add handling for flag_nil_receivers,
747 flag_objc_exceptions, flag_replace_objc_classes and flag_zero_link.
748 * c-parse.in: Replace 'ifc' and 'end ifc' sed markers with '@@ifc' and
749 '@@end_ifc', respectively.
750 (AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY, AT_SYNCHRONIZED): New %tokens.
751 (objc_try_stmt, superclass, class_ivars, objc_try_catch-stmt,
752 objc_finally_block): New rules.
753 (component_decl_list2): Clean up semantic action for @defs construct.
754 (component_decl, c99_block_start): Remove call to add_objc_decls().
755 (poplevel): Add call to objc_clear_super_receiver().
756 (stmt): Add rules for @throw, @try..@catch..@finally and @synchronized
757 constructs.
758 (classdef, methodprotolist): Clean up/simplify.
759 (methodprotolist2): Eliminate.
760 (methodproto): Call add_method() instead of add_class_method() and
761 add_instance_method().
762 (receiver): Add TYPENAME production.
763 (reswords): Add "throw", "try", "catch", "finally" and "synchronized".
764 (rid_to_yy): Add AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY and
765 AT_SYNCHRONIZED.
766 * c-tree.h (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
767 objc_comptypes, objc_message_selector)
768 * c-typeck.c (comptypes): In ObjC mode, call objc_comptypes() for
769 struct and pointer types.
770 (build_c_cast): Do not discard ObjC protocol qualifiers.
771 (convert_for_assignment): Cache result of comp_target_types() instead
772 of calling it more than once.
773 * c.opt (fnext-runtime): Update description string.
774 (fnil-receivers, fobjc-exceptions, freplace-objc-classes, fzero-link):
775 New ObjC/ObjC++-specific flags.
776 * function.h (GCC_FUNCTION_H): Header guard.
777 * gengtype-lex.l: Teach lexer about new @@... sed demarcations.
778 * stub-objc.c: New file, to be used to satisfy references to ObjC
779 functions by the C and C++ front-ends.
780 * config/darwin.c (_OBJC_IMAGE_INFO): New global metadata.
781 * config/darwin.h (FUNCTION): Add in_objc_image_info.
782 (SECTION_FUNCTION): Add objc_image_info_section.
783 * doc/invoke.texi: Link to GCC web site for Objective-C information.
784 (-fconstant-string-class): Update documentation.
785 (-fno-nil-receivers, -fobjc-exceptions, -freplace-objc-classes,
786 -fzero-link): New documentation.
787 * objc/Make-lang.in (objc-parse.y): Change sed demarcations to begin
788 with '@@'.
789 * objc/lang-specs.h (@objective-c-header): Fix -E spec.
790 * objc/objc/objc-act.c: Replace TYPE_NAME with OBJC_TYPE_NAME
791 throughout; provide casts for return values from memory allocation
792 functions (xmalloc, alloca, ggc_alloc, etc.).
793 (OBJC_VOID_AT_END): New macro.
794 (rtl.h): Do not #include any more.
795 (STRING_OBJECT_GLOBAL_NAME): Replaced with STRING_OBJECT_GLOBAL_FORMAT.
796 (TAG_MSGSEND_STRET, TAG_MSGSENDSUPER_STRET, TAG_MSGSEND_NONNIL,
797 TAG_MSGSEND_NONNIL_STRET, TAG_EXCEPTIONEXTRACT, TAG_EXCEPTIONTRYENTER,
798 TAG_EXCEPTIONTRYEXIT, TAG_EXCEPTIONMATCH, TAG_EXCEPTIONTHROW,
799 TAG_SYNCENTER, TAG_SYNCEXIT): New NeXT runtime entry points.
800 (struct val_stack, catch_count_stack, exc_binding_stack, val_stack_push,
801 val_stack_pop): New.
802 (objc_check_decl): Fix precondition for error message, along with
803 the message itself.
804 (lookup_and_install_protocols): Remove nonexistent protocols from
805 protocol list instead of returning error_mark_node.
806 (create_builtin_decl): Use DECL_ARTIFICIAL only for VAR_DECLs.
807 (setup_string_decl): Generalize to use STRING_OBJECT_GLOBAL_FORMAT.
808 (synth_module_prologue): General clean-up; construct NeXT-specific
809 runtime API prototypes if needed.
810 (build_string_class_template): Remove.
811 (check_string_class_template, string_layout_checked): New.
812 (build_objc_string_object): Generalize to work with
813 -fconstant-string-class.
814 (build_objc_symtab_template): Fix layout for the NeXT runtime.
815 (build_metadata_decl): New.
816 (forward_declare_categories): Call build_metadata_decl() instead of
817 create_builtin_decl() et al.
818 (build_module_descriptor): Use OBJC_VOID_AT_END instead of
819 void_list_node_1.
820 (build_selector_reference_decl, build_class_reference_decl,
821 build_objc_string_decl): Do not set TREE_READONLY.
822 (get_proto_encoding): Do not call hack_method_prototype().
823 (get_class_reference): Add failure mode for invalid class names;
824 support -fzero-link; defer if in an ObjC++ template declaration.
825 (objc_declare_alias, objc_declare_class): Fix up duplicate name
826 lookup; check for global scope if in ObjC++.
827 (is_class_name): Generalize to work with various tree nodes (TYPE_DECL,
828 RECORD_TYPE, IDENTIFIER_NODE, etc.)
829 (objc_is_id): Removed.
830 (objc_is_object_ptr): New function.
831 (get_class_ivars_from_name): New function, used for @defs construct.
832 (get_class_ivars): Add option to return raw ivars; create a
833 ClASS_OWN_IVARS list for each class as needed.
834 (objc_enter_block, objc_exit_block, objc_declare_variable,
835 objc_build_throw_stmt, val_stack_push, val_stack_pop,
836 objc_build_try_enter_fragment, objc_build_extract_expr,
837 objc_build_try_exit_fragment, objc_build_extract_fragment,
838 objc_build_try_prologue, objc_build_try_epilogue,
839 objc_build_catch_stmt, objc_build_catch_epilogue,
840 objc_build_finally_prologue, objc_build_finally_epilogue,
841 objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
842 objc_build_synchronized_epilogue, build_objc_exception_stuff):
843 New functions.
844 (_JBLEN): _setjmp jmpbuf size (needs to be made a target hook in
845 the future).
846 (build_private_template): Fix up calls to get_class_ivars().
847 (offset_is_register, forwarding_offset): Remove.
848 (objc_method_parm_type, objc_encoded_type_size): New functions.
849 (encode_method_prototype): Simplify to no longer depend on
850 back-end information.
851 (build_tmp_function_decl_xxx, build_tmp_function_decl,
852 hack_method_prototype): Removed.
853 (generate_protocol_references): Remove calls to
854 build_tmp_function_decl().
855 (generate_protocols): Adjust calls to encode_method_prototype().
856 (build_class_template): Generate sel_id' and 'gc_object_type' fields
857 for the NeXT runtime.
858 (synth_forward_declarations): Call build_metadata_decl().
859 (check_ivars): Check that the number of ivars matches also.
860 (build_super_template): Modify super_type directly; disable debugging
861 output while generating decl.
862 (build_ivar_list_initializer): Skip list elements that are not
863 FIELD_DECLs.
864 (ivar_list_length): New function.
865 (generate_ivar_lists): Call ivar_list_length() instead of list_length()
866 and encode_method_prototype() instead of encode_method_def().
867 (build_shared_structure_initializer): Generate 'sel_id' field for
868 the NeXT runtime.
869 (generate_category): Do not set TREE_USED.
870 (build_keyword_selector): Ditto; transform into a function argument
871 chain.
872 (get_arg_type_list): If there are no user-specified arguments, use
873 '...'; use OBJC_VOID_AT_END.
874 (check_duplicates): Add a parameter indicating whether methods or
875 selectors are being checked.
876 (receiver_is_class_object): Add parameters indicating whether
877 receiver is 'self' or 'super'; robustify.
878 (build_message_expr): Defer call to finish_message_expr() if
879 inside an ObjC++ template.
880 (lookup_method_in_hash_lists): New function.
881 (finish_message_expr): Complete rewrite/fix.
882 (build_objc_method_call): Ditto; factor out commonalities between
883 the GNU and NeXT runtimes; acccommodate ..._stret and ...NonNil
884 messenger variants on the NeXT.
885 (lookup_instance_method_static, lookup_class_method_static):
886 Fold into a single lookup_method_static() function with an
887 additional parameter.
888 (add_class_method, add_instance_method): Fold into a single
889 add_method() function with an additional parameter.
890 (add_category): Make duplicate categories a hard error in ObjC++.
891 (add_instance_variable): Properly handle unnamed ivars, arrays of
892 zero or no size and bitfields. In ObjC++, check for nontrivial
893 C++ class instances.
894 (is_public): Allow C functions to access non-@public ivars, with
895 a warning.
896 (start_class): Move common initializations to
897 synth_module_prologue(); check for global scope if in ObjC++.
898 (continue_class): Fix calls to finish_struct().
899 (objc_declare_protocols, start_protocol): Check for global scope
900 if in ObjC++.
901 (encode_pointer): Encode 'BOOL *' specially on the NeXT.
902 (encode_aggregate_within): Rewrite to properly distinguish
903 struct tags from typedefs in both ObjC and ObjC++.
904 (encode_bitfield, encode_complete_bitfield): Remove.
905 (encode_next_bitfield, encode_gnu_bitfield): New functions.
906 (encode_field_decl): Call encode_next_bitfield() or
907 encode_gnu_bitfield() as needed.
908 (synth_self_and_ucmd_args): New function.
909 (start_method_def): Use it.
910 (objc_types_are_equivalent): New function.
911 (comp_proto_with_proto): Use it instead of comptypes(), since
912 we need symmetry.
913 (really_start_method): Use lookup_method_static() instead of
914 lookup_class_method_static() and lookup_instance_method_static();
915 Emit 'extern "C"' if in ObjC++ mode.
916 (add_objc_decls): Removed.
917 (UOBJC_SUPER_scope): New variable.
918 (get_super_receiver): Move construction of 'super' from
919 add_objc_decls(); remove dependency on struct objc_class.
920 (encode_method_def): Removed; encode_method_prototype() is
921 used instead.
922 (objc_clear_super_receiver): New function.
923 (objc_expand_function_end): Do not do anything for ordinary
924 C functions.
925 (finish_method_def): Mark ObjC methods as un-inlinable.
926 (gen_declaration_1): Emit widths of bitfields.
927 (finish_objc): Call generate_objc_image_info() if needed;
928 use check_duplicates() when checking for selector duplicates.
929 (generate_objc_image_info): New function.
930 * objc/objc-act.h (add_instance_method, add_class_method,
931 get_class_ivars): Remove prototypes.
932 (objc_build_throw_stmt, objc_build_try_catch_finally_stmt,
933 objc_build_synchronized_prologue, objc_build_synchronized_epilogue,
934 objc_build_catch_stmt, objc_build_catch_epilogue,
935 objc_build_finally_prologue, objc_build_finally_epilogue,
936 add_method, get_class_ivars_from_name): New prototypes.
937 (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): New.
938 (TYPE_PROTOCOL_LIST): Robustify to distinguish from
939 TRANSLATION_UNIT_DECLs.
940 (OBJC_TYPE_NAME): New.
941 (objc_tree_code): Ensure that either <c-tree.h> or <cp/cp-tree.h>
942 got included.
943 (IS_SUPER): Robustify.
944 (umsg_stret_decl, umsg_super_stret_decl, umsg_nonnil_decl,
945 umsg_nonnil_stret_decl, objc_storage_class, objc_exception_extract_decl,
946 objc_exception_try_enter_decl, objc_exception_try_exit_decl,
947 objc_exception_match_decl, objc_exception_throw_decl,
948 objc_sync_enter_decl, objc_sync_exit_decl, objc_exception_data_template,
949 objc_setjmp_decl, objc_stack_exception_data, objc_caught_exception,
950 objc_rethrow_exception, objc_eval_once, objc_exception_block_stack,
951 objc_catch_type): New ObjC/ObjC++ roots.
952 * objc/objc-tree.def (MESSAGE_SEND_EXPR, CLASS_REFERENCE_EXPR): New
953 ObjC/ObjC++ tree node codes.
954
955 2003-09-24 Alexandre Oliva <aoliva@redhat.com>
956
957 * cpplib.c (do_pragma): Reintroduce cb_line_change call in the
958 code path that calls a handler.
959
960 2003-09-24 Nathanael Nerode <neroden@gcc.gnu.org>
961
962 * config.gcc (c4x-*, tic4x-*, d30v-*, mmix-knuth-mmixware):
963 Disable fixproto.
964
965 * config.gcc: Clean up and reindent $with_cpu=yes|no clause and
966 the section giving $with_cpu defaults by target.
967
968 * config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf,
969 arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*,
970 rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*,
971 rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*,
972 rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*,
973 i[34567]86-pc-msdosdjgpp*): Disable fixproto.
974
975 2003-09-24 David Edelsohn <edelsohn@gnu.org>
976
977 * config/rs6000/rs6000.md (movti_power): Collapse case 1 and 2
978 together. Protect load string instruction with TARGET_STRING.
979 (movti_string): Collapse case 1 and 2 together.
980
981 2003-09-24 Nathan Sidwell <nathan@codesourcery.com>
982
983 * c-common.c (c_common_type_for_mode): Check for VOIDmode.
984
985 2003-09-24 Richard Earnshaw <rearnsha@arm.com>
986
987 * arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in
988 do...while(0)
989
990 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
991
992 * config.gcc: Move use_fixproto=no from generic vxworks clause to
993 specific one.
994
995 * config.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto
996 (accidentally missed in last pass).
997
998 2003-09-23 Andrew Pinski <apinski@apple.com>
999
1000 PR bootstrap/12383
1001 * configure: Regenerate.
1002
1003 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
1004
1005 * config.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally
1006 missed in last pass).
1007
1008 2003-09-23 Alexandre Oliva <aoliva@redhat.com>
1009
1010 * config/mn10300/mn10300.md (andsi3): Fix cut&pasto in 0xfffffffe
1011 constant.
1012
1013 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
1014
1015 * config.gcc: Move vax-*-vms* unsupported notice up with the rest.
1016
1017 * config.gcc (alpha64*-dec-*vms*, alpha*-dec-*vms*,
1018 powerpc-*-eabisim*, powerpc-*-eabi*, powerpcle-*-eabisim*,
1019 powerpcle-*-eabi*): Disable fixproto.
1020
1021 * config.gcc: Move use_fixproto=no from generic FreeBSD clause to
1022 specific FreeBSD clauses.
1023 * config.gcc: Move use_fixproto=no from generic NetBSD clause to
1024 specific NetBSD clauses.
1025 * config.gcc: Move use_fixproto=no from generic OpenBSD clause
1026 to specific OpenBSD clauses.
1027
1028 2003-09-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1029
1030 * pa.c (hppa_expand_prologue): Do pic register save in frame marker
1031 without adding a frame note.
1032 * pa.md (allocate_stack): Save pic register in new frame marker when
1033 generating pic code.
1034
1035 2003-09-23 Kelley Cook <kelleycook@wideopenwest.com>
1036
1037 * cgraphunit.c (cgraph_expand_all_functions): Renamed from
1038 cgraph_expand_functions.
1039
1040 2003-09-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1041
1042 * Makefile.in (gnucompare*): Merge into ...
1043 (slowcompare*): ... here.
1044 (fastcompare*): New targets.
1045 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): Add checks for
1046 other "fast" cmp programs.
1047 * configure: Regenerate.
1048
1049 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1050
1051 * targhooks.c: Include output.h.
1052 * Makefile.in (targhooks.o): Add output.h to dependency list.
1053
1054 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1055
1056 * config.host: Removed superfluous newline.
1057
1058 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
1059
1060 * config.gcc: Use ${target}, not $machine.
1061 * configure.in: Don't set $machine.
1062 * configure: Regenerate.
1063
1064 2003-09-23 Geoffrey Keating <geoffk@apple.com>
1065
1066 * config/t-darwin (crt2.o): Add stmp-int-hdrs to dependencies.
1067
1068 * config/rs6000/rs6000.c (function_arg_pass_by_reference): Don't
1069 pass zero-size arrays by reference.
1070 (rs6000_va_arg): Likewise.
1071
1072 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
1073
1074 * config.gcc: Set use_fixproto=no in each specific *-gnu*
1075 configuration, rather than the generic one.
1076
1077 2003-09-23 Richard Henderson <rth@redhat.com>
1078
1079 * tree-inline.c (remap_save_expr): Map new save_expr to identity
1080 rather than to error_mark_node.
1081
1082 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1083
1084 * configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
1085 Update description.
1086 * configure: Regenerate.
1087 * config.in: Likewise.
1088 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for
1089 HAVE_GAS_SHF_MERGE value.
1090 * varasm.c (mergeable_string_section): Likewise.
1091 (mergeable_constant_section): Likewise.
1092
1093 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1094
1095 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
1096 value.
1097
1098 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1099
1100 * target.h (struct gcc_target): New member external_libcall.
1101 * target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
1102 (TARGET_ASM_OUT): Use it.
1103 * doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
1104 * targhooks.c: Convert to ISO C 90.
1105 (default_external_libcall): New function.
1106 * targhooks.h (default_external_libcall): Declare.
1107 * varasm.c (assemble_external_libcall): Use
1108 targetm.asm_out.external_libcall instead of
1109 ASM_OUTPUT_EXTERNAL_LIBCALL.
1110 * config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
1111 (mips_output_external_libcall): Declare.
1112 * config/mips/mips.c (mips_output_external_libcall): Change
1113 definition guard.
1114 Change to match TARGET_ASM_EXTERNAL_LIBCALL.
1115 Only operate for O32 ABI.
1116 * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
1117 instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
1118 * config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
1119 superceded by TARGET_ASM_EXTERNAL_LIBCALL.
1120
1121 2003-09-22 Nathnael Nerode <neroden@gcc.gnu.org>
1122
1123 * config.gcc: Do per-target disabling of fixproto here in clauses,
1124 not in t- fragments.
1125 * configure.in: Adjust to set STMP_FIXPROTO correctly.
1126 * configure: Regenerate.
1127 * config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
1128 config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
1129 t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
1130 xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
1131 * config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
1132 t-interix, t-linux-aout: Delete files consisting only of
1133 setting of STMP_FIXPROTO.
1134
1135 * config.host: Allow unknown hosts (not targets). Allow
1136 ns32k-*-netbsdelf* as a host (not a target). Remove redundant
1137 empty clauses. Remove useless obsolete-configuration clause.
1138 Prune unsupported configuration list. Collapse identical
1139 clauses for closely related systems. Rewrite comment for
1140 unsupported hosts list. Reorganize a little.
1141
1142 2003-09-22 Richard Henderson <rth@redhat.com>
1143
1144 * c-common.c (c_common_signed_or_unsigned_type): Examine mode,
1145 not precision.
1146
1147 2003-09-22 David Edelsohn <edelsohn@gnu.org>
1148 Hartmut Penner <hpenner@de.ibm.com>
1149 Segher Boessenkool <boessen@de.ibm.com>
1150
1151 * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ...
1152 (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean.
1153 (rs6000_split_altivec_in_gprs): Rename to ...
1154 (rs6000_split_multireg_move): Add support for update addressing.
1155 * config/rs6000/rs6000-protos.h: Same.
1156 * config/rs6000/altivec.md: Same.
1157 * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for
1158 multiple GPRs.
1159 (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition.
1160 (movti_power): Use new splitter for multiple GPRs.
1161 (movti_string): Same.
1162 (movti_ppc64): Same.
1163
1164 2003-09-22 Bob Wilson <bob.wilson@acm.org>
1165
1166 * config/xtensa/xtensa-protos.h: Convert to ISO C90.
1167 * config/xtensa/xtensa.c: Convert to ISO C90. Minor formatting fixes.
1168
1169 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
1170
1171 * config/mn10300/mn10300.md: Revert 2003-09-17's patch.
1172 (andsi3): Set attr cc to set_zn when using shifts or adds.
1173
1174 2003-09-22 Bernardo Innocenti <bernie@develer.com>
1175
1176 * doc/contrib.texi: Add Peter Barada, Paul Dale and myself.
1177
1178 2003-09-22 Bernardo Innocenti <bernie@develer.com>
1179
1180 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS):
1181 Resurrect -mrtd option.
1182
1183 2003-09-21 Andrew Pinski <pinskia@physics.uc.edu>
1184
1185 PR target/12281
1186 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call
1187 mark_referenced instead of setting TREE_SYMBOL_REFERENCED.
1188
1189 2003-09-22 Olivier Hainque <hainque@act-europe.fr>
1190
1191 PR target/9786
1192 * reg-stack.c (convert_regs_1): Purge possible dead eh edges
1193 after potential deletion of trapping insn. Avoids later ICE
1194 from call to fixup_abnormal_edges.
1195 (convert_regs_2): Stack the current block successors before
1196 processing this block, that is, before the potential deletion of
1197 dead edges by convert_regs_1, because these edges have been used
1198 to initialize the predecessors count.
1199
1200 2003-09-22 Eric Botcazou <ebotcazou@libertysurf.fr>
1201
1202 * real.c: Fix several nits in the head comment.
1203
1204 2003-09-21 Richard Henderson <rth@redhat.com>
1205
1206 * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
1207 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
1208 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
1209 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
1210 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Revert.
1211
1212 2003-09-21 Richard Henderson <rth@redhat.com>
1213
1214 * tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
1215 (TREE_FILENAME, TREE_LINENO): Likewise.
1216 (set_tree_locus, copy_tree_locus, set_tree_file_line): New.
1217 (TREE_LOCUS_SET_P): New.
1218 * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
1219 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
1220 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
1221 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
1222 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
1223
1224 2003-09-21 Nathanael Nerode <neroden@gcc.gnu.org>
1225
1226 * config/vax/vax-protos.h: Convert to ISO C90.
1227 * config/vax/vax.c: Convert to ISO C90.
1228
1229 2003-09-21 Graham Stott <grahams@btinternet.com>
1230
1231 PR target/12353
1232 * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint.
1233
1234 2003-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
1235
1236 PR target/12301
1237 * reorg.c (stop_search_p): Return 1 for insns that can
1238 throw internally.
1239
1240 2003-09-20 Richard Henderson <rth@redhat.com>
1241
1242 * c-format.c (gcc_diag_char_table): Add %J.
1243 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
1244 (check_format_types): Fix wanted_type name lookup.
1245 (init_dynamic_diag_info): Setup %J.
1246 * diagnostic.c (text_specifies_location): Implement %J.
1247 * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
1248 dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
1249 tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
1250 config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
1251 config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
1252
1253 * tree-inline.c: Include intl.h
1254 (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
1255 * Makefile.in (tree-inline.o): Update.
1256
1257 2003-09-20 Roger Sayle <roger@eyesopen.com>
1258
1259 * config/i386/i386.c (ix86_expand_carry_flag_compare): Fix
1260 transformation of a>=0 into (unsigned)a<0x80000000.
1261
1262 2003-09-20 Andrew Pinski <apinski@apple.com>
1263
1264 * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
1265
1266 2003-09-20 Nathanael Nerode <neroden@gcc.gnu.org>
1267
1268 * Makefile.in: Don't set (unused) DLLTOOL.
1269
1270 * config/arm/t-linux, config/arm/t-netbsd, config/arm-t-semi:
1271 Remove obsolete references to ENQUIRE.
1272
1273 2003-09-19 Nathanael Nerode <neroden@gcc.gnu.org>
1274
1275 * configure.in: Remove --with-elf, which doesn't work.
1276 * configure: Regenerate.
1277 * config.gcc: Remove references to $elf, which does nothing.
1278
1279 * config/i386/xm-vsta.h: Remove xm-file believed useless.
1280 * config.build (i386-vsta): Remove reference to it.
1281 * config.host (i386-vsta): Remove reference to it.
1282
1283 2003-09-19 Phil Edwards <phil@codesourcery.com>
1284
1285 * doc/install.texi: Document the multiple testsuite options.
1286
1287 2003-09-19 Gerald Pfeifer <gerald@pfeifer.com>
1288
1289 * doc/install.texi (Specific): Add the specific versions of GCC
1290 where support for FreeBSD 1, HP-UX version 9 and older, and AIX
1291 version 3 and older was discontinued.
1292
1293 2003-09-19 Joel Sherrill <joel@oarcorp.com>
1294
1295 * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to
1296 68881.
1297
1298 2003-09-19 Bernardo Innocenti <bernie@develer.com>
1299
1300 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Add predefines
1301 for -m68030, -m68020-60 and -m68020-40.
1302 * config/m68k/m68k.h (TARGET_68030): New target flag.
1303 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, MASK_REGPARM,
1304 TARGET_REGPARM): Remove.
1305 * config/m68k/m68k.h: Regroup and renumber target flags.
1306 * config/m68k/m68k.h (TARGET_SWITCHES): Fix some tabulations.
1307 * config/m68k/m68k.h (RETURN_POPS_ARGS): Always evaluate to 0.
1308 * config/m68k/m68k.h (FUNCTION_ARG): Likewise.
1309 * config/m68k/m68k.h (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
1310 * config/m68k/m68k-none.h: Use MASK_xxx values in M68K_CPU_xxx macros.
1311
1312 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1313
1314 * config/m68k/t-rtems (m68k-*-rtems*): New.
1315 * config.gcc: Use config/m68k/t-rtems.
1316
1317 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1318
1319 * config/mips/t-rtems: New.
1320 * config.gcc (mips*-*-rtems*): Use config/mips/t-rtems.
1321
1322 2003-09-19 Kelley Cook <kelleycook@wideopenwest.com>
1323
1324 * cgraph.c: Fix typo in debugging output.
1325
1326 2003-09-19 T. Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
1327 Eric Botcazou <ebotcazou@libertysurf.fr>
1328
1329 PR target/12166
1330 * config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.
1331
1332 2003-09-18 Mike Stump <mrs@apple.com>
1333
1334 * c-ppoutput.c (print): Use fileline typedef for field 'line'.
1335 (print_line, maybe_print_line, cb_define, cb_undef, cb_include,
1336 cb_ident, cb_def_pragma): Use fileline typedef.
1337 * cpphash.h (struct cpp_reader): Likewise for field out.first_line.
1338
1339 2003-09-18 Danny Smith <dannysmith@users.sourceforge.net>
1340
1341 * config/i386/winnt.c (gen_stdcall_suffix): Quit summation of
1342 total parm size if a parm has incomplete type.
1343 (gen_fastcall_suffix): Likewise.
1344
1345 2003-09-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1346
1347 * except.c (output_function_exception_table): Adjust last change
1348 to handle TYPE of INTEGER_CST.
1349
1350 2003-09-18 Mark Mitchell <mark@codesourcery.com>
1351
1352 PR target/11184
1353 * builtins.c (expand_builtin_apply): Use convert_memory_address
1354 before returning the value.
1355
1356 * alias.c (find_base_value): Simplify use of
1357 convert_memory_address.
1358 (find_base_term): Likewise.
1359 * builtins.c (expand_builtin_stejmp_setup): Likewise.
1360 (expand_builtin_longjmp): Likewise.
1361 (expand_builtin_prefetch): Likewise.
1362 (get_memory_rtx): Likewise.
1363 (expand_builtin_return): Likewise.
1364 (expand_builtin_memcpy): Likewise.
1365 (expand_builtin_strncpy): Likewise.
1366 (expand_builtin_memset): Likewise.
1367 (expand_builtin_va_arg): Likewise.
1368 (expand_builtin_va_copy): Likewise.
1369 (expand_builtin_alloca): Likewise.
1370 * calls.c (expand_call): Likewise.
1371 * except.c (expand_builtin_extract_return_addr): Likewise.
1372 (expand_builtin_eh_return): Likewise.
1373 * explow.c (convert_memory_address): Define even when
1374 POINTER_EXTEND_UNSIGNED is not defined. Do nothing if the address
1375 is already in the right mode.
1376 * explow.c (memory_address): Simplify use of convert_memory_address.
1377 (probe_stack_range): Likewise.
1378 * expmed.c (make_tree): Likewise.
1379 * expr.c (emit_block_move_in_libcall): Likewise.
1380 (expand_assignment): Likewise.
1381 (expand_expr): Likewise.
1382 * function.c (assign_parms): Likewise.
1383 (expand_function_end): Likewise.
1384 * integrate.c (copy_rtx_and_substitute): Likewise.
1385 * stmt.c (expand_computed_goto): Likewise.
1386
1387 2003-09-18 Roger Sayle <roger@eyesopen.com>
1388
1389 * simplify-rtx.c (simplify_unary_operation): Only transform
1390 (not (eq X Y)) into (ne X Y) when mode is BImode or STORE_FLAG_VALUE
1391 is -1. RTL "not" is a bit-wise not, "~", not a logical not "!".
1392
1393 2003-09-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1394
1395 PR target/11674
1396 * config/i386/i386.c (x86_emit_floatuns): Also handle SImode operand.
1397
1398 2003-09-18 Roger Sayle <roger@eyesopen.com>
1399
1400 * tree.def (FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR,
1401 PARITY_EXPR): Delete unused tree codes.
1402 * c-common.c (c_common_truthvalue_conversion): Delete references
1403 to FFS_EXPR and POPCOUNT_EXPR.
1404 * c-pretty-print.c (pp_c_postfix_expression): Remove FFS_EXPR.
1405 (pp_c_expression): Likewise.
1406 * expr.c (expand_expr): Delete RTL expansion of FFS_EXPR, CLZ_EXPR,
1407 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.
1408 * fold-const.c (tree_expr_nonnegative_p): Remove FFS_EXPR, CLZ_EXPR,
1409 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR. Add support for calls to
1410 BUILT_IN_FFS, BUILT_IN_PARITY and BUILT_IN_POPCOUNT and their long
1411 and long long variants.
1412
1413 2003-09-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
1414
1415 * c-pretty-print.h (pp_type_specifier_seq): Fix thinko.
1416 * c-pretty-print.c: Fix formatting.
1417 (pp_c_integer_constant): Append type annotation to literals. Tidy.
1418 (pp_c_type_specifier): Tidy.
1419 (pp_c_compound_literal): New function.
1420 (pp_c_initializer): Simplify..
1421 (pp_c_initializer_list): Likewise.
1422 (pp_c_brace_enclosed_initializer_list): New function.
1423 (pp_c_postfix_expression): Simplify.
1424
1425 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
1426
1427 * config/mn10300/mn10300.md (andsi3, iorsi3, xorsi3,
1428 one_complsi2, bit-clear, bit-set, iorqi3): Make them set_zn.
1429
1430 2003-09-17 Richard Henderson <rth@redhat.com>
1431
1432 * tree-optimize.c (tree_rest_of_compilation): Save and restore
1433 input_location.
1434
1435 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
1436
1437 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Give -lpthread before -lc.
1438
1439 2003-09-17 Richard Henderson <rth@redhat.com>
1440
1441 * cfg.c (dump_flow_info): Skip register dump if reg_n_info null.
1442
1443 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1444
1445 * configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.
1446 * configure: Regenerate.
1447
1448 2003-09-17 Mark Mitchell <mark@codesourcery.com>
1449
1450 PR debug/12066
1451 * dbxout.c (dbxout_init): Use a langhook to find builtin types.
1452 * langhooks-def.h (lhd_return_null_tree_v): New function.
1453 (LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro.
1454 (LANG_HOOKS_DECLS): Add it to the intializer.
1455 * langhooks.c (lhd_return_null_tree_v): New function.
1456 * langhooks.h (lang_hooks_for_decls): Add builtin_type_decls.
1457
1458 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
1459
1460 * configure.in: Quote gcc_config_arguments for configargs.h.
1461 * configure: Regenerated.
1462 * gccbug.in: Don't shell-expand gcc_config_arguments.
1463
1464 2003-09-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
1465
1466 PR c++/11357
1467 * c-pretty-print.c (pp_c_floating_constant): Append
1468 type-annotation to floating constants.
1469
1470 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1471
1472 * config/mips/iris5.h (TARGET_OS_CPP_BUILTINS): Define _LONGLONG.
1473 Define _ABIO32.
1474 Use it for _MIPS_SIM.
1475 * config/mips/iris6-o32.h (TARGET_OS_CPP_BUILTINS): Removed.
1476
1477 * config/mips/iris6-o32-as.h (SUBTARGET_ASM_OPTIMIZING_SPEC):
1478 Moved ...
1479 * config/mips/iris5.h (SUBTARGET_ASM_OPTIMIZING_SPEC): ... here,
1480 updating comment.
1481 Fixes PR target/10190.
1482
1483 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
1484
1485 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply
1486 to shared libraries.
1487
1488 2003-09-17 Eric Botcazou <ebotcazou@libertysurf.fr>
1489
1490 PR optimization/11646
1491 * cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the
1492 EDGE_ABNORMAL flag for EH edges.
1493 * toplev.c (rest_of_handle_cse): Delete unreachable blocks
1494 if dead edges were purged.
1495
1496 2003-09-16 Bernardo Innocenti <bernie@develer.com>
1497
1498 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.
1499 * config/m68k/m68k-none.h (CPP_CPU_DEFAULT_SPEC): Kill all definitions.
1500 * config/m68k/m68k-none.h (CPP_FPU_SPEC): Remove.
1501 * config/m68k/m68k-none.h (CPP_SPEC): Likewise.
1502
1503 2003-09-16 Ian Lance Taylor <ian@wasabisystems.com>
1504
1505 * cfgcleanup.c (label_is_jump_target_p): Correct use of table
1506 returned by tablejump_p.
1507
1508 2003-09-16 Joel Brobecker <brobecker@gnat.com>
1509
1510 * dwarf2asm.c (dw2_asm_output_nstring): Add comment.
1511
1512 2003-09-16 Roger Sayle <roger@eyesopen.com>
1513
1514 PR bootstrap/12269
1515 * simplify-rtx.c (simplify_gen_relational): Allow the cmp_mode
1516 argument to be VOIDmode, taking the mode of the comparison from
1517 the operands. Only call simplify_relational_operation if we
1518 know the mode of the comparison. Honor FLOAT_STORE_FLAG_VALUE
1519 if comparison has a floating point result. Ensure that the
1520 result is always of the specified mode.
1521 (simplify_replace_rtx): Simplify call to simplify_gen_relational.
1522 (simplify_unary_operation): Ensure the correct mode and cmp_mode
1523 are always passed to simplify_gen_relational. Simplify NOT of
1524 comparison operator in any mode, not just BImode.
1525 (simplify_ternary_operation): Correct tests on the return value
1526 of simplify_relational_operation to use const_true_rtx, not
1527 const1_rtx. Abort if it ever returns a non-constant result.
1528
1529 * cfgloopanal.c (count_strange_loop_iterations): Use the function
1530 simplify_relational_operation, not simplify_gen_relational, if
1531 we're only interested in constant comparisons and will ignore
1532 non-constant results.
1533
1534 2003-09-16 Roger Sayle <roger@eyesopen.com>
1535
1536 * fold-const.c (tree_swap_operands_p): New function to determine
1537 the prefered ordering of operands.
1538 (fold): Numerous clean-ups. Use tree_swap_operands_p when swapping
1539 operands to commutative, comparison or ternary operators. Replace
1540 uses of TREE_SET_CODE with recursive call to fold. Remove duplicate
1541 transformation of A ? B : C into !A ? C : B.
1542
1543 2003-09-16 Jakub Jelinek <jakub@redhat.com>
1544
1545 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
1546 * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
1547 * config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
1548 * config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
1549 * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
1550 * config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
1551 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
1552 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
1553
1554 2003-09-16 Jason Merrill <jason@redhat.com>
1555 Jakub Jelinek <jakub@redhat.com>
1556
1557 * c-common.c (handle_warn_unused_result_attribute): New function.
1558 (c_common_attribute_table): Add warn_unused_result.
1559 (c_expand_expr): Issue warning when result of inlined function
1560 with warn_unused_result attribute is ignored.
1561 * calls.c (expand_call): Issue warning when result of function
1562 with warn_unused_result attribute is ignored.
1563 * c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
1564 * expr.c (expr_wfl_stack): Define.
1565 (expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
1566 pass const0_rtx as target. Chain locations into expr_wfl_stack.
1567 * tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
1568 bit if inlined function has warn_unused_result attribute.
1569 * input.h (expr_wfl_stack): Declare.
1570 * doc/extend.texi: Document warn_unused_result attribute.
1571
1572 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
1573
1574 * cpplib.c (do_pragma): Remove unnecessary cb_line_change.
1575
1576 2003-09-15 Bob Wilson <bob.wilson@acm.org>
1577
1578 * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
1579 ATTRIBUTE_UNUSED.
1580 (call_insn_operand): For PIC, don't allow a direct call to a
1581 function in a different section than the current one.
1582
1583 2003-09-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
1584
1585 * doc/invoke.texi (Warning Options): Add missing hyphen before
1586 "Wimport". Change "-Wno-endif-labels" to "-Wendif-labels".
1587 Move "-Wold-style-definition" to the C-only section.
1588 Fix the ordering of the warning options.
1589
1590 2003-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1591 Jeff Law <law@redhat.com>
1592
1593 * gcse.c (remove_reachable_equiv_notes): New.
1594 replace_store_insn): Call it. Update antic list.
1595 (store_killed_in_insn): Take REG_EQUAL notes into account.
1596 (build_store_vectors, delete_store): Add parameter to
1597 replace_store_insn call.
1598
1599 2003-09-15 Bob Wilson <bob.wilson@acm.org>
1600
1601 * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use
1602 SYMBOL_REF_LOCAL_P.
1603
1604 2003-09-15 Kazu Hirata <kazu@cs.umass.edu>
1605
1606 * expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
1607 (FUNCTION_ARG_PADDING): Use DEFAULT_FUNCTION_ARG_PADDING.
1608 * config/ia64/ia64.c (ia64_hpux_function_arg_padding):
1609 Likewise.
1610 * config/m68hc11/m68hc11.c (m68hc11_function_arg_padding):
1611 Likewise.
1612 * config/rs6000/rs6000.c (function_arg_padding): Likewise.
1613 * config/sparc/sparc.c (function_arg_padding): Likewise.
1614
1615 2003-09-15 Vladimir Makarov <vmakarov@redhat.com>
1616
1617 * haifa-sched.c (schedule_block): Use ready_remove_first instead
1618 of choose_ready for non-dfa insn scheduling.
1619
1620 2003-09-15 Andreas Jaeger <aj@suse.de>
1621 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1622
1623 * doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
1624 * c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
1625 * c-parse.in: Warn about old-style parameter definition.
1626 * c-common.c: Define warn_old_style_defintion.
1627 * c-common.h: Declare it.
1628 * c.opt: Add Wold-style-defintion.
1629
1630 2003-09-15 Andreas Jaeger <aj@suse.de>
1631
1632 * config/rs6000/altivec.h: Convert () prototypes to ISO C90.
1633 * config/rs6000/rs6000.c: Likewise.
1634
1635 2003-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1636
1637 PR optimization/10914
1638 * expr.h (get_condition, canonicalize_condition): Declaration changed.
1639 * cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
1640 and canonicalize_condition calls.
1641 * gcse.c (fis_get_condition, delete_null_pointer_checks_1,
1642 delete_null_pointer_checks): Ditto.
1643 * ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
1644 * predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
1645 * loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
1646 (canonicalize_condition, get_condition): Allow to return comparisons
1647 of cc mode registers.
1648 * loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
1649 cc mode registers comparison in condition.
1650
1651 2003-09-12 Mark Mitchell <mark@codesourcery.com>
1652
1653 * coverage.c (create_coverage): Do not call pushlevel/poplevel.
1654 * langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
1655 function.
1656 * langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
1657
1658 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
1659
1660 * combine.c (simplify_comparison): Convert
1661 (ne (and (lshiftrt (xor X CST) Y) 1) 0) into
1662 (eq (and (lshiftrt X Y) 1) 0).
1663
1664 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
1665
1666 * alias.c: Follow spelling conventions.
1667 * cpphash.h: Likewise.
1668 * fold-const.c: Likewise.
1669
1670 2003-09-14 Alexandre Oliva <aoliva@redhat.com>
1671
1672 * c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
1673 * c-lex.c (cb_line_change): Skip line changing whenever
1674 c-ppoutput.c would.
1675
1676 2003-09-14 Steven Bosscher <steven@gcc.gnu.org>
1677
1678 * ra.c: Convert to ISO C90 prototypes.
1679 * ra-build.c: Likewise.
1680 * ra-colorize.c: Likewise.
1681 * ra-debug.c: Likewise.
1682 * ra-rewrite.c: Likewise.
1683
1684 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
1685
1686 * Makefile.in (%.dvi): Remove excess $(docdir).
1687
1688 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
1689
1690 * function.c (STACK_BYTES): Move definition to head of file.
1691 (assign_parms): Don't pass current_function_pretend_args_size
1692 directly to SETUP_INCOMING_VARARGS. For partial register arguments,
1693 round current_function_pretend_args_size up to STACK_BYTES. Skip any
1694 excess before laying out the argument.
1695
1696 2003-09-14 Andreas Jaeger <aj@suse.de>
1697
1698 * objc/objc-act.c: Convert to ISO C90 prototypes.
1699 * objc/objc-act.h: Likewise.
1700
1701 2003-09-14 Olaf Hering <olh@suse.de>
1702
1703 * config/rs6000/rs6000.c: Fix typo: Remove extra ')'.
1704
1705 2003-09-13 Andrew Pinski <pinskia@physics.uc.edu>
1706
1707 PR target/12021
1708 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Remove the asserts
1709 as they already are done in config/m68k/m68k.h.
1710 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Likewise
1711
1712 * config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
1713 (machopic_output_stub): Only generate pic base symbols when using pic
1714 and generate them in the form L00000000$spb.
1715
1716 2003-09-13 Richard Henderson <rth@redhat.com>
1717
1718 * cgraphunit.c (cgraph_assemble_pending_functions): Export.
1719 (cgraph_finalize_function): Revert TREE_ASM_WRITTEN check.
1720 * cgraph.h: Update.
1721
1722 2003-09-12 Dale Johannesen <dalej@apple.com>
1723
1724 * config/rs6000/rs6000.c: Fix typos in previous.
1725
1726 2003-09-12 Ziemowit Laski <zlaski@apple.com>
1727
1728 * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
1729 when allocating pp->buffer.
1730
1731 2003-09-12 Geoffrey Keating <geoffk@apple.com>
1732
1733 * config/darwin.c (machopic_select_rtx_section): Use
1734 const_data_section for things that might require relocation.
1735
1736 2003-09-12 H.J. Lu <hongjiu.lu@intel.com>
1737
1738 PR bootstrap/12264
1739 * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
1740
1741 2003-09-12 Bob Wilson <bob.wilson@acm.org>
1742
1743 * config/xtensa/elf.h (ASM_SPEC): Remove no-density option. Reformat.
1744 * config/xtensa/linux.h (ASM_SPEC): Likewise.
1745 * config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
1746 -mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
1747 -m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
1748 -m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
1749 -m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
1750 -m[no-]hard-float-rsqrt options. Delete corresponding MASK_* macros
1751 and redefine corresponding TARGET_* macros with constants from the
1752 xtensa-config.h header.
1753 * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
1754 for the options listed above.
1755
1756 2003-09-12 Dale Johannesen <dalej@apple.com>
1757
1758 * config/rs6000/rs6000-protos.h: Use C90 prototypes.
1759 * config/rs6000/rs6000-c.c: Ditto.
1760 * config/rs6000/rs6000.c: Ditto.
1761 * config/rs6000/ sysv4.h: Ditto.
1762
1763 2003-09-12 Chris Lattner <sabre@nondot.org>
1764
1765 * loop.c: Move comments describing BIV's and GIV's to top of file
1766
1767 2003-09-12 Roger Sayle <roger@eyesopen.com>
1768
1769 PR optimization/8967
1770 * alias.c (write_dependence_p): Modify to take an additional constp
1771 argument that controls whether the UNCHANGING_RTX_P flags are used.
1772 (anti_dependence, output_dependence): Adjust write_dependence_p
1773 callers to pass this additional argument, to return the same result.
1774 (unchanging_anti_dependence): New variant of anti_dependence that
1775 ignores the UNCHANGING_RTX_P property on memory references.
1776 * rtl.h (unchaning_anti_dependence): Prototype here.
1777 * flow.c (init_propagate_block): Place fake constant mem writes on
1778 the mem_set_list so that dead writes to const variables are deleted.
1779 (insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
1780 (mark_used_regs): Likewise.
1781
1782 2003-09-12 Richard Sandiford <rsandifo@redhat.com>
1783
1784 * config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
1785 (mcore_secondary_reload_class): Declare.
1786 (mcore_output_inline_const_forced): Remove.
1787 * config/mcore/mcore.md (movsi): Remove the code that forced
1788 non-inlineable constants into a register if the target was r15
1789 or the stack pointer. Remove constant restrictions from the main
1790 define_insn. Remove r <- I, r <- M and r <- N alternatives in favor
1791 of an r <- P alternative. Remove fallback define_insn for reload.
1792 (movhi, movqi): Use gen_lowpart rather than gen_SUBREG. Remove reload
1793 define_insn. Use mcore_output_move in the remaining define_insn.
1794 Adjust condition and constraints in the way as for movsi.
1795 (movdi): Always split unacceptable constants into two. Use
1796 simplify_gen_subreg instead of operand_subword{,_force}.
1797 * config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
1798 (mcore_output_move): Support HImode and QImode moves as well.
1799 (mcore_m15_operand_p): New function.
1800 (mcore_reload_class): Use it to detect cases where LRW_REGS are better.
1801 (mcore_secondary_reload_class): New function.
1802 * config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
1803 terms of mcore_secondary_reload_class.
1804
1805 2003-09-11 Mike Stump <mrs@apple.com>
1806
1807 * c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
1808
1809 2003-09-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1810
1811 * builtins.c (fold_builtin_logarithm): if N can't be truncated to
1812 MODE exactly, then only convert logN(N) -> 1.0 if
1813 flag_unsafe_math_optimizations is set.
1814
1815 * builtins.c (builtin_dconsts_init, dconstpi, dconste,
1816 init_builtin_dconsts): Delete.
1817 * emit-rtl.c (dconstpi, dconste): Define.
1818 (init_emit_once): Initialize dconstpi & dconste.
1819 * real.h (dconstpi, dconste): Declare.
1820
1821 2003-09-11 Alexandre Oliva <aoliva@redhat.com>
1822
1823 PR fortran/11522
1824 * dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
1825 for ultimate origin even if block is abstract.
1826
1827 2003-09-11 Roger Sayle <roger@eyesopen.com>
1828
1829 * combine.c (combine_simplify_rtx): Move several NOT and NEG
1830 optimizations from here...
1831 * simplify-rtx.c (simplify_unary_operation): to here. Recursively
1832 simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
1833
1834 2003-09-11 Richard Henderson <rth@redhat.com>
1835
1836 * cgraphunit.c (cgraph_finalize_function): Add nested arg.
1837 Tweek tests for function already generated.
1838 (cgraph_expand_function): Don't double announce in !unit-at-a-time.
1839 * cgraph.h (cgraph_finalize_function): Update for extra arg.
1840 * c-decl.c (finish_function): Likewise.
1841
1842 2003-09-10 Joe Buck <jbuck@welsh-buck.org>
1843
1844 * c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
1845
1846 2003-09-10 Jerry Quinn <jlquinn@optonline.net>
1847
1848 * real.c: Update URL to VAX floating point docs.
1849 (decode_vax_d): Extract 8 exponent bits instead of 7.
1850
1851 2003-09-10 Ian Lance Taylor <ian@wasabisystems.com>
1852
1853 * combine.c (force_to_mode): Set fuller_mask based only on mask,
1854 not op_mode.
1855
1856 2003-09-11 Jan Hubicka <jh@suse.cz>
1857
1858 * c-objc-common.c (c_cannot_inline_tree_fn): Warn
1859 on why function is not inlinable; do not check
1860 the body.
1861 (inline_forbidden_p): Move to...
1862 * tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
1863 deal with alloca, longjmp.
1864 (inline_forbidden_p): New static function.
1865 (find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
1866 find_builtin_longjmp_call): Kill.
1867
1868 2003-09-10 Richard Henderson <rth@redhat.com>
1869
1870 * cgraph.h (struct cgraph_node): Rename lowered to analyzed.
1871 * cgraphunit.c: Update to match.
1872 (record_call_1): Rearrange. Call lang hook for language nodes.
1873 (cgraph_analyze_function): Don't call lower_function.
1874 * langhooks.h (struct lang_hooks_for_callgraph): Replace
1875 lower_function with analyze_expr.
1876 * langhooks-def.h: Update to match.
1877 * langhooks.c (lhd_callgraph_analyze_expr): New.
1878
1879 2003-09-10 Martin Husemann <martin@duskware.de>
1880
1881 PR target/11965
1882 * config/sparc/sparc.c (sparc_v8plus_shift): Protect against
1883 constants greater than 63.
1884 * config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
1885 against constants greater than 31.
1886 (*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
1887 constants greater than 63.
1888
1889 2003-09-09 Richard Henderson <rth@redhat.com>
1890
1891 * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
1892 * cgraph.h (cgraph_finalize_function): Update.
1893 * c-decl.c (finish_function): Update.
1894
1895 2003-09-09 Devang Patel <dpatel@apple.com>
1896
1897 * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
1898 * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
1899
1900 2003-09-09 Eric Christopher <echristo@redhat.com>
1901
1902 * configure.in: Change usage of 'head' to 'sed 1q'.
1903 * configure: Regenerate.
1904
1905 2003-09-09 Richard Henderson <rth@redhat.com>
1906
1907 * except.c: Include cgraph.h.
1908 (output_function_exception_table): Invoke
1909 cgraph_varpool_mark_needed_node.
1910 * Makefile.in (except.o): Update.
1911
1912 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
1913
1914 * Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS
1915 and use it throughout.
1916
1917 2003-09-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1918
1919 * builtins.c (real_dconstp, fold_builtin_logarithm,
1920 fold_builtin_exponent): New, split out from fold_builtin. Also
1921 generalize to add log2, log10, exp2 and exp10/pow10 equivalents.
1922 * emit-rtl.c (dconst3, dconst10, dconstthird): New.
1923 (init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu
1924 of hardcoded array size.
1925 * fold-const.c (fold): Add cases for exp2, exp10 and pow10.
1926 (tree_expr_nonnegative_p): Likewise.
1927 * real.h (dconst3, dconst10, dconstthird): New.
1928
1929 2003-09-09 Jan Hubicka <jh@suse.cz>
1930
1931 * cgraphunit.c (cgraph_finalize_function): Fix handling of extern
1932 inline functions.
1933 (cgraph_finalize_compilation_unit): Fix crash when dealing with lost
1934 DECL_SAVED_TREE.
1935
1936 2003-09-09 Roger Sayle <roger@eyesopen.com>
1937
1938 * builtins.c (fold_builtin_cabs): Protect the complex argument
1939 against multiple evaluation when optimizing cabs* into sqrt*.
1940
1941 2003-09-09 Jan Hubicka <jh@suse.cz>
1942
1943 * varasm.c (notice_global_symbol): Properly deal with weak symbols.
1944
1945 2003-09-08 Kelley Cook <kelleycook@wideopenwest.com>
1946
1947 * Makefile.in: Revert yesterday's change.
1948
1949 2003-09-08 Bernardo Innocenti <bernie@develer.com>
1950 Peter Barada <peter@baradas.org>
1951
1952 * config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
1953 * config/m68k/hp320.h (REGISTER_NAMES): Likewise.
1954 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
1955 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
1956 * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
1957 * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
1958 * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
1959 (m68k_compute_frame_layout): New function.
1960 (m68k_initial_elimination_offset): New function.
1961 (m68k_output_function_prologue): ColdFire-specific movem handling.
1962 (m68k_output_function_epilogue): Likewise.
1963 * config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg.
1964 (ARG_POINTER_REGNUM): Add new definition.
1965 (INITIAL_FRAME_POINTER_OFFSET): Remove macro.
1966 (ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
1967 (CAN_ELIMINATE): Likewise.
1968 (INITIAL_ELIMINATION_OFFSET): Likewise.
1969
1970 2003-09-08 Bernardo Innocenti <bernie@develer.com>
1971
1972 * config/m68k/m68k.c (m68k_output_function_prologue): Simplify
1973 by removing redundant variable cfa_store_offset.
1974
1975 2003-09-08 Mark Mitchell <mark@codesourcery.com>
1976
1977 * langhooks-def.h (lhd_register_builtin_type): New function.
1978 (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro.
1979 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
1980 * langhooks.h (lang_hooks_for_types): Add register_builtin_type.
1981 * langhooks.c (lhd_register_builtin_type): New function.
1982 * c-common.h (c_register_builtin_type): Declare.
1983 * c-common.c (c_register_builtin_type): New function.
1984 * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to
1985 c_register_builtin_type.
1986 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg,
1987 __float80, and __float128 macros.
1988 * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg,
1989 __float80, and __float128 types.
1990
1991 2003-09-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1992
1993 * builtin-types.def
1994 (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE,
1995 BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE,
1996 BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New.
1997 * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH,
1998 BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL,
1999 BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN,
2000 BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF,
2001 BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN,
2002 BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF,
2003 BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF,
2004 BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL,
2005 BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW,
2006 BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF,
2007 BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH,
2008 BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT,
2009 BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF,
2010 BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL):
2011 New.
2012 * doc/extend.texi: Document new builtins.
2013
2014 2003-09-09 Jan Hubicka <jh@suse.cz>
2015
2016 * cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated
2017 finalization.
2018 * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested
2019 functions, check for COMDAT.
2020 (cgraph_assemble_pending_functions): Break out from...
2021 (cgraph_finalize_function): ... here; allow redefinig of extern inline
2022 functions.
2023 (record_call_1): Record function references only in non-unit-at-a-time
2024 mode.
2025 (cgraph_analyze_function): Reset current_function_decl.
2026 (cgraph_finalize_compilation_unit): Assemble pending functions.
2027
2028 2003-09-08 Mark Mitchell <mark@codesourcery.com>
2029
2030 * mklibgcc.in (libcc.a): Depend on stmp-dirs.
2031 (libgov.a): Likewise.
2032 (libgcc_eh.a): Likewise.
2033
2034 2003-09-08 Roger Sayle <roger@eyesopen.com>
2035
2036 * fold-const.c (operand_equal_p): Clarify documentation.
2037
2038 2003-09-08 Richard Henderson <rth@redhat.com>
2039
2040 * c-decl.c (c_expand_body_1): Push and pop function context here.
2041 * tree-optimize.c (tree_rest_of_compilation): ... not here. Take
2042 nested argument instead of computing nesting ourselves.
2043
2044 2003-09-08 Jakub Jelinek <jakub@redhat.com>
2045
2046 * toplev.c (rest_of_handle_stack_regs): Call split_all_insns before
2047 regstack if optimizing but not scheduling after reload.
2048
2049 2003-09-08 Jakub Jelinek <jakub@redhat.com>
2050
2051 * config/sparc/sparc.c (struct machine_function): New type.
2052 (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
2053 (sparc_override_options): Initialize init_machine_status.
2054 (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand,
2055 tie_symbolic_operand, tle_symbolic_operand): New functions.
2056 (symbolic_operand): Disallow tls_symbolic_operand.
2057 (symbolic_memory_operand): Likewise.
2058 (tls_call_delay, sparc_cannot_force_const_mem, legitimate_constant_p,
2059 constant_address_p, legitimate_pic_operand_p, legitimate_address_p):
2060 New functions.
2061 (sparc_tls_symbol): New variable.
2062 (sparc_tls_get_addr, sparc_tls_got, legitimize_tls_address,
2063 legitimize_address): New functions.
2064 (print_operand): Handle %&.
2065 (sparc_init_machine_status, get_some_local_dynamic_name,
2066 get_some_local_dynamic_name_1): New functions.
2067 (sparc_output_dwarf_dtprel): New function.
2068 * config/sparc/sparc.h (CONSTANT_ADDRESS_P): Moved into
2069 constant_address_p.
2070 (LEGITIMATE_PIC_OPERAND_P): Moved into legitimate_pic_operand_p.
2071 (LEGITIMATE_CONSTANT_P): Moved into legitimate_constant_p.
2072 (GO_IF_LEGITIMATE_ADDRESS): Moved into legitimate_address_p.
2073 (LEGITIMIZE_ADDRESS): Moved into legitimize_address.
2074 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
2075 (TARGET_TLS, TARGET_SUN_TLS, TARGET_GNU_TLS): Define.
2076 (ASM_OUTPUT_DWARF_DTPREL): Define.
2077 (PREDICATE_CODES): Add tgd_symbolic_operand, tld_symbolic_operand,
2078 tie_symbolic_operand, tle_symbolic_operand.
2079 * config/sparc/sparc.md (UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_TLSLDO,
2080 UNSPEC_TLSIE, UNSPEC_TLSLE, UNSPEC_TLSLD_BASE): New constants.
2081 (tls_call_delay): New attribute.
2082 (in_call_delay): Use it.
2083 (movqi, movhi, movsi, movdi): Call legitimize_tls_address if needed.
2084 (tgd_hi22, tgd_lo10, tgd_add32, tgd_add64, tgd_call32, tgd_call64,
2085 tldm_hi22, tldm_lo10, tldm_add32, tldm_add64, tldm_call32, tldm_call64,
2086 tldo_hix22, tldo_lox10, tldo_add32, tldo_add64, tie_hi22, tie_lo10,
2087 tie_ld32, tie_ld64, tie_add32, tie_add64, tle_hix22_sp32,
2088 tle_lox10_sp32, tle_hix22_sp64, tle_lox10_sp64): New insns.
2089 (tldo_ldub_sp32, tldo_ldub1_sp32, tldo_ldub2_sp32, tldo_ldsb1_sp32,
2090 tldo_ldsb2_sp32, tldo_ldub_sp64, tldo_ldub1_sp64, tldo_ldub2_sp64,
2091 tldo_ldub3_sp64, tldo_ldsb1_sp64, tldo_ldsb2_sp64, tldo_ldsb3_sp64,
2092 tldo_lduh_sp32, tldo_lduh1_sp32, tldo_ldsh1_sp32, tldo_lduh_sp64,
2093 tldo_lduh1_sp64, tldo_lduh2_sp64, tldo_ldsh1_sp64, tldo_ldsh2_sp64,
2094 tldo_lduw_sp32, tldo_lduw_sp64, tldo_lduw1_sp64, tldo_ldsw1_sp64,
2095 tldo_ldx_sp64, tldo_stb_sp32, tldo_stb_sp64, tldo_sth_sp32,
2096 tldo_sth_sp64, tldo_stw_sp32, tldo_stw_sp64, tldo_stx_sp64): New
2097 insns.
2098 * config/sparc/sparc-protos.h (legitimate_constant_p,
2099 constant_address_p, legitimate_pic_operand_p, legitimate_address_p,
2100 legitimize_tls_address, legitimize_address, tls_symbolic_operand,
2101 tls_call_delay, sparc_output_dwarf_dtprel): New prototypes.
2102 * config/sparc/linux.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
2103 * config/sparc/linux64.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Likewise.
2104 * configure.in (sparc*-*-*): Add TLS check.
2105 * configure: Rebuilt.
2106
2107 2003-09-07 Eric Botcazou <ebotcazou@libertysurf.fr>
2108
2109 PR target/11689
2110 * config/i386/i386.c (memory_address_length): Fix computation when
2111 the base is esp or ebp.
2112
2113 2003-09-07 Mark Mitchell <mark@codesourcery.com>
2114
2115 PR c++/11852
2116 * varasm.c (initializer_constant_valid_p): Correct logic for
2117 CONSTRUCTORs.
2118
2119 2003-09-07 Roger Sayle <roger@eyesopen.com>
2120
2121 * expr.c (expand_operands): New function to expand an operand pair.
2122 (expand_expr): Call expand_operands whenever we need to expand both
2123 operands of a binary operator.
2124 (do_store_flag): Likewise for operands of comparison operations.
2125
2126 2003-09-07 Roger Sayle <roger@eyesopen.com>
2127
2128 * combine.c (combine_simplify_rtx): Don't convert -(A*B) into
2129 (-A)*B if we care about sign-dependent rounding.
2130
2131 2003-09-07 Gabriel Dos Reis <gcc@integrable-solutions.net>
2132
2133 * c-pretty-print.h (pp_c_left_brace): Declare.
2134 (pp_c_right_brace): Likewise.
2135 * c-pretty-print.c (pp_c_left_brace): Now a function
2136 (pp_c_right_brace): Likewise.
2137
2138 2003-09-07 Jan Hubicka <jh@suse.cz>
2139
2140 * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
2141
2142 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
2143
2144 * diagnostic.c (warn_deprecated_use): Move to toplev.c
2145
2146 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
2147
2148 * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
2149 * Makefile.in (langhooks.o): Depend on diagnostic.h
2150
2151 2003-09-06 James E Wilson <wilson@tuliptree.org>
2152
2153 * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
2154 simplify.
2155
2156 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
2157
2158 * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
2159 and use it throughout.
2160
2161 2003-09-07 Jan Hubicka <jh@suse.cz>
2162
2163 * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
2164
2165 * toplev.c (rest_of_decl_compilation): Do not finalize external
2166 virables.
2167
2168 * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
2169 functions.
2170 (cgraph_varpool_finalize_decl): Notice global symbol when needed.
2171
2172 2003-09-06 Jan Hubicka <jh@suse.cz>
2173
2174 PR target/12070
2175 * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
2176
2177 PR opt/12082
2178 * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
2179
2180 2003-09-06 Gabriel Dos Reis <gdr@integrable-solutions.net>
2181
2182 * diagnostic.c (announce_function): Move to toplev.c.
2183
2184 2003-09-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2185
2186 * gcse.c (expr_equiv_p): Don't consider anything to be equal to
2187 volatile mem.
2188
2189 2003-09-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2190
2191 * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
2192 when gc checking is enabled.
2193
2194 2003-09-06 Steven Bosscher <steven@gcc.gnu.org>
2195
2196 PR c/9862
2197 * c-decl.c (c_expand_body_1): Move return warning from here...
2198 (finish_function): ...to here.
2199
2200 2003-09-05 Geoffrey Keating <geoffk@apple.com>
2201
2202 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
2203 a subset of the input class.
2204
2205 2003-09-05 Kazu Hirata <kazu@cs.umass.edu>
2206
2207 * config/i860/i860.c: Follow spelling conventions.
2208 * config/i860/i860.h: Likewise.
2209 * config/sh/sh.h: Likewise.
2210
2211 2003-09-05 Nitin Yewale <NitinY@KPITCummins.com>
2212
2213 * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
2214 * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
2215 * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
2216
2217 2003-09-05 Roger Sayle <roger@eyesopen.com>
2218 Richard Henderson <rth@redhat.com>
2219
2220 PR optimization/1823
2221 * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
2222 multiplication to implement division by constant integer.
2223
2224 2003-09-05 Jan Hubicka <jh@suse.cz>
2225
2226 * opts.c (decode_options): Enable unit-at-a-time at -O2.
2227 * params.def (max-inline-insns-single): Set to 500
2228 (max-inline-insns-auto): Set to 150
2229 * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
2230
2231 2003-09-04 Richard Henderson <rth@redhat.com>
2232
2233 * cgraph.c (cgraph_mark_reachable_node): Split out from ...
2234 (cgraph_mark_needed_node): Remove needed argument.
2235 * cgraph.h: Update to match.
2236 * cgraphunit.c (decide_is_function_needed): Split out from ...
2237 (cgraph_finalize_function): Reorg. Avoid deferred_inline_function
2238 if we generated the function.
2239 (record_call_1): Update for cgraph_mark_reachable_node.
2240 * varasm.c (mark_referenced): Likewise.
2241 * objc/objc-act.c (mark_referenced_methods): Likewise.
2242
2243 2003-09-04 DJ Delorie <dj@redhat.com>
2244
2245 * targhooks.c: Add comment explaining the migration process.
2246
2247 2003-09-04 Eric Christopher <echristo@redhat.com>
2248
2249 * config/frv/t-frv: Fix path for frv-abi.h.
2250 * config/frv/frv-asm.h: Fix string concatenation.
2251
2252 2003-09-04 DJ Delorie <dj@redhat.com>
2253
2254 * builtins.c (apply_args_size): Guard against a NULL cfun.
2255 (expand_builtin_apply_args_1): Likewise.
2256 (expand_builtin_apply): Likewise.
2257 Fixes PR bootstrap/12172.
2258
2259 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2260
2261 * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
2262 assembler supports Sun syntax for cmov.
2263 * configure: Regenerate.
2264 * config.in: Likewise.
2265 * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
2266 HAVE_AS_IX86_CMOV_SUN_SYNTAX.
2267 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
2268 Fixes PR target/12101.
2269
2270 2003-09-04 Matt Austern <austern@apple.com>
2271
2272 * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
2273 with verbosity 0, instead of DECL_NAME, for human-readable string.
2274
2275 2003-09-04 Eric Christopher <echristo@redhat.com>
2276
2277 * targhooks.c (default_return_in_memory): Allow
2278 unconverted ports.
2279
2280 2003-09-04 Eric Christopher <echristo@redhat.com>
2281
2282 * targhooks.c (default_return_in_memory): Fix typo
2283 in last checkin.
2284
2285 2003-09-04 Eric Christopher <echristo@redhat.com>
2286
2287 * targhooks.c (default_return_in_memory): Fix default
2288 definition.
2289
2290 2003-09-04 Bernardo Innocenti <bernie@develer.com>
2291
2292 * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
2293 deleted function.
2294 * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
2295 enable coff-only code in m68k.c.
2296
2297 2003-09-04 Nick Clifton <nickc@redhat.com>
2298
2299 * config.gcc: Add v850e1 target. Allow --with-cpu to accept
2300 v850e1.
2301 * config/v850/v850.h: Accept v850e1 as a default CPU.
2302 Accept -mv850e1 as a command line option.
2303 * doc/invoke.texi: Document new -mv850e1 command line switch.
2304 * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
2305 -mv850e.
2306
2307 2003-09-04 Nick Clifton <nickc@redhat.com>
2308
2309 * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
2310 * config/v850/t-v850: Only produce one extra multilib - for
2311 the v850e.
2312 * config/v850/t-v850e: New file: Only produce one extra
2313 multilib - for the v850.
2314
2315 2003-09-04 Jakub Jelinek <jakub@redhat.com>
2316
2317 * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
2318 * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
2319 * unwind.h (_Unwind_GetBSP): New prototype.
2320 * libgcc-std.ver: Add empty GCC_3.3.2 version.
2321 * mkmap-symver.awk: For symbol versions with no exported symbols,
2322 don't put anything into version script, just change all symbol
2323 versions which inherit from it to inherit from its ancestor.
2324
2325 2003-09-04 Eric Christopher <echristo@redhat.com>
2326
2327 * config/mips/mips.c (mips_expand_prologue): Convert to
2328 calls.struct_value_rtx hook.
2329 (reg_or_const_float_1_operand): New.
2330 * config/mips/mips.h: Update Comments.
2331 (mips_arg): Add reg_or_const_float_1_operand.
2332 * config/mips/mips.md (divdf3); Convert to expander.
2333 (divsf3): Ditto.
2334 (*divdf3): New pattern.
2335 (*divsf3): Ditto.
2336
2337 2003-09-04 Jan Hubicka <jh@suse.cz>
2338
2339 * toplev.c (wrapup_global_declarations): Fix final pass in
2340 unit-at-atime mode.
2341
2342 2003-09-04 Mark Mitchell <mark@codesourcery.com>
2343
2344 * doc/extend.texi: Document removal of cast-as-lvalue extension in
2345 C++.
2346
2347 2003-09-04 Nicolas Roche <roche@act-europe.fr>
2348
2349 * gcc.c (process_command): Fix typo.
2350
2351 2003-09-03 David O'Brien <obrien@FreeBSD.org>
2352
2353 optimization/11980
2354 * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
2355 (PTRDIFF_TYPE): Likewise.
2356 (WCHAR_TYPE_SIZE): Likewise.
2357
2358 2003-09-03 DJ Delorie <dj@redhat.com>
2359
2360 * targhooks.c: New file.
2361 * targhooks.h: New file.
2362 * Makefile.in: Add targhooks.o support.
2363 (function.o): Depend on$(TARGET_H).
2364 (stmt.o): Likewise.
2365 (combine.o): Depend on $(TREE_H) and $(TARGET_H).
2366 * builtins.c (apply_args_size, expand_builtin_apply_args_1,
2367 expand_builtin_apply): Convert to calls.struct_value_rtx hook.
2368 (expand_builtin_saveregs): Convert to
2369 calls.expand_builtin_saveregs hook.
2370 * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
2371 here, instead of ...
2372 (get_parm_info) ... here.
2373 (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
2374 hook.
2375 (finish_function): Handle calls.promote_prototypes hook here too.
2376 * c-typeck.c (convert_arguments): Convert to
2377 calls.promote_prototypes hook.
2378 (c_convert_parm_for_inlining): Likewise.
2379 * calls.c (initialize_argument_information): Convert to
2380 calls.promote_function_args hook.
2381 (expand_call): Convert to calls.struct_value_rtx,
2382 calls.strict_argument_naming,
2383 calls.pretend_outgoing_varargs_named, and
2384 calls.promote_function_return hooks. Pass fndecl to
2385 aggregate_value_p. Initialize CUMULATIVE_ARGS before calling
2386 hooks, so they can use that.
2387 (emit_library_call_value_1): Likewise.
2388 * combine.c (setup_incoming_promotions): Convert to
2389 calls.promote_function_args hook.
2390 * emit-rtl.c: Convert to calls.struct_value_rtx hook.
2391 * expr.c (expand_assignment): Pass call to aggregate_value_p.
2392 (expand_expr): Likewise.
2393 * expr.h: Remove support for SETUP_INCOMING_VARARGS,
2394 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
2395 RETURN_IN_MEMORY macro defaults.
2396 * final.c (profile_function): Convert to calls.struct_value_rtx
2397 hook.
2398 * function.c (aggregate_value_p): Accept function type tree as
2399 second parameter; try to deduce fntype from it. Convert to
2400 calls.return_in_memory hook.
2401 (assign_parms): Convert to calls.setup_incoming_varargs,
2402 calls.strict_argument_naming, calls.promote_function_args,
2403 calls.pretend_outgoing_varargs_named hooks. Pass fndecl to
2404 aggregate_value_p.
2405 (expand_function_start): Likewise. Convert to
2406 calls.struct_value_rtx hook.
2407 (expand_function_end): Convert to calls.promote_function_return hook.
2408 (allocate_struct_function): Pass fndecl to aggregate_value_p.
2409 * hard-reg-set.h: Update comments to new hook names.
2410 * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
2411 * reg-stack.c (stack_result): Likewise.
2412 * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
2413 * stmt.c (expand_value_return): Convert to
2414 calls.promote_function_return hook.
2415 * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
2416 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
2417 TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
2418 TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
2419 TARGET_STRICT_ARGUMENT_NAMING,
2420 TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
2421 * target.h: Likewise.
2422 * tree.h (aggregate_value_p): Also takes a tree to deduce function
2423 attributes from (for target hooks).
2424 * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
2425 PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
2426 STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
2427 EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
2428 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
2429 to hooks.
2430
2431 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
2432 to aggregate_value_p.
2433 * config/arm/arm.c (arm_init_cumulative_args,
2434 arm_output_mi_thunk): Likewise.
2435 * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
2436 Likewise.
2437 * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
2438 mips_can_use_return_insn): Likewise.
2439 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
2440 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
2441 * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
2442 aggregate_value_p.
2443 * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
2444 function to aggregate_value_p.
2445 * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
2446 aggregate_value_p.
2447
2448 * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
2449 (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
2450 sh_function_arg_advance, sh_pass_in_reg_p): New. * config/sh/sh.c
2451 (sh_handle_renesas_attribute, sh_promote_prototypes,
2452 sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
2453 sh_setup_incoming_varargs, sh_strict_argument_naming,
2454 sh_pretend_outgoing_varargs_named): New decls.
2455 (targetm): Add new hooks.
2456 (calc_live_regs): Save MACL and MACH if the function has the
2457 renesas attribute.
2458 (sh_expand_prologue): Support renesas attribute.
2459 (sh_builtin_saveregs): Make static.
2460 (sh_build_va_list): Support renesas attribute.
2461 (sh_va_start): Likewise.
2462 (sh_va_arg): Likewise.
2463 (sh_promote_prototypes): New.
2464 (sh_function_arg): New, moved from sh.h. Support renesas
2465 attribute.
2466 (sh_function_arg_advance): Likewise.
2467 (sh_return_in_memory): Likewise.
2468 (sh_strict_argument_naming): Likewise.
2469 (sh_pretend_outgoing_varargs_named): Likewise.
2470 (sh_struct_value_rtx): New.
2471 (sh_attribute): Add renesas attribute.
2472 (sh_handle_renesas_attribute): New.
2473 (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
2474 (sh_ms_bitfield_layout_p): Support renesas attribute also.
2475 (sh_output_mi_thunk): Pass function to aggregate_value_p. *
2476 config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
2477 -mhitachi.
2478 (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
2479 target hooks.
2480 (sh_args): Add renesas_abi flag.
2481 (INIT_CUMULATIVE_ARGS): Set it. Pass fndecl to aggregate_value_p.
2482 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
2483 (PASS_IN_REG_P): Support renesas attribute. Pass DF and TF on the
2484 stack for the renesas abi.
2485 (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
2486 SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
2487 PROMOTE_PROTOTYPES): Moved to sh.c. * config/sh/sh.md (call): Set
2488 call cookie to indicate renesas calls.
2489
2490 2003-09-03 Mostafa Hagog <mustafa@il.ibm.com>
2491
2492 * gcse.c (replace_one_set): New function.
2493 (pre_insert_copy_insn): Change the order of copying
2494 to make copy propagation discover additional PRE opportunities.
2495
2496 2003-09-03 Roger Sayle <roger@eyesopen.com>
2497
2498 PR optimization/11700.
2499 * simplify-rtx.c (simplify_subreg): Check that the subreg offset
2500 of a hard register is representable before trying to simplify it
2501 using subreg_hard_regno.
2502
2503 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2504
2505 * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
2506 * configure: Regenerate.
2507
2508 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2509
2510 * intl.h (N_): Remove parentheses.
2511
2512 2003-09-03 Bernardo Innocenti <bernie@develer.com>
2513
2514 * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
2515 * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
2516 definition and code blocks compiled when not defined.
2517 * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
2518 * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
2519 * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
2520 * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
2521
2522 2003-09-03 Jeff Sturm <jsturm@one-point.com>
2523
2524 * cgraphunit.c (visited_nodes): New static variable.
2525 (record_call_1): Use walk_tree with visited_nodes.
2526 (cgraph_create_edges): Use walk_tree with visited_nodes.
2527 Setup/teardown visited_nodes hashtable.
2528
2529 2003-09-03 Roger Sayle <roger@eyesopen.com>
2530
2531 * toplev.c (flag_rounding_math): New global variable.
2532 (f_options): Add to the list of language independent options.
2533 * flags.h (flag_rounding_math): Prototype here.
2534 (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
2535 * common.opt (frounding-math): New common command line option.
2536 * opts.c (common_handle_option): Handle OPT_frounding_math.
2537 (set_fast_math_flags): -ffast-math clears flag_rounding_math.
2538
2539 * doc/invoke.texi: Document this new command line option.
2540
2541 2003-09-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2542
2543 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
2544
2545 2003-09-03 Jan Hubicka <jh@suse.cz>
2546
2547 * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
2548 * c-decl.c (finish_function): Kill arguments, always use cgraph path.
2549 * c-objc-common.c: Kill include of gt-c-objc-common.h
2550 (expand_deferred_fns, deffer_fn): Kill function.
2551 (deferred_fns): Kill variable.
2552 (finish_cdtor): Update finish_function call.
2553 (c_objc_common_finish_file): Always call cgraph code.
2554 * c-parse.c: Regenerate.
2555 * c-parse.y: Regenerate.
2556 * c-tree.h (finish_function): Update prototype.
2557 * objc-acct.c (build_module_descriptor, finish_method_def):
2558 Update call of finish_function.
2559 * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
2560 forward prototype.
2561 (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
2562 function and assemble it if needed.
2563 (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
2564 mode.
2565 (cgraph_optimize): Likewise.
2566 (cgraph_expand_function): In non-unit-at-a-time mode keep function body
2567 even when it has no inline callees.
2568 * c-parse.in: Update calls to finish_function.
2569
2570 2003-09-03 Nick Clifton <nickc@redhat.com>
2571
2572 * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
2573 Use #error to generate the message if TARGET_DEFAULT is not
2574 recognised.
2575
2576 2003-09-03 Richard Sandiford <rsandifo@redhat.com>
2577
2578 * config/mips/mips.h (MASK_UNUSED1): Remove.
2579 (MASK_XGOT, TARGET_XGOT): Define.
2580 (TARGET_SWITCHES): Add an entry for -mxgot.
2581 (ASM_SPEC): Map -mxgot to -xgot.
2582 * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
2583 whether we're using a big-GOT sequences.
2584 (mips_legitimize_const_move, mips_expand_call): Likewise.
2585 (override_options): Revert 2003-01-09 change.
2586 * doc/invoke.texi: Document -mxgot.
2587
2588 2003-09-02 Jason Merrill <jason@redhat.com>
2589
2590 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
2591 * config/sparc/sol2.h: Not here.
2592
2593 2003-09-02 Roger Sayle <roger@eyesopen.com>
2594
2595 * expr.c (expand_expr): The code following both_summands performs
2596 the same task as simplify_gen_binary. Replace all gotos to
2597 both_summands with a call to simplify_gen_binary and delete the
2598 now unused label.
2599
2600 2003-09-02 Jason Merrill <jason@redhat.com>
2601
2602 PR c++/7327
2603 * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
2604
2605 2003-09-02 Jeff Sturm <jsturm@one-point.com>
2606
2607 * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
2608 (cgraph_optimize_function): Set current_function_decl to the
2609 fndecl we're integrating from.
2610
2611 2003-09-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2612
2613 * builtins.def: Break out _Complex math functions into their
2614 own category.
2615
2616 2003-09-02 Andreas Jaeger <aj@suse.de>
2617
2618 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
2619
2620 2003-09-02 Josef Zlomek <zlomekj@suse.cz>
2621
2622 * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
2623 finding the note again.
2624
2625 2003-09-02 Nathanael Nerode <neroden@gcc.gnu.org>
2626
2627 * config.gcc: Remove host-specific rewrites of target_alias.
2628
2629 2003-09-01 Mark Mitchell <mark@codesourcery.com>
2630
2631 * Makefile.in (genprogs): Fix typo.
2632
2633 * Makefile.in (gencheck.o): Remove build commands.
2634 (dummy-conditions.o): Likewise.
2635 (read-rtl.o): Likewise.
2636 (gensupport.o): Likewise.
2637 (genconfig$(build_exeext)): Remove rule.
2638 (genconfig.o): Remove build commands.
2639 (genflags$(build_exeext)): Remove rule.
2640 (genflags.o): Remove build commands.
2641 (gencodes$(build_exeext)): Remove rule.
2642 (gencodes.o): Remove build commands.
2643 (genconstants.o): Remove build commands.
2644 (genemit$(build_exeext)): Remove rule.
2645 (genemit.o): Remove build commands.
2646 (genrecog$(build_exeext)): Remove rule.
2647 (genrecog.o): Remove build commands.
2648 (genextract$(build_exeext)): Remove rule.
2649 (genextract.o): Remove build commands.
2650 (genpeep$(build_exeext)): Remove rule.
2651 (genpeep.o): Remove build commands.
2652 (genattr$(build_exeext)): Remove rule.
2653 (genattr.o): Remove build commands.
2654 (genprognames): New variable.
2655 (genprogs): Likewise.
2656 (genobjs): Likewise.
2657 (genprogs): New rule.
2658 (genobjs): Likewise.
2659 (genattrtab.o): Remove build commands.
2660 (genautomata.o): Likewise.
2661 (genoutput$(build_exeext)): Remove rule.
2662 (genoutput.o): Remove build commands.
2663 (gengenrtl.o): Likewise.
2664 (genpreds.o): Likewise.
2665 (gengtype.o): Likewise.
2666 (genconditions.o): Likewise.
2667 (gen-protos.o): Likewise.
2668 (scan.o): Likewise.
2669 (fix-header.o): Likewise.
2670 (scan-decls.o): Likewise.
2671 (check-g++): Combine with other check targets.
2672 (check-gcc): Likewise.
2673 (check-g77): Likewise.
2674 (check-objc): Likewise.
2675
2676 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
2677
2678 * config.gcc: Remove host-specific stuff which is unused here
2679 since the introduction of config.host.
2680
2681 * doc/fragments.texi: Mention config.host.
2682 * doc/sourcebuild.texi: Mention config.host. Give brief descriptions
2683 of config.build, config.host, and config.gcc.
2684
2685 2003-09-01 Zack Weinberg <zack@codesourcery.com>
2686
2687 * c-decl.c (pushdecl): Don't put variables on
2688 C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
2689 incomplete.
2690
2691 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
2692
2693 * config.host: New file.
2694 * config.gcc: Remove some host-specific stuff and some
2695 logic needed only for repeated invocation.
2696 * configure.in: Use config.host.
2697 * configure: Regenerate.
2698
2699 2003-09-01 Josef Zlomek <zlomekj@suse.cz>
2700
2701 * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
2702 * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
2703 * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
2704 (fold): Kill BIT_ANDTC_EXPR and label bit_and.
2705 * tree.def (BIT_ANDTC_EXPR): Kill.
2706
2707 2003-08-31 Nathanael Nerode <neroden@gcc.gnu.org>
2708
2709 * configure.in: Remove uses of "for x in .. ${foo}" idiom.
2710 * configure: Regenerate.
2711
2712 * config.gcc: Remove references to install_headers_dir, now unused
2713 since introduction of config.build.
2714 * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
2715
2716 * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
2717 config.build.
2718
2719 * config.build: New file.
2720 * config.gcc: Remove some build-specific stuff.
2721 * configure.in: Use config.build.
2722 * configure: Regnerate.
2723
2724 2003-08-31 Steven Bosscher <steven@gcc.gnu.org>
2725 Roger Sayle <roger@eyesopen.com>
2726
2727 PR middle-end/11823
2728 * stmt.c (expand_end_case_type): Only use jump tables for dense
2729 switch statements when optimizing for size.
2730
2731 2003-08-31 Olivier Hainque <hainque@act-europe.fr>
2732
2733 * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
2734 the != 0 case, which ensures pending stack adjustments are flushed.
2735
2736 2003-08-30 Zack Weinberg <zack@codesourcery.com>
2737
2738 * configure.frag: Delete file.
2739 * configure.in: Rename the substitution variables
2740 dep_host_xmake_file and dep_tmake_file to xmake_file and
2741 tmake_file respectively. Do not expand $srcdir in the
2742 value of these; leave that for Make. Introduce a new
2743 substitution varaible, all_lang_makefrags, which lists
2744 subdirectory Make-lang.in files; exclude these from
2745 all_lang_makefiles, which is now only for subdirectory
2746 outputs. Do not invoke configure.frag. Do not set nor
2747 AC_SUBST_FILE target_overrides, host_overrides, or
2748 language_fragments. Create build subdirectories in
2749 config.status extra commands.
2750 * configure: Regenerate.
2751 * Makefile.in: Update substitutions to match changes to
2752 configure. Use include directives instead of @-insertions
2753 to read in host, target, and language fragments.
2754 (Makefile rule): Do not invoke configure.frag. Do not copy
2755 config.status to config.run before executing it. Set
2756 CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
2757 regenerated.
2758 (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
2759
2760 2003-08-30 Zack Weinberg <zack@codesourcery.com>
2761
2762 * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
2763 * c-typeck.c (same_translation_unit_p): New function.
2764 (comptypes): Use it instead of flags parameter to identify
2765 structure types from different translation units.
2766 * c-decl.c (duplicate_decls): Always call comptypes with
2767 COMPTYPE_STRICT flags argument.
2768 (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
2769 to file_scope_decl.
2770
2771 2003-08-30 Zack Weinberg <zack@codesourcery.com>
2772
2773 * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
2774 * c-decl.c (struct c_scope): Remove "incomplete" field.
2775 (pushdecl): Attach variables with incomplete types to
2776 the TYPE_MAIN_VARIANT of the incomplete type in question.
2777 (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
2778 to complete, not at current_scope->incomplete. All such
2779 variables do need completion.
2780
2781 2003-08-30 Richard Earnshaw <rearnsha@arm.com>
2782 Nicolas Pitre <nico@cam.org>
2783
2784 * arm/lib1funcs.asm (RETCOND): Delete.
2785 (RETLDM): New assembler macro. Use it for returning with ldm/ldr.
2786 (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
2787 (__ARM_ARCH__): Move here from ieee754-?f.S.
2788 (RET, RETc): Clean up definitions.
2789 (DIV_FUNC_END): Renamed from FUNC_END. All uses changed.
2790 (FUNC_END): New macro that marks the end of any function.
2791 (ARM_FUNC_START): New macro that allows an assembler routine to be
2792 implemented in ARM code even if a Thumb-only build.
2793 Unconditionally include ieee754-?f.S.
2794 * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
2795 Mark ends of functions.
2796 Split into separate conditionally-compiled units.
2797 Use RETLDM to return from routines.
2798 * arm/ieee754-sf.S: Similarly.
2799 * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
2800 Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
2801 _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
2802 _fixsfsi and _fixunssfsi.
2803
2804 * arm/ieee754-df.S (__muldf3): Fix bug when result of a
2805 multiplication underflows to zero.
2806 (__adddf3): Fix bug when using VFP ordering on little-endian
2807 processors.
2808 (__fixdfsi): Use rrx to extract the carry into a register instead of
2809 MRS instruction. Optimize later use of result.
2810 * arm/ieee754-sf.S (__fixsfsi): Likewise.
2811 (__fixunssfsi): Use a better sequence for handling negative-or-zero.
2812
2813 2003-08-29 Richard Henderson <rth@redhat.com>
2814
2815 * tree-optimize.c: New file.
2816 * Makefile.in (OBJS-archive): Add tree-optimize.o.
2817 (tree-optimize.o): New.
2818 * c-decl.c (store_parm_decls): Use allocate_struct_function.
2819 (finish_function): Don't free_after_parsing or free_after_compilation.
2820 (set_save_expr_context): Move to tree-optimize.c.
2821 (c_expand_body_1): Use tree_rest_of_compilation.
2822 * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
2823 * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
2824 * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
2825 iterate until closure.
2826 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
2827 LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
2828 (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
2829 * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
2830 * toplev.h (tree_rest_of_compilation): Declare it.
2831
2832 2003-08-29 Richard Henderson <rth@redhat.com>
2833
2834 * function.h (struct function): Add rtl_inline_init, saved_for_inline.
2835 * integrate.c (save_for_inline): Set saved_for_inline.
2836 * c-semantics.c (genrtl_scope_stmt): Check it.
2837 * toplev.c (wrapup_global_declarations): Check it.
2838 (rest_of_handle_inlining): Set and check rtl_inline_init.
2839 (rest_of_compilation): Remove out of date comment.
2840
2841 2003-08-29 Richard Henderson <rth@redhat.com>
2842
2843 * function.c (allocate_struct_function): New, split out of ...
2844 (prepare_function_start, init_function_start): ... here.
2845 * expr.c (init_expr): Use ggc_alloc_cleared.
2846 * stmt.c (init_stmt_for_function): Likewise.
2847 * tree.h (allocate_struct_function): Declare.
2848
2849 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
2850
2851 * config.gcc: Don't use negated character class in shell case
2852 clause.
2853
2854 2003-08-29 Richard Henderson <rth@redhat.com>
2855
2856 * function.h (struct function): Move function_frequency and
2857 max_jumptable_ents before start of bit field members.
2858
2859 2003-08-29 Richard Henderson <rth@redhat.com>
2860
2861 * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
2862 (fold_builtin_constant_p) ... not here.
2863
2864 2003-08-29 Richard Henderson <rth@redhat.com>
2865
2866 * c-tree.h (C_DECL_FILE_SCOPE): Move ...
2867 * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
2868 * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
2869
2870 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2871
2872 * builtins.def: Fix typos.
2873 (ATTR_MATHFN_FPROUNDING_STORE): New macro.
2874 (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
2875 BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
2876 BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
2877 BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
2878
2879 * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
2880 Use ATTR_MATHFN_FPROUNDING_ERRNO.
2881
2882 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
2883
2884 * config.gcc (i386-*-vsta): Fix obvious bogosity.
2885
2886 * fixinc/inclhack.def: Remove special cases for unsupported
2887 PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
2888 * fixinc/fixincl.x: Regenerate.
2889
2890 2003-08-29 Mark Mitchell <mark@codesourcery.com>
2891
2892 * Makefile.in (cpp.info): Just state dependencies.
2893 (gcc.info): Likewise.
2894 (gccint.info): Likewise.
2895 (gccinstall.info): Likewise.
2896 (cppinternals.info): Likewise.
2897 (cpp.dvi): Likewise.
2898 (gcc.dvi): Likewise.
2899 (gccint.dvi): Likewise.
2900 (gccinstall.dvi): Likewise.
2901 (cppinternals.dvi): Likewise.
2902 (gcov.1): Likewise.
2903 (cpp.1): Likewise.
2904 (gcc.1): Likewise.
2905 (gfdl.7): Likewise.
2906 (gpl.7): Likewise.
2907 (fsf-funding.7): Likewise.
2908 ($(objdir)/%.info): New pattern rule.
2909 (%.dvi): Likewise.
2910
2911 2003-08-29 Kelley Cook <kelleycook@wideopenwest.com>
2912
2913 * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
2914 (restage2): Likewise.
2915 (restage3): Likewise.
2916 (restage4): Likewise.
2917 (restageprofile): Likewise.
2918 (restagefeedback): Likewise.
2919 (bubblestrap): Likewise.
2920
2921 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
2922
2923 * config.gcc: Narrow unsupported target match to avoid clobbering
2924 i?86-sequent-sysv4*.
2925
2926 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2927
2928 * builtins.c (mathfn_built_in): Handle new math builtins.
2929
2930 2003-08-28 Per Bothner <per@bothner.com>
2931
2932 Fix (hopefully temporary) for breakage caused by my 08-21 patch.
2933 * cpplex.c (_cpp_get_fresh_line): Check for null buffer.
2934 (_cpp_lex_buffer): Likewise.
2935 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
2936
2937 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
2938
2939 * config/s390/s390.md ("*mulsi3_sign"): New insn.
2940 ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
2941 ("mulsidi3"): ... this new insn.
2942 ("umulsidi3"): New insn.
2943 ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
2944 mixed-mode matching constraints.
2945 ("udivmodsi4", "udivmoddisi3"): New insns.
2946 ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
2947
2948 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2949
2950 * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
2951 BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
2952 BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
2953 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
2954 BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
2955 BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
2956 BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
2957 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
2958 BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
2959 BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
2960 BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
2961 * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
2962 BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
2963 BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
2964 BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
2965 * tree.c: Assign new type_nodes.
2966 * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
2967 TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
2968 (float_ptr_type_node, double_ptr_type_node,
2969 long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
2970
2971 * doc/extend.texi: Document new builtins.
2972
2973 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2974
2975 * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
2976 BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
2977
2978 * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
2979 BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
2980 BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
2981 BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
2982 BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
2983 BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
2984 BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
2985 BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
2986 BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
2987 BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
2988
2989 * doc/extend.texi: Document new builtins.
2990
2991 2003-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
2992
2993 * fixinc/mkfixinc.sh: Remove special case code for unsupported
2994 variants of i?86, powerpcle, and thumb.
2995 * fixinc/mkfixinc.sh: Remove special case code for unsupported
2996 arm and hppa variants.
2997
2998 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2999
3000 * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
3001 BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
3002 BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
3003 BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
3004 BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
3005 BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
3006 BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
3007 BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
3008 BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
3009 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
3010
3011 * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
3012 BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
3013 BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
3014 BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
3015 BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
3016 BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
3017 BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
3018 BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
3019 BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
3020 BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
3021 BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
3022 BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
3023 BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
3024 BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
3025 BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
3026 BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
3027 BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
3028 BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
3029 BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
3030 BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
3031 BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
3032 BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
3033 BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
3034 BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
3035 BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
3036 BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
3037 BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
3038 BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
3039 BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
3040 BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
3041 BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
3042
3043 * doc/extend.texi: Document new builtins.
3044
3045 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
3046
3047 * config/s390/s390.c (legitmate_constant_p): Use LARL on
3048 zSeries machines even in 31-bit addressing mode.
3049 (legitimate_reload_constant_p): Likewise.
3050 (legitimize_pic_address): Likewise.
3051 (legitimize_tls_address): Likewise.
3052 (s390_split_branches): Likewise.
3053 (s390_dump_pool): Likewise.
3054 (s390_mainpool_finish): Likewise.
3055 (s390_chunkify_start): Likewise.
3056 (s390_select_rtx_section): Likewise.
3057 * config/s390/s390.md ("doloop_si"): Likewise.
3058 ("pool_start_31", "pool_end_31"): Likewise.
3059 ("pool_start_64", "pool_end_64"): Likewise.
3060 ("main_base_31_small", "main_base_31_large"): Likewise.
3061 ("main_base_64"): Likewise.
3062 ("reload_base_31", "reload_base_64"): Likewise.
3063 ("*movsi_larl"): New insn.
3064 ("cjump", "icjump"): Use long branches on zSeries machines.
3065 ("jump"): Likewise.
3066 ("call"): Use BRASL on zSeries machines.
3067 ("call_value", "call_value_tls"): Likewise.
3068 ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
3069 and replace by ...
3070 ("*bras", "*brasl", "*basr") ... these new insns.
3071 ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
3072 "bas_31_r"): Remove and replace by ...
3073 ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
3074 ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
3075 "bas_64_tls", "bas_31_tls"): Remove and replace by ...
3076 ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
3077 ("*return_si", "*return_di"): Remove and replace by ...
3078 ("*return"): ... this new insn.
3079 ("rotlsi3"): Allow on zSeries machines.
3080
3081 * config/s390/s390.c (legitimize_reload_constant_p): Use
3082 LL/LH type instructions in z/Architecture mode.
3083 * config/s390/s390.md ("*movsi_lli"): Likewise.
3084 ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
3085 ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
3086 ("*extendqisi2"): Use LB in z/Architecture mode.
3087 ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
3088 z/Architecture mode.
3089 ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
3090 Likewise.
3091
3092 * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
3093 and 31-bit mode.
3094 ("ptr_extend"): Allow only in 64-bit mode.
3095
3096 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
3097
3098 * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
3099 (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
3100 definitions.
3101 (main): Only use standard_startfile_prefix if native.
3102 * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
3103
3104 2003-08-27 Per Bothner <pbothner@apple.com>
3105
3106 * cpperror.c (print_location): Don't check for !pfile->buffer. That
3107 test fails following my 08-21 change, and it seems unnecessary anyway.
3108 (cpp_error): Likewise.
3109
3110 2003-08-27 Jason Merrill <jason@redhat.com>
3111
3112 * real.c (do_multiply): Initialize with memset.
3113
3114 2003-08-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3115
3116 * gcov.c (typedef struct arc_info): New field cs_count.
3117 (accumulate_line_counts): Find cycles correctly.
3118
3119 2003-08-27 Ulrich Weigand <uweigand@de.ibm.com>
3120
3121 * config/s390/s390.c (struct machine_function): Remove member
3122 literal_pool_label.
3123 (s390_optimize_prolog): Replace TEMP_REG argument with
3124 TEMP_USED and BASE_USED. Do not check get_pool_size ().
3125 (general_s_operand): Accept all immediates before reload if
3126 ALLOW_IMMEDIATE. If not ALLOW_IMMEDIATE, reject literal pool
3127 references.
3128 (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
3129 (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
3130 (s390_alloc_pool): New function.
3131 (s390_new_pool): Call it.
3132 (s390_dump_pool): Add REMOTE_LABEL argument.
3133 (s390_chunkify_start): Add BASE_REG argument. Do not check
3134 get_pool_size ().
3135 (s390_chunkify_finish): Add BASE_REG argument. Adapt
3136 s390_dump_pool call.
3137 (s390_pool_count, s390_nr_constants): Remove.
3138 (s390_output_constant_pool): Remove.
3139 (s390_mainpool_start): New function.
3140 (s390_mainpool_finish): New function.
3141 (s390_mainpool_cancel): New function.
3142 (s390_reorg): Implement main literal pool handling.
3143 (s390_emit_prologue): Emit main_pool placeholder instead of
3144 literal_pool_31 / literal_pool_64 insns.
3145 * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
3146 (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
3147 * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
3148 ("main_base_31_small", "main_base_31_large"): New insns.
3149 ("main_base_64", "main_pool"): New insns.
3150 ("literal_pool_31", "literal_pool_64"): Remove.
3151
3152 2003-08-27 Nathanael Nerode <neroden@gcc.gnu.org>
3153
3154 * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
3155 fixinc.ptx.
3156 * fixinc/inclhack.def (undefine_null): Don't generate \r characters.
3157 Prettify a little.
3158 * fixinc/fixincl.x: Regenerate.
3159
3160 2003-08-27 Richard Earnshaw <rearnsha@arm.com>
3161
3162 * lib1funcs.asm (L_ieee754_sp): New. Include ieee754-sf.S.
3163 (L_ieee754_dp): New. Include ieee754-df.S.
3164 * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
3165 and compilation in apcs-26 mode.
3166 * arm/ieee754-df.S: Likewise.
3167 * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
3168 (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
3169
3170 2003-08-27 Nicolas Pitre <nico@cam.org>
3171
3172 * arm/ieee754-sf.S: New.
3173 * arm/ieee754-df.S: New.
3174
3175 2003-08-27 Jakub Jelinek <jakub@redhat.com>
3176
3177 * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
3178 and restore it if returning NULL.
3179
3180 2003-08-27 Richard Sandiford <rsandifo@redhat.com>
3181
3182 * calls.c (initialize_argument_information): If an argument has no
3183 stack space associated with it, and BLOCK_REG_PADDING is defined,
3184 use it to decide at which end the argument should be padded.
3185 * function.c (assign_parms): Allocate BLKmode stack slots.
3186 * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
3187 (mips_pad_reg_upward): Declare.
3188 * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
3189 (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
3190 (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
3191 (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
3192 * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
3193 (mips_expand_call): Remove code for generating structure shifts.
3194 (mips_arg_info): Don't set struct_p. Don't set fpr_p for non-float
3195 types unless using the EABI.
3196 (function_arg_advance): Don't generate shift instructions.
3197 (function_arg): Don't return them. Don't short-circuit the
3198 check for double structure chunks for DFmode arguments.
3199 (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
3200 (mips_expand_prologue): Remove code to emit structure shifts.
3201 * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
3202 structure passing (inet_ntoa, inet_lnaof, inet_netof). Update
3203 comments to say that only structure returns are a problem.
3204
3205 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
3206
3207 * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
3208 Fix to match produced versions.
3209 * fixinc/inclhack.def (longlong_t): New disabled test, ported
3210 from fixinc.svr4.
3211 * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
3212 from fixinc.ptx.
3213 * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
3214 ported from fixinc.ptx.
3215
3216 2003-08-26 Per Bothner <pbothner@apple.com>
3217
3218 * cpplib.h (struct cpp_token): Change type of field line to fileline.
3219 (cpp_error_with_line): Use fileline for appropriate parameter.
3220 * cpphash.h (struct cpp_macro): Change type of field line to fileline.
3221 (struct cpp_reader): Likewise for fields line and directive_line.
3222 (_cpp_begin_message): Use fileline for appropriate parameter.
3223 * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
3224 cpp_error): Use fileline for appropriate parameters and variables.
3225 (print_location): New local lin, since it is not a fileline.
3226
3227 2003-08-26 Roger Sayle <roger@eyesopen.com>
3228
3229 PR middle-end/12002
3230 * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
3231 (FLOAT_TYPE_P): Define in terms of these two new macros.
3232 * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
3233 for complex floating point types.
3234
3235 2003-08-26 Ulrich Weigand <uweigand@de.ibm.com>
3236
3237 * config/s390/s390.c (emit_prologue): Don't check literal pool size.
3238 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
3239 s390_output_pool_entry.
3240
3241 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
3242
3243 * fixinc/inclhack.def (svr4_preproc_lint_on,
3244 svr4_preproc_lint_off, svr4_preproc_machine): New disabled
3245 fixes, ported from fixinc.svr4.
3246
3247 2003-08-26 Mark Mitchell <mark@codesourcery.com>
3248
3249 * doc/install.texi (Prerequisites): Mention GNU make requirement.
3250
3251 * Makefile.in (AR_FOR_TARGET): Export it.
3252 (AR_CREATE_FOR_TARGET): Likewise.
3253 (AR_FLAGS_FOR_TARGET): Likewise.
3254 (AR_EXTRACT_FOR_TARGET): Likewise.
3255 (AWK): Likewise.
3256 (BUILD_PREFIX): Likewise.
3257 (BUILD_PREFIX_1): Likewise.
3258 (DESTDIR): Likewise.
3259 (GCC_FOR_TARGET): Likewise.
3260 (INCLUDES): Likewise.
3261 (INSTALL_DATA): Likewise.
3262 (LIB1ASMSRC): Likewise.
3263 (LIBGCC2_CFLAGS): Likewise.
3264 (MACHMODE_H): Likewise.
3265 (NM_FOR_TARGET): Likewise.
3266 (RANLIB_FOR_TARGET): Likewise.
3267 (libsubdir): Likewise.
3268 (slibdir): Likewise.
3269 (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
3270 exporting.
3271 (libgcc.a): Don't pass them here.
3272 (stmp-multilib): Or here.
3273 (install-libgcc): Or here.
3274 (install-multilib): Or here.
3275 (POSTSTAGE1_FLAGS_TO_PASS): Or here.
3276 (stage1_build): Or here.
3277
3278 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
3279
3280 * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
3281 "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
3282
3283 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
3284
3285 * config/s390/s390.md ("*fmadddf", "*fmsubdf",
3286 "*fmaddsf", "*fmsubsf"): New insns.
3287
3288 2003-08-26 Roger Sayle <roger@eyesopen.com>
3289
3290 * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
3291 (C1*C2)/X when unsafe math optimizations are allowed.
3292 (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
3293 math optimizations. Minor code clean-ups. Recursively call
3294 fold when constructing sub-expressions.
3295
3296 2003-08-26 Roger Sayle <roger@eyesopen.com>
3297
3298 * builtins.c (fold_builtin_bitop): New function to perform constant
3299 folding of ffs, clz, ctz, popcount and parity builtin functions
3300 and their long and long long variants (such as ffsl and ffsll).
3301 (fold_builtin): fold_builtin_bitop when appropriate.
3302 * simplify-rtx.c (simplify_unary_operation): Honor both
3303 CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
3304 evaluating clz and ctz at compile-time, for operands wider
3305 than HOST_WIDE_INT.
3306
3307 2003-08-26 Nathan Sidwell <nathan@codesourcery.com>
3308
3309 * builtins.c (build_function_call_expr): Don't set
3310 TREE_SIDE_EFFECTS here.
3311 * expr.c (emit_block_move_via_libcall): Likewise.
3312 (clear_storage_via_libcall): Likewise.
3313 * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
3314 CALL_EXPRs.
3315
3316 * gcse.c (is_too_expensive): New function.
3317 (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
3318
3319 2003-08-25 Zack Weinberg <zack@codesourcery.com>
3320
3321 * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
3322 commented-out logic to use DCE threads (if present), add
3323 support for POSIX threads.
3324 * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
3325 #defines for -pthread. Add -lpthread to LIB_SPEC when
3326 -pthread. In both cases take -mt as a synonym for -pthread
3327 for acc compatibility.
3328 Define GTHREAD_USE_WEAK to 0.
3329 * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
3330 Remove old logic for DCE threads from LIB_SPEC.
3331 * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
3332
3333 2003-08-25 Roger Sayle <roger@eyesopen.com>
3334
3335 * builtins.c (expand_builtin_mathfn): Rearrange so that we only
3336 return 0 for invalid argument types. Instead drop through to a
3337 call of expand_call at the bottom of function. If op is SQRT,
3338 try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
3339
3340 2003-08-25 Richard Henderson <rth@redhat.com>
3341
3342 * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
3343 result when op0 is SImode.
3344
3345 2003-08-25 Nathanael Nerode <neroden@twcny.rr.com>
3346
3347 * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
3348 from fixinc.svr4.
3349 * fixinc/fixincl.x: Regenerate.
3350 * fixinc/tests/base/sys/signal.h: Regenerate.
3351
3352 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
3353
3354 * combine.c (simplify_comparison): Re-enable widening of comparisons
3355 with non-paradoxical subregs of non-REG expressions.
3356
3357 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
3358
3359 * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
3360
3361 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
3362
3363 * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
3364
3365 2003-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3366
3367 * pretty-print.h (pp_maybe_newline_and_indent): New macro.
3368 * c-pretty-print.h (c_pretty_printer): Now typedef to the
3369 structure. Be consistent with pretty-print.h abd cxx-pretty-print.h
3370 (struct c_pretty_print_info): Document. Add new fields.
3371 (pp_type_specifier_seq): Rename from pp_c_type_specifier.
3372 (pp_direct_abstract_declarator): New macro.
3373 (pp_ptr_operator): Likewise.
3374 (pp_simple_type_specifier): Likewise.
3375 (pp_expression): Likewise.
3376 (pp_parameter_list): Rename from pp_parameter_declaration.
3377 * c-pretty-print.c (pp_c_whitespace): Now a function.
3378 (pp_c_left_paren): Likewise.
3379 (pp_c_right_paren): Likewise.
3380 (pp_c_dot): Likewise.
3381 (pp_c_ampersand): Likewise.
3382 (pp_c_arrow): Likewise.
3383 (pp_c_semicolon): Likewise.
3384 (pp_c_type_cast): New function.
3385 (pp_c_space_for_pointer_operator): Likewise.
3386 (pp_c_call_argument_list): Likewise.
3387 (pp_c_cv_qualifier): Adjust prototype.
3388 (pp_c_type_qualifier_list): Likewise.
3389 (pp_c_pointer): Likewise. Handle REFERENCE_TYPE here.
3390 (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
3391 Adjust to follow standard grammar.
3392 (pp_c_specifier_qualifier_list): Adjusr prototype. Handle
3393 REFERENCE_TYPE. Tidy.
3394 (pp_c_parameter_type_list): Adjust prototype. Tidy.
3395 (pp_c_parameter_declaration): Remove.
3396 (pp_c_abstract_declarator): Adjust prototype.
3397 (pp_c_direct_abstract_declarator): Likewise.
3398 (pp_c_type_id): Likewise.
3399 (pp_c_storage_class_specifier): Likewise.
3400 (pp_c_function_specifier): Likewise.
3401 (pp_c_declaration_specifiers): Likewise.
3402 (pp_c_direct_declarator): Likewise.
3403 (pp_c_declarator): Likewise.
3404 (pp_c_declarator): Likewise.
3405 (pp_c_declaration): Likewise.
3406 (pp_c_attributes): Likewise. Tidy.
3407 (pp_c_function_definition): Adjust prototype.
3408 (pp_c_char): Likewise.
3409 (pp_c_string_literal): Likewise.
3410 (pp_c_integer_constant): Likewise.
3411 (pp_c_character_constant): Likewise.
3412 (pp_c_bool_constant): Likewise.
3413 (pp_c_enumeration_constant): Likewise.
3414 (pp_c_floating_constant): Likewise.
3415 (pp_c_constant): Likewise.
3416 (pp_c_identifier): Likewise.
3417 (pp_c_primary_expression): Likewise. Remove TARGET_EXPR case. Tidy.
3418 (pp_c_initializer): Adjust prototype.
3419 (pp_c_init_declarator): Likewise.
3420 (pp_c_initializer_list): Likewise.
3421 (pp_c_id_expression): Likewise.
3422 (pp_c_postfix_expression): Likewise.
3423 (pp_c_expression_list): Likewise.
3424 (pp_c_unary_expression): Likewise.
3425 (pp_c_cast_expression): Likewise.
3426 (pp_c_multiplicative_expression): Likewise.
3427 (pp_c_additive_expression): Likewise.
3428 (pp_c_shift_expression): Likewise.
3429 (pp_c_relational_expression): Likewise.
3430 (pp_c_equality_expression): Likewise.
3431 (pp_c_and_expression): Likewise.
3432 (pp_c_exclusive_or_expression): Likewise.
3433 (pp_c_inclusive_or_expression): Likewise.
3434 (pp_c_logical_and_expression): Likewise.
3435 (pp_c_logical_or_expression): Likewise.
3436 (pp_c_conditional_expression): Likewise.
3437 (pp_c_assignment_expression): Likewise.
3438 (pp_c_expression): Likewise. Tidy.
3439 (pp_c_statement): Likewise. Document.
3440 (pp_c_pretty_printer_init): Adjust prototype. Tidy.
3441
3442 * c-lang.c (c_initialize_diagnostics): Update.
3443 * c-common.h (strip_pointer_operator): Declare.
3444 * c-common.c (strip_pointer_operator): Define.
3445
3446 2003-08-25 Mark Mitchell <mark@codesourcery.com>
3447
3448 PR c++/8795
3449 * tree.h (build_method_type_directly): Declare.
3450 * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
3451 (vector_size_helper): Likewise.
3452 * tree.c (build_method_type_directly): New function.
3453 (build_method_type): Use it.
3454
3455 2003-08-24 Richard Henderson <rth@redhat.com>
3456
3457 * config/i386.i386.c (ix86_return_in_memory): Reformat. Return true
3458 for 16-byte vector modes if sse not enabled; warn for abi change.
3459 (ix86_value_regno): Only return xmm0 for 16-byte vector types.
3460
3461 2003-08-24 Kazu Hirata <kazu@cs.umass.edu>
3462
3463 * rtlanal.c (may_trap_p): Simplify an integer comparison.
3464
3465 2003-08-24 Nathanael Nerode <neroden@gcc.gnu.org>
3466
3467 * fixinc/inclhack.def (AAB_svr4_replace_byteorder): Enhance
3468 comment. Enable for DYNIX/ptx systems (when they switch to
3469 regular fixincludes).
3470 * fixinc/fixincl.x: Regenerate.
3471
3472 2003-08-23 Jason Eckhardt <jle@rice.edu>
3473
3474 * config/i860/t-i860: New.
3475 * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
3476
3477 2003-08-23 Jakub Jelinek <jakub@redhat.com>
3478
3479 * c-decl.c (pushdecl): Only put decls which finish_struct will do
3480 something about onto incomplete chain.
3481 (finish_struct): If not removing type from incomplete
3482 list, update prev.
3483
3484 2003-08-20 Jan Hubicka <jh@suse.cz>
3485
3486 PR target/11369
3487 * i386.c (ix86_expand_carry_flag_compare): Validate operand.
3488
3489 PR target/11031
3490 * i386.c (const_0_to_3_operand, const_0_to_7_operand,
3491 const_0_to_15_operand, const_0_to_255_operand): New predicates.
3492 * i386.h (PREDICATE_CODES): Add these.
3493 * i386.c (pinsrw and pextrw patterns): Use them.
3494
3495 PR target/10984
3496 * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
3497
3498 PR target/8869
3499 * expr.c (convert_modes): Deal properly with integer to vector
3500 constant conversion.
3501
3502 PR target/8871
3503 * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
3504
3505 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
3506
3507 * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
3508 * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
3509 ("*movhi"): ... this.
3510 ("movqi", "*movqi"): Likewise.
3511 ("movqi_64"): Remove.
3512 ("*zero_extendhisi2_31"): Change predicate to s_operand.
3513
3514 2003-08-23 Dale Johannesen <dalej@apple.com>
3515 * calls.c (emit_library_call_value_1): Fix obvious errors in
3516 arguments to emit_group_store.
3517
3518 2003-08-23 Jason Eckhardt <jle@rice.edu>
3519
3520 * calls.c (emit_library_call_value_1): Remove code related
3521 to LIBGCC_NEEDS_DOUBLE.
3522 * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
3523 * doc/tm.texi: Likewise.
3524 * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
3525
3526 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
3527
3528 * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
3529
3530 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
3531
3532 * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
3533 as well. Put memory references in the varargs alias set.
3534 (mips_expand_prologue): Remove varargs handling from here.
3535
3536 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
3537
3538 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
3539 s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
3540 s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
3541 for function pointer calls.
3542 * config/s390/s390.md ("*negdi2_31"): Likewise.
3543
3544 2003-08-23 Roger Sayle <roger@eyesopen.com>
3545
3546 * combine.c (apply_distributive_law): Correct comment.
3547
3548 2003-08-23 Jason Eckhardt <jle@rice.edu>
3549
3550 * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
3551
3552 2003-08-22 Jason Eckhardt <jle@rice.edu>
3553
3554 * config/i860/i860.c (i860_build_va_list): Create the va_decl
3555 declaration. Document the va_list structure.
3556 (i860_va_start): Initialize the va_list structure.
3557 (i860_va_arg): Rewrite completely.
3558 * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
3559 * config/i860/varargs.asm: Do not allocate or initialize
3560 a va_list. Return the address of the register save area.
3561
3562 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
3563
3564 * config/iq2000/iq2000.c: Fix comment typos.
3565 * config/iq2000/iq2000.md: Likewise.
3566
3567 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
3568
3569 * config/iq2000/iq2000.c: Follow spelling conventions.
3570 * config/iq2000/iq2000.h: Likewise.
3571 * config/mn10300/mn10300.c: Likewise.
3572
3573 2003-08-22 Jason Eckhardt <jle@rice.edu>
3574
3575 * config/i860/i860.c (output_move_double): Don't set latehalf
3576 to zero for CONST_INT (since it could be, e.g., -1).
3577
3578 * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
3579 (MODSI3_LIBCALL): ...with this one.
3580 (UREMSI3_LIBCALL): Replace this macro...
3581 (UMODSI3_LIBCALL): ...with this one.
3582
3583 2003-08-22 Jason Eckhardt <jle@rice.edu>
3584
3585 * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
3586 (output_delayed_branch): Remove prototype.
3587 (single_insn_src_p): Remove prototype.
3588 * config/i860/i860.c (single_insn_src_p): Remove function.
3589 (output_delayed_branch): Remove function.
3590 (output_delay_insn): Remove function.
3591 (va_start): Remove unconditional test and dead code, re-format.
3592 Fix coding style and spelling problems in various comments.
3593 * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
3594 (blockage pattern): ...and use it here.
3595 (all define_peephole patterns related to delayed branches): Remove.
3596 Fix coding style and spelling problems in various comments.
3597
3598 2003-08-22 Jason Eckhardt <jle@rice.edu>
3599
3600 * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
3601 Remove all uses of the PARAMS macro. Remove superflous prototypes.
3602 Convert all function definitions from traditional to ISO C90 syntax.
3603 * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
3604 with 'GCC'. Remove all uses of the PARAMS macro.
3605 * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
3606 * config/i860/i860.md: Likewise.
3607 * config/i860/sysv4.h: Likewise.
3608 * config/i860/varargs.asm: Likewise.
3609
3610 2003-08-22 Jason Eckhardt <jle@rice.edu>
3611
3612 * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
3613 argument.
3614 (tdesc_section): Add prototype.
3615 Update copyright dates.
3616 * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
3617 (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
3618 (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
3619 (targetm): Likewise.
3620 (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
3621 for '%d' where necessary.
3622 (i860_va_start): Remove 'stdarg_p' argument. Make conditional checks
3623 on 'stdarg_p' unconditional. Divide current_function_args_info.ints
3624 by UNITS_PER_WORD when referencing (likewise for .floats).
3625 (I860_SVR4_VARARGS): Rename...
3626 (I860_SVR4_VA_LIST): ...to this.
3627 Call build() with 't' rather than 'field'.
3628 (i860_rtx_costs): New function.
3629 (TARGET_RTX_COSTS): Define.
3630 (i860_internal_label): New function.
3631 (TARGET_ASM_INTERNAL_LABEL): Define.
3632 (i860_file_start): New function.
3633 Update copyright dates.
3634 * config/i860/i860.h (CPP_PREDEFINES): Remove.
3635 (TARGET_CPU_CPP_BUILTINS): Define.
3636 (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
3637 (CONST_COSTS): Remove (and move code to i860_rtx_costs).
3638 (ASM_FILE_START): Remove.
3639 (ASM_FILE_START_1): Remove.
3640 (ASM_GLOBALIZE_LABEL): Remove.
3641 (ASM_OUTPUT_INTERNAL_LABEL): Remove.
3642 (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
3643 with targetm.asm_out.internal_label.
3644 Update copyright dates.
3645 * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
3646 (CPP_PREDEFINES): Remove.
3647 (TARGET_OS_CPP_BUILTINS): Define.
3648 (GLOBAL_ASM_OP): Define.
3649 (ASM_FILE_START): Remove.
3650 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
3651 (TARGET_ASM_FILE_START): Define.
3652 Update copyright dates.
3653
3654 2003-08-22 Jason Eckhardt <jle@rice.edu>
3655
3656 * gcc/config.gcc (i860-*-sysv4*): Add target.
3657 * config/i860/i860-protos.h: New.
3658 * config/i860/i860.c: New.
3659 * config/i860/i860.h: New.
3660 * config/i860/i860.md: New.
3661 * config/i860/sysv4.h: New.
3662 * config/i860/varargs.asm: New.
3663 * config/i860/x-sysv4: New.
3664
3665 2003-08-22 Jason Eckhardt <jle@rice.edu>
3666
3667 * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
3668 Remove all uses of PARAMS macro.
3669 Convert all function definitions to ISO C90 syntax.
3670 * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
3671 * config/pa/fptr.c: Likewise.
3672 * config/pa/lib2funcs.asm: Likewise.
3673 * config/pa/long_double.h: Likewise.
3674 * config/pa/milli64.S: Likewise.
3675 * config/pa/pa-64.h: Likewise.
3676 * config/pa/pa-hpux.h: Likewise.
3677 * config/pa/pa-hpux10.h: Likewise.
3678 * config/pa/pa-hpux11.h: Likewise.
3679 * config/pa/pa-linux.h: Likewise.
3680 * config/pa/pa-modes.def: Likewise.
3681 * config/pa/pa-osf.h: Likewise.
3682 * config/pa/pa-pro-end.h: Likewise.
3683 * config/pa/pa.md: Likewise.
3684 * config/pa/pa32-linux.h: Likewise.
3685 * config/pa/pa64-linux.h: Likewise.
3686 * config/pa/pa64-hpux.h: Likewise.
3687 * config/pa/pa64-regs.h: Likewise.
3688 * config/pa/quadlib.c: Likewise.
3689 * config/pa/rtems.h: Likewise.
3690 * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
3691 all uses of the PARAMS macro.
3692 * config/pa/pa.h: Likewise.
3693 * config/pa/som.h: Likewise.
3694
3695 * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
3696 Remove all uses of PARAMS macro.
3697 Convert all function definitions to ISO C90 syntax.
3698 * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
3699 Remove all uses of PARAMS macro.
3700 * config/iq2000.h: Remove all uses of PARAMS macro.
3701 * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
3702
3703 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
3704
3705 * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
3706 * config/s390/s390.c (gen_consttable): Remove.
3707 (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
3708 (s390_output_pool_entry): New function.
3709 * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
3710 UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
3711 UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
3712 (UNSPECV_POOL_ENTRY): ... this new constant.
3713 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
3714 "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
3715 ("*pool_entry"): ... and replace by this new insn.
3716 ("literal_pool_31"): Do not emit anchor label if pool empty.
3717
3718 * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
3719 (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
3720 (s390_fixup_clobbered_return_reg): Remove.
3721 (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
3722 (s390_return_addr_rtx): Always retrieve return address from save area
3723 slot. Use save_return_addr_p to force slot to be filled.
3724 (s390_emit_prologue): Remove has_hard_reg_initial_val test.
3725
3726 2003-08-22 Chris Demetriou <cgd@broadcom.com>
3727
3728 * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
3729 (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
3730 * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
3731 around SB-1 errata if TARGET_FIX_SB1 is set.
3732 (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
3733 * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
3734
3735 2003-08-22 Roger Sayle <roger@eyesopen.com>
3736
3737 * hashtable.c (ht_expand): Avoid calculating rehash for the common
3738 case that the first probe hits an empty hash table slot.
3739
3740 2003-08-22 Mark Mitchell <mark@codesourcery.com>
3741
3742 * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
3743
3744 2003-08-22 Mark Mitchell <mark@codesourcery.com>
3745
3746 * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
3747 (ptr_extend_plus_imm): ... this.
3748 * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
3749 optimization in C++.
3750 (ia64_output_mi_thunk): Support ILP32 mode.
3751
3752 2003-08-22 Bernardo Innocenti <bernie@develer.com>
3753
3754 * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
3755 function.
3756 * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
3757
3758 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
3759
3760 * config/i386/i386.c (const_int_1_operand): Simplify an
3761 integer comparison.
3762
3763 2003-08-22 Alan Modra <amodra@bigpond.net.au>
3764
3765 * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
3766 * config/rs6000/ppc64-fp.c: Likewise.
3767
3768 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
3769
3770 * cfgcleanup.c: Fix comment typos.
3771 * emit-rtl.c: Likewise.
3772 * optabs.c: Likewise.
3773 * ra-build.c: Likewise.
3774 * rtlanal.c: Likewise.
3775 * tree.h: Likewise.
3776
3777 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
3778
3779 * c-decl.c: Fix comment formatting.
3780 * cfgrtl.c: Likewise.
3781 * combine.c: Likewise.
3782 * convert.c: Likewise.
3783 * dominance.c: Likewise.
3784 * dwarf2out.c: Likewise.
3785 * dwarfout.c: Likewise.
3786 * expmed.c: Likewise.
3787 * fold-const.c: Likewise.
3788 * gcov.c: Likewise.
3789 * genattrtab.c: Likewise.
3790 * ggc-common.c: Likewise.
3791 * mips-tfile.c: Likewise.
3792 * regmove.c: Likewise.
3793
3794 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
3795
3796 * builtin-attrs.def: Fix comment formatting.
3797 * c-pretty-print.c: Likewise.
3798 * diagnostic.h: Likewise.
3799 * langhooks.h: Likewise.
3800 * recog.c: Likewise.
3801 * simplify-rtx.c: Likewise.
3802 * tree.def: Likewise.
3803
3804 2003-08-22 Bernardo Innocenti <bernie@develer.com>
3805
3806 * config/m68k/m68k-protos.h: Convert to ISO C90.
3807 * config/m68k/m68k.c: Likewise.
3808
3809 2003-08-21 Bernardo Innocenti <bernie@develer.com>
3810 Paul Dale <pauli@snapgear.com>
3811 Peter Barada <peter@baradas.org>
3812
3813 * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
3814 ColdFire cores.
3815
3816 2003-08-21 Zack Weinberg <zack@codesourcery.com>
3817
3818 * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
3819 * config.gcc (*-*-openbsd): Don't set tm_file.
3820 (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
3821 arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
3822 h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
3823 i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
3824 i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
3825 m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
3826 m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
3827 m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
3828 mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
3829 sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
3830 xscale-*-coff): Use explicit and complete lists of target headers
3831 to include. Move definitions to tm_defines where appropriate.
3832 (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
3833 not-yet-contributed configuration.
3834
3835 * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
3836 * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
3837 * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
3838 * config/i386/nto.h, config/iq2000/iq2000.h,
3839 * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
3840 * config/m68k/linux.h, config/m68k/m68k-aout.h
3841 * config/m68k/m68k-none.h, config/m68k/m68kv4.h
3842 * config/m68k/netbsd.h, config/m68k/openbsd.h
3843 * config/m68k/sgs.h, config/mcore/mcore-pe.h,
3844 * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
3845 * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
3846 Remove includes of other target config headers, and
3847 definitions of macros moved to tm_defines lists. Add #undefs
3848 where now necessary to prevent redefinition warnings.
3849
3850 * config/h8300/coff.h: New file split out of...
3851 * config/h8300/elf.h: ...here.
3852 * config/m68k/hp320base.h: New file split out of...
3853 * config/m68k/hp320.h: ...here.
3854 * config/rs6000/lynxbase.h: New file split out of...
3855 * config/rs6000/lynx.h: ...here.
3856
3857 * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
3858 * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
3859
3860 * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
3861 * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
3862 * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
3863 Remove unnecessary #ifndef.
3864 * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
3865 [under IN_LIBGCC2] with config/.
3866
3867 2003-08-21 Per Bothner <pbothner@apple.com>
3868
3869 * cppfiles.c (stack_file): Correctly pass return_at_eof parameter
3870 to cpp_push_buffer.
3871 * cpplex.c (_cpp_get_fresh_line): Don't buffer->prev - handled
3872 by return_at_eof check. Always call _cpp_pop_buffer at end.
3873
3874 2003-08-21 Kazu Hirata <kazu@cs.umass.edu>
3875
3876 PR target/11805
3877 * config/h8300/h8300.md (two anonymous patterns): Remove.
3878
3879 2003-08-21 Richard Sandiford <rsandifo@redhat.com>
3880
3881 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
3882 * config/mips/mips.c (function_arg_pass_by_reference): Never return
3883 true for n32 & n64.
3884
3885 2003-08-21 Josef Zlomek <zlomekj@suse.cz>
3886
3887 * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
3888 and similarly in (A | C) == D where C & ~D != 0.
3889
3890 2003-08-20 Geoffrey Keating <geoffk@apple.com>
3891
3892 PR 8180
3893 * configure.in: When testing with_libs and with_headers, treat
3894 'no' as unset. Based on a patch by Dan Kegel <dank@kegel.com>.
3895 * configure: Regenerate.
3896
3897 2003-08-20 Peter Barada <peter@baradas.org>
3898
3899 * longlong.h (umul_ppmm): Add ColdFire support.
3900
3901 2003-08-20 Peter Barada <peter@baradas.org>
3902 Bernardo Innocenti <bernie@develer.com>
3903
3904 * config/m68k/m68k-none.h: Introduce new ColdFire archs.
3905 * config/m68k/m68k.h: Likewise.
3906 * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
3907 * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
3908 * config/m68k/linux.h: Likewise.
3909 * config/m68k/m68k.c: Likewise.
3910 * config/m68k/m68k.md: Likewise.
3911 * config/m68k/m68kelf.h: Likewise.
3912 * config/m68k/netbsd-elf.h: Likewise.
3913 * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
3914
3915 2003-08-20 Bernardo Innocenti <bernie@develer.com>
3916
3917 * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
3918 * config/m68k/m68k.md: Likewise.
3919
3920 2003-08-20 Mark Mitchell <mark@codesourcery.com>
3921
3922 PR java/11996
3923 Revert this change:
3924 2003-08-19 Mark Mitchell <mark@codesourcery.com>
3925 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
3926 types with precisions other than those given by native machine
3927 modes.
3928
3929 2003-08-20 Gunther Nikl <gni@gecko.de>
3930
3931 * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
3932 selected by FSGLMUL_USE_S and FSGLDIV_USE_S
3933 * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
3934 * config/m68k/m68k.md (anonymous define_insn): Likewise
3935 * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
3936 * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
3937 code selected by NO_ASM_FMOVECR
3938
3939 2003-08-20 Gunther Nikl <gni@gecko.de>
3940
3941 * config/m68k/m68k.c (output_move_const_into_data_reg,
3942 output_move_himode): unify MOTOROLA/MIT handling of moveq
3943 * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
3944 Likewise
3945
3946 2003-08-20 Gunther Nikl <gni@gecko.de>
3947
3948 * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
3949 label name
3950 * config/m68k/m68k.c (m68k_output_function_epilogue): replace
3951 HOST_WIDE_INT_PRINT_DEC with %wd
3952
3953 2003-08-20 Loren James Rittle <ljrittle@acm.org>
3954
3955 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
3956 redefine warning.
3957
3958 2003-08-20 Roger Sayle <roger@eyesopen.com>
3959
3960 PR middle-end/11984
3961 * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
3962 operands before calling tree_int_cst_lt when performing associative
3963 transformations.
3964
3965 2003-08-20 Jason Merrill <jason@redhat.com>
3966
3967 * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
3968 (EXPR_CHECK): Don't check for 'r' or 's' if we're
3969 checking IS_EXPR_CODE_CLASS.
3970 * calls.c (calls_function_1): Likewise.
3971 * fold-const.c (fold): Likewise.
3972 * tree.c (iterative_hash_expr): Likewise.
3973 * tree-inline.c (walk_tree, copy_tree_r): Likewise.
3974
3975 2003-08-20 Gunther Nikl <gni@gecko.de>
3976
3977 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
3978 depending on MOTOROLA_BSR
3979 * config/m68k/m68k.md (anonymous define_insn): Likewise
3980
3981 2003-08-20 Jason Merrill <jason@redhat.com>
3982
3983 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
3984 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
3985 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
3986 * dojump.c (do_jump): Likewise.
3987 * fold-const.c (operand_equal_p, fold): Likewise.
3988 (tree_expr_nonnegative_p): Likewise.
3989
3990 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
3991 TYPE_USER_ALIGN for FIELD_DECLs.
3992
3993 * attribs.c (decl_attributes): Rebuild the function pointer type after
3994 changing the target type.
3995 * tree.c (get_qualified_type): Also check that the attributes match.
3996
3997 2003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
3998
3999 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
4000 * objc/config-lang.in (stagestuff): ... to here.
4001
4002 2003-08-19 Mark Mitchell <mark@codesourcery.com>
4003
4004 PR c++/11946
4005 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
4006 NOP_EXPR) when necessary.
4007 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
4008 types with precisions other than those given by native machine
4009 modes.
4010
4011 2003-08-19 Geoffrey Keating <geoffk@apple.com>
4012
4013 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
4014 because some macro is defined.
4015
4016 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
4017 options.
4018 * config/i386/darwin.h (ASM_SPEC): New.
4019 (SUBTARGET_EXTRA_SPECS): New.
4020 * config/rs6000/darwin.h (ASM_SPEC): New.
4021 (SUBTARGET_EXTRA_SPECS): New.
4022 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
4023 a cross-compiler between two different processors on Darwin.
4024 * configure: Regenerate.
4025
4026 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
4027
4028 * builtins.c: Fix comment typos.
4029 * c-common.c: Likewise.
4030 * c-decl.c: Likewise.
4031 * c-pretty-print.c: Likewise.
4032 * cfgbuild.c: Likewise.
4033 * cfglayout.c: Likewise.
4034 * cfgloopanal.c: Likewise.
4035 * cgraphunit.c: Likewise.
4036 * cppfiles.c: Likewise.
4037 * dwarfout.c: Likewise.
4038 * expr.c: Likewise.
4039 * fold-const.c: Likewise.
4040 * gcse.c: Likewise.
4041 * ggc-page.c: Likewise.
4042 * haifa-sched.c: Likewise.
4043 * pretty-print.c: Likewise.
4044 * tree.c: Likewise.
4045 * tree.h: Likewise.
4046 * value-prof.c: Likewise.
4047
4048 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
4049
4050 * c-decl.c: Follow spelling conventions.
4051 * cppfiles.c: Likewise.
4052
4053 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
4054
4055 * c-common.c: Fix comment formatting.
4056 * c-common.h: Likewise.
4057 * c-decl.c: Likewise.
4058 * cppinit.c: Likewise.
4059 * cpplib.h: Likewise.
4060 * emit-rtl.c: Likewise.
4061 * input.h: Likewise.
4062 * line-map.h: Likewise.
4063 * opts.c: Likewise.
4064 * opts.h: Likewise.
4065 * simplify-rtx.c: Likewise.
4066
4067 2003-08-19 Daniel Jacobowitz <drow@mvista.com>
4068
4069 * unwind-c.c: Add libgcc-style exception.
4070 * unwind-dw2.c: Likewise.
4071 * unwind-pe.h: Likewise.
4072 * unwind-sjlj.c: Likewise.
4073 * unwind.inc: Likewise.
4074
4075 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
4076
4077 PR c/5582 PR c++/10538
4078 * langhooks-def.h (lhd_decl_uninit): Declare.
4079 (LANG_HOOKS_DECL_UNINIT): New macro.
4080 (LANG_HOOKS_INITIALIZER): Adjust.
4081 * langhooks.h (struct lang_hooks): Add new field
4082 decl_uninit.
4083 * langhooks.c (lhd_decl_uninit): Define.
4084 * c-common.c (c_decl_uninit_1): New function.
4085 (c_decl_uninit): New function.
4086 (warn_init_self): Define.
4087 * c-common.h (c_decl_uninit): Declare.
4088 (warn_init_self): Declare.
4089 * c.opt: Introduce -Winit-self.
4090 * c-opts.c (c_common_handle_options): Set warn_init_self.
4091 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
4092 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
4093 * function.c (uninitialized_vars_warning): Call the language hook.
4094 * doc/invoke.texi: Document -Winit-self.
4095
4096 2003-08-19 Chris Demetriou <cgd@broadcom.com>
4097
4098 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
4099 to use better predicates and constraints. Define new
4100 instruction to handle "trap_if" with DI-mode arguments.
4101 (conditional_trap): FAIL if trap code is not 0.
4102
4103 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
4104
4105 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
4106 strstr with $pb to a strcompare with "<pic base>"
4107 (ix86_output_addr_diff_elt): Output the real pic base.
4108
4109 2003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
4110
4111 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
4112 (LANG_HOOKS_INITIALIZER): Correct.
4113 * c-lang.c: Likewise.
4114
4115 2003-08-19 Jan Hubicka <jh@suse.cz>
4116
4117 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
4118 (cgraph_varpool_mark_needed_node): Likewise.
4119 * cgraph.h (notice_global_symbol): Declare
4120 * varasm.c (notice_global_symbol): Break out from ...
4121 (assemble_start_function): ... here; update for variables.
4122 (assemble_variable): Use notice_global_symbol.
4123
4124 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
4125
4126 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
4127 expect SFmode and DFmode arguments to be passed in FPRs,
4128 regardless of the underlying type.
4129
4130 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
4131
4132 PR target/11924
4133 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
4134 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
4135
4136 2003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
4137
4138 PR c/11207
4139 * c-typeck.c (set_init_index): Check for negative index.
4140
4141 2003-08-18 Bob Wilson <bob.wilson@acm.org>
4142
4143 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
4144 call0 ABI.
4145 * config/xtensa/crtn.asm (_init, _fini): Likewise.
4146 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
4147 __umodsi3, __modsi3): Likewise.
4148 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
4149 $(INCLUDES).
4150
4151 2003-08-18 Aldy Hernandez <aldyh@redhat.com>
4152
4153 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
4154
4155 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
4156
4157 * config/mips/mips.md: Quote C code in braces. Remove use of
4158 fake const0_rtx operands. Remove double backslashes. Use \;.
4159 Remove workarounds for bogus warnings.
4160
4161 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
4162
4163 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
4164 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
4165 rather than TARGET_MIPS4300.
4166 (mulsf3_internal, mulsf3_r4300): Likewise.
4167
4168 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
4169
4170 * config/mips/mips.md: Renumber unspecs. Clean up comments.
4171
4172 2003-08-17 Roger Sayle <roger@eyesopen.com>
4173
4174 * simplify-rtx.c (associative_constant_p): New function to test
4175 whether an RTX expression is an immediate constant.
4176 (simplify_associative_operation): New function to perform some
4177 reassociation optimizations of associative binary expressions.
4178 (simplify_binary_operation): Use simplify_associative_operation
4179 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
4180 Floating point expressions are only reassociated when unsafe
4181 math optimizations are permitted.
4182
4183 2003-08-17 Andreas Jaeger <aj@suse.de>
4184
4185 * config/alpha/alpha.md: Remove usage of PARAMS.
4186
4187 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
4188 * config/i386/i386-interix.h: Likewise.
4189 * config/i386/winnt.c: Likewise.
4190 * config/i386/cygming.h: Likewise.
4191 * config/i386/cygwin2.c: Likewise.
4192 * config/darwin.c: Likewise.
4193 * config/darwin-c.c: Likewise.
4194 * config/darwin-protos.h: Likewise.
4195 * config/darwin.h: Likewise.
4196 * config/s390/s390-protos.h: Likewise.
4197 * config/s390/s390.c: Likewise.
4198 * config/ia64/ia64.c: Likewse
4199 * config/ia64/ia64-protos.h: Likewise.
4200 * config/ia64/ia64-c.c: Likewise.
4201
4202 2003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4203
4204 * config/sparc/sparc.c: Convert to ISO C.
4205
4206 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
4207 * config/sparc/sparc.c: Likewise.
4208
4209 2003-08-16 Nathan Sidwell <nathan@codesourcery.com>
4210
4211 PR c++/11512
4212 * stmt.c (expand_expr_stmt_value): Don't warn about any void
4213 typed expression.
4214
4215 2003-08-16 Jan Hubicka <jh@suse.cz>
4216
4217 * i386.c (ix86_fntype_regparm): Rename from ...
4218 (ix86_function_regparm): ... this one; add fastcall and local
4219 functions.
4220 (ix86_function_ok_for_sibcall): Update.
4221 (ix86_return_pops_args): Likewise.
4222 (init_cumulative_args): Likewise.
4223 (x86_can_output_mi_thunk): Likewise.
4224 (function_arg): Fix formating.
4225 (x86_this_parameter): Fix fastcall.
4226 (x86_output_mi_thunk): Likewise.
4227
4228 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
4229 body as reachable; mark nested functions as needed too.
4230 (dump_cgraph): Do not output global.calls.
4231 * cgraph.h (cgraph_global_info): Kill.
4232 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
4233 (record_call_1): Speedup.
4234 (cgraph_analyze_function): Break out from ...; compute inlining
4235 parameters.
4236 (cgraph_finalize_compilation_unit): ... here.
4237 (cgraph_mark_inline): Kill computation of calls.
4238 (cgraph_decide_inlining): Do not compute most of initial values.
4239
4240 2003-08-14 Roger Sayle <roger@eyesopen.com>
4241
4242 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
4243 to negate if either operand is easy to negate, if we don't care
4244 about sign-dependent rounding.
4245 (negate_expr): Make the logic to negate a REAL_CST explicit.
4246 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
4247 that's easy to negate, if we don't honor sign-dependent rounding.
4248 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
4249 negate, and the symmetric A * -B as -A * B if A is easy to negate.
4250 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
4251 -C/D if B and C are cheap to negate. Add an explicit rule to
4252 optimize X/-1.0 as -X when we don't care about signaling NaNs.
4253
4254 2003-08-14 Zack Weinberg <zack@codesourcery.com>
4255
4256 * Makefile.in (tm_file): Rename tm_include_list.
4257 (tm_p_file): Rename tm_p_include_list.
4258 (build_xm_file): Rename build_xm_include_list.
4259 (host_xm_file): Rename host_xm_include_list.
4260 (xm_file): Rename xm_include_list.
4261 (xm_file_list): Add to be substituted.
4262 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
4263 Update to match.
4264 (bt-load.o): Add missing dependency on $(TM_H).
4265 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
4266 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
4267 build_xm_file, generate both *_file_list and *_include_list
4268 values from it. (xm_file_list was formerly not being generated.)
4269 In *_include_list, prefix the names of all headers found in
4270 $(srcdir)/config with config/. In each loop, consider only
4271 the special case files that can actually appear in that list.
4272 AC_SUBST all *_file_list and all *_include_list variables; do
4273 not AC_SUBST the plain *_file variables.
4274 * configure: Regenerate.
4275
4276 2003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4277
4278 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
4279
4280 2003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4281
4282 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
4283 direct calls.
4284 (attr_length_call): Include it here. Improve length estimate for
4285 local calls.
4286 (output_call): Use targetm.binds_local_p.
4287
4288 2003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4289
4290 * builtins.c (CASE_MATHFN): New helper macro.
4291 (mathfn_built_in): Simplify and sort.
4292
4293 * protoize.c (substr): Delete, callers changed to `strstr'.
4294
4295 2003-08-13 Zack Weinberg <zack@codesourcery.com>
4296
4297 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
4298 * config/iq2000/xm-iq2000.h: Delete file.
4299
4300 2003-08-13 Geoffrey Keating <geoffk@apple.com>
4301
4302 * gengtype.c (walk_type): Process a subobject before processing
4303 the pointer that points to the subobject.
4304
4305 2003-08-13 Per Bothner <pbothner@apple.com>
4306
4307 * regclass.c (init_reg_modes): Make non-static.
4308 Rename to init_reg_modes_once per new naming convention.
4309 (init_regs): Don't call init_reg_modes here.
4310 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
4311 * rtl.h (init_reg_modes_once): New declaration.
4312 * toplev.c (backend_init): Call init_regs after init_emit_once.
4313
4314 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
4315
4316 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
4317 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
4318
4319 2003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
4320
4321 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
4322 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
4323
4324 2003-08-13 Dale Johannesen <dalej@apple.com>
4325
4326 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
4327 handling of decrement-and-branch farther than 32 bits.
4328
4329 2003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
4330
4331 * configure.in (make_compare_target): Move test to ...
4332 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
4333 * configure: Regenerate.
4334
4335 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
4336
4337 * config/mips/iris6.h: Convert to C90 prototypes.
4338 * config/mips/irix6-libc-compat.c: Likewise.
4339 * config/mips/mips-protos.h: Likewise.
4340 * config/mips/mips.c: Likewise.
4341
4342 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
4343
4344 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
4345 for selected machines. Comment heavily.
4346 fixinc/fixincl.x: Rebuild.
4347 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
4348
4349 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
4350
4351 * config/mips/mips.h: Tweak various comments.
4352 * config/mips/mips.c: Likewise.
4353
4354 2003-08-11 James E Wilson <wilson@tuliptree.org>
4355
4356 PR optimization/11319
4357 PR target/10021
4358 * alias.c (find_base_value, case REG): Return 0 not src if no base
4359 found.
4360
4361 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4362
4363 * gcse.c (gmalloc): Fix last change.
4364
4365 2003-08-11 Roger Sayle <roger@eyesopen.com>
4366
4367 * simplify-rtx.c (simplify_binary_operation): Replace calls to
4368 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
4369 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
4370 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
4371
4372 2003-08-11 Roger Sayle <roger@eyesopen.com>
4373
4374 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
4375 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
4376 typecode for an ABS_EXPR.
4377
4378 * doc/c-tree.texi: Document ABS_EXPR.
4379
4380 2003-08-11 Roger Sayle <roger@eyesopen.com>
4381
4382 * fold-const.c (fold): Optimize any associative floating point
4383 operator with -funsafe-math-optimizations, not just MULT_EXPR.
4384
4385 2003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
4386
4387 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
4388 information in SHmedia case too.
4389 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
4390 Likewise.
4391 (__set_fpscr): Use an access via GOT for PIC case.
4392
4393 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
4394
4395 * configure.in (intermodule): Make switch test more portable.
4396 * configure: Regenerate.
4397
4398 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
4399
4400 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
4401 (restrap): Likewise.
4402
4403 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4404
4405 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
4406 (grealloc): Size argument is a size_t.
4407 (gcalloc): New function. Use throughout in lieu of
4408 gmalloc/memset.
4409
4410 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
4411 xmalloc/memset.
4412 * config/ia64/ia64.c (ia64_reorg): Likewise.
4413 * conflict.c (conflict_graph_new): Likewise.
4414 * fixinc/fixincl.c (run_compiles): Likewise.
4415 * genattrtab.c (optimize_attrs): Likewise.
4416 * genrecog.c (new_decision): Likewise.
4417 * haifa-sched.c (schedule_block): Likewise.
4418 * hashtable.c (ht_create): Likewise.
4419
4420 2003-08-11 Bob Wilson <bob.wilson@acm.org>
4421
4422 * config/xtensa/lib2funcs.S: Fix whitespace.
4423 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
4424 syntax where appropriate. Remove unnecessary backslash escapes.
4425 Reformat comments and fix some code formatting.
4426 (extendqisi2): Rearrange conditional.
4427 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
4428 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
4429 of fatal_insn.
4430
4431 2003-08-11 Richard Sandiford <rsandifo@redhat.com>
4432
4433 * config/mips/mips.c: Various formatting fixes.
4434 (override_options): Resync -mtune handling with gas.
4435 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
4436 * config/mips/mips.h: More formatting fixes.
4437 (mips_abi): Move declaration.
4438 * config/mips/mips.md (exception_receiver): Add mode to
4439 unspec_volatile.
4440
4441 2003-08-11 Aldy Hernandez <aldyh@redhat.com>
4442
4443 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
4444 evsplatfi here.
4445 (bdesc_1arg): Remove evsplati and evsplatfi.
4446
4447 2003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
4448
4449 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
4450 into account.
4451
4452 2003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4453
4454 * builtins.c (expand_builtin_strcat): Optimize constant strings.
4455
4456 2003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
4457
4458 * pretty-print.c (pp_base_indent): Rename from pp_indent.
4459 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
4460 (struct c_pretty_print_info): Add more fields.
4461 (pp_c_left_paren): Move to c-pretty-print.c.
4462 (pp_c_right_paren): Likewise.
4463 (pp_c_left_brace): Likewise.
4464 (pp_c_right_brace): Likewise.
4465 (pp_c_left_bracket): Likewise.
4466 (pp_c_right_bracket): Likewise.
4467 (pp_c_declarator): Declare.
4468 (pp_c_direct_declarator): Likewise.
4469 (pp_c_specifier_qualifier_list): Likewise.
4470 (pp_c_type_id): Likewise.
4471 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
4472 (pp_c_type_qualifier_list): New.
4473 (pp_c_pointer): Likewise.
4474 (pp_c_parameter_type_list): Likewise.
4475 (pp_c_function_definition): Likewise.
4476 (pp_c_id_expression): Likewise.
4477 (pp_c_simple_type_specifier): Tidy.
4478 (pp_c_unary_expression): Likewise.
4479 (pp_c_expression): Likewise.
4480 (pp_c_pretty_printer_init): Likewise.
4481 (pp_c_specifier_qualifier_list): Rework..
4482 (pp_c_abstract_declarator): Likewise.
4483 (pp_c_postfix_expression): Likewise.
4484 (pp_c_primary_expression): Likewise.
4485 (pp_c_cast_expression): Likewise.
4486 (pp_c_direct_abstract_declarator): Likewise.
4487 (pp_c_storage_class_specifier): Likewise.
4488 (pp_c_function_specifier): Likewise.
4489 (pp_c_declaration_specifiers): Likewise.
4490 (pp_c_direct_declarator): Likewise.
4491 (pp_c_declarator): Likewise.
4492 (pp_c_declaration): Likewise.
4493 (pp_c_statement): Likewise.
4494 (pp_c_integer_constant): Rename from pp_c_integer_literal.
4495 (pp_c_character_constant): Rename from pp_c_character_literal.
4496 (pp_c_bool_constant): Rename from pp_c_bool_literal.
4497 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
4498 (pp_c_floating_constant): Rename from pp_c_real_literal.
4499 (pp_c_constant): Rename from pp_c_literal.
4500 * c-lang.c: Include diagnostic.h and c-pretty-print.h
4501 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
4502 (c_initialize_diagnostics): New.
4503 * Makefile.in (c-lang.o): Update dependency.
4504
4505 2003-08-10 Nathan Sidwell <nathan@codesourcery.com>
4506
4507 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
4508
4509 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
4510
4511 * config/mips/mips.c (mips_no_mips16_string): Remove.
4512 (override_options): Don't handle -mips16 as part of -mipsN.
4513 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
4514 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
4515 (TARGET_OPTIONS): Remove -mno-mips16.
4516
4517 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
4518
4519 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
4520 (coprocessor2_operand): Likewise.
4521 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
4522 (lookup_name): Remove declaration.
4523 (abort_with_insn): Remove. Replace all uses with fatal_insn.
4524 (mips16, mips_abicalls): Remove.
4525 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
4526 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
4527 (coprocessor_operand, coprocessor2_operand): Remove.
4528 (override_options): Don't set mips16 or mips_abicalls.
4529 (print_operand): Don't expect SIGN_EXTEND operands.
4530 (mips_secondary_reload_class): Likewise.
4531 (mips_output_conditional_branch): Remove disabled long-branch code.
4532 * config/mips/mips.h (call_used_regs): Remove declaration.
4533 (may_call_alloca): Likewise.
4534 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
4535 (mips_abicalls, mips16): Remove declarations.
4536 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
4537 (CC1_SPEC): Remove outdated comment.
4538 (MIPS_VERSION, MACHINE_TYPE): Remove.
4539 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
4540 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
4541 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
4542 (PUSH_ROUNDING): Likewise.
4543 (ASSEMBLER_SCRATCH_REGNUM): Remove.
4544 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
4545 and mips16 with TARGET_MIPS16.
4546
4547 2003-08-09 Per Bothner <pbothner@apple.com>
4548
4549 * cppinit.c (cpp_read_main_file): Split out source-independent
4550 initialization to separate function ...
4551 (cpp_post_options): New function.
4552 * cppfiles.c (cpp_stack_file): Rename public name to ...
4553 (_cpp_stack_file): New internal function name.
4554 * cpplib.h: Update accordingly.
4555 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
4556 (cpp_read_main_file): Don't initialize line here.
4557 * c-opts.c (c_common_post_options): Call cpp_post_options.
4558 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
4559 * fix-header.c (read_scan_file): Call cpp_post_options.
4560
4561 2003-08-09 Per Bothner <per@bothner.com>
4562
4563 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
4564
4565 2003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4566
4567 * pa.c (pa_asm_output_mi_thunk): Fix typo.
4568
4569 2003-08-09 Neil Booth <neil@daikokuya.co.uk>
4570
4571 PR preprocessor/11839
4572 * cppfiles.c (open_file): Handle ENOTDIR.
4573
4574 2003-08-09 Richard Sandiford <rsandifo@redhat.com>
4575
4576 PR target/11699
4577 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
4578
4579 2003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4580
4581 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
4582 source/destination is not a register operand.
4583
4584 2003-08-08 Richard Henderson <rth@redhat.com>
4585
4586 PR target/11535
4587 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
4588 RETURN_ADDRESS_POINTER_REGNUM.
4589 (ia64_expand_prologue): Don't frob it.
4590 (ia64_output_function_epilogue): Likewise.
4591 (ia64_return_addr_rtx): New.
4592 (ia64_split_return_addr_rtx): New.
4593 * config/ia64/ia64-protos.h: Update.
4594 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
4595 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
4596 (GENERAL_REGNO_P): Don't check it.
4597 (AR_*_REGNUM): Renumber.
4598 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
4599 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
4600 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
4601 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
4602 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
4603 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
4604 (movdi_ret_addr): New.
4605
4606 2003-08-08 Geoffrey Keating <geoffk@apple.com>
4607
4608 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
4609
4610 2003-08-08 Roger Sayle <roger@eyesopen.com>
4611
4612 * tree.h (get_identifier) Define a macro form of get_identifier
4613 that calls get_identifier_with_length when the string is constant.
4614 (get_identifier_with_length): Change type of second argument to
4615 size_t in prototype.
4616 * stringpool.c (get_identifier): Undefine the macro before giving
4617 the function definition.
4618 (get_identifier_with_length): Change type of second argument to
4619 size_t in function definition.
4620 * hashtable.c (calc_hash): Change type of second argument to size_t.
4621 (ht_lookup): Change type of third argument to size_t. Reorganize
4622 to speed-up the cases where the hash table slot is empty, or the
4623 first probe matches (i.e. there isn't a collision).
4624 * hashtable.h (ht_lookup): Adjust function prototype.
4625
4626 2003-08-08 Bernardo Innocenti <bernie@develer.com>
4627
4628 PR target/9697
4629 PR target/11777
4630 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
4631
4632 2003-08-08 Neil Booth <neil@daikokuya.co.uk>
4633
4634 * common.opt: Add debug switches.
4635 * flags.h (use_gnu_debug_info_extensions): Boolify.
4636 * opts.c (write_symbols, debug_info_level,
4637 use_gnu_debug_info_extensions): Move from toplev.c.
4638 (set_debug_level): New.
4639 (common_handle_options): Handle debug switches.
4640 (print_help): Display target options directly.
4641 * toplev.c (debug_hooks): Don't initialize.
4642 (write_symbols, debug_info_level,
4643 use_gnu_debug_info_extensions): Move to opts.c.
4644 (debug_args, display_help, decode_g_option): Remove.
4645 (process_options): Set no debug if level zero here,
4646 and no-debug-hooks. Error here if impossible debug format selected.
4647 * toplev.h (display_help, decode_g_option): Remove.
4648
4649 2003-08-08 Richard Sandiford <rsandifo@redhat.com>
4650
4651 * tree.c (get_file_function_name_long): Fix size of alloca() area.
4652
4653 2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
4654
4655 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
4656 and gcc_cv_prog_cmp_skip.
4657 * configure: Regenerate.
4658
4659 2003-08-08 Stan Cox <scox@redhat.com>
4660
4661 * config/iq2000: New port.
4662 * config.gcc (iq2000-*-elf): Added.
4663 * doc/install.texi (Specific): Add iq2000 description.
4664
4665 2003-08-08 Andreas Schwab <schwab@suse.de>
4666
4667 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
4668 and insert missing empty argument.
4669 * configure: Regenerate.
4670
4671 2003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4672
4673 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
4674 (attr_length_millicode_call): Likewise.
4675 (attr_length_call): Likewise. Revise some maximum insn lengths.
4676 (attr_length_indirect_call): Likewise.
4677 (output_call): Fix thinko that added extra nop.
4678 * pa.h (IN_NAMED_SECTION_P): Define.
4679
4680 PR c++/11712
4681 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
4682 __STDC_EXT__ when using C++ dialect.
4683
4684 2003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
4685
4686 * sh.c (calc_live_regs): If the return address pointer is live,
4687 force pr live.
4688 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
4689 for saves / restores.
4690 (sh_expand_epilogue): If sh_media_register_for_return returns a
4691 register number, flag the instructions that restores PR_MEDIA_REG
4692 as possibly dead.
4693 Remove dead update of offset.
4694 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
4695 we can use the result of get_hard_reg_initial_val.
4696 * sh.md (UNSPEC_RA): New constant.
4697 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
4698 (load_ra). Handle UNSPEC_RA.
4699 (sibcall_media): Use PR_MEDIA_REG.
4700
4701 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
4702 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
4703 needs saving on SHmedia.
4704
4705 2003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
4706
4707 * config/s390/s390.md: Replace all occurrences of \\t with \t.
4708
4709 2003-08-07 Richard Sandiford <rsandifo@redhat.com>
4710
4711 * local-alloc.c (combine_regs): Fix comment typo.
4712
4713 2003-08-06 Zack Weinberg <zack@codesourcery.com>
4714
4715 * c-decl.c (builtin_decls): Replace with first_builtin_decl
4716 and last_builtin_decl.
4717 (c_init_decl_processing): Initialize both.
4718 (c_reset_state): Iterate from first_builtin_decl to
4719 last_builtin_decl inclusive to reintroduce builtins.
4720
4721 2003-08-06 David Mosberger <davidm@hpl.hp.com>
4722
4723 * doc/extend.texi (Function Attributes): Document the IA-64 version
4724 of the "model" attribute.
4725
4726 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
4727 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
4728 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
4729
4730 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
4731 (ia64_encode_section_info): Likewise.
4732 (ia64_attribute_table): Add "model" attribute.
4733 (TARGET_ENCODE_SECTION_INFO): Define.
4734 (small_addr_symbolic_operand): New function.
4735 (got_symbolic_operand): Return 0 for a symbolref to an object
4736 in the small address area.
4737 (enum ia64_addr_area): New type.
4738 (small_ident1): New variable.
4739 (small_ident2): Likewise.
4740 (init_idents): New function.
4741 (ia64_get_addr_area): Likewise.
4742 (ia64_encode_addr_area): Likewise.
4743 (ia64_encode_section_info): Likewise.
4744 (ia64_expand_load_address): For symbolic references to objects in
4745 the small-address-area, load the address via gen_rtx_SET() (which,
4746 eventually, will expand into "addl").
4747
4748 2003-08-06 Per Bothner <pbothner@apple.com>
4749
4750 * line-map.h (fileline): New typedef.
4751 (struct line_map, linemap_add, linemap_lookup): Use it.
4752 * input.h (struct location_s): Comment notes that long-term we want
4753 to replace it by fileline.
4754
4755 2003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
4756
4757 Fix SHcompact exception handling:
4758 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
4759 by the prologue, return a MEM with return_address_pointer_rtx
4760 as address.
4761 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
4762 (RETURN_ADDR_OFFSET): Don't define.
4763 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
4764 registers that are visible in compact mode. Show that SHmedia
4765 registers still exist in compact mode, even if there are not
4766 readily accessible.
4767 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
4768 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
4769 and DW_EH_PE_pcrel for pic data.
4770 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
4771 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
4772 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
4773 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
4774 * sh.md (movsi_media-1): New splitter.
4775
4776 2003-08-06 Graeme Peterson <gp@qnx.com>
4777
4778 * config/i386/nto.h: New.
4779 * config/i386/t-nto: New.
4780 * config.gcc (i[34567]86-*-nto-qnx*): New.
4781
4782 2003-08-06 Phil Edwards <pme@gcc.gnu.org>
4783
4784 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
4785
4786 2003-08-06 Alan Modra <amodra@bigpond.net.au>
4787
4788 * calls.c (load_register_parameters): Arrange for call_fusage to
4789 report the whole register as used when shifting to the msb.
4790
4791 2003-08-05 Roger Sayle <roger@eyesopen.com>
4792
4793 * builtins.c (expand_builtin): When not optimizing, call the library
4794 function for all builtins that have library functions (except alloca).
4795
4796 2003-08-05 Alexandre Oliva <aoliva@redhat.com>
4797
4798 * c.opt: Introduce -fworking-directory.
4799 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
4800 * c-common.h (flag_working_directory): Declare.
4801 * c-common.c (flag_working_directory): Define.
4802 * c-opts.c (c_common_handle_options): Set it.
4803 (sanitize_cpp_opts): Set...
4804 * cpplib.h (struct cpp_options): ... working_directory option.
4805 (struct cpp_callbacks): Add dir_change.
4806 * cppinit.c (read_original_filename): Call...
4807 (read_original_directory): New. Look for # 1 "directory//"
4808 and process it.
4809 (cpp_read_main_file): Call dir_change callback if working_directory
4810 option is set.
4811 * gcc.c (cpp_unique_options): Pass -g*.
4812 * c-lex.c (cb_dir_change): New.
4813 (init_c_lex): Set dir_change callback.
4814 * toplev.c (src_pwd): New static variable.
4815 (set_src_pwd, get_src_pwd): New functions.
4816 * toplev.h (get_src_pwd, set_src_pwd): Declare.
4817 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
4818 * dwarf2out.c (gen_compile_unit_die): Likewise.
4819 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
4820
4821 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
4822
4823 * pretty-print.h (pp_set_line_maximum_length): Make macro.
4824 (pp_set_prefix): Likewise.
4825 (pp_destroy_prefix): Likewise.
4826 (pp_remaining_character_count_for_line): Likewise.
4827 (pp_clear_output_area): Likewise.
4828 (pp_formatted_text): Likewise.
4829 (pp_last_position_in_text): Likewise.
4830 (pp_emit_prefix): Likewise.
4831 (pp_append_text): Likewise.
4832 (pp_flush): Likewise.
4833 (pp_format_text): Likewise.
4834 (pp_format_verbatim): Likewise.
4835 (pp_tree_identifier): Tidy.
4836 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
4837 (pp_base_format_verbatim): Rename from pp_format_verbatim.
4838 (pp_base_flush): Rename from pp_flush.
4839 (pp_base_set_line_maximum_length): Rename from
4840 pp_set_line_maximum_length.
4841 (pp_base_clear_output_area): Rename from pp_clear_output_area.
4842 (pp_base_set_prefix): Rename from pp_set_prefix.
4843 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
4844 (pp_base_emit_prefix): Rename from pp_emit_prefix.
4845 (pp_base_append_text): Rename from pp_append_text.
4846 (pp_base_formatted_text): Rename from pp_formatted_text.
4847 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
4848 (pp_base_remaining_character_count_for_line): Rename from
4849 pp_remaining_character_count_for_line.
4850 * diagnostic.h (diagnostic_format_decoder): Tidy.
4851 (diagnostic_flush_buffer): Likewise.
4852 * c-pretty-print.h: (pp_c_string_literal): Declare.
4853 (pp_c_real_literal): Likewise.
4854 (pp_c_integer_literal): Likewise.
4855 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
4856 pp_identifier.
4857 (pp_c_character_literal): Tidy.
4858 (pp_c_string_literal): Make public.
4859 (pp_c_bool_literal): Likewise.
4860 (pp_c_integer_literal): Likewise.
4861 (pp_c_real_literal): Likewise.
4862
4863 * Makefile.in (C_PRETTY_PRINT_H): New variable.
4864 (c-pretty-print.o): Update dependence.
4865
4866 2003-08-05 Chris Demetriou <cgd@broadcom.com>
4867
4868 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
4869 ".set nomacro" state.
4870 (fix_truncsfsi2_macro): Likewise.
4871
4872 2003-08-05 Steven Bosscher <steven@gcc.gnu.org>
4873
4874 * tree.h (DID_INLINE_FUNC): Remove macro.
4875 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
4876 add tree check for FUNCTION_DECL.
4877 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
4878 (struct tree_decl): Rename inlined_function_flag to
4879 declared_inline_flag.
4880 * c-common.h (c_lang_decl): Remove.
4881 (DECL_ESTIMATED_INSNS): Remove.
4882 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
4883 (DECL_DECLARED_INLINE_P): Remove.
4884 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
4885 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
4886 (finish_function): Make uninlinable a bool. Fixup call to
4887 tree_inlinable_function_p() and fix some code style issues.
4888 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
4889 * cgraph.c (dump_cgraph): Likewise.
4890 * cgraphunit.c (cgraph_decide_inlining): Likewise
4891 (cgraph_finalize_compilation_unit): Likewise.
4892 Also update call to tree_inlinable_function_p().
4893 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
4894 look at DECL_DECLARED_INLINE and reverse logic.
4895 * print-tree.c (print_node): Likewise.
4896 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
4897 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
4898 prototype.
4899 * tree-inline.c (inlinable_function_p): Split up in this function to
4900 check for basic inlining inhibiting conditions, and new
4901 limits_allow_inlining() function. Warn if inlining is impossible
4902 because the inline candidate calls alloca or uses sjlj exceptions.
4903 (limits_allow_inlining): this new function to check if the inlining
4904 limits are satisfied. Throttle from currfn_max_inline_insns, not from
4905 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
4906 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
4907 Update prototypes.
4908 (tree_inlinable_function_p): Make a bool. Update call to
4909 inlinable_function_p
4910 (expand_call_inline): Use limits_allow_inlining() when not in
4911 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
4912 instead see if the function was declared `inline'.
4913
4914 2003-08-05 Josef Zlomek <zlomekj@suse.cz>
4915
4916 * gcse.c (try_replace_reg): Fix updating of note.
4917
4918 2003-08-04 Roger Sayle <roger@eyesopen.com>
4919
4920 PR middle-end/11771
4921 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
4922 logic in negate_expr, i.e. we don't invert (A-B) for floating
4923 point types unless flag_unsafe_math_optimizations.
4924
4925 2003-08-04 Roger Sayle <roger@eyesopen.com>
4926
4927 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
4928 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
4929 for floating point expressions with -ffast-math.
4930 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
4931 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
4932
4933 2003-08-04 Roger Sayle <roger@eyesopen.com>
4934
4935 * c-common.c (flag_noniso_default_format_attributes): Delete.
4936 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
4937 (c_attrs_initialized): Delete.
4938 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
4939 always call c_init_attributes.
4940 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
4941 set c_attrs_initialized when done.
4942 (c_common_insert_default_attributes): Delete.
4943 * c-common.h (flag_noniso_default_format_attributes): Delete.
4944 (c_coomon_insert_default_attributes): Delete prototype.
4945 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
4946 flag_noniso_default_format_attributes.
4947
4948 * c-decl.c (c_insert_default_attributes): Delete.
4949 * c-tree.h (c_insert_default_attributes): Delete prototype.
4950
4951 * attribs.c (decl_attributes): Don't call insert_default_attributes
4952 langhook. Update function description comment.
4953 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
4954 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
4955 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
4956 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
4957
4958 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
4959 define.
4960
4961 2003-08-04 Richard Sandiford <rsandif@redhat.com>
4962
4963 * config/mips/mips.c (override_options): Disable -G on targets that
4964 have no .section support.
4965 (mips_select_section): Use default_select_section for such targets.
4966
4967 2003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
4968
4969 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
4970 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
4971 * fixinc/fixincl.x: Rebuild.
4972 * fixinc/tests/base/regexp.h: New test.
4973
4974 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
4975
4976 * c-ppoutput.c (cb_line_change): Don't skip line changing while
4977 parsing macro arguments in the top-level context.
4978
4979 2003-08-04 Neil Booth <neil@daikokuya.co.uk>
4980
4981 * config.in: Remove HAVE_LSTAT.
4982 * configure, configure.in: Don't test for lstat.
4983
4984 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4985
4986 * opts.c (decode_options): Do language-specific initialization for
4987 the global diagnostic context.
4988 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
4989 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
4990 (LANG_HOOKS_INITIALIZER): Adjust.
4991 * langhooks.h (struct lang_hooks): Add new field
4992 initialize_diagnostics.
4993 * langhooks.c (lhd_initialize_diagnostics): Define.
4994
4995 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
4996
4997 * pretty-print.h: Adjust macro definitions.
4998 * pretty-print.c (pp_newline): Rename to pp_base_newline.
4999 (pp_character): Rename to pp_base_character.
5000 (pp_string): Rename to pp_base_string.
5001 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
5002 (pp_newline): Likewise. Adjust.
5003 (pp_c_char): Adjust.
5004
5005 2003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5006
5007 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
5008 BUILT_IN_LLABS): Move to miscellaneous section.
5009
5010 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
5011
5012 PR preprocessor/11534
5013 * cppexp.c (parse_defined): Warn only if -pedantic.
5014
5015 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
5016
5017 * cppfiles.c (stack_file): Use file path.
5018
5019 2003-08-02 Roger Sayle <roger@eyesopen.com>
5020
5021 * builtin-types.def (BT_SSIZE): New primitive type.
5022 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
5023 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
5024 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
5025 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
5026 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
5027 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
5028 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
5029 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
5030 few functions that define default attributes using it.
5031 * c-common.c (c_common_insert_default_attributes): Do nothing.
5032
5033 * doc/extend.texi: Document these "new" builtins.
5034
5035 2003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
5036
5037 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
5038 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
5039 when -mieee-fp set and -shared not set.
5040 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
5041
5042 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
5043
5044 * cppfiles.c (struct _cpp_file): Rename once_only_next to
5045 next_file. Remove import and pragma_once, add once_only.
5046 (find_file): Add new file structures to the all_files list.
5047 (should_stack_file): Mark #import-ed files once-only, and
5048 don't stack them if the file has already been stacked.
5049 (_cp_mark_file_once_only): Simplify.
5050 * cpphash.h (struct cpp_reader): Rename once_only_files
5051 to all_files. Rename saw_pragma_once to seen_once_only.
5052 (_cpp_mark_file_once_only): Update prototype.
5053 * cpplib.c (do_pragma_once): Update.
5054
5055 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
5056
5057 * cppfiles.c (ENOTDIR): Remove.
5058 (open_file_in_dir): Rename find_file_in_dir. Handle errors
5059 other than ENOENT here.
5060 (once_only_file_p): Rename should_stack_file.
5061 (find_file, open_file_failed, read_file_guts): Report errors
5062 with full path name.
5063 (read_file): Move pch handling to should_stack_file.
5064 (should_stack_file): Handle PCH and once-only issues, and
5065 reading the file.
5066 (stack_file): Don't do file reads.
5067
5068 2003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5069
5070 * libgcov.c (gcov_exit): Cleanup and fix.
5071 * profile.c (compute_value_histograms): Don't try to read profiles
5072 that are not present.
5073
5074 2003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5075
5076 * builtins.def: Categorize.
5077
5078 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
5079 Mind fp rounding.
5080 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
5081
5082 2003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
5083
5084 * config.gcc: Enable posix threads by default on darwin.
5085
5086 2003-08-01 Jakub Jelinek <jakub@redhat.com>
5087
5088 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
5089 even if nehedges1 is 0.
5090
5091 2003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
5092
5093 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
5094 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
5095 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
5096 and defintions.
5097
5098 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
5099 * fixinc/fixincl.x: Regenerate.
5100 * fixinc/tests/base/math.h: Regenerate to match test_text change.
5101
5102 2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5103
5104 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
5105
5106 2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5107
5108 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
5109 for accesses to exc_ptr.
5110
5111 2003-08-01 Geoffrey Keating <geoffk@apple.com>
5112
5113 * doc/sourcebuild.texi (Front End Directory): Don't make references
5114 to libsubdir, it's not part of the interface to frontends.
5115 * doc/install.texi (Configuration): Help users read faster by saying
5116 that GCC's configure options are the standard autoconf ones.
5117 Mention --libdir. Update the default rules for finding the
5118 assembler. Don't use libsubdir since we haven't said what it means.
5119 (Specific): In the Solaris 7 notes, update the place to put the
5120 assembler.
5121 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
5122 * doc/cpp.texi (Search Path): Actually, the search path
5123 depends on libdir, which can relocate with cpp.
5124 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
5125 now a private interface between the Makefile and the driver.
5126
5127 2003-08-01 Richard Henderson <rth@redhat.com>
5128
5129 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
5130
5131 * varasm.c (lookup_constant_def): New function.
5132 * rtl.h (lookup_constant_def): Declare it.
5133 * dwarf2out.c (loc_descriptor_from_tree): Use it.
5134 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
5135
5136 2003-08-01 Zack Weinberg <zack@codesourcery.com>
5137
5138 * c-decl.c (gettags, pushdecl_function_level): Delete.
5139 (last_function_parm_vars): Rename last_function_parm_others.
5140 (current_function_parm_vars): Rename current_function_parm_others.
5141 (struct c_scope): Rewrite comment explaining this data structure.
5142 Add names_last, blocks_last, parms_last fields. Rename
5143 incomplete_list to incomplete.
5144 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
5145 (poplevel): Ignore second argument. No need to nreverse
5146 anything. Restructure such that each list is processed
5147 exactly once. Use 'const location_t *locus' syntactic sugar
5148 variable where useful. Issue unused variable warnings
5149 ourselves, do not rely on function.c.
5150 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
5151 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
5152 (implicitly_declare): decl cannot be error_mark_node.
5153 (undeclared_variable): Manipulate scope structure directly.
5154 (c_make_fname_decl): Likewise.
5155 (getdecls, c_init_decl_processing): Fix comment.
5156 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
5157 for 'last' variable.
5158 (grokparms): No need to nreverse parms list.
5159 (store_parm_decls_newstyle): Set up the parms_last and
5160 names_last fields of the new scope too.
5161 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
5162 on parms to begin with; check this under ENABLE_CHECKING. Set
5163 up parms_last.
5164 (check_for_loop_decls): Refer directly to current_scope->tags.
5165 Use consistent quote style in diagnostics.
5166 (c_write_global_declarations): The names list is not backward.
5167
5168 * c-common.h: Don't prototype gettags.
5169 * c-parse.in: Call poplevel with second argument 0 always.
5170
5171 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5172
5173 * builtins.def: Resort builtins.
5174
5175 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5176
5177 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
5178 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
5179 Prepend "__builtin_" onto NAME with string concatenation. Remove
5180 explicit "__builtin_" from each macro call.
5181
5182 Reformat entire file.
5183
5184 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5185
5186 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
5187 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
5188
5189 2003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
5190
5191 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
5192 CCL1, or CCL2 modes with floating point operations.
5193
5194 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
5195 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
5196 "*subdf3_cconly"): New insns.
5197 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
5198
5199 2003-08-01 Neil Booth <neil@daikokuya.co.uk>
5200
5201 * Makefile.in: Refine dependencies.
5202 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
5203 * c.opt: Update help for -Wimport.
5204 * cppfiles.c: Include hashtab.h. Update comments.
5205 (stack_file): Read the file before updating dependencies.
5206 (once_only_file_p): Be smarter about marking once-only files.
5207 (_cpp_mark_file_once_only): Correct the check for existence on
5208 the list.
5209 (open_file_failed): Use name not path, which is NULL.
5210 * cpphash.h: Don't include hashtab.h.
5211 (struct _cpp_file): Remove.
5212 (struct cpp_reader): Update.
5213 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
5214 * cpplib.h (struct cpp_options): Remove warn_import.
5215 (cpp_simplify_path): Remove.
5216
5217 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
5218
5219 PR c++/11295
5220 * doc/extend.texi (Statement Expressions): Document C++ semantics.
5221
5222 2003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
5223
5224 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
5225
5226 2003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5227
5228 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
5229 throughout.
5230 * builtins.def: Likewise.
5231
5232 2003-07-31 Jason Merrill <jason@redhat.com>
5233
5234 * Makefile.in (bubblestrap): Don't require a previous full
5235 bootstrap.
5236
5237 * expr.c (mostly_zeros_p): No longer static.
5238 * tree.h: Declare it.
5239 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
5240 unless we need to do substitutions.
5241
5242 2003-07-31 Roger Sayle <roger@eyesopen.com>
5243
5244 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
5245 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
5246 as pow(x,2.0) when the latter will be expanded back into x*x.
5247 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
5248 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
5249 pow can never set errno when used with an integer exponent.
5250 Always use expand_powi when exponent is -1, 0, 1 or 2.
5251 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
5252 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
5253 the pow forms of these expressions.
5254
5255 2003-07-31 Geoffrey Keating <geoffk@apple.com>
5256
5257 * Makefile.in (libexecdir): New.
5258 (libsubdir): Use gcc instead of gcc-lib.
5259 (libexecsubdir): New.
5260 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
5261 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
5262 gcc-lib.
5263 (installdirs): Make libexecsubdir.
5264 (install-common): Put executables in libexecsubdir.
5265 (itoolsdir): Use libexecsubdir.
5266 (itoolsdatadir): New.
5267 (install-mkheaders): Separate data files and executables.
5268 (install-collect2): Put executables in libexecsubdir.
5269 (uninstall): Remove libexecsubdir.
5270 * mkheaders.in: Update for new arrangement of files.
5271 (libexecdir): New.
5272 (libexecsubdir): New.
5273 (itoolsdir): Use libexecsubdir.
5274 (itoolsdatadir): New.
5275 * gcc.c (gcc_libexec_prefix): New.
5276 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
5277 (standard_exec_prefix_1): Use libexec.
5278 (standard_exec_prefix_2): New.
5279 (standard_libexec_prefix): New.
5280 (process_command): Update for new arrangement of files. Compute
5281 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
5282
5283 2003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
5284
5285 * inclhack.def (stdio_va_list): Avoid bogus replacement which
5286 triggers on Interix.
5287 * fixincl.x: Regenerate.
5288
5289 2003-07-31 Jakub Jelinek <jakub@redhat.com>
5290
5291 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
5292 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
5293
5294 2003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5295
5296 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
5297
5298 2003-07-31 Per Bothner <pbothner@apple.com>
5299
5300 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
5301 (add_input_filename): New function.
5302 (handle_options): Call add_input_filename directly instead of
5303 with a lang hook.
5304 * opts.h (in_fnames, num_in_fnames): Moved here.
5305 (add_input_filename): Declare.
5306 * c-decl.c: Need to #include opts.h.
5307 * Makefile.in (c-decl.o): Also depends on opts.h.
5308 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
5309 (c_common_handle_filename): Replaced by add_input_filename.
5310 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
5311 Remove.
5312 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
5313 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
5314 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
5315 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
5316
5317 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5318
5319 * combine.c (try_combine): Set JUMP_LABEL for newly created
5320 unconditional jump.
5321
5322 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5323
5324 * fold-const.c (fold): Fold some comparisons of bit operations.
5325
5326 2003-07-31 Jan Hubicka <jh@suse.cz>
5327
5328 * cgraph.c (create_edge): Fix typo.
5329 * i386.c (pic_symbolic_operand): Reorder tests.
5330
5331 2003-07-31 Nathan Sidwell <nathan@codesourcery.com>
5332
5333 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
5334 more fully.
5335 (Gcov Data Files): Update.
5336
5337 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5338
5339 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
5340 default.
5341
5342 * gthr-posix.c: New file.
5343 * gthr-posix.h: Define _REENTRANT if missing.
5344 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
5345
5346 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
5347 by gthr-posix.o.
5348 * config/alpha/t-osf-pthread: New file.
5349
5350 * fixinc/inclhack.def (alpha_pthread): New fix.
5351 * fixinc/fixincl.x: Regenerate.
5352 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
5353
5354 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
5355 warning.
5356 Fixes PR bootstrap/9330.
5357
5358 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5359
5360 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
5361 without GNU ld.
5362 Update comment.
5363 * configure: Regenerate.
5364
5365 2003-07-31 Vladimir Makarov <vmakarov@redhat.com>
5366
5367 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
5368 setter.
5369
5370 2003-07-30 Roger Sayle <roger@eyesopen.com>
5371
5372 * builtins.def: Alphabetize.
5373
5374 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
5375
5376 * doc/c-tree.texi: Normalize spellings of "lowercase" and
5377 "uppercase".
5378 * doc/cpp.texi: Likewise.
5379 * doc/md.texi: Likewise.
5380 * doc/rtl.texi: Likewise.
5381 * doc/tm.texi: Likewise.
5382
5383 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
5384
5385 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
5386 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
5387 of cc1obj.
5388
5389 2003-07-30 Chris Demetriou <cgd@broadcom.com>
5390
5391 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
5392 macros before defining them.
5393
5394 2003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
5395
5396 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
5397 UNSPECV_BLOCKAGE): New constants.
5398 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
5399 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
5400 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
5401 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
5402
5403 (all insns and expanders): Write output control string as brace block
5404 where appropriate. Remove \-escapes for doublequote characters.
5405
5406 2003-07-31 Jan Hubicka <jh@suse.cz>
5407
5408 * gcse.c (insert_store): Fix typo in previous patch.
5409
5410 2003-07-30 Neil Booth <neil@daikokuya.co.uk>
5411
5412 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
5413
5414 2003-07-30 Andi Kleen <ak@muc.de>
5415
5416 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
5417
5418 2003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5419
5420 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
5421 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
5422 GCOV_N_VALUE_COUNTERS): New.
5423 * profile.c (compute_value_histograms): New static function.
5424 (branch_prob): Read back the value histograms.
5425 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
5426 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
5427 * value-prof.c: Add comment on reading the profile.
5428 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
5429 * doc/invoke.texi (-fprofile-values): Document behavior with
5430 -fbranch-probabilities.
5431
5432 2003-07-30 David Edelsohn <edelsohn@gnu.org>
5433
5434 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
5435
5436 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
5437
5438 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
5439 symbolically.
5440
5441 2003-07-30 Jan Hubicka <jh@suse.cz>
5442
5443 * gcse.c (insert_store): Ignore fake edges.
5444
5445 * c-common.c (flag_vtable_gc): Kill.
5446 * c-common.g (flag_vtable_gc): Kill.
5447 * c-opts (c_common_handle_option): Kill.
5448 * c.opt (fvtable-gc): Kill.
5449 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
5450 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
5451 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
5452
5453 * invoke.texi (-ftable-gc): Kill documentation.
5454
5455 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
5456 just because function body is missing.
5457
5458 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
5459
5460 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
5461
5462 * unwind-sjlj.c: Fix typo in file description.
5463
5464 2003-07-30 Alan Modra <amodra@bigpond.net.au>
5465
5466 * calls.c (load_register_parameters): When shifting reg sized values
5467 to the msb, move the value to a reg first.
5468
5469 2003-07-29 Geoffrey Keating <geoffk@apple.com>
5470
5471 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
5472 * line-map.h (linemap_add): Update comments.
5473 * line-map.c (linemap_add): Update comments, interpret zero-length
5474 filename as "<stdin>".
5475
5476 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
5477
5478 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
5479
5480 2003-07-29 Zack Weinberg <zack@codesourcery.com>
5481
5482 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
5483 New static variables.
5484 (struct c_scope): Add parms and warned_forward_parm_decls
5485 fields; remove parm_order.
5486 (storedecls, storetags): Delete.
5487 (poplevel): Also clear bindings on the parms chain.
5488 (pushdecl): Handle forward declarations of parameters, and
5489 chain PARM_DECLs on the parms list, not the names list.
5490 (lookup_name_current_level): Check for PARM_DECLs on the parms
5491 list too.
5492 (push_parm_decl): Don't update parm_order.
5493 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
5494 warning, only once per parameter list, and set TREE_ASM_WRITTEN
5495 on the decls here. Then move the forward decls to the names list.
5496 (grokparms): Set last_function_parm_vars.
5497 (get_parm_info): Don't use gettags or getdecls. No need to
5498 extract non-parms from the parms list, or reorganize the parms
5499 list. Feed nonparms back in the TREE_TYPE of the list node
5500 returned. Issue only one error per parameter list for "void"
5501 appearing more than once in said parameter list. Collapse
5502 parmlist_tags_warning into this function to avoid double scan
5503 of tags list.
5504 (start_function): Set current_function_parm_vars.
5505 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
5506 directly. Get non-parms from current_function_parm_vars; no
5507 need to extract them from the parms chain. Properly bind tags
5508 in the new scope.
5509 (store_parm_decls_oldstyle): No need to extract non-parameters
5510 from the parms chain, nor to store them back afterward. Move
5511 declaration to top of function, restructure code reordering
5512 DECL_ARGUMENTS.
5513 (store_parm_decls): No need to save and restore warn_shadow.
5514 * c-parse.in: Don't call parmlist_tags_warning nor
5515 clear_parm_order. Call mark_forward_parm_decls when forward
5516 parm decls are encountered.
5517 * c-tree.h: Prototype mark_forward_parm_decls; not
5518 clear_parm_order or parmlist_tags_warning.
5519
5520 2003-07-29 Geoffrey Keating <geoffk@apple.com>
5521
5522 * c-common.c (allow_pch): Remove.
5523 * c-common.h (allow_pch): Remove.
5524 (c_common_no_more_pch): Declare.
5525 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
5526 * c-pch.c: Include hosthooks.h.
5527 (c_common_valid_pch): Don't check allow_pch.
5528 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
5529 (c_common_no_more_pch): New.
5530 * ggc-common.c: Include hosthooks.h.
5531 (gt_pch_save): Call gt_pch_get_address.
5532 (gt_pch_restore): Call gt_pch_use_address.
5533 * hooks.c (hook_voidp_size_t_null): New.
5534 (hook_bool_voidp_size_t_false): New.
5535 * hooks.h (hook_voidp_size_t_null): New.
5536 (hook_bool_voidp_size_t_false): New.
5537 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
5538 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
5539 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
5540 HOST_HOOKS_GT_PCH_USE_ADDRESS.
5541 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
5542 gt_pch_use_address.
5543 * doc/hostconfig.texi (Host Common): Document
5544 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
5545 * Makefile.in (c-pch.o): Depend on hosthooks.h.
5546 (ggc-common.o): Likewise.
5547
5548 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
5549 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
5550 (pch_address_space): New.
5551 (darwin_rs6000_gt_pch_get_address): New.
5552 (darwin_rs6000_gt_pch_use_address): New.
5553
5554 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
5555
5556 PR preprocessor/11569
5557 PR preprocessor/11649
5558 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
5559 * cppfiles.c: Completely rewritten.
5560 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
5561 struct cpp_path is now struct cpp_dir.
5562 (remove_duplicates): Don't simplify path names.
5563 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
5564 cpp_stack_file.
5565 * cpphash.h: Include hashtab.h.
5566 (_cpp_file): Declare.
5567 (struct cpp_buffer): struct include_file is now struct _cpp_file,
5568 and struct cpp_path is now struct cpp_dir. Rename members.
5569 (struct cpp_reader): Similarly. New members once_only_files,
5570 file_hash, file_hash_entries, quote_ignores_source_dir,
5571 no_search_path, saw_pragma_once. Remove all_include_files and
5572 max_include_len. Make some members bool.
5573 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
5574 (_cpp_stack_file): Renamed from _cpp_read_file.
5575 (_cpp_stack_include): Renamed from _cpp_execute_include.
5576 (_cpp_init_files): Renamed from _cpp_init_includes.
5577 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
5578 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
5579 (cpp_read_next_file): Rename and move to cppfiles.c.
5580 (cpp_read_main_file): Update.
5581 * cpplib.c (run_directive): Update for renamed members.
5582 (do_include_common, _cpp_pop_buffer): Update.
5583 (do_import): Undeprecate #import.
5584 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
5585 * cpplib.h: Remove file_name_map_list.
5586 (cpp_options): Remove map_list.
5587 (cpp_dir): Rename from cpp_path. New datatype for name_map.
5588 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
5589
5590 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
5591
5592 * Makefile.in: Make stamp-objdir safe for parallel builds.
5593
5594 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
5595
5596 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
5597 (info): Depend on stmp-docobjdir.
5598
5599 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5600
5601 * configure: Regenerate.
5602
5603 2003-07-29 Jan Hubicka <jh@suse.cz>
5604
5605 PR C++/11131
5606 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
5607 in !unit-at-a-time mode.
5608
5609 2003-07-28 Geoffrey Keating <geoffk@apple.com>
5610
5611 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
5612 main function.
5613
5614 2003-07-28 Mark Mitchell <mark@codesourcery.com>
5615
5616 PR c++/11667
5617 * c-common.c (shorten_compare): Take into account differences
5618 between C and C++ representation for enumeration types.
5619 * tree.h (set_min_and_max_values_for_integral_type): Declare.
5620 * stor-layout.c (set_min_and_max_values_for_integral_type): New
5621 function, broken out from ...
5622 (fixup_signed_type): ... here and ...
5623 (fixup_unsigned_type): ... here.
5624
5625 2003-07-28 Zack Weinberg <zack@codesourcery.com>
5626
5627 * c-decl.c: Update commentary, adjust blank lines throughout.
5628 (struct c_scope): Fix indentation. Reorder members so
5629 outer-context pointers come first, booleans last.
5630 (duplicate_decls, define_label): Use a 'locus' variable for
5631 diagnostic locations in a few more places.
5632 (warn_if_shadowing): Un-split a conditional that fits on one line.
5633 (c_init_decl_processing): No need to clear current_scope and
5634 current_function_scope.
5635 (start_decl): Merge if/else if statements with same action.
5636 (push_parm_decl): Rename old_immediate_size_expand to use
5637 save_foo convention; save/restore around entire function.
5638 (grokdeclarator): Remove unnecessary braces.
5639
5640 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
5641 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
5642
5643 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
5644 when warn_declaration_after_statement. Call pedwarn_c90, not
5645 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
5646 * c-common.c (warn_declaration_after_statement): Define.
5647 * c-common.h (warn_declaration_after_statement): Declare.
5648 * c.opt (Wdeclaration-after-statement): New.
5649 * c-errors.c (pedwarn_c90): New function.
5650 * c-opts.c (c_common_handle_option) <case
5651 OPT_Wdeclaration_after_statement>: New.
5652 * c-tree.h (pedwarn_c90): Declare.
5653 * doc/invoke.texi (Option Summary): Document
5654 -Wdeclaration-after-statement.
5655 (Warning Options): Ditto.
5656
5657 2003-07-28 Jan Hubicka <jh@suse.cz>
5658
5659 * i386.md (memory attribute) Avoid accessing uninitialized memory
5660 for ishift1 type instructions.
5661
5662 2003-07-28 Jakub Jelinek <jakub@redhat.com>
5663
5664 * configure.in (--enable-checking): Add fold category.
5665 (ENABLE_FOLD_CHECKING): Define if requested.
5666 * configure: Rebuilt.
5667 * config.in: Rebuilt.
5668 * doc/install.texi: Document it.
5669 * fold-const.c: Include md5.h.
5670 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
5671 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
5672 print_fold_checksum): New functions.
5673
5674 * fold-const.c (fold): Never modify argument passed to fold, instead
5675 change a copy and return it.
5676 * convert.c (convert_to_integer): Likewise.
5677
5678 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
5679
5680 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
5681 cleanup of junk after #else and #endif directives. Collapse repeated
5682 clauses into for statment.
5683
5684 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
5685
5686 2003-07-27 Zack Weinberg <zack@codesourcery.com>
5687
5688 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
5689 (keep_next_if_subblocks): Rename next_is_function_body.
5690 (pushlevel): Adjust commentary. Always set ->keep on the
5691 outermost level of a function. Don't set ->keep_if_subblocks.
5692 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
5693 (store_parm_decls): Adjust to match.
5694 (finish_function): Adjust to match.
5695 Call poplevel with all three arguments zero.
5696
5697 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
5698 New functions split out of store_parm_decls.
5699 Avoid unnecessary work. Use local variables consistently.
5700 (store_parm_decls): Likewise.
5701
5702 (finish_function): No need to set functionbody flag on call to
5703 poplevel.
5704 (struct language_function): Remove scope field.
5705 (c_push_function_context, c_pop_function_context): No need to
5706 save and restore current_scope.
5707
5708 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
5709
5710 * doc/extend.texi (Deprecated Features): Implicit typename is
5711 gone. Default args on types is going.
5712
5713 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
5714
5715 * Makefile.in (ifcvt.o): Depend on target.h
5716 * ifcvt.c (target.h): Include.
5717 (if_convert): Don't call mark_loop_exit_edges if we can't
5718 modify jumps.
5719
5720 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5721
5722 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
5723
5724 2003-07-26 Richard Henderson <rth@redhat.com>
5725
5726 PR inline-asm/11676
5727 * cse.c (count_reg_usage): Handle asm_operands properly.
5728
5729 2003-07-26 Roger Sayle <roger@eyesopen.com>
5730
5731 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
5732 (DEF_EXT_FALLBACK_BUILTIN): Delete.
5733 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
5734 the regular DEF_EXT_LIB_BUILTIN macro.
5735 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
5736 the regular DEF_LIB_BUILTIN macro.
5737 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
5738 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
5739 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
5740 DEF_EXT_LIB_BUILTIN macro.
5741
5742 * c-decl.c (duplicate_decls): Remove code to handle builtin
5743 functions prototyped without an argument list.
5744
5745 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
5746
5747 * config/i386/winnt.c: Revert 2003-07-08 change.
5748 (i386_pe_section_type_flags): Remove error_with_decl here too.
5749
5750 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
5751
5752 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
5753 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
5754 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
5755 (v850_handle_data_area_attribute): Likewise.
5756
5757 2003-07-26 Geoffrey Keating <geoffk@apple.com>
5758
5759 * varasm.c (output_constant_def_contents): Use
5760 ASM_DECLARE_CONSTANT_NAME if defined.
5761 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
5762 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
5763 objects get at least one byte to prevent assembler problems.
5764 (ASM_DECLARE_CONSTANT_NAME): New.
5765
5766 * Makefile.in (libbackend.o): Remove options_.h.
5767 (mostlyclean): Likewise.
5768
5769 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
5770 insert a label at the end of an function under Mach-O.
5771
5772 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
5773
5774 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
5775
5776 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
5777 equality.
5778 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
5779
5780 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
5781
5782 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
5783
5784 * doc/passes.texi (Passes): Mention pretty-printing and
5785 diagnostic files.
5786
5787 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
5788
5789 * doc/extend.texi (Function Attributes): GNU C++ does now allow
5790 unused parameter decls.
5791 (Attribute Syntax): GNU C++ does not allow label attributes to be
5792 after the ':'.
5793
5794 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
5795
5796 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
5797 (objc_declare_class): Likewise.
5798 (error_with_ivar): Likewise.
5799 (start_class): Likewise.
5800 (warn_with_method): Likewise.
5801
5802 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
5803
5804 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
5805 from GCC.
5806 * calls.c (try_to_integrate): Don't use xxx_with_decl.
5807 (expand_call): Likewise.
5808 * dwarfout.c (output_reg_number): Likewise.
5809 * expr.c (expand_expr): Likewise.
5810 * function.c (assign_temp): Likewise.
5811 (uninitialized_vars_warning): Likewise.
5812 (setjmp_args_warning): Likewise.
5813 (expand_function_end): Likewise.
5814 * stmt.c (fixup_gotos): Likewise.
5815 (warn_about_unused_variables): Likewise.
5816 (expand_end_bindings): Likewise.
5817 * stor-layout.c (layout_decl): Likewise.
5818 (place_field): Likewise.
5819 * toplev.c (check_global_declarations): Likewise.
5820 (rest_of_handle_inlining): Likewise.
5821 (default_tree_printer): New function.
5822 (general_init): Initialize diagnostic machinery before routing
5823 signals to the ICE machinery. Set default tree printer.
5824 * toplev.h (pedwarn_with_decl): Remove declaration.
5825 (warning_with_decl): Likewise.
5826 (error_with_decl): Likewise.
5827 (pedwarn): Remove attribute for the time being.
5828 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
5829 * varasm.c (named_section): Likewise.
5830 (make_decl_rtl): Likewise.
5831 (assemble_variable): Likewise.
5832 (merge_weak): Likewise.
5833 (declare_weak): Likewise.
5834
5835 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
5836 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
5837 (format_with_decl): Remove.
5838 (diagnostic_for_decl): Likewise.
5839 (pedwarn_with_decl): Likewise.
5840 (warning_with_decl): Likewise.
5841 (error_with_decl): Likewise.
5842 (diagnostic_initialize): Adjust.
5843 (diagnostic_count_diagnostic): Likewise.
5844 (announce_function): Likewise.
5845 (lhd_print_error_function): Likewise.
5846 (diagnostic_report_current_module): Likewise.
5847 (default_diagnostic_starter): Likewise.
5848 (diagnostic_report_diagnostic): Likewise.
5849 (default_diagnostic_finalizer): Likewise.
5850 (verbatim): Likewise.
5851 (error): Likewise.
5852 (warning): Likewise.
5853 * opts.c (common_handle_option): Likewise.
5854 * pretty-print.c: New file.
5855 * c-pretty-print.h (pp_base): Override.
5856 * c-pretty-print.c: Adjust use of macros throughout.
5857 (pp_buffer): New macro.
5858 (pp_newline): Likewise.
5859 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
5860 * Makefile.in (DIAGNOSTIC_H): New variable.
5861 (c-errors.o): Use it.
5862 (c-objc-common.o): Likewise.
5863 (c-common.o): Likewise.
5864 (c-opts.o): Likewise.
5865 (c-format.o): Likewise.
5866 (diagnostic.o): Likewise.
5867 (opts.o): Likewise.
5868 (toplev.o): Likewise.
5869 (rtl-error.o): Likewise.
5870 (dwarf2out.o): Likewise.
5871 (jump.o): Likewise.
5872 (pretty-print.o): New rule.
5873
5874 2003-07-24 Roger Sayle <roger@eyesopen.com>
5875
5876 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
5877 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
5878 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
5879 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
5880 (DEF_FRONT_END_LIB_BUILTIN): Delete.
5881 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
5882 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
5883
5884 * builtins.c (build_string_literal): New function to construct
5885 a char* pointer to a string literal.
5886 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
5887 "rtx target" to be consistent with other expand_builtin_* functions.
5888 Change 3rd argument from "int unlocked" to "bool unlocked".
5889 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
5890 c-common.c to avoid front-end dependencies. Optimize printf("")
5891 as a no-op when the result isn't required. Handle embedded NULs
5892 in format string.
5893 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
5894 from c-common.c to avoid front-end dependencies. Likewise, optimize
5895 fprintf(fp,"") as a no-op when the result isn't required, evaluating
5896 fp for side-effects. Handle embedded NULs in format string.
5897 (expand_builtin_sprintf): Fix typo.
5898 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
5899 optimizing. Adjust calls of expand_builtin_fputs to match the API
5900 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
5901 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
5902 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
5903
5904 * c-common.c (is_valid_printf_arglist): Delete.
5905 (c_expand_builtin): Delete.
5906 (c_expand_builtin_printf): Moved to builtins.c. Delete.
5907 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
5908 (c_expand_expr): No longer treat CALL_EXPRs specially.
5909 (CALLED_AS_BUILT_IN): Delete.
5910
5911 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5912
5913 PR optimization/11631
5914 * gcse.c (store_motion): Connect infinite loops to exit.
5915
5916 2003-07-24 Jason Merrill <jason@redhat.com>
5917
5918 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
5919 (boolean_true_node, boolean_false_node): Likewise.
5920 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
5921 * tree.c (build_common_tree_nodes): Init boolean_type_node.
5922 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
5923 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
5924 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
5925 (truthvalue_true_node): Renamed from boolean_true_node.
5926 (truthvalue_false_node): Renamed from boolean_false_node.
5927 * c-decl.c: Just set truthvalue_* to integer_*.
5928 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
5929
5930 2003-07-24 Roger Sayle <roger@eyesopen.com>
5931
5932 * c-decl.c (match_builtin_function_types): New subroutine of
5933 duplicate_decls to test whether a redeclaration of a builtin
5934 function is suitably close, i.e. the return type and all of
5935 the argument types have the same modes as the builtin expects.
5936 (duplicate_decls): Fuzzy type matching for builtin functions
5937 moved to match_builtin_function_types.
5938
5939 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5940
5941 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
5942 flag correctly.
5943
5944 2003-07-24 Zack Weinberg <zack@codesourcery.com>
5945
5946 * c-decl.c: Search-and-replace change 'binding level' to
5947 'scope' in commentary.
5948 (struct binding_level): Now struct c_scope.
5949 (current_binding_level): Now current_scope.
5950 (free_binding_level): Now scope_freelist.
5951 (current_function_level): Now current_function_scope.
5952 (global_binding_level): Now global_scope.
5953 (make_binding_level): Now make_scope.
5954 (pop_binding_level): Now pop_scope.
5955
5956 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5957
5958 * configure.in (libgcc_visibility): Add missing whitespace.
5959
5960 2003-07-24 Richard Henderson <rth@redhat.com>
5961
5962 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
5963 __gcc_personality_v0.
5964
5965 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5966
5967 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
5968
5969 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
5970
5971 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
5972 documentation missed from my 2003-07-09 patch.
5973
5974 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
5975
5976 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
5977 it's not provided.
5978 * configure: Rebuild.
5979
5980 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
5981
5982 PR c/10602
5983 * c-typeck.c (type_lists_compatible_p): Do not compare
5984 arguments if one of them is an error_mark_node
5985
5986 2003-07-24 Alan Modra <amodra@bigpond.net.au>
5987
5988 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
5989 if current_function_calls_eh_return.
5990
5991 2003-07-23 Mark Mitchell <mark@codesourcery.com>
5992
5993 * doc/c-tree.texi (OFFSET_TYPE): Update description.
5994
5995 2003-07-23 Bob Wilson <bob.wilson@acm.org>
5996
5997 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
5998 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
5999 __umodsi3, __modsi3): Increase frame size to 32.
6000
6001 2003-07-23 Geoffrey Keating <geoffk@apple.com>
6002
6003 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
6004 prototype.
6005
6006 2003-07-23 Mark Mitchell <mark@codesourcery.com>
6007
6008 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
6009
6010 PR optimization/10679
6011 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
6012
6013 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6014
6015 PR target/11607 and PR target/11516
6016 * pa.md (extzv, extv, insv): Revert latter half of last patch.
6017
6018 2003-07-22 Mark Mitchell <mark@codesourcery.com>
6019
6020 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
6021 * varasam.c (output_constant): Likewise.
6022
6023 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
6024
6025 * alias.c: Fix comment formatting.
6026 * c-common.c: Likewise.
6027 * c-decl.c: Likewise.
6028 * c-opts.c: Likewise.
6029 * combine.c: Likewise.
6030 * cpplib.c: Likewise.
6031 * diagnostic.c: Likewise.
6032 * dojump.c: Likewise.
6033 * final.c: Likewise.
6034 * fold-const.c: Likewise.
6035 * gcc.c: Likewise.
6036 * gcse.c: Likewise.
6037 * ggc-page.c: Likewise.
6038 * jump.c: Likewise.
6039 * loop.c: Likewise.
6040 * mips-tfile.c: Likewise.
6041 * recog.c: Likewise.
6042 * regclass.c: Likewise.
6043 * regmove.c: Likewise.
6044 * tree.c: Likewise.
6045 * tree.h: Likewise.
6046
6047 2003-07-22 Per Bothner <pbothner@apple.com>
6048
6049 * line-map.c (add_line_map): Handle invalid LEAVE request.
6050 Fixes PR preprocessor/11361.
6051
6052 2003-07-22 Per Bothner <pbothner@apple.com>
6053
6054 * diagnostic.c.(diagnostic_report_current_module): Update to match
6055 2003-06-05 changes to push_srcloc and pop_srcloc.
6056
6057 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
6058
6059 * doc/trouble.texi: Better document two-stage name lookup.
6060
6061 2003-07-22 Eric Christopher <echristo@redhat.com>
6062
6063 * config/s390.c (s390_valid_pointer_mode): New.
6064 (TARGET_VALID_POINTER_MODE): Use.
6065 (s390_emit_prologue): Add tpf profiling hooks.
6066 (s390_emit_epilogue): Ditto.
6067 * config/s390.h (MASK_TPF): New.
6068 (TARGET_TPF): Use.
6069 (POINTERS_EXTEND_UNSIGNED): Define.
6070 * config/s390.md (ptr_extend): New pattern.
6071
6072 2003-07-22 Zack Weinberg <zack@codesourcery.com>
6073
6074 * hashtable.c (approx_sqrt): Make static.
6075 * hashtable.h: Don't prototype approx_sqrt.
6076 * line-map.c (init_line_maps): Rename linemap_init.
6077 (free_line_maps): Rename linemap_free.
6078 (add_line_map): Rename linemap_add.
6079 (lookup_line): Rename linemap_lookup.
6080 (print_containing_files): Rename linemap_print_containing_files.
6081 * linemap.h: Update to match.
6082
6083 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
6084 linemap routines to use new names.
6085
6086 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
6087
6088 * c-common.c (handle_packed_attribute): Don't pack a struct via a
6089 typedef. Propagate packedness from a main variant.
6090
6091 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
6092
6093 * Makefile.in (install-common): Add dependency on installdirs.
6094
6095 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
6096
6097 * c-common.c (c_common_type_for_mode): Return integer types for
6098 pointer modes.
6099
6100 2003-07-22 Geoffrey Keating <geoffk@apple.com>
6101
6102 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
6103 (finish_decl): Call maybe_apply_pragma_weak here.
6104 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
6105 TREE_PUBLIC and TREE_STATIC are decided.
6106 (start_function): Move call to maybe_apply_pragma_weak. Check that
6107 DECL_ASSEMBLER_NAME isn't set too early.
6108
6109 * cpplex.c (_cpp_process_line_notes): Mention option name in
6110 trigraphs warning.
6111
6112 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
6113
6114 * combine.c (if_then_else_cond): Simplify the comparison of
6115 rtx against -1, 0, and 1.
6116 * loop.c (check_dbra_loop): Likewise.
6117 * optabs.c (emit_conditional_move): Likewise.
6118 (emit_conditional_add): Likewise.
6119 * config/i386/i386.md (*movsi_or): Likewise.
6120 (*movdi_or_rex6): Likewise.
6121
6122 2003-07-22 Jan Hubicka <jh@suse.cz>
6123
6124 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
6125
6126 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
6127
6128 * cppfiles.c (open_file_pch): Don't put unused entries in the
6129 splay tree. Remove dead code.
6130
6131 2003-07-21 Geoffrey Keating <geoffk@apple.com>
6132
6133 * c-common.h (num_in_fnames): Declare.
6134 (c_static_assembler_name): Move from here...
6135 * c-tree.h (c_static_assembler_name): ... to here.
6136 * c-opts.c: Don't include langhooks-def.h.
6137 (c_static_assembler_name): Move to c-decl.c.
6138 (num_in_fnames): Make externally visible.
6139 * c-decl.c: Include langhooks-def.h.
6140 (c_static_assembler_name): Move from c-opts.c.
6141 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
6142 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
6143
6144 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
6145 when it's not needed.
6146
6147 2003-07-21 Jakub Jelinek <jakub@redhat.com>
6148
6149 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
6150 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
6151 (rs6000_emit_prologue): Save FPRs inline if set.
6152
6153 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
6154
6155 * config/ia64/ia64.md (prefetch): Support predicate.
6156
6157 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
6158
6159 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
6160 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
6161 table.
6162
6163 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
6164
6165 PR optimization/11536
6166 * unroll.c (loop_iterations): Do not replace a register holding
6167 the final value by its equivalent before the loop if it is not
6168 invariant.
6169
6170 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
6171
6172 * doc/extend.texi: Fixes to spelling, grammar, and diction.
6173
6174 2003-07-21 Ben Elliston <bje@wasabisystems.com>
6175
6176 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
6177 (V850 Options): Spelling fixes.
6178
6179 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
6180
6181 * doc/invoke.texi: Fixes to style, grammar and diction.
6182
6183 2003-07-20 Roger Sayle <roger@eyesopen.com>
6184
6185 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
6186 * system.h (SMALL_STACK): Poison obsolete target macro.
6187 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
6188
6189 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
6190
6191 * configure.in: Cache the results of testing for cmp's capabilities.
6192 * configure: Regenerate.
6193
6194 2003-07-20 Mark Mitchell <mark@codesourcery.com>
6195
6196 PR debug/11279
6197 * dwarf2out.c (gen_enumeration_type_die): Remember that
6198 enumerators can be unsigned.
6199
6200 2003-07-19 Zack Weinberg <zack@codesourcery.com>
6201
6202 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
6203 (push_label_level, pop_label_level): Kill.
6204 (struct binding_level): Rename level_chain to outer.
6205 Add outer_function field. Change parm_flag, function_body,
6206 keep, keep_if_subblocks to 1-bit bitfields of type bool.
6207 (current_function_level): New variable.
6208 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
6209 (keep_next_level, declare_parm_level, warn_if_shadowing):
6210 Update to match.
6211 (struct language_function): Kill named_labels, shadowed_labels fields.
6212 (c_init_decl_processing, start_function, c_push__function_context)
6213 (c_pop_function_context): No need to muck with named_labels nor
6214 shadowed_labels.
6215
6216 (make_binding_level): No need to clear the structure here.
6217 (pop_binding_level): Always operate on current_binding_level.
6218 Update current_function_level if necessary.
6219 (pushlevel): Don't clear named_labels. Update current_function_level
6220 if necessary. Use "true" and "false" where appropriate.
6221 (poplevel): Diagnose labels defined but not used, or vice
6222 versa, and clear out label-meanings leaving scope, while
6223 walking down the decls list, for all binding levels.
6224 Handle LABEL_DECLs appearing in the shadowed list.
6225 pop_binding_level takes no arguments.
6226 (pushdecl_function_level): Use current_function_level.
6227
6228 (make_label, bind_label): New static functions.
6229 (declare_label): New exported function.
6230 (lookup_label, define_label): Rewritten for new data structure.
6231 (shadow_label): Kill.
6232
6233 * c-tree.h: Prototype declare_label; don't prototype
6234 push_label_level, pop_label_level, nor shadow_label.
6235 * c-parse.in: Remove all calls to push_label_level and
6236 pop_label_level. Use declare_label for __label__ decls.
6237
6238 * doc/extend.texi: Clarify that __label__ can be used to
6239 declare labels with local scope in any nested block, not
6240 just statement expressions. Cross-reference nested functions
6241 section from local labels section.
6242
6243 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6244
6245 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
6246
6247 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
6248
6249 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
6250
6251 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6252
6253 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
6254 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
6255
6256 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
6257
6258 * config/s390/s390.c (legitimize_pic_address): Access local symbols
6259 relative to the GOT instead of relative to the literal pool base.
6260 (s390_output_symbolic_const): Handle new GOT-relative accesses.
6261 * config/s390/s390.md ("call"): Access local functions and PLT stubs
6262 relative to the GOT instead of relative to the literal pool base.
6263 ("call_value"): Likewise.
6264 ("call_value_tls"): Likewise.
6265
6266 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
6267 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
6268 (s390_chunkify_finish): Likewise.
6269 (s390_chunkify_cancel): Likewise.
6270 (s390_reorg): Adapt caller.
6271 (find_base_register_in_addr,
6272 find_base_register_ref, replace_base_register_ref): Delete.
6273 (find_ltrel_base, replace_ltrel_base): New functions.
6274 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
6275 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
6276 base vs. index register usage.
6277 (struct constant_pool): Remove 'anchor'.
6278 (s390_add_anchor): Delete.
6279 (s390_dump_pool): Remove anchor handling.
6280 * config/s390/s390.md ("reload_anchor"): Remove.
6281
6282 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
6283 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
6284 (s390_emit_prologue): Use it.
6285 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
6286 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
6287 hard-code register 14.
6288 * config/s390/s390-protos.h (s390_load_got): Declare.
6289
6290 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
6291 Support TImode constants.
6292 * config/s390/s390.md ("consttable_ti"): New.
6293 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
6294
6295 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
6296 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
6297 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
6298 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
6299 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
6300 New symbolic constants.
6301 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
6302 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
6303 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
6304 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
6305 symbolic UNSPEC values.
6306 * config/s390/s390.c (larl_operand, s390_short_displacement,
6307 bras_sym_operand, s390_cannot_force_const_mem,
6308 s390_delegitimize_address, s390_decompose_address,
6309 legitimize_pic_address, s390_output_symbolic_const,
6310 s390_function_profiler): Use symbolic UNSPEC values.
6311
6312 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6313
6314 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
6315 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
6316 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
6317 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
6318 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
6319 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
6320 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
6321 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
6322 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
6323 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
6324 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
6325 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
6326 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
6327 postreload.c prefix.c print-tree.c protoize.c ra-build.c
6328 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
6329 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
6330 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
6331 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
6332 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
6333 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
6334 casts.
6335
6336 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
6337
6338 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
6339 * toplev.h (warning): Remove attribute.
6340
6341 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
6342
6343 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
6344 (pop_label_level): Likewise.
6345 (duplicate_decls): Likewise.
6346 (implicitly_declare): Likewise.
6347 (shadow_label): Likewise.
6348 (start_decl): Likewise.
6349 (finish_decl): Likewise.
6350 (grokdeclarator): Likewise.
6351 (get_parm_info): Likewise.
6352 (detect_field_duplicates): Likewise.
6353 (finish_struct): Likewise.
6354 (start_function): Likewise.
6355 (store_parm_decls): Likewise.
6356 (finish_function): Likewise.
6357 (c_expand_body_1): Likewise.
6358 (check_for_loop_decls): Likewise.
6359 (merge_translation_unit_decls): Likewise.
6360
6361 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
6362
6363 * common.opt: Document --param.
6364 * opts.c (columns, undocumented_msg): New.
6365 (print_help): Get number of columns from environment. Print
6366 --param help. Tweak newline handling.
6367 (print_param_help): New.
6368 (print_filtered_help): Better handling of duplicates. Complain
6369 about undocumented switches.
6370 (print_switch): New.
6371 (wrap_help): Improve wrapping, use COLUMNS.
6372 * opts.sh: Ignore comments in records.
6373 * params.def: Fix typos and remove trailing periods.
6374 * toplev.c (display_help): Don't dump --param help.
6375 * doc/sourcebuild.texi: Update.
6376
6377 2003-07-18 Richard Henderson <rth@redhat.com>
6378
6379 PR target/11556
6380 * optabs.c (prepare_operand): Fail gracefully instead of abort
6381 if the predicate doesn't satisfy.
6382 (gen_cond_trap): Allow prepare_operand to fail.
6383
6384 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
6385
6386 * c-common.c: Don't undefine GCC_DIAG_STYLE.
6387 (fname_decl): Don't use xxx_with_decl.
6388 (c_add_case_label): Likewise.
6389 (handle_section_attribute): Likewise.
6390 (handle_alias_attribute): Likewise.
6391 (handle_no_instrument_function_attribute): Likewise.
6392 (handle_no_limit_stack_attribute): Likewise.
6393 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
6394 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
6395
6396 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6397
6398 * Makefile.in (ifcvt.o): Add cfgloop.h.
6399 * basic-block.h (EDGE_LOOP_EXIT): New flag.
6400 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
6401 * ifcvt.c: Include cfgloop.h.
6402 (mark_loop_exit_edges): New static function.
6403 (if_convert): Call it.
6404 (find_if_header): Ignore branches out of loops.
6405
6406 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
6407
6408 * combine.c (simplify_comparison): Don't share rtx when converting
6409 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
6410
6411 2003-07-18 David Edelsohn <edelsohn@gnu.org>
6412
6413 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
6414 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
6415 (MUST_PASS_IN_STACK): Define.
6416 (BLOCK_REG_PADDING): Define.
6417
6418 2003-07-18 Richard Henderson <rth@redhat.com>
6419
6420 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
6421 to skip the addr_vec.
6422
6423 2003-07-18 Alexandre Oliva <aoliva@redhat.com>
6424
6425 * combine.c (combinable_i3pat): Don't forbid occurrences of
6426 i2dest or i1dest in inner_dest if inner_dest is a mem.
6427
6428 2003-07-18 Jan Hubicka <jh@suse.cz>
6429
6430 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
6431
6432 2003-07-17 Jakub Jelinek <jakub@redhat.com>
6433
6434 PR target/11087
6435 * loop.c (basic_induction_var): Check if convert_modes emitted any
6436 instructions. Remove them and return 0 if so.
6437
6438 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
6439
6440 PR optimization/11083
6441 * toplev.c (rest_of_handle_addresof): Rename into
6442 rest_of_handle_addressof. Delete unreachable blocks
6443 if dead edges were purged after the addressof pass.
6444
6445 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
6446
6447 * Makefile.in, configure, configure.in: Remove handling of
6448 lang-options.h and options_.h.
6449 * toplev.c (struct lang_opt, documented_lang_options): Remove.
6450 (display_help): Don't use documented_lang_options.
6451
6452 2003-07-17 Zack Weinberg <zack@codesourcery.com>
6453
6454 * c-decl.c (pushdecl_function_level): Make static, return nothing.
6455 (kept_level_p): Fold into poplevel.
6456 (undeclared_variable): Moved here from c-typeck.c. Export.
6457 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
6458 (undeclared_variable): Prototype here. Don't prototype
6459 kept_level_p nor pushdecl_function_level.
6460 * c-parse.in: Change first argument to poplevel from
6461 "kept_level_p()" to "KEEP_MAYBE".
6462 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
6463
6464 2003-07-17 Roger Sayle <roger@eyesopen.com>
6465
6466 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
6467 commutative operands instead of modifying the RTL in-place.
6468
6469 2003-07-17 Mark Mitchell <mark@codesourcery.com>
6470
6471 PR optimization/11557
6472 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
6473 unless we know which function is being called.
6474
6475 2003-07-17 Roger Sayle <roger@eyesopen.com>
6476
6477 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
6478 whether to reorder the operands of a commutative binary operator.
6479
6480 2003-07-17 Roger Sayle <roger@eyesopen.com>
6481
6482 * fold-const.c (const_binop): Avoid performing the FP operation at
6483 compile-time, if either operand is NaN and we honor signaling NaNs,
6484 or if we're dividing by zero and either flag_trapping_math is set
6485 or the desired mode doesn't support infinities.
6486 (fold_initializer): New function to fold an expression ignoring any
6487 potential run-time exceptions or traps.
6488 * tree.h (fold_initializer): Prototype here.
6489 * c-typeck.c (build_binary_op): Move to the end of the file so
6490 that intializer_stack is in scope. If constructing an initializer,
6491 i.e. when initializer_stack is not NULL, use fold_initializer to
6492 fold expressions.
6493 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
6494 performing FP operations at compile-time, if they would raise an
6495 exception at run-time.
6496
6497 2003-07-17 Geoffrey Keating <geoffk@apple.com>
6498
6499 PR 11498
6500 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
6501 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
6502 (GTFILES): Add langhooks.c.
6503 (gt-langhooks.h): New.
6504 * c-common.h (c_static_assembler_name): Prototype.
6505 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
6506 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
6507 * c-opts.c: Include langhooks-def.h.
6508 (c_static_assembler_name): New.
6509 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
6510 (var_labelno): New.
6511 (lhd_set_decl_assembler_name): Give static objects with context
6512 unique names.
6513 * varasm.c (var_labelno): Delete.
6514 (make_decl_rtl): Don't change the assembler name once it's set.
6515
6516 * c-opts.c (this_input_filename): New.
6517 (finish_options): Take new parameter, name of file being compiled.
6518 Update callers. Set this_input_filename.
6519 (push_command_line_include): Use this_input_filename not
6520 main_input_filename.
6521
6522 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
6523
6524 * Makefile.in: Depend .pot generation on options.c.
6525 * po/exgettext: Add an extra_files variable containing additional
6526 files to scan.
6527
6528 2003-07-17 Zack Weinberg <zack@codesourcery.com>
6529
6530 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
6531 c_write_global_declarations.
6532
6533 * c-decl.c: Fix typos in several comments. Remove all
6534 #if 0 blocks; reindent as needed. Remove unused argument
6535 to declare_parm_level; all callers changed.
6536 * c-parse.in: Update calls to declare_parm_level. Avoid
6537 issuing a double warning in some circumstances.
6538 * c-typeck.c: Update calls to declare_parm_level.
6539 * c-tree.h: Update prototype of declare_parm_level.
6540
6541 * c-pragma.c (apply_pragma_weak): Don't complain about a
6542 redundant #pragma weak.
6543
6544 * objc/objc-act.c (forward_declare_categories,
6545 build_selector_reference_decl, build_class_reference_decl,
6546 build_objc_string_decl, synth_forward_declarations,
6547 build_protocol_reference): Set TREE_PUBLIC on synthetic
6548 forward decl to 0, consistent with eventual definition.
6549 Correct comments to match.
6550
6551 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
6552 in regexp that don't form a range expression.
6553 * fixinc/fixincl.def: Regenerate.
6554
6555 2003-07-17 Richard Henderson <rth@redhat.com>
6556
6557 PR target/10907
6558 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
6559 even with !TARGET_CONST_GP.
6560 (ia64_function_ok_for_sibcall): Reject non-local functions.
6561
6562 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
6563
6564 * c-common.c (c_estimate_num_insns_1): Don't handle
6565 METHOD_CALL_EXPR.
6566 * expr.c (safe_from_p): Likewise.
6567 * gengtype.c (adjust_field_tree_exp): Likewise.
6568 * stmt.c (warn_if_unused_value): Likewise
6569 * tree.c (first_rtl_op): Likewise.
6570 * tree.def: Don't define METHOD_CALL_EXPR.
6571 * java/lang.c (java_estimate_num_insns_1): Don't handle
6572 METHOD_CALL_EXPR.
6573
6574 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
6575
6576 PR other/11466
6577 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
6578 and its restrictions for the SPARC64 port.
6579 Move the entry of "-mimpure-text" before that of "-mv8".
6580
6581 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
6582 Phil Edwards <phil@jaj.com>
6583
6584 * doc/install.texi (*-*-solaris2*): Document the step-by-step
6585 procedure to bootstrap and install.
6586 Document the preference for the legacy Sun tools in /usr/bin
6587 over the POSIX tools in /usr/xpg4/bin for the build process.
6588
6589 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
6590
6591 * c.opt: Document Uncodumented; use it. Document ObjC options.
6592 * opts.c (print_filtered_help): Skip undocumented switches.
6593 * opts.h (CL_UNDOCUMENTED): New.
6594 * opts.sh: Handle Undocumented.
6595 * toplev.c (documented_lang_options): Prevent its becoming empty.
6596 objc:
6597 * lang-options.h: Remove.
6598
6599 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
6600
6601 * loop.c (check_ext_dependent_givs): Pass const struct loop *
6602 instead of struct loop_info * as argument. Accept BIVs with
6603 increment +/- 1 provided there is a friendly exit test against
6604 a loop-invariant value.
6605 (strength_reduce): Adapt call to check_ext_dependent_givs.
6606
6607 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
6608 Con Bradley <con.bradley@superh.com>
6609
6610 * sh-protos.h (sh_get_pr_initial_val): Declare.
6611 * sh.c (regno_reg_class): Make its elements type enum reg_class.
6612 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
6613 and live_regs_mask arguments. Changed all callers.
6614 (save_schedule_s): New structure.
6615 (save_schedule): New typedef.
6616 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
6617 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
6618 In interrupts handlers, also save registers that are usually
6619 partially saved, and make sure there is at least one general purpose
6620 register saved if a target register needs saving.
6621 Add casts in comparisons to avoid warnings.
6622 (sh_media_register_for_return): return -1 for interrupt handlers.
6623 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
6624 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
6625 registers used are available.
6626 Set RTX_FRAME_RELATED_P where appropriate.
6627 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
6628 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
6629 (initial_elimination_offset): Likewise.
6630 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
6631 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
6632 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
6633 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
6634 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
6635 and for target registers.
6636 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
6637 (regno_reg_class): Make its elements type enum reg_class.
6638 (CONSTRAINT_LEN): Don't use isdigit.
6639 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
6640 (FUNCTION_ARG): Add parentheses to avoid warnings.
6641 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
6642 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
6643 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
6644 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
6645 * sh.md (xordi3+1): Remove unused variable regno.
6646 (return_media): Check that tr0 is available before using it.
6647
6648 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
6649
6650 * c.opt: Document more options.
6651
6652 2003-07-16 Roger Sayle <roger@eyesopen.com>
6653
6654 * combine.c (subst): Also handle (subreg (const_double ...)) case
6655 if created by a substitution, by using the original inner mode.
6656
6657 2003-07-16 Roger Sayle <roger@eyesopen.com>
6658
6659 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
6660 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
6661 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
6662
6663 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
6664
6665 * doc/install.texi (--without-headers): New.
6666
6667 Partial Fix PR/10129
6668 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
6669 (machopic_output_function_base_name): New; print the true pic label.
6670 (machopic_classify_ident): Pic Base is always a defined data.
6671 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
6672 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
6673
6674 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
6675 if they are not floating point registers.
6676
6677 PR c/10962
6678 * ggc.h: Add header guards.
6679 * c-decl.c (finish_struct): Sort fields if
6680 number greater than 15 and there are no
6681 anonymous structs/unions.
6682 * c-common.h: Include ggc.h.
6683 (sorted_fields_type): New struct.
6684 (field_decl_cmp): New prototype.
6685 (resort_sorted_fields): New prototype.
6686 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
6687 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
6688 as s, removing other fields.
6689 * c-typeck.c (lookup_field): Use s in lang_type.
6690 These were mostly moved from cp/class.c:
6691 * c-common.c (field_decl_cmp): New static function.
6692 (field_decl_cmp): New function.
6693 (resort_sorted_fields): New function.
6694
6695 2003-07-16 Geoffrey Keating <geoffk@apple.com>
6696
6697 * config/darwin.c (machopic_select_section): Use decl_readonly_section
6698 to do most of the work.
6699
6700 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
6701
6702 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
6703 * config/mmix/mmix.c: Convert functions to ISO C90.
6704 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
6705 formatting.
6706 (mmix_get_hard_reg_initial_val): Tweak section head comment.
6707
6708 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
6709
6710 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
6711
6712 2003-07-16 Jakub Jelinek <jakub@redhat.com>
6713
6714 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
6715 (uw_update_context_1): Use it.
6716 * config/rs6000/rs6000.c (insn_after_throw): Remove.
6717 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
6718 in parent frame if _Unwind_* called directly instead of through
6719 .plt.
6720 (rs6000_emit_eh_toc_restore): Remove.
6721 (rs6000_emit_prologue): Update stack pointer before doing any saving
6722 if current_function_calls_eh_return. Generate unwind info for $r2.
6723 (rs6000_emit_epilogue): Restore stack pointer after doing all
6724 restoring if current_function_calls_eh_return. Restore $r2.
6725 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
6726 * config/rs6000/rs6000.md (eh_return): Remove call to
6727 rs6000_emit_eh_toc_restore.
6728 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
6729 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
6730
6731 2003-07-15 Jakub Jelinek <jakub@redhat.com>
6732
6733 * expr.c (emit_block_move): Don't move anything if size is const 0.
6734 (clear_storage): Test against const0_rtx instead of comparing INTVAL
6735 against 0.
6736
6737 2003-07-15 David S. Miller <davem@redhat.com>
6738
6739 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
6740 emit nop if the last real insn is CALL_INSN.
6741
6742 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
6743
6744 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
6745 as "nul".
6746 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
6747
6748 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
6749
6750 * config/i386/winnt.c (associated_type): Artificial methods are not
6751 affected by the import/export status of their class unless they are
6752 COMDAT.
6753 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
6754
6755 * config/i386/winnt.c: Fix GCC copyright comment.
6756
6757 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
6758
6759 PR c++/11531
6760 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
6761 not recursing on hard error.
6762 (diagnostic_for_decl): Likewise.
6763 * diagnostic.def: Rearrange.
6764
6765 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
6766
6767 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
6768 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
6769
6770 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
6771 Richard Henderson <rth@redhat.com>
6772
6773 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
6774 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
6775 (_Unwind_SetGR): Likewise.
6776 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
6777 (Unwind_SpTmp): New typedef.
6778 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
6779 (uw_update_context): Use _Unwind_GetPtr.
6780 (init_dwarf_reg_size_table): Move above uw_init_context_1.
6781 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
6782 Use _Unwind_SetSpColumn.
6783 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
6784 Use _Unwind_GetPtr.
6785
6786 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
6787
6788 * c.opt: Document more options.
6789 * toplev.c (documented_lang_options): Remove all local help strings.
6790
6791 2003-07-15 Mark Mitchell <mark@codesourcery.com>
6792
6793 PR debug/11473
6794 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
6795 base classes.
6796
6797 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
6798
6799 PR target/10795
6800 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
6801 swap comparison operands if doing so would generate an
6802 unrecognizable insn.
6803
6804 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
6805
6806 PR optimization/11320
6807 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
6808 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
6809 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
6810 current_sched_info->compute_jump_reg_dependencies. Record which
6811 registers are used and which registers are set by the jump.
6812 Clear deps->reg_conditional_sets after a barrier.
6813 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
6814 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
6815 (init_deps): Initialize reg_conditional_sets.
6816 (free_deps): Clear reg_conditional_sets.
6817 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
6818 Mark registers live on entry of the fallthrough block and conditionally
6819 set as set by the jump. Mark registers live on entry of non-fallthrough
6820 blocks as used by the jump.
6821 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
6822 Mark new parameters as unused.
6823
6824 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
6825
6826 * doc/invoke.texi: Resync MIPS -march documentation.
6827
6828 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
6829
6830 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
6831 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
6832 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
6833 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
6834 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
6835 (mips_issue_rate): Handle PROCESSOR_R9000.
6836 (mips_use_dfa_pipeline_interface): Likewise.
6837 * config/mips/9000.md: New file.
6838 * config/mips/mips.md: Include it.
6839 (define_attr cpu): Add r9000.
6840 (mulsi3_mult3): Use "mul" for rm9000 code.
6841
6842 2003-07-15 Stan Cox <scox@redhat.com>
6843
6844 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
6845 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
6846 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
6847 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
6848 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
6849 (mips_issue_rate): Handle PROCESSOR_R7000.
6850 (mips_use_dfa_pipeline_interface): Likewise.
6851 * config/mips/7000.md: New file.
6852 * config/mips/mips.md: Include it.
6853 (define_attr cpu): Add r7000.
6854 (mulsi3_mult3): Use "mul" for rm7000 code.
6855
6856 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
6857
6858 * config/mips/mips.md (define_attr type): Add condmove. Use it for
6859 the conditional move patterns.
6860 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
6861 Check for condmove type.
6862 (ir_vr54_arith): Add move type.
6863 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
6864 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
6865
6866 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
6867
6868 * c-opts.c (print_help): Remove.
6869 (c_common_handle_option): Don't handle --help.
6870 * c.opt: Document some options.
6871 (--help): Remove.
6872 * opts.c (print_filtered_help): New.
6873 (print_help): Use it.
6874
6875 2003-07-14 Geoffrey Keating <geoffk@apple.com>
6876
6877 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
6878 * tree.c: (build_common_tree_nodes_2): Likewise.
6879 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
6880 (V4DF_type_node): New.
6881
6882 * c-opts.c (push_command_line_include): Don't free deferred_opts,
6883 we'll need it.
6884 (finish_options): Reset init_cursor.
6885
6886 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
6887
6888 * expr.c (expand_assignment): Remove an unused argument
6889 SUGGEST_REG.
6890 * expr.h: Update the prototype.
6891 * function.c: Update the callers.
6892 * stmt.c: Likewise.
6893
6894 2003-07-14 Mark Mitchell <mark@codesourcery.com>
6895
6896 PR debug/11098
6897 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
6898 as DECL_ABSTRACT.
6899
6900 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
6901
6902 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
6903 with __cplusplus, not "we must use the C++ compiler's type"
6904 * fixinc/inclhack.def (void_null): Note that Interix needs this.
6905 * fixinc/fixincl.x: Regenerate.
6906
6907 2003-07-14 Geoffrey Keating <geoffk@apple.com>
6908
6909 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
6910 and unseen_objects from the global data before calling
6911 __deregister_frame_info_bases.
6912 (examine_objects): Insert objects into the seen_objects list,
6913 not unseen_objects.
6914 (_Unwind_Find_FDE): Always unlock the global object lists, even if
6915 we couldn't allocate a data structure to put in it.
6916
6917 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
6918 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
6919 (SET_TYPE_PROTOCOL_LIST): New.
6920 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
6921 (get_object_reference): Likewise.
6922
6923 2003-07-14 Jan Hubicka <jh@suse.cz>
6924
6925 * cfglayout.c (locator_file): Break out from ....
6926 (insn_file): ... here.
6927 (locator_line): Break out from ....
6928 (insn_line): ... here.
6929 * rtl.h (locator_file, locator_line): Declare.
6930 (final_start_function): Set proper line/file info.
6931
6932 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
6933
6934 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
6935 handled by pp_c_cast_expression.
6936
6937 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
6938
6939 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
6940 allocate 32768 bytes of stack. Use addition rather than subtraction
6941 when a single insn is enough.
6942 * config/mips/mips.md: Remove insns and splitters for subtracting
6943 constants.
6944 (subsi3): Only accept register operands.
6945 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
6946 (subdi3_internal_3, subsi3_internal_2): Likewise.
6947 (casesi): Use expand_binop to subtract the lower bound.
6948
6949 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
6950
6951 * config/mips/mips.c (mips_in_small_data_p): Don't handle
6952 TARGET_MIPS16 specially.
6953
6954 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
6955
6956 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
6957 mips_output_aligned_bss.
6958 * config/mips/linux.h: Likewise.
6959 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
6960 * config/mips/mips.c (mips_output_aligned_bss): New function.
6961
6962 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
6963 * config/mips/elf64.h: Likewise.
6964
6965 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
6966 mips_declare_object_name.
6967 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
6968 * config/mips/elf64.h: As for elf.h.
6969 * config/mips/iris6.h: Likewise.
6970 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
6971 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
6972 do...while (0) block.
6973 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
6974 (mips_finish_declare_object): Declare.
6975 * config/mips/mips.c (mips_declare_object_name): New function.
6976 (mips_finish_declare_object): New function.
6977
6978 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
6979 * config/mips/linux.h: Likewise.
6980
6981 * config/mips/mips.c (inside_function): Delete.
6982 (file_in_function_warning, ignore_line_number): Delete.
6983 (mips_output_filename): Don't warn about changing filenames within
6984 a function.
6985 (mips_output_lineno): Update accordingly.
6986 (mips_output_function_prologue): Don't reset the deleted variables.
6987 * config/mips/mips.h (inside_function): Delete.
6988 (file_in_function_warning, ignore_line_number): Delete.
6989
6990 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
6991 * config/mips/elf64.h: Likewise.
6992 * config/mips/openbsd.h: Likewise.
6993 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
6994 * config/mips/linux.h: Likewise.
6995 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
6996 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
6997
6998 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
6999 to the list of include files when using gas.
7000 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
7001 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
7002 * config/mips/elf64.h: Likewise.
7003 * config/mips/iris5.h: Likewise.
7004 * config/mips/linux.h: Likewise.
7005 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
7006 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
7007 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
7008 * config/mips/sdb.h: ...this new file.
7009
7010 2003-07-14 Douglas Rupp <rupp@gnat.com>
7011
7012 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
7013 argument to getcwd; use fixed buffer instead.
7014
7015 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
7016
7017 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
7018 * fixinc/fixinc.wrap: Delete.
7019
7020 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
7021
7022 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
7023 don't have 2.
7024
7025 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
7026
7027 * ggc-page.c (struct globals): Add new fields to keep track of the
7028 total allocated memory and overhead.
7029 (ggc_print_statistics): Print them.
7030 (ggc_alloc): Keep track of the total allocated memory and the
7031 overhead.
7032
7033 * tree.c (dump_tree_statistics): Increase spacing.
7034 (enum tree_node_kind): Move to ...
7035 * tree.h (enum tree_node_kind): ... here.
7036 (tree_node_counts, tree_node_sizes): Declare.
7037
7038 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
7039
7040 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
7041
7042 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
7043
7044 PR optimization/11440
7045 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
7046 SIGN_EXTRACT SETs.
7047
7048 2003-07-14 Alan Modra <amodra@bigpond.net.au>
7049
7050 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
7051 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
7052 (emit_group_load, emit_group_store): Adjust declarations.
7053 Remove most occurrences of #ifdef TREE_CODE.
7054 * expr.c (emit_group_load): Add "type" param, and use
7055 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
7056 aligned accesses if !SLOW_UNALIGNED_ACCESS.
7057 (emit_group_store): Likewise.
7058 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
7059 emit_group_load and emit_group_store calls.
7060 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
7061 BLOCK_REG_PADDING to determine whether we need endian_correction.
7062 (load_register_parameters): Localize vars. Handle shifting of
7063 small values to the correct end of regs. Adjust emit_group_load
7064 call.
7065 (expand_call, emit_library_call_value_1): Adjust emit_group_load
7066 and emit_group_store calls.
7067 * function.c (assign_parms): Set mem alignment for stack slots.
7068 Adjust emit_group_store call. Store values at the "wrong" end
7069 of regs to the stack. Use BLOCK_REG_PADDING.
7070 (locate_and_pad_parm): Save where_pad.
7071 (expand_function_end): Adjust emit_group_load call.
7072 * stmt.c (expand_value_return): Adjust emit_group_load call.
7073 * Makefile.in (calls.o): Depend on $(OPTABS_H).
7074 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
7075 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
7076 (MUST_PASS_IN_STACK): Define.
7077 (BLOCK_REG_PADDING): Define.
7078 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
7079 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
7080 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
7081 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
7082 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
7083
7084 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
7085
7086 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
7087
7088 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7089
7090 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
7091 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
7092
7093 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
7094
7095 PR other/11123
7096 * toplev.c: Don't cut off option names.
7097
7098 2003-07-13 Andreas Jaeger <aj@suse.de>
7099
7100 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
7101 to integer of different size.
7102
7103 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
7104
7105 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
7106 to (eq (and X 1) 0).
7107
7108 2003-07-13 Andreas Jaeger <aj@suse.de>
7109
7110 * config.gcc: Add pmmintrin.h for x86_64-*-*.
7111
7112 2003-07-13 Zack Weinberg <zack@codesourcery.com>
7113
7114 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
7115 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
7116 list. Move these all together down by cpplib.
7117
7118 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
7119 definition of CPPCHAR_SIGNED_T.
7120
7121 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
7122 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
7123 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
7124
7125 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
7126 * cppinit.c (cpp_create_reader): Likewise.
7127
7128 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
7129 * cpptrad.c: Likewise. All callers changed.
7130 * cpplib.c: All callers changed.
7131 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
7132 * hashtable.h: Define GTY(x) to nothing here too.
7133
7134 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7135
7136 * stor-layout.c (compute_record_mode): Remove very obsolete test
7137 that forces BLKmode for records with fields crossing word boundary.
7138
7139 2003-07-13 Zack Weinberg <zack@codesourcery.com>
7140
7141 * Makefile.in: Remove orphan reference to acconfig.h.
7142
7143 2003-07-13 Andreas Jaeger <aj@suse.de>
7144
7145 * cgraphunit.c: Convert prototypes to ISO C90.
7146
7147 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
7148
7149 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
7150 (for OpenBSD).
7151 * fixinc/fixincl.x: Rebuild.
7152
7153 2003-07-12 Zack Weinberg <zack@codesourcery.com>
7154
7155 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
7156 i?86-*-*. Use correct name of cache variable.
7157 * configure: Regenerate.
7158
7159 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
7160
7161 * config/alpha/alpha.c: Fix comment typos.
7162 * config/alpha/alpha.md: Likewise.
7163 * config/arm/arm.c: Likewise.
7164 * config/arm/arm.md: Likewise.
7165 * config/arm/lib1funcs.asm: Likewise.
7166 * config/avr/avr.md: Likewise.
7167 * config/arm/README-interworking: Fix typos.
7168
7169 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
7170
7171 * c-format.c: Fix comment formatting.
7172 * c-typeck.c: Likewise.
7173 * coverage.c: Likewise.
7174 * cppcharset.c: Likewise.
7175 * cpplib.c: Likewise.
7176 * dbxout.c: Likewise.
7177 * gcov-io.h: Likewise.
7178 * toplev.c: Likewise.
7179
7180 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
7181
7182 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
7183 fix.
7184
7185 2003-07-12 Zack Weinberg <zack@codesourcery.com>
7186
7187 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
7188 uses three-argument AC_DEFINE so no acconfig.h entries are
7189 needed.
7190 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
7191 which contains the GAS version number as a scaled integer.
7192 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
7193 ability to check for ELF assembler.
7194 (gcc_GAS_CHECK_FEATURE): New macro.
7195 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
7196 assembler feature checks using gcc_GAS_CHECK_FEATURE.
7197 Use three-argument AC_DEFINE everywhere.
7198 * acconfig.h: Deleted.
7199 * config.in, configure: Regenerate.
7200
7201 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
7202
7203 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
7204 (on OpenBSD).
7205 * fixinc/fixincl.x: Regenerate.
7206
7207 * fixinc/inclhack.def (gnu_types): Improve comment.
7208
7209 2003-07-12 Andreas Jaeger <aj@suse.de>
7210
7211 * fp-test.c (main): Use ISO C90 prototype.
7212
7213 * version.c: Remove unneded include of ansidecl.h.
7214
7215 * cgraph.h: Convert prototypes to ISO C90.
7216 * cgraph.c: Likewise.
7217 * fix-header.c: Likewise.
7218 * ra.h: Likewise.
7219 * protoize.c: Likewise.
7220
7221 2003-07-12 Jan Hubicka <jh@suse.cz>
7222
7223 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
7224 warning.
7225
7226 2003-07-12 Jan Hubicka <jh@suse.cz>
7227 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
7228
7229 * cgraph.c (cgraph_max_uid): New global variable.
7230 (cgraph_node): Set uid field.
7231 (create_edge): Keep inline flags consistent.
7232 (dump_cgraph): Dump more info.
7233 * cgraph.h (struct cgraph_local_info): Remove inline_many and
7234 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
7235 (struct cgraph_global_info): Add insns, calls, cloned_times,
7236 will_be_output.
7237 (struct cgraph_node): Add uid.
7238 (struct cgraph_edge): Add inline_call.
7239 (cgraph_max_uid, cgraph_inline_p): Declare.
7240 * cgraph.c: Include params.h and fibheap.h
7241 (cgraph_mark_functions_to_inline_once): Kill.
7242 (INSNS_PER_CALL): New constant.
7243 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
7244 static variables.
7245 (cgraph_finalize_function): Do not analyze inlining.
7246 (cgraph_finalize_compilation_unit): Set inlining attributes.
7247 (cgraph_mark_functions_to_output): More consistency checks.
7248 (cgraph_optimize_function): Set current_function_decl to NULL.
7249 (cgraph_expand_function): Use new inline flags.
7250 (cgraph_postorder): Expand from cgraph_expand_functions.
7251 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
7252 (cgraph_inlined_into, cgraph_inlined_callees,
7253 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
7254 cgraph_mark_inline, cgraph_check_inline_limits,
7255 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
7256 cgraph_decide_inlining, cgraph_inline_p): New functions.
7257 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
7258 PARAM_INLINE_UNIT_GROWTH): New parameters.
7259 * tree-inline.c (struct inline_data): New field current_decl.
7260 (expand_call_inline): Avoid forward declarations; use
7261 inlinable_function_p.
7262 (optimize_inline_calls): Set id.current_decl.
7263
7264 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
7265
7266 * configure.in: Remove wrongly added definition of
7267 local_prefix.
7268 * configure: Regenerate.
7269
7270 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
7271
7272 * rtl.def (NOTE): Do not use padding.
7273
7274 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
7275
7276 * doc/install.tex: Update required binutils for i?86-*-linux*
7277
7278 2003-07-11 Richard Henderson <rth@redhat.com>
7279
7280 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
7281
7282 2003-07-11 Mark Mitchell <mark@codesourcery.com>
7283
7284 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
7285 TRANSLATION_UNIT_DECL as top_level.
7286
7287 2003-07-11 Jakub Jelinek <jakub@redhat.com>
7288
7289 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
7290 then fall back to cmpstrM.
7291 * builtins.c (expand_builtin_memcmp): Likewise.
7292 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
7293 (s390_expand_cmpmem): ... this.
7294 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
7295 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
7296 from cmpstr* patterns. Rename call to s390_expand_cmpstr
7297 to s390_expand_cmpmem.
7298 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
7299 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
7300 to cmpmem*.
7301 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
7302 cmpstr* patterns.
7303 * doc/md.texi (cmpstrM): Describe as String compare insn, not
7304 Block compare insn.
7305 (cmpmemM): Add.
7306
7307 2003-07-11 Loren James Rittle <ljrittle@acm.org>
7308
7309 * config/i386/freebsd.h (SET_ASM_OP): Remove.
7310 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
7311 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
7312 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
7313
7314 2003-07-11 Richard Henderson <rth@redhat.com>
7315
7316 * function.c (assign_parms): Don't recombine complex args if
7317 fnargs is unchanged from orig_fnargs.
7318 (split_complex_args): Return args without complex before copying.
7319 Re-layout the modified parameters.
7320
7321 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
7322
7323 * regclass.c (choose_hard_reg_mode): Add third argument.
7324 Changed all callers.
7325 * rtl.h (choose_hard_reg_mode): Update declaration.
7326 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
7327 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
7328
7329 2003-07-11 Geoffrey Keating <geoffk@apple.com>
7330
7331 * c-decl.c (finish_decl): Handle 'used' here...
7332 * cgraphunit.c (cgraph_finalize_function): ... and here ...
7333 * c-common.c: (handle_used_attribute): ... not here.
7334
7335 * configure.in (onstep): Support --enable-intermodule.
7336 * Makefile.in (OBJS-common): New.
7337 (OBJS-md): New.
7338 (OBJS-archive): New.
7339 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
7340 (OBJS-onestep): New.
7341 (libbackend.a): Support @onestep@.
7342 (libbackend.o): New.
7343 * configure: Regenerate.
7344
7345 * c-common.h (c_reset_state): New prototype.
7346 (c_parse_file): New prototype.
7347 (finish_file): Move prototype from c-tree.h.
7348 * c-decl.c: Include <hashtab.h>.
7349 (builtin_decls): New.
7350 (current_file_decl): New.
7351 (duplicate_decls): Add extra parameter. Change all callers. Don't
7352 output duplicate common symbols.
7353 (link_hash_hash): New.
7354 (link_hash_eq): New.
7355 (poplevel): Handle popping of the top level.
7356 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
7357 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
7358 (pushdecl_top_level): Likewise.
7359 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
7360 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
7361 (finish_decl): Handle TRANSLATION_UNIT_DECL.
7362 (merge_translation_unit_decls): New.
7363 (c_write_global_declarations): New.
7364 (c_reset_state): New.
7365 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
7366 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
7367 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
7368 TRANSLATION_UNIT_DECL.
7369 (c_objc_common_finish_file): Call merge_translation_unit_decls.
7370 * c-opts.c (in_fnames): Rename from in_fname.
7371 (c_common_decode_option): Handle multiple input filenames.
7372 (c_common_post_options): Likewise.
7373 (c_common_parse_file): Likewise; also, call c_parse_file rather than
7374 yyparse.
7375 * c-parse.in: Move cleanup code to c_parse_file.
7376 (free_parser_stacks): Move contents to c_parse_file.
7377 (c_parse_file): New.
7378 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
7379 for integer types.
7380 (C_DECL_FILE_SCOPE): New.
7381 (finish_file): Move prototype to c-common.h.
7382 (merge_translation_unit_decls): New prototype.
7383 (comptypes): Add extra parameter to prototype.
7384 (c_write_global_declarations): New prototype.
7385 * c-typeck.c (tagged_types_tu_compatible_p): New.
7386 (function_types_compatible_p): Add extra parameter, change all callers.
7387 (type_lists_compatible_p): Likewise.
7388 (comptypes): Likewise.
7389 (struct tagged_tu_seen): New.
7390 (tagged_tu_seen_base): New.
7391 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
7392 (c_mark_addressable): Remove #if 0 code.
7393 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
7394 comment explaining why it shouldn't have to.
7395 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
7396 options.
7397 * cppinit.c (cpp_read_next_file): New.
7398 (cpp_read_main_file): Use it.
7399 * cpplib.c (undefine_macros): New.
7400 (cpp_undef_all): New.
7401 * cpplib.h (cpp_read_next_file): Prototype.
7402 (cpp_undef_all): Prototype.
7403 * langhooks-def.h (write_global_declarations): Remove prototype.
7404 * toplev.h (write_global_declarations): Add prototype.
7405 * tree.c (decl_type_context): Use switch statement, handle
7406 TRANSLATION_UNIT_DECL.
7407 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
7408 (TRANSLATION_UNIT_DECL): New kind of tree.
7409 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
7410 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
7411 * doc/invoke.texi: Make attempt to document new functionality.
7412
7413 2003-05-19 Per Bothner <bothner@apple.com>
7414
7415 * gcc.c (combine_inputs): New.
7416 (process_command): Set combine_inputs.
7417 (do_spec_1): Handle combine_inputs.
7418 (main): Likewise.
7419
7420 2003-07-10 James E Wilson <wilson@tuliptree.org>
7421
7422 PR optimization/9745
7423 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
7424 loop_insn_emit_before.
7425 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
7426
7427 2003-07-10 Zack Weinberg <zack@codesourcery.com>
7428
7429 * cppcharset.c: Fix comment.
7430 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
7431 (EILSEQ): #define to EINVAL if not already defined.
7432 (convert_using_iconv): #if out when !HAVE_ICONV.
7433 (init_iconv_desc): Handle !HAVE_ICONV here...
7434 (cpp_init_iconv): ...not here.
7435
7436 2003-07-11 Neil Booth <neil@daikokuya.co.uk>
7437
7438 * common.opt: More --help messages.
7439 * opts.c (print_help): Use puts().
7440 * toplev.c (f_options): Remove help text.
7441 (display_help): Don't dump f_options.
7442
7443 2003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
7444
7445 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
7446 Move i?86-*-interix* to the don't-fix list.
7447 * fixinc/fixinc.interix: Delete with extreme prejudice.
7448
7449 2003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
7450
7451 PR bootstrap/10758
7452 * doc/install.texi: Document requirements for ia64-*-hpux* target.
7453
7454 2003-07-10 Roger Sayle <roger@eyesopen.com>
7455
7456 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
7457
7458 2003-07-10 Zack Weinberg <zack@codesourcery.com>
7459
7460 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
7461 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
7462 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
7463 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
7464 convert_no_conversion, convert_using_iconv): New functions.
7465 (APPLY_CONVERSION): New macro.
7466 (struct conversion, conversion_tab): New data structure.
7467 (init_iconv_desc): Check conversion_tab for a custom conversion
7468 primitive before trying to use iconv.
7469 (convert_cset): Deleted.
7470 (cpp_init_iconv): Use UTF- terminology, not UCS-.
7471 (_cpp_destroy_iconv): Update to match.
7472 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
7473 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
7474 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
7475 (_cpp_interpret_string_notranslate): New function, moved here
7476 from cpplib.c.
7477
7478 * cpphash.h (convert_f, struct cset_converter): New types.
7479 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
7480 are now struct cset_converter, not bare iconv_t.
7481 Update prototypes.
7482 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
7483 all callers changed.
7484
7485 2003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
7486
7487 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
7488 to opts.sh command line.
7489 * opts.sh: Write to temporary files with a move-if-change at the end.
7490
7491 2003-07-10 Denis Chertykov <denisc@overta.ru>
7492 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7493
7494 * combine.c (gen_binary): Handle the CLOBBER rtx and
7495 don't build a binary operation with it.
7496
7497 2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7498
7499 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
7500 store_killed_after, store_killed_before): Keep track of the correct
7501 dependency function to use.
7502
7503 2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
7504 * toplev.c (do_compile): Don't try to open dump files before
7505 lang_dependent_init initializes dump_base_name.
7506
7507 2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7508
7509 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
7510 Use ARRAY_SIZE.
7511 * config/frv/frv.c (frv_expand_builtin): Likewise.
7512 * config/sh/sh.c (sh_media_init_builtins): Likewise.
7513
7514 2003-07-09 Mark Mitchell <mark@codesourcery.com>
7515
7516 PR c++/10032
7517 * doc/invoke.texi (C++ Dialect Options): Change documentation of
7518 -fpermissive.
7519
7520 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
7521
7522 * tm.texi (RETURN_ADDR_OFFSET): Document.
7523
7524 2003-07-10 Nathan Sidwell <nathan@codesourcery.com>
7525
7526 * gcov-io.h: Update documentation.
7527 (GCOV_UNSIGNED2STRING): New.
7528 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
7529 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
7530 GCOV_TAG_SUMMARY_LENGTH): Adjust.
7531 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
7532 GCOV_TAG_COUNTER_NUM): New.
7533 (GCOV_BLOCK_SIZE): Number of words.
7534 (gcov_var): Adjust buffer type.
7535 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
7536 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
7537 count, not byte count.
7538 (gcov_open): Adjust overread init.
7539 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
7540 gcov_write_string, gcov_write_tag, gcov_write_length,
7541 gcov_write_tag_length): Adjust.
7542 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
7543 (gcov_sync, gcov_seek): Adjust.
7544 * gcov-dump.c (print_usage): Show gcc version only.
7545 (dump_file): Use GCOV_UNSIGNED2STRING.
7546 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
7547 * gcov.c (print_version): Show gcc version only.
7548 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
7549 GCOV_TAG_*_NUM macros.
7550 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
7551 GCOV_TAG_COUNTER_LENGTH.
7552 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
7553 Use GCOV_TAG_COUNTER_NUM.
7554 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
7555 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
7556
7557 2003-07-10 Andreas Schwab <schwab@suse.de>
7558
7559 * gcov-dump.c (dump_file): Fix missing address operator.
7560
7561 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
7562
7563 PR c/11449
7564 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
7565 of HOST_WIDE_INT.
7566 (fold_single_bit_test): If sign_bit_p() fails, assume that the
7567 bit being tested is not a sign bit.
7568
7569 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
7570
7571 * config/h8300/h8300.md (a peephole2): New.
7572
7573 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
7574
7575 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
7576 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
7577 from ld-linux.so.2 to ld.so.1.
7578 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
7579 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
7580 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
7581 nor -Wl,-rpath-link.
7582 (LIB_SPEC): Add -rpath-link if !static.
7583 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
7584 * config/mn10300/mn10300.c (mn10300_protect_label): New
7585 variable.
7586 * config/mn10300/linux.h (PRINT_OPERAND,
7587 PRINT_OPERAND_ADDRESS): Set it during their execution.
7588 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
7589 mn10300_protect_label is set.
7590 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
7591 -Wl,-rpath-link.
7592 (LIB_SPEC, STARTFILE_SPEC): Define.
7593 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
7594 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
7595 FLOAT_BIT_ORDER_MISMATCH.
7596 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
7597 * config.gcc (am33_2.0-*-linux*): Added.
7598 * config/mn10300/linux.h: New.
7599 * config/mn10300/t-linux: New.
7600
7601 2003-07-10 Andreas Jaeger <aj@suse.de>
7602
7603 * fold-const.c: Properly wrap prototypes.
7604
7605 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
7606
7607 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
7608 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
7609 Moved from...
7610 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
7611 * config/mn10300/mn10300.h: GTY-declare it.
7612 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
7613 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
7614 prototype. Use incoming RTL argument.
7615 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
7616 * config/mn10300/mn10300.md (int_label): Move C statements...
7617 (GOTaddr2picreg): ... here.
7618 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
7619 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
7620 * config/mn10300/mn10300.c (mn10300_encode_section_info):
7621 ... here. New function.
7622 (TARGET_ENCODE_SECTION_INFO): Define to it.
7623 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
7624 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
7625 pattern name.
7626 (mn10300_loadPC): Define as insn splittable after reload.
7627 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
7628 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
7629 be defined in .rodata even in PIC, now that the assembler
7630 supports that.
7631 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
7632 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
7633 symbol take an underscore prefix.
7634 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
7635 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
7636 legitimize_pic_address): Declare.
7637 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
7638 the PIC register as fixed.
7639 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
7640 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
7641 PIC.
7642 (LEGITIMATE_PIC_OPERAND_P): Define.
7643 (PIC_OFFSET_TABLE_REGNUM): Define.
7644 (GOT_SYMBOL_NAME): Define.
7645 (SYMBOLIC_CONST_P): Define.
7646 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
7647 symbols.
7648 (MN10300_GLOBAL_P): Test it.
7649 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
7650 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
7651 * config/mn10300/mn10300.c (print_operand): Handle unspec.
7652 (expand_prologue): Set PIC register.
7653 (call_address_operand): Don't match SYMBOL_REFs in PIC.
7654 (legitimize_address): Call legitimize_pic_address.
7655 (legitimize_pic_address): New fn.
7656 (legitimate_pic_operand_p): New fn.
7657 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
7658 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
7659 UNSPEC_PLT): New constants.
7660 (pop_pic_reg): New insn.
7661 (movsi): Adjust non-PIC addresses.
7662 (builtin_setjmp_receiver): Restore the PIC register.
7663 (casesi): New insn.
7664 (call): Adjust non-PIC addresses.
7665 (int_label, GOTaddr2picreg): New expands.
7666 (am33_loadPC): New insn.
7667 (mn10300_loadPC): New expand.
7668 (call_next_insn): New insn.
7669 (add_GOT_to_pic_reg): New expand.
7670 (symGOT2reg, symGOT2reg_i): New expands.
7671 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
7672 (sym2PIC, sym2PLT): New expands.
7673
7674 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
7675
7676 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
7677 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
7678 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
7679 to flag_unsafe_math_optimizations.
7680 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
7681 * config/mn10300/mn10300.c (expand_prologue): Mark
7682 FP-register-saving insns as frame-related.
7683 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
7684 * config/mn10300/mn10300.c
7685 (mn10300_get_live_callee_saved_regs): Don't search past
7686 LAST_EXTENDED_REGNUM.
7687 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
7688 * config/mn10300/mn10300.md: Remove excessive line breaks from
7689 `@' output patterns that were accounted as additional
7690 alternatives.
7691 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
7692 Re-introduce changes accidentally removed in Richard Sandiford's
7693 2000-12-05's patch.
7694 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
7695 Re-instate am33-2 lost in merge from net GCC.
7696 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
7697 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
7698 floating-point registers.
7699 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
7700 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
7701 pessimizations that had gone in on 2000-05-08.
7702 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
7703 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
7704 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
7705 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
7706 operand 0.
7707 * (movhi): Likewise.
7708 * (movsi): Likewise.
7709 * (movsf): Likewise.
7710 * (movdi): Likewise.
7711 * (movdf): Likewise.
7712 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
7713 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
7714 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
7715 (expand_prologue, expand_epilogue): Save and restore FP regs.
7716 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
7717 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
7718 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
7719 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
7720 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
7721 Do not clobber cc0.
7722 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
7723 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
7724 Discourage the two-argument, longer opcodes.
7725 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
7726 ones.
7727 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
7728 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
7729 * config/mn10300/mn10300.md (cmpsf): New pattern.
7730 (branch): Test mdep.fpCC and output fbCC.
7731 * config/mn10300/mn10300.c (print_operand): Output conditions.
7732 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
7733 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
7734 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
7735 mulsf3, divsf3): Use the `F' constraint for FP values.
7736 * config/mn10300/mn10300.c (const_1f_operand): New function.
7737 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
7738 * config/mn10300/mn10300.md (sqrtsf2): New expand.
7739 (rsqrtsf2): New insn.
7740 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
7741 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
7742 previous check-in.
7743 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
7744 * config/mn10300/mn10300.md (abssf2, negdf2): On
7745 TARGET_AM33_2, expand to...
7746 (abssf2_am33_2, negdf2_am33_2): New insns.
7747 (addsf3, subsf3, mulsf3, divsf3): Likewise.
7748 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
7749 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
7750 movdi, movdf): Added FP regs.
7751 * invoke.texi (-mam33-2, -mno-am33-2): Document.
7752 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
7753 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
7754 New macros.
7755 (REGNO_AM33_2_FP_P): Renamed to...
7756 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
7757 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
7758 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
7759 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
7760 regs from GENERAL_REGS.
7761 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
7762 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
7763 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
7764 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
7765 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
7766 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
7767 as FP_REGS.
7768 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
7769 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
7770 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
7771 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
7772 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
7773 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
7774 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
7775 AM33/2.0 floating-point registers.
7776 (CONDITIONAL_REGISTER_USAGE): Adjust.
7777 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
7778 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
7779 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
7780 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
7781 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
7782 (MULTILIB_DIRNAMES): Likewise.
7783 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
7784 `__AM33_2__' when `-mam33-2' is given.
7785 (TARGET_AM33_2): Define.
7786 (TARGET_SWITCHES): Adjust.
7787 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
7788 when appropriate.
7789
7790 2003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
7791
7792 * doc/install.texi: Add missing @.
7793
7794 2003-07-09 Bob Wilson <bob.wilson@acm.org>
7795
7796 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
7797
7798 2003-07-09 Aldy Hernandez <aldyh@redhat.com>
7799
7800 PR/11144
7801 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
7802
7803 2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
7804
7805 PR bootstrap/11043
7806 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
7807 "x-crtfini.o" with "crtinit.o", "crtfini.o".
7808
7809 * fixinc/inclhack.def (limits_ifndefs): Add select test.
7810 * fixinc/fixincl.x: Rebuild.
7811
7812 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
7813 * fixinc/fixincl.x: Rebuild.
7814
7815 2003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
7816
7817 * doc/install.texi (Configuration): Document the valgrind option
7818 to --enable-checking.
7819
7820 2003-07-09 Jan Hubicka <jh@suse.cz>
7821
7822 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
7823
7824 2003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7825
7826 * c-lex.c (cb_ident): Cast cstr.text to const char *.
7827
7828 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
7829
7830 * gcov-io.h: Update documentation.
7831 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
7832 GCOV_NOTE_MAGIC.
7833 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
7834 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
7835 (struct gcov_var): Change buffer's type. Add endian flag.
7836 (gcov_open): Remove mode in libgcov.
7837 (gcov_magic): Prototype.
7838 * gcov-io.c (from_file): New.
7839 (gcov_open): Clear endian flag.
7840 (gcov_magic): New.
7841 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
7842 pointers.
7843 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
7844 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
7845 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
7846 * gcov-iov.c (main): Correct cast.
7847 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
7848 conversion.
7849 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
7850 (coverage_init): Use GCOV_NOTE_SUFFIX.
7851 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
7852 Rename to gcov_version, and return flag.
7853 (gcov_exit): Use gcov_version.
7854 (__gcov_init): Use gcov_version.
7855 * Makefile.in (coverageexts): Update.
7856 * gcov.c (print_version): Remove endianness conversion.
7857 (create_file_names): Use GCOV_NOTE_SUFFIX.
7858 (read_graph_file): Use gcov_magic.
7859 (read_count_file): Likewise.
7860 * gcov-dump.c (dump_file): Remove endianness conversion, use
7861 gcov_magic.
7862
7863 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
7864
7865 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
7866 coverage is on.
7867 * configure: Regenerated.
7868 * Makefile.in (ALL_CFLAGS): Correct its comment.
7869
7870 2003-07-08 Mark Mitchell <mark@codesourcery.com>
7871
7872 * fold-const.c (make_range): Do not access operand 1 for a
7873 zero-operand operator.
7874
7875 2003-07-09 Neil Booth <neil@daikokuya.co.uk>
7876
7877 * toplev.c (warn_dummy, W_options): Die.
7878 (display_help): Don't print W_options.
7879 * common.opt: Add W_options help from toplev.c.
7880
7881 2003-07-09 Andreas Jaeger <aj@suse.de>
7882
7883 * opts.c (wrap_help): Only pass int arguments as arguments to
7884 printf's '*' modifier. Change argument of function.
7885
7886 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
7887
7888 * doc/invoke.texi: Fix misspelling of "@item".
7889
7890 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
7891
7892 * config/i386/i386.md: Remove an old comment about
7893 NOTICE_UPDATE_CC.
7894
7895 2003-07-09 Jan Hubicka <jh@suse.cz>
7896
7897 * cgraph.c (cgraph_node_name): New function.
7898 (dump_cgraph): Use it.
7899 * cgraph.h (cgraph_dump_file): Declare.
7900 (cgraph_node_name): Declare.
7901 * cgraphunit.c: Include timevar.h
7902 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
7903 (cgraph_optimize_function): Use TV_INTEGRATION.
7904 (cgraph_mark_local_functions): reorganize dumps.
7905 (cgraph_mark_functions_to_inline_once): Likewise.
7906 (cgraph_optimize): Likewise; use timevar.
7907 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
7908 * toplev.c (dump_file_index): Add DFI_cgraph.
7909 (dump_file_info): Likewise.
7910 (cgraph_dump_file): New global variable.
7911 (do_compile): Open and close cgraph dump.
7912 * invoke.texi (-d): Document new flag; renumber.
7913
7914 2003-07-08 Roger Sayle <roger@eyesopen.com>
7915
7916 PR c/11370
7917 * calls.c (emit_call_1): Don't bother popping the arguments off of
7918 the stack after a noreturn function call; The adjustment is dead.
7919 (expand_call): Likewise.
7920
7921 2003-07-08 Geoffrey Keating <geoffk@apple.com>
7922
7923 * expr.c (MOVE_MAX_PIECES): Move from here...
7924 * defaults.h (MOVE_MAX_PIECES): ... to here.
7925
7926 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
7927
7928 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
7929
7930 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7931
7932 * genattr.c (internal_dfa_insn_code): Don't prototype.
7933 * genattrtab.c (attr_desc): Add `static_p' field.
7934 (expand_units): Make blockage range and ready cost functions
7935 static.
7936 (write_attr_get): Don't add extern prototypes in C file. Mark
7937 static functions as appropriate.
7938 (find_attr, make_internal_attr): Initialize static_p.
7939 * genattrtab.h (ATTR_STATIC): New macro.
7940 * genautomata.c (output_internal_reset_func): Mark output function
7941 as inline.
7942 (make_internal_dfa_insn_code_attr): Mark output function as static.
7943
7944 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7945
7946 * genattrtab.h: Add new macros for attr `special' flags.
7947 * genattrtab.c (attr_desc): Reorder/resize fields better.
7948 Use attr `special' macros in all calls to make_internal_attr.
7949 * genautomata.c: Likewise.
7950
7951 2003-07-09 Jan Hubicka <jh@suse.cz>
7952
7953 * c-common.c (c_estimate_num_insns_1): New static function.
7954 (c_estimate_num_insns): New global function.
7955 * c-common.h (DECL_NUM_STMTS): Rename to...
7956 (DECL_ESTIMATED_INSNS): ... this.
7957 (c_estimate_num_insns): Declare.
7958 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
7959 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
7960 * c-semantics.c (add_stmt): Do not account statements.
7961 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
7962 New.
7963 * langhooks.h (lang_hooks_for_tree_inlining): Add
7964 estimate_num_insns
7965 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
7966 to 100.
7967 (max-inline-insns): set to 300.
7968 (min-inline-insns): set to 10.
7969 * tree-inline.c (struct inline_data): Rename inlined_stmts to
7970 inlined-insns.
7971 (INSNS_PER_STMT): Kill.
7972 (inlinable_function_p): Compute and store body size.
7973 (expand_call_inline): Likewise.
7974 (optimize_inline_calls): Likewise.
7975
7976 2003-07-08 James E Wilson <wilson@tuliptree.org>
7977
7978 PR target/10021
7979 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
7980 loop over new variable t2 instead of t.
7981
7982 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
7983
7984 PR bootstrap/11455
7985 * config/i386/winnt.c: Replace use of error(), warning() with
7986 error_with_decl(), warning_with_decl(), throughout.
7987
7988 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
7989
7990 * opts.c (wrap_help): Use unsigned int, not size_t.
7991
7992 2003-07-08 Stephane Carrez <stcarrez@nerim.fr>
7993
7994 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
7995 as .file/.loc directives are incompatible with linker relaxation.
7996
7997 2003-07-08 Zack Weinberg <zack@codesourcery.com>
7998
7999 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
8000 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
8001 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
8002 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
8003 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
8004 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
8005 Escape { and } characters which are not part of range expressions.
8006 * fixinc/fixincl.x: Regenerate.
8007 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
8008
8009 2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
8010
8011 PR c/1687
8012 * tree-inline.c (find_alloca_call): Use
8013 walk_tree_without_duplicates, instead of walk_tree.
8014 (find_builtin_longjmp_call): Likewise.
8015 * c-objc-common.c (c_cannot_inline_fn): Likewise.
8016 * c-semantics.c (find_reachable_label): Likewise.
8017
8018 2003-07-08 Jakub Jelinek <jakub@redhat.com>
8019
8020 PR c/11420
8021 * config/i386/i386.c (ix86_check_movabs): New function.
8022 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
8023 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
8024 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
8025
8026 2003-07-08 Chris Demetriou <cgd@broadcom.com>
8027
8028 * Makefile.in (install-po): Cope with empty CATALOGS.
8029
8030 2003-07-08 Richard Sandiford <rsandifo@redhat.com>
8031
8032 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
8033 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
8034 (SECTION_FUNCTION_TEMPLATE): Delete.
8035 * config/mips/elf.h: As for elf64.h.
8036 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
8037 * config/mips/linux.h: As for elf.h
8038 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
8039 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
8040 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
8041 of in_sdata from current_section_name and current_section_flags.
8042 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
8043 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
8044 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
8045 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
8046 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
8047 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
8048 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
8049 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
8050 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
8051 (override_options): Remove setting of MASK_GPOPT.
8052 (mips_output_external): Use mips_in_small_data_p to check whether a
8053 symbol needs an .extern directive. Don't emit such directives for
8054 TARGET_EXPLICIT_RELOCS.
8055 (mips_declare_object): Update accordingly.
8056 (mips_select_rtx_section): Call named_section rather than
8057 SMALL_DATA_SECTION.
8058 (mips_select_section): Use default_elf_section_section for everything
8059 except .text string constants.
8060 (mips_in_small_data_p): New function.
8061 (mips_encode_section_info): Remove small data handling.
8062 (mips_unique_section): Delete.
8063 (iris6_section_type_flags): New function.
8064 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
8065
8066 2003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8067
8068 PR Target/11453
8069 * pa.md: Disparage all mtsar constraints.
8070 (extzv, extv, insv): Don't fail on length of {32|64}.
8071
8072 2003-07-08 Zack Weinberg <zack@codesourcery.com>
8073
8074 * system.h: Poison MAP_CHARACTER.
8075 * config/i370/i370-protos.h (mvs_map_char): Delete.
8076 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
8077 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
8078 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
8079
8080 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
8081
8082 * toplev.c (randomize): Correct call to time().
8083
8084 2003-07-08 Jakub Jelinek <jakub@redhat.com>
8085
8086 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
8087 REG_EQUIV notes as well.
8088
8089 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
8090
8091 * doc/md.texi: Fix the description of addmodecc.
8092
8093 2003-07-07 Zack Weinberg <zack@codesourcery.com>
8094
8095 * Makefile.in (top_builddir): Set to "..", not ".".
8096 (INTLLIBS, INTLDEPS): Delete.
8097 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
8098 (LIBDEPS): Add $(LIBICONV_DEP).
8099 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
8100 (INCLUDES): Replace -I../intl with @INCINTL@.
8101 ($(top_builddir)/intl/libintl.a): Delete rule.
8102 (stage2-start, stage3-start, stage4-start, stageprofile-start,
8103 stagefeedback-start): Use $$ for variable to be evaluated by
8104 shell, not make.
8105 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
8106 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
8107 * aclocal.m4: sinclude ../config/progtest.m4. Add
8108 contents of lcmessage.m4 from gettext distro.
8109 * configure.in: Check for wchar.h and setlocale. Set
8110 LIBICONV_DEP to the empty string and substitute it.
8111 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
8112 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
8113 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
8114 in $LIBINTL, to avoid linking it twice.
8115 * configure, config.in: Regenerate.
8116
8117 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
8118
8119 * fixinc/mkfixinc.sh: Remove winnt support.
8120 * fixinc/fixinc.winnt: Delete with extreme prejudice.
8121
8122 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
8123
8124 * Makefile.in: Update.
8125 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
8126 * c.opt: Update documentation.
8127 * common.opt: Add some help text.
8128 * opts.c: Include intl.h.
8129 (wrap_help, print_help): New.
8130 (find_opt, handle_option, common_handle_option): opt_text now
8131 contains the '-'. Use print_help to output help.
8132 * opts.h (struct cl_option): New member "help".
8133 * opts.sh: Update to handle help text output and to prepend
8134 options with '-'.
8135 * toplev.c (display_help): Remove some help text.
8136
8137 2003-07-07 David Edelsohn <edelsohn@gnu.org>
8138 Fariborz Jahanian <fjahanian@apple.com>
8139
8140 * configure.in: Test for PowerPC mfcr field support in assembler.
8141 * config.in, configure: Regenderated.
8142
8143 * config/rs6000/power4.md: Add mfcrf reservation.
8144 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
8145 * config/rs6000/rs6000.c (mfcr_operation): Define.
8146 (print_operand): Add 'Q' case for mfcrf.
8147 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
8148 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
8149 (movcc_internal1): Emit optional field operand for mfcr and set
8150 "type" attribute appropriately.
8151 (mfcr SCC): Likewise.
8152 (movesi_from_cr_one): New.
8153
8154 2003-07-07 Roger Sayle <roger@eyesopen.com>
8155
8156 * config/i386/i386.md: Correct check-in of incorrect version.
8157
8158 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8159
8160 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
8161 adjacent stdio calls.
8162 * c-decl.c (c_print_identifier): Likewise.
8163 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
8164 * print-rtl.c (print_rtx): Likewise.
8165 * print-tree.c (print_node_brief, print_node): Likewise.
8166 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
8167
8168 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
8169 * config.in, configure: Regenerated.
8170
8171 2003-07-07 Roger Sayle <roger@eyesopen.com>
8172
8173 PR target/10979
8174 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
8175 Changed to define_expand patterns that copy operand[1] to prevent
8176 it from being clobbered before emitting an atan2?f3_1 insn.
8177 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
8178 patterns that actually specify the behaviour of x87's FPATAN.
8179
8180 2003-07-07 Jakub Jelinek <jakub@redhat.com>
8181
8182 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
8183 clearing of SYMBOL_FLAG_LOCAL bit.
8184 If vcall_offset fits into signed 16-bit immediate, use
8185 one instruction for both addition and load.
8186
8187 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
8188
8189 * opts.c (common_handle_option): Correct handling of the
8190 -falign- switches that do and don't take an argument.
8191
8192 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
8193
8194 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
8195 today.
8196 (pushhi1_h8300hs): Likewise.
8197
8198 2003-07-07 Andreas Jaeger <aj@suse.de>
8199
8200 * genextract.c: Convert remaining prototypes to ISO C90.
8201
8202 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
8203 * fold-const.c (fold_single_bit_test): Likewise.
8204 * diagnostic.c (default_diagnostic_finalizer): Likewise.
8205 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
8206
8207 * gengtype.c (write_array): Generate ISO C90 prototypes.
8208
8209 * genflags.c (gen_proto): Generate ISO C90 prototypes.
8210
8211 2003-07-07 Roger Sayle <roger@eyesopen.com>
8212
8213 PR optimization/11059
8214 * expr.c (can_store_by_pieces): Return true if length is zero.
8215 (store_by_pieces): If length is zero and endp is two, abort,
8216 othwerise, if length is zero and endp is not two, return "to".
8217 (clear_by_pieces): Do nothing if length is zero.
8218 (clear_storage): Do nothing if length is zero.
8219 (store_constructor): Simplify code when size is zero, or the
8220 target has already been cleared. This avoids emitting a
8221 blockage instruction when initializing empty structures.
8222
8223 2003-07-07 Andreas Jaeger <aj@suse.de>
8224
8225 * mips-tfile.c: Convert prototypes to ISO C90.
8226 * mips-tdump.c: Convert prototypes to ISO C90.
8227
8228 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
8229
8230 * rtl.h (emit_line_note): Take a location_t.
8231 (emit_line_note_force): Remove.
8232 (set_file_and_line_for_statement): Take a location_t.
8233 * tree.g (emit_line_note): Take a location_t.
8234 * emit-rtl.c (emit_line_note): Take a location_t.
8235 (emit_line_note_force): Remove.
8236 * function.c (init_function_start): Adjust emit_line_note call.
8237 (expand_function_end): Use force_next_line_note, not
8238 emit_line_note_force.
8239 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
8240 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
8241 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
8242 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
8243 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
8244 genrtl_continue_stmt, genrtl_switch_stmt,
8245 genrtl_asm_stmt): Likewise.
8246 * expr.c (expand_expr): Likewise.
8247 * integrate.c (expand_inline_function): Likewise.
8248 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
8249 (expand_decl_init): Adjust emit_line_note call.
8250
8251 2003-07-07 Dale Johannesen <dalej@apple.com>
8252
8253 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
8254
8255 2003-07-07 Andreas Jaeger <aj@suse.de>
8256
8257 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
8258 * config/i386/i386.c: Likewise.
8259
8260 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
8261
8262 * config/h8300/h8300.md: Use gen_int_mode instead of
8263 GEN_INT (trunc_int_for_mode (...)).
8264
8265 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
8266
8267 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
8268 2 bytes and then subtract 2 from the stack pointer.
8269 (pushhi1_h8300hs): Likewise.
8270
8271 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
8272
8273 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
8274 -frandom-seed.
8275 * configure: Regenerated.
8276 * Makefile.in: Remove extraneous comment.
8277 * toplev.c (randomize): Protect against potential multiple calls.
8278 * doc/invoke.texi (-frandom-seed): Document use for in coverage
8279 files.
8280
8281 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8282 Eric Botcazou <ebotcazou@libertysurf.fr>
8283
8284 PR optimization/11198
8285 * alias.c (objects_must_conflict_p): Return 1 if the types have
8286 the same alias set, not if the alias sets only conflict.
8287
8288 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
8289
8290 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
8291 (convert_cset): Change inbuf to type ICONV_CONST char.
8292 * Makefile.in (LIBS): Add LIBICONV.
8293
8294 * doc/invoke.texi (-falign-functions): Document that
8295 when n is zero then a machine-dependent default is used.
8296 (-falign-labels): Document that when n is zero then a
8297 machine-dependent default is used and that -falign-labels =1
8298 is equivalent to -fno-align-labels.
8299 (-falign-loops): Likewise.
8300 (-falign-jumps): Likewise.
8301
8302 2003-07-06 Art Haas <ahaas@airmail.net>
8303
8304 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
8305 initializer syntax.
8306
8307 2003-07-06 James E Wilson <wilson@tuliptree.org>
8308
8309 PR optimization/9812
8310 * rtl.h (mem_for_const_double): Delete prototype.
8311 * varasm.c (mem_for_const_double): Delete function.
8312 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
8313 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
8314 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
8315 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
8316 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
8317 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
8318 comment about confused support for XFmode constants.
8319
8320 2003-07-07 Jan Hubicka <jh@suse.cz>
8321
8322 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
8323
8324 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
8325
8326 * config/h8300/h8300.c: Fix comment typos.
8327 * config/h8300/h8300.md: Likewise.
8328 * config/i386/athlon.md: Likewise.
8329 * config/i386/i386.c: Likewise.
8330 * config/i386/pentium.md: Likewise.
8331 * config/ia64/ia64.c: Likewise.
8332 * config/ia64/itanium1.md: Likewise.
8333 * config/ia64/itanium2.md: Likewise.
8334 * config/m32r/m32r.md: Likewise.
8335 * config/m68hc11/m68hc11.c: Likewise.
8336 * config/mcore/mcore.c: Likewise.
8337 * config/mips/sr71k.md: Likewise.
8338 * config/mips/t-iris5-as: Likewise.
8339 * config/mmix/mmix.h: Likewise.
8340 * config/ns32k/ns32k.h: Likewise.
8341 * config/ns32k/NOTES: Fix a typo.
8342
8343 2003-07-06 Andreas Jaeger <aj@suse.de>
8344
8345 * stmt.c: Convert remaining prototypes to ISO C90.
8346 * cfglayout.c: Likewise.
8347 * dbxout.c: Likewise.
8348 * gcc.c: Likewise.
8349 * genemit.c: Likewise.
8350
8351 * basic-block.h: Convert prototypes to ISO C90.
8352 * c-parse.in: Likewise.
8353 * c-pragma.h: Likewise.
8354 * c-typeck.c: Likewise.
8355 * cfghooks.h: Likewise.
8356 * cfgloopanal.c: Likewise.
8357 * dbxout.h: Likewise.
8358 * debug.h: Likewise.
8359 * dwarf2asm.h: Likewise.
8360 * gcov.c: Likewise.
8361 * gengtype-lex.l: Likewise.
8362 * sched-int.h: Likewise.
8363 * timevar.c: Likewise.
8364
8365 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
8366
8367 * c-common.h (c_comon_handle_filename,
8368 c_common_missing_arguement): New.
8369 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
8370 LANG_HOOKS_MISSING_ARGUMENT): New.
8371 * c-opts.c (missing_arg): Rename c_common_missing_argument,
8372 update to be an appropriate langhook.
8373 (c_common_handle_option): Don't handle filenames.
8374 (c_common_handle_filename): New.
8375 * hooks.c (hook_void_constcharptr,
8376 hook_bool_constcharptr_size_t_false): New.
8377 * hooks.h (hook_void_constcharptr,
8378 hook_bool_constcharptr_size_t_false): New.
8379 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
8380 LANG_HOOKS_MISSING_ARGUMENT): New.
8381 (LANG_HOOKS_INITIALIZER): Update.
8382 * langhooks.h (struct lang_hooks): Add handle_filename and
8383 missing_argument.
8384 * opts.c (handle_option): Don't handle filenames here, but ...
8385 (handle_options): ... here.
8386 (common_handle_option): Don't handle missing arguments here.
8387 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
8388 LANG_HOOKS_MISSING_ARGUMENT): New.
8389
8390 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
8391
8392 * Makfile.in: Remove traces of mbchar.
8393 * c-parse.in (MULTIBYTE_CHARS): Remove.
8394 * config.in (MULTIBYTE_CHARS): Remove.
8395 * configure: Remove --enable-mbchar.
8396 * configure.in: Remove --enable-mbchar.
8397 * mbchar.c, mbchar.h: Remove.
8398 * system.h: Poison MULTIBYTE_CHARS.
8399 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
8400 * config/linux.h (MULTIBYTE_CHARS): Remove.
8401 * config/svr4.h (MULTIBYTE_CHARS): Remove.
8402 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
8403
8404 2003-07-06 Andreas Jaeger <aj@suse.de>
8405
8406 * varray.c (varray_check_failed): Fix typo.
8407
8408 * unroll.c: Convert prototypes to ISO C90.
8409 * varasm.c: Likewise.
8410 * varray.c: Likewise.
8411 * varray.h: Likewise.
8412 * vmsdbgout.c: Likewise.
8413 * xcoffout.c: Likewise.
8414 * xcoffout.h: Likewise.
8415
8416 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
8417
8418 * gcov-io.h: Add a local time stamp.
8419 (struct gcov_info): Add stamp field.
8420 (gcov_truncate): New.
8421 * coverage.c (read_counts_file): Skip the stamp.
8422 (coverage_begin_output): Write the stamp.
8423 (build_gcov_info): Declare and init the stamp.
8424 (coverage_finish): Only unlink data file, if stamp is zero.
8425 * gcov-dump.c (dump_file): Dump the stamp.
8426 * gcov.c (bbg_stamp): New.
8427 (release_structures): Clear bbg_stamp.
8428 (read_graph_file): Read stamp.
8429 (read_count_file): Check stamp.
8430 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
8431
8432 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
8433
8434 * tree.h (default_flag_random_seed): Remove.
8435 * toplev.h (local_tick): Declare.
8436 * tree.c (flag_random_seed, default_flag_random_seed): Move to
8437 toplev.c.
8438 (append_random_chars): Don't call default_flag_random_seed.
8439 * toplev.c (flag_random_seed): Define here. Set local_tick.
8440 (local_tick): Define.
8441 (randomize): New, moved from tree.c.
8442 (print_switch_values): Adjust.
8443 (toplev_main): Call randomize.
8444
8445 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
8446
8447 * tree.h (crc32_string): Declare.
8448 * tree.c (append_random_chars): Remove.
8449 (crc32_string): New.
8450 (get_file_function_name_long): Use crc32_string here.
8451
8452 2003-07-06 Andreas Jaeger <aj@suse.de>
8453
8454 * gcc.c: Convert prototypes to ISO C90.
8455 * gcc.h: Likewise.
8456 * gcov-dump.c: Likewise.
8457 * gcov-iov.c: Likewise.
8458 * gcse.c: Likewise.
8459 * genattrtab.h: Likewise.
8460 * ggc.h: Likewise.
8461 * global.c: Likewise.
8462 * graph.c: Likewise.
8463 * graph.h: Likewise.
8464 * hosthooks.h: Likewise.
8465 * hooks.h: Likewise.
8466 * hooks.c: Likewise.
8467 * hashtable.h: Likewise.
8468 * hashtable.c: Likewise.
8469 * haifa-sched.c: Likewise.
8470 * integrate.h: Likewise.
8471 * integrate.c: Likewise.
8472 * input.h: Likewise.
8473 * ifcvt.c: Likewise.
8474 * jump.c: Likewise.
8475 * langhooks-def.h: Likewise. Add extern to prototypes.
8476 * langhooks.c: Likewise.
8477 * langhooks.h: Likewise.
8478 * lcm.c: Likewise.
8479 * local-alloc.c: Likewise.
8480 * loop-init.c: Likewise.
8481 * loop-unroll.c: Likewise.
8482 * loop-unswitch.c: Likewise.
8483 * loop.c: Likewise.
8484 * loop.h: Likewise. Add extern to prototypes.
8485 * machmode.h: Likewise.
8486 * main.c: Likewise.
8487 * mbchar.c: Likewise.
8488 * mbchar.h: Likewise.
8489 * mkdeps.c: Likewise.
8490 * mkdeps.h: Likewise.
8491 * optabs.c: Likewise.
8492 * optabs.h: Likewise.
8493 * output.h: Likewise.
8494 * gccspec.c: Likwise.
8495 * postreload.c: Likewise.
8496 * prefix.c: Likewise.
8497 * prefix.h: Likewise.
8498 * print-rtl.c: Likewise.
8499 * print-tree.c: Likewise.
8500 * profile.c: Likewise.
8501 * read-rtl.c: Likewise.
8502 * real.c: Likewise.
8503 * real.h: Likewise.
8504 * recog.c: Likewise.
8505 * recog.h: Likewise.
8506 * reg-stack.c: Likewise.
8507 * regclass.c: Likewise.
8508 * regmove.c: Likewise.
8509 * regrename.c: Likewise.
8510 * regs.h: Likewise.
8511 * reload.c: Likewise.
8512 * reload.h: Likewise.
8513 * reload1.c: Likewise.
8514 * reorg.c: Likewise.
8515 * resource.c: Likewise.
8516 * resource.h: Likewise.
8517 * rtl-error.c: Likewise.
8518 * rtl.c: Likewise.
8519 * rtl.h: Likewise.
8520 * rtlanal.c: Likewise.
8521 * sbitmap.c: Likewise.
8522 * sbitmap.h: Likewise.
8523 * scan-decls.c: Likewise.
8524 * scan.c: Likewise.
8525 * sched-deps.c: Likewise.
8526 * sched-ebb.c: Likewise.
8527 * sched-int.h: Likewise.
8528 * sched-rgn.c: Likewise.
8529 * sched-vis.c: Likewise.
8530 * sibcall.c: Likewise.
8531 * simplify-rtx.c: Likewise.
8532 * sreal.c: Likewise.
8533 * sreal.h: Likewise.
8534 * ssa-ccp.c: Likewise.
8535 * ssa-dce.c: Likewise.
8536 * ssa.c: Likewise.
8537 * ssa.h: Likewise.
8538 * stack.h: Likewise.
8539 * stmt.c: Likewise.
8540 * stor-layout.c: Likewise.
8541 * stringpool.c: Likewise.
8542 * target.h: Likewise.
8543 * timevar.c: Likewise.
8544 * timevar.h: Likewise.
8545 * tlink.c: Likewise.
8546 * tracer.c: Likewise.
8547 * tree-inline.c: Likewise.
8548 * tree-inline.h: Likewise.
8549 * tree.c: Likewise.
8550 * tree.h: Likewise.
8551
8552 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
8553
8554 * combine.c (nonzero_bits1): Fix a warning.
8555
8556 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
8557
8558 * config/h8300/h8300.c (compute_mov_length): Correct the
8559 length of loading CONST0_RTX (SFmode).
8560
8561 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
8562
8563 * toplev.c (output_clean_symbol_name): Remove.
8564 * toplev.h (output_clean_symbol_name): Remove.
8565 * config/alpha/alpha.c (unicosmk_output_module_name): Use
8566 lbasename & clean_symbol_name.
8567
8568 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
8569
8570 * ggc.h: Follow spelling conventions.
8571 * config/i386/i386.c: Likewise.
8572 * config/i386/winnt.c: Likewise.
8573 * config/rs6000/rs6000.c: Likewise.
8574
8575 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
8576
8577 * bt-load.c: Fix comment typos.
8578 * c-incpath.c: Likewise.
8579 * cfg.c: Likewise.
8580 * cfgcleanup.c: Likewise.
8581 * cfgloop.h: Likewise.
8582 * cfgloopmanip.c: Likewise.
8583 * cfgrtl.c: Likewise.
8584 * diagnostic.h: Likewise.
8585 * dwarfout.c: Likewise.
8586 * emit-rtl.c: Likewise.
8587 * et-forest.c: Likewise.
8588 * et-forest.h: Likewise.
8589 * expr.c: Likewise.
8590 * gcse.c: Likewise.
8591 * genattr.c: Likewise.
8592 * jump.c: Likewise.
8593 * langhooks.h: Likewise.
8594 * local-alloc.c: Likewise.
8595 * loop-unroll.c: Likewise.
8596 * loop-unswitch.c: Likewise.
8597 * ra-build.c: Likewise.
8598 * regclass.c: Likewise.
8599 * regmove.c: Likewise.
8600 * rtl.def: Likewise.
8601 * rtlanal.c: Likewise.
8602 * sched-ebb.c: Likewise.
8603 * sched-rgn.c: Likewise.
8604 * simplify-rtx.c: Likewise.
8605 * ssa.c: Likewise.
8606 * tracer.c: Likewise.
8607 * tree.c: Likewise.
8608
8609 2003-07-05 Zack Weinberg <zack@codesourcery.com>
8610
8611 * cppcharset.c: Use the correct return type for the fallback iconv
8612 macro.
8613
8614 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8615
8616 Blame to Jan Hubicka <jh@suse.cz>
8617 * cfglayout.c (record_effective_endpoints): Split insns before
8618 first basic block correctly.
8619
8620 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8621
8622 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
8623 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
8624 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
8625
8626 2003-07-05 Andreas Jaeger <aj@suse.de>
8627
8628 * genattrtab.c (write_attr_get): Revert part of last patch to
8629 always write out a prototype.
8630
8631 * genemit.c (gen_split): Readd lost unused attributes in last
8632 patch.
8633
8634 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8635
8636 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
8637 different from header.
8638
8639 2003-07-05 Andreas Schwab <schwab@suse.de>
8640
8641 * config/m68k/m68k.c: Remove code protected by CRDS.
8642 * config/m68k/m68k.md: Likewise.
8643
8644 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
8645
8646 PR driver/11417
8647 * c-opts.c (permit_fortran_options): New.
8648 (c_common_init_options): Accept fortran front end options if
8649 it looks like we might be preprocessing Fortran.
8650 (c_common_handle_option): Don't reject switch if permit_fotran_options.
8651
8652 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8653
8654 * genattr.c (internal_dfa_insn_code): Output prototype.
8655 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
8656 * genautomata.c: Likewise.
8657 * genconditions.c: Likewise.
8658 * genemit.c: Likewise.
8659 * genextract.c: Likewise.
8660 * gengenrtl.c: Likewise.
8661 * gengtype.c: Likewise.
8662 * genopinit.c: Likewise.
8663 * genoutput.c: Likewise.
8664 * genpeep.c: Likewise.
8665 * genrecog.c: Likewise.
8666
8667 2003-07-04 Zack Weinberg <zack@codesourcery.com>
8668
8669 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
8670 (struct cpp_options): Add narrow_charset, wide_charset,
8671 bytes_big_endian fields. Remove EBCDIC field.
8672 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
8673
8674 * cpphash.h: Include <iconv.h> if we have it, otherwise
8675 provide a dummy definition of iconv_t.
8676 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
8677 (_cpp_valid_ucn): Update prototype.
8678 (_cpp_destroy_iconv): New prototype.
8679
8680 * doc/cpp.texi: Document character set handling.
8681 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
8682 * doc/extend.texi: Delete entire section on multiline strings.
8683 Rewrite section on __FUNCTION__ etc now that these are
8684 variables in C.
8685
8686 * cppucnid.tab, cppucnid.pl: New files.
8687 * cppucnid.h: New generated file.
8688 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
8689 (iconv_open, iconv, iconv_close): Provide dummy definitions
8690 if !HAVE_ICONV.
8691 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
8692 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
8693 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
8694 cpp_interpret_string, narrow_str_to_charconst,
8695 wide_str_to_charconst): New.
8696 (ucn_valid_in_identifier): Use a binary search through the
8697 ucnranges table defined in cppucnid.h, not a long chain of if
8698 statements.
8699 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
8700 character names are only valid in C++ and C99" to a warning.
8701 Issue the "meaning of \[uU] is different in traditional C"
8702 warning here. Take care not to let iconv see an invalid UCS
8703 value if we get a malformed UCN. Issue an error if we don't
8704 have iconv.
8705 (cpp_interpret_charconst): Moved here from cpplex.c. Use
8706 cpp_interpret_string to do the heavy lifting.
8707
8708 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
8709 narrow_charset, wide_charset fields of options structure.
8710 (cpp_destroy): Call _cpp_destroy_iconv.
8711 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
8712 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
8713 (cpp_interpret_charconst): Moved to cppcharset.c.
8714 * cpplib.c (dequote_string): Delete.
8715 (interpret_string_notranslate): New.
8716 (do_line, do_linemarker): Use interpret_string_notranslate.
8717
8718 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
8719
8720 * c-common.c (fname_string, combine_strings): Delete.
8721 * c-common.h (fname_string, combine_strings): Delete prototypes.
8722 * c-lex.c (ignore_escape_flag): Delete.
8723 (cb_ident): Use cpp_interpret_string, not lex_string.
8724 (get_nonpadding_token): New function.
8725 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
8726 Adjust calls to lex_string. Don't write *value twice.
8727 (lex_string): Now handles string constant concatenation.
8728 Most of the work handed off to cpp_interpret_string.
8729 Call fix_string_type here.
8730 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
8731 FUNC_NAME, throughout.
8732 (OBJC_STRING): New token type.
8733 (primary:STRING): No need to call fix_string_type here.
8734 (primary:objc_string): Make that OBJC_STRING.
8735 (objc_string nonterminal): Delete.
8736 (yylexname): Delete code to handle fake string constants.
8737 (yylexstring): Delete entirely.
8738 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
8739 to handle CPP_ATSIGN.
8740
8741 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
8742 * c-opts.c (missing_arg, c_common_handle_option): Handle
8743 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
8744 (c_common_init): Set cpp_opts->bytes_big_endian, not
8745 cpp_opts->EBCDIC. Call cpp_init_iconv.
8746 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
8747 (TARGET_EBCDIC): Delete default definition.
8748
8749 * objc/objc-act.c (build_objc_string_object): No need to
8750 handle string constant concatenation.
8751
8752 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
8753
8754 * doc/install.texi: Fix typos.
8755 * doc/invoke.texi: Likewise.
8756 * doc/tm.texi: Likewise.
8757
8758 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
8759
8760 * config/pa/fptr.c: Fix comment typos.
8761 * config/pa/pa-64.h: Likewise.
8762 * config/pa/pa.c: Likewise.
8763 * config/pa/pa.h: Likewise.
8764 * config/rs6000/603.md: Likewise.
8765 * config/rs6000/7xx.md: Likewise.
8766 * config/rs6000/darwin.h: Likewise.
8767 * config/rs6000/freebsd.h: Likewise.
8768 * config/rs6000/rs6000.c: Likewise.
8769 * config/rs6000/rs6000.md: Likewise.
8770 * config/rs6000/spe.h: Likewise.
8771
8772 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
8773
8774 * config/s390/2064.md: Change GNU CC to GCC.
8775 * config/s390/2084.md: Likewise.
8776 * config/s390/fixdfdi.h: Likewise.
8777 * config/s390/linux.h: Likewise.
8778 * config/s390/s390-modes.def: Likewise.
8779 * config/s390/s390-protos.h: Likewise.
8780 * config/s390/s390.c: Likewise.
8781 * config/s390/s390.h: Likewise.
8782 * config/s390/s390.md: Likewise.
8783 * config/s390/s390x.h: Likewise.
8784
8785 2003-07-04 Jeff Law <law@redhat.com>
8786
8787 PR c/11428
8788 * expr.c (do_store_flag): Pass in the correct result type
8789 when calling fold_single_bit_test.
8790 * fold-const.c (fold_single_bit_test): Use result_type for the
8791 result when folding a sign bit test.
8792
8793 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
8794
8795 * opts.c (common_handle_options): Negate sense of -falign- switches.
8796
8797 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
8798
8799 * Makefile.in: Replace PWD with PWD_COMMAND.
8800
8801 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8802
8803 * cfgloopanal.c (count_strange_loop_iterations): New static function.
8804 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
8805 Handle strange loops.
8806
8807 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
8808
8809 * install.texi: Even the g77 manpage is derived from
8810 the full g77 manual.
8811
8812 2003-07-04 Zack Weinberg <zack@codesourcery.com>
8813
8814 * ABOUT-NLS: Delete.
8815 * intl: Delete entire directory.
8816 * aclocal.m4: Include ../config/gettext.m4. Delete
8817 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
8818 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
8819 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
8820 Remove intl/Makefile from all_outputs.
8821 * configure, config.in: Regenerate.
8822 * Makefile.in: Expunge all references to intl subdirectory.
8823 Add -I../intl to INCLUDES.
8824 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
8825
8826 2003-07-04 Roger Sayle <roger@eyesopen.com>
8827
8828 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
8829 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
8830
8831 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
8832
8833 PR c++/5287, PR c++/7910, PR c++/11021
8834 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
8835 dllimport attribute if function is defined at declaration, but
8836 report error instead. Likewise for dllimport'd variable
8837 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
8838 declared within functions, Report error if dllimport or dllexport
8839 symbol is not global.
8840 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
8841 if defined after declaration or if inlined. Don't allow definition
8842 of static data members of C++ classes. Don't dllimport virtual
8843 methods.
8844 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
8845 (i386_pe_mark_dllimport): Remove unnecessary checks.
8846 (i386_pe_encode_section_info): Warn if the dllimport attribute
8847 and symbol prefix have been instantiated and then overridden.
8848
8849 * doc/extend.texi: Document dllimport and dllexport attributes.
8850
8851 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
8852
8853 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
8854
8855 * config/kaos.h (CPP_PREDEFINES): Delete.
8856 (TARGET_OS_CPP_BUILTINS): New.
8857
8858 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8859
8860 * c-aux-info.c: Include toplev.h after c-tree.h.
8861 * c-common.c: Likewise.
8862 (GCC_DIAG_STYLE): Undef.
8863 * c-semantics.c (GCC_DIAG_STYLE): Define.
8864 * c-tree.h (GCC_DIAG_STYLE): Likewise.
8865 * diagnostic.h (inform): Move prototype to toplev.h.
8866 * jump.c: Include diagnostic.h before toplev.h.
8867 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
8868 (warning, error, fatal_error, pedwarn, sorry, inform,
8869 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
8870
8871 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8872
8873 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
8874 at all if edge is not specified.
8875 (can_copy_bbs_p, copy_bbs): New.
8876 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
8877 * cfgloop.c (get_loop_body): Comment more precisely.
8878 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
8879 (scale_bbs_frequencies): Fix comment typo.
8880 (can_duplicate_loop_p): Use can_copy_bbs_p.
8881 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
8882
8883 2003-07-03 Devang Patel <dpatel@apple.com>
8884
8885 * c-opts.c (c_common_parse_file): Remove extra
8886 debug_hooks->start_source_file call.
8887
8888 2003-07-03 Roger Sayle <roger@eyesopen.com>
8889
8890 * real.c (real_trunc, real_floor, real_ceil): New functions
8891 to implement trunc, floor and ceil respectively.
8892 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
8893 * builtins.c (integer_valued_real_p): New function to test if
8894 a floating point expression has an integer valued result.
8895 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
8896 foo(x) where foo is an integer rounding function. Similarly,
8897 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
8898 (double)(int)x when both foo and bar are integer rounding
8899 functions and we don't need to honor errno.
8900 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
8901 New functions to fold trunc, floor and ceil.
8902 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
8903 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
8904 to fold BUILT_IN_CEIL*.
8905 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
8906 the remaining integer rounding functions.
8907
8908 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
8909
8910 * config/sparc/sparc.c (function_arg_partial_nregs): Use
8911 SPARC_INT_ARG_MAX to determine where to split unnamed
8912 complex FP arguments.
8913
8914 2003-07-03 Jan Hubicka <jh@suse.cz>
8915
8916 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
8917 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
8918 (merge_blocks_move_predecessor_nojumps,
8919 merge_blocks_move_successor_nojumps): Use merge_blocks.
8920 (try_optimize_cfg): Use merge_blocks_move.
8921 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
8922 (merge_blocks_nomove): Rename to rtl_merge_blocks.
8923 (cfg_layout_create_basic_block): New.
8924 (rtl_can_merge_blocks): New.
8925 (cfg_layout_split_block): Do not alloc aux by hand.
8926 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
8927 merge_blocks.
8928 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
8929 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
8930 * cfgloopmanip.c (loop_split_edge_with): Likewise.
8931 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
8932
8933 * basic-block.h (basic_block_def): Add field 'rbi'.
8934 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
8935 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
8936 * cfg.c (entry_exit_blocks): Add new field.
8937 * cfglayout.c: Include alloc-pool.h;
8938 (cfg_layout_pool): New.
8939 (record_effective_endpoints, fixup_reorder_chain,
8940 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
8941 of rbi.
8942 (cfg_layout_initialize_rbi): New function.
8943 (cfg_layout_initialize): Use it.
8944 (cfg_layout_finalize): Clear rbi fields.
8945 * cfglayout.h (RBI): Kill.
8946 (cfg_layout_initialize_rbi): Declare.
8947 * cfgloopmanip.c (copy_bbs): Use rbi.
8948 (record_exit_edges): Likewise.
8949 (duplicate_loop_to_header_edge): Likewise.
8950 * cfgrtl.c (cfg_layout_create_basic_block): Use
8951 cfg_layout_initialize_rbi.
8952 (cfg_layout_split_block): Use rbi.
8953 (cfg_layout_delete_block): Likewise.
8954 * loop-init.c (loop_optimizer_finalize): Likewise.
8955 * loop-unswitch.c (unswitch_loop): Likewise.
8956 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
8957
8958 * cfgrtl.c: Update comments.
8959 (try_redirect_by_replacing_jump): New argument.
8960 (redirect_branch_edge): Break out from ...
8961 (rtl_redirect_edge_and_branch): ... this one.
8962 (update_cfg_after_block_merging): Break out from ...
8963 (rtl_merge_blocks): ... this one.
8964 (cfg_layout_split_edge): New.
8965 (cfg_layout_merge_blocks): New.
8966 (cfg_layout_can_merge_blocks_p): New.
8967 (cfg_layout_redirect_edge_and_branch): Reorganize.
8968 (cfg_layout_rtl_cfg_hooks): Fill in.
8969 (cfg_layout_delete_block): Kill barriers.
8970 * cfganal.c (can_fallthru): Deal with exit blocks
8971 * cfglayout.c (cfg_layout_function_header): New function
8972 (record_effective_endpoints): Record function header.
8973 (fixup_reorder_chain): Fixup dead jumptables; place header
8974
8975 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
8976 * bb-reorder.c (cfg_layout_initialize): Update call.
8977 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
8978 edges in cfglayout mode.
8979 * cfglayout.c (cleanup_unconditional_jumps): Kill.
8980 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
8981 * cfglayout.h (cfg_layout_initialize): Update prototype.
8982 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
8983 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
8984 * flow.c (propagate_block): Do not crash when basic block ends
8985 by first insn in the chain.
8986 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
8987 do loop discovery.
8988 * tracer.c (tracer): Update call of cfg_layout_initialize.
8989
8990 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8991
8992 * Makefile.in: Use dependency variables in lieu of explicit
8993 files throughout.
8994
8995 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
8996
8997 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
8998 * tree.h: ...to here.
8999
9000 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
9001
9002 * config/s390/2064.md: Fix comment typos.
9003 * config/s390/2084.md: Likewise.
9004 * config/s390/s390.c: Likewise.
9005 * config/s390/s390.md: Likewise.
9006 * config/sh/sh.c: Likewise.
9007 * config/sh/sh.h: Likewise.
9008 * config/sh/sh.md: Likewise.
9009 * config/sparc/sparc.c: Likewise.
9010 * config/sparc/sparc.h: Likewise.
9011 * config/sparc/sparc.md: Likewise.
9012 * config/stormy16/stormy16.c: Likewise.
9013 * config/stormy16/stormy16.h: Likewise.
9014 * config/stormy16/stormy-abi: Fix a typo.
9015
9016 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
9017
9018 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
9019
9020 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9021
9022 * config/mips/mips.h (save_argv): Delete.
9023
9024 2003-07-03 Roger Sayle <roger@eyesopen.com>
9025
9026 PR target/10700
9027 * fold-const.c (extract_muldiv_1): There's nothing that can be done
9028 if the expression is a SAVE_EXPR.
9029
9030 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
9031
9032 * config/m32r/m32r.c: Fix comment typos.
9033 * config/m68hc11/m68hc11.c: Likewise.
9034 * config/m68hc11/m68hc11.h: Likewise.
9035 * config/m68k/m68k.c: Likewise.
9036 * config/mcore/mcore.c: Likewise.
9037 * config/mcore/mcore.h: Likewise.
9038 * config/mcore/mcore.md: Likewise.
9039 * config/mips/mips.c: Likewise.
9040 * config/mips/mips.h: Likewise.
9041 * config/mips/mips.md: Likewise.
9042 * config/mips/netbsd.h: Likewise.
9043 * config/mn10300/mn10300.c: Likewise.
9044
9045 2003-07-03 Andreas Schwab <schwab@suse.de>
9046
9047 * dbxout.c (pending_bincls): Move decl down inside
9048 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
9049
9050 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
9051
9052 * rtl.h (NOTE_DATA): Refer to whole union.
9053 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
9054
9055 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
9056
9057 PR optimization/11381
9058 * simplify-rtx.c (simplify_relational_operation): Check that
9059 two equal operands have no side-effects before simplifying
9060 the comparison.
9061
9062 2003-07-02 Jeff Law <law@redhat.com>
9063
9064 * expr.c (do_store_flag): Remove special case folding for
9065 single bit tests. Instead call back into the commonized folder
9066 routine.
9067 * fold-const.c (fold_single_bit_test): New function, mostly
9068 extracted from do_store_flag, with an additional case extracted
9069 from fold.
9070 (fold): Call fold_single_bit_test appropriately.
9071 * tree.h (fold_single_bit_test): Prototype.
9072
9073 2003-07-02 Zack Weinberg <zack@codesourcery.com>
9074
9075 * system.h: Include filenames.h.
9076 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
9077 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
9078 define based on HAVE_DOS_BASED_FILE_SYSTEM.
9079 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
9080 * config/i386/xm-mingw32.h: Don't define
9081 HAVE_DOS_BASED_FILE_SYSTEM,
9082 DIR_SEPARATOR, or DIR_SEPARATOR_2.
9083 * doc/hostconfig.texi: Update to match.
9084
9085 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
9086 config/i386/cygwin.h:
9087 Use IS_ABSOLUTE_PATH throughout.
9088 * gcc.c (DIR_UP): Delete, unused.
9089 * protoize.c (IS_SAME_PATH): Define in terms of
9090 FILENAME_CMP.
9091 (is_abspath): Delete.
9092
9093 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
9094
9095 * config/i386/emmintrin.h: Fix comment typos.
9096 * config/i386/i386.c: Likewise.
9097 * config/i386/i386.h: Likewise.
9098 * config/i386/sco5.h: Likewise.
9099 * config/ia64/ia64.c: Likewise.
9100 * config/ia64/itanium2.md: Likewise.
9101
9102 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
9103
9104 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
9105 DBX_USE_BINCL.
9106 (emit_bincl_stab): Same.
9107 (emit_pending_bincls): Same.
9108
9109 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
9110
9111 * config/h8300/h8300.c (compute_mov_length): Fix the length of
9112 loading CONST0_RTX (SFmode).
9113 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
9114 'G' to CONST0_RTX (SFmode).
9115 * config/h8300/h8300.md (movsf_h8300): Change the first
9116 constraint to 'G'.
9117 (movsf_h8300h): Likewise.
9118
9119 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
9120
9121 * c-common.h (c_common_init_options): New prototype.
9122 * c-opts.c (deferred_size): Remove.
9123 (defer_opt): Array is now pre-allocated.
9124 (c_common_init_options): Pre-allocate deferred_opts. Make
9125 lang_flags unsigned.
9126 (push_command_line_options): Free deferred_opts.
9127 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
9128 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
9129 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
9130 * langhooks.h (struct lang_hooks): New prototype for init_options.
9131 * main.c (main): Cast argv.
9132 * opts.c (handle_option, handle_options): Update prototypes.
9133 (decode_options): save_argc, save_argv are not global. Constify.
9134 * opts.h (decode_options): New prototype.
9135 * toplev.c (general_init): New protoype.
9136 (save_argv): Make static.
9137 (save_argc): Remove.
9138 (print_switch_values, general_init): Constify.
9139 (toplev_main): Save argv.
9140 * toplev.h (toplev_main): Update prototype.
9141 (save_argc, save_argv): Remove.
9142
9143 2003-07-02 David Edelsohn <edelsohn@gnu.org>
9144
9145 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
9146 (emit_bincl_stab): Same.
9147 (emit_pending_bincls): Same.
9148
9149 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
9150
9151 PR c++/11072
9152 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
9153
9154 2003-07-02 Andreas Schwab <schwab@suse.de>
9155
9156 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
9157
9158 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
9159
9160 PR optimization/11210
9161 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
9162 about the behaviour with regard to bitfields.
9163 * fold-const (decode_field_reference): Record outermost type in
9164 case the expression is a NOP. Strip all NOPs. Set the signedness
9165 to that of the outermost type (if any) when the bitsize is equal
9166 to the size of the type.
9167
9168 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
9169
9170 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
9171 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
9172 (adddi3_internal_3, addsi3_internal_2): Likewise.
9173
9174 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
9175
9176 * config/mips/mips.c (machine_function): Add new fields:
9177 ignore_hazard_length_p and all_noreorder_p.
9178 (mips_flag_delayed_branch): New variable.
9179 (override_options): Treat '/' as an operand punctuation character.
9180 Set up mips_flag_delayed_branch.
9181 (print_operand): Handle '/'.
9182 (mips_output_function_prologue): Put the whole function in
9183 .set noreorder and .set nomacro if all_noreorder_p is true.
9184 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
9185 (mips16_optimize_gp): Remove "first insn" parameter.
9186 (mips16_lay_out_constants): New function, split out from mips_reorg.
9187 (mips_avoid_hazard, mips_avoid_hazards): New functions.
9188 (mips_reorg): For mips16 code, call mips16_lay_out_constant
9189 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
9190 do delayed-branch scheduling followed by hazard detection.
9191 (mips_adjust_insn_length): Only account for hazards if
9192 !ignore_hazard_length_p.
9193 (mips_output_load_label): Add a nop to the o32 sequence if
9194 the target suffers from load delays.
9195 (mips_output_conditional_branch): Add %/ to the end of branches.
9196 (mips_output_division): Fill the branch delay slot with %#.
9197 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
9198 instructions. End all other %* branches with %/.
9199 (ffssi2, ffsdi2): Fix lengths.
9200 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
9201 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
9202 (fix_truncsfsi2_macro): Likewise.
9203 (mov_lwl): Set hazard to "none".
9204 (ashldi3_internal): Fill the branch delay slot with %#.
9205 (ashrdi3_internal, lshrdi3_internal): Likewise.
9206 (exception_receiver): Explicitly set $28.
9207 (hazard_nop): New pattern.
9208
9209 2003-07-02 Jan Hubicka <jh@suse.cz>
9210
9211 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
9212 before calling tree_inlinable_function_p.
9213
9214 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9215
9216 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
9217 <internal/stdio_core.h> too.
9218 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
9219 <internal/wchar_core.h> too.
9220 Substitute va_list uses in inline definition.
9221 * fixinc/fixincl.x: Regenerate.
9222
9223 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9224
9225 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
9226 Undef before redefinition.
9227 (LABEL_AFTER_LOC): Likewise.
9228 (DEFAULT_SIGNED_CHAR): Likewise.
9229 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
9230 Fix IRIX spelling.
9231
9232 * config/mips/iris3.h: Remove, unused.
9233 * config/mips/iris4.h: Likewise.
9234
9235 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
9236
9237 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
9238 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
9239 target_cpu_default.
9240
9241 * config/mips/iris5.h: Move explicit includes ...
9242 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
9243
9244 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
9245 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
9246 tm_defines.
9247
9248 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
9249 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
9250 target_cpu_default.
9251
9252 * config/mips/iris6.h: Fix IRIX spelling.
9253 (MULTILIB_DEFAULTS): Undef before redefinition.
9254
9255 * config/mips/iris6.h: Move explicit includes ...
9256 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
9257
9258 2003-07-02 Jan Hubicka <jh@suse.cz>
9259
9260 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
9261 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
9262 Use next_needed field instead of aux to maintain the queue.
9263 * cgraph.h (cgraph_node): Add next_needed.
9264 (cgraph_varpool_node): Add next_needed; remove aux.
9265 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
9266
9267 2003-07-02 Jan Hubicka <jh@suse.cz>
9268
9269 * cgraphunit.c (cgraph_finalize_function): Set finalized.
9270 (cgraph_finalize_function): Do not examine inlinablility.
9271 (cgraph_finalize_compilation_unit): Do it here.
9272 * cgraph.h (cgraph_local_info): Add finalized field.
9273
9274 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9275
9276 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
9277 (gt_pch_restore): Likewise.
9278
9279 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
9280
9281 * config/alpha/alpha.c: Fix comment typos.
9282 * config/alpha/elf.h: Likewise.
9283 * config/arm/arm.c: Likewise.
9284 * config/arm/arm.h: Likewise.
9285 * config/arm/arm.md: Likewise.
9286 * config/arm/t-arm-coff: Likewise.
9287 * config/arm/t-strongarm-pe: Likewise.
9288 * config/arm/xscale-elf.h: Likewise.
9289 * config/avr/avr.h: Likewise.
9290
9291 2003-07-01 Jeff Law <law@redhat.com>
9292
9293 * stmt.c (any_pending_cleanups): Remove another redundant test.
9294
9295 2003-07-01 David Edelsohn <edelsohn@gnu.org>
9296 J"orn Rennecke <joern.rennecke@superh.com>
9297
9298 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
9299 for MEM case.
9300
9301 2003-07-01 Devang Patel <dpatel@apple.com>
9302
9303 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
9304 (binclstatus): New.
9305 (struct dbx_file): New members - bincl_status, pending_bincl_name and
9306 prev.
9307 (pending_bincls): New.
9308 (dbxout_init): Initialize new dbx_file members.
9309 (dbxout_start_source_file): Same.
9310 (emit_bincl_stab): New function.
9311 (emit_pending_bincls): Same.
9312 (emit_pending_bincls_if_required): Same.
9313 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
9314 processed.
9315 (dbxout_begin_block): Emit pending BINCL stabs.
9316 (dbxout_end_block): Same.
9317 (dbxout_function_decl): Same.
9318 (dbxout_continue): Same.
9319 (dbxout_type): Same.
9320 (dbxout_class_name_qualifiers): Same.
9321 (dbxout_symbol): Same.
9322 (dbxout_symbol_location): Same.
9323 (dbxout_parms): Same.
9324
9325 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9326
9327 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
9328 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
9329
9330 2003-07-01 Andreas Jaeger <aj@suse.de>
9331
9332 * fold-const.c: Convert prototypes to ISO C90.
9333 * function.c: Likewise.
9334 * function.h: Likewise.
9335
9336 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
9337
9338 * doc/contrib.texi: Fix typos.
9339 * doc/invoke.texi: Likewise.
9340 * doc/passes.texi: Likewise.
9341 * doc/sourcebuild.texi: Likewise.
9342 * doc/tm.texi: Likewise.
9343
9344 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
9345
9346 * basic-block.h: Fix comment typos.
9347 * bb-reorder.c: Likewise.
9348 * c-format.c: Likewise.
9349 * cfgcleanup.c: Likewise.
9350 * cfghooks.h: Likewise.
9351 * cfgloop.c: Likewise.
9352 * cfgloopmanip.c: Likewise.
9353 * cfgrtl.c: Likewise.
9354 * cgraph.h: Likewise.
9355 * cgraphunit.c: Likewise.
9356 * combine.c: Likewise.
9357 * convert.c: Likewise.
9358 * dbxout.c: Likewise.
9359 * df.c: Likewise.
9360 * df.h: Likewise.
9361 * diagnostic.c: Likewise.
9362 * dwarf2out.c: Likewise.
9363 * et-forest.h: Likewise.
9364 * flow.c: Likewise.
9365 * fold-const.c: Likewise.
9366 * function.h: Likewise.
9367 * gcov-io.h: Likewise.
9368 * gcov.c: Likewise.
9369 * gcse.c: Likewise.
9370 * genautomata.c: Likewise.
9371 * ggc-common.c: Likewise.
9372 * ggc-page.c: Likewise.
9373 * loop-unroll.c: Likewise.
9374 * loop-unswitch.c: Likewise.
9375 * loop.c: Likewise.
9376 * mips-tfile.c: Likewise.
9377 * optabs.c: Likewise.
9378 * ra-build.c: Likewise.
9379 * ra-colorize.c: Likewise.
9380 * ra-rewrite.c: Likewise.
9381 * ra.h: Likewise.
9382 * regmove.c: Likewise.
9383 * reload.c: Likewise.
9384 * rtlanal.c: Likewise.
9385 * sched-ebb.c: Likewise.
9386 * sched-int.h: Likewise.
9387 * sched-vis.c: Likewise.
9388 * sreal.c: Likewise.
9389 * ssa-ccp.c: Likewise.
9390 * ssa.c: Likewise.
9391 * toplev.c: Likewise.
9392 * tree-inline.c: Likewise.
9393 * value-prof.c: Likewise.
9394 * value-prof.h: Likewise.
9395
9396 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
9397
9398 * rtl.h (emit_line_note_after): Remove.
9399 (emit_note_copy_after, emit_note_copy): New.
9400 * emit-rtl.c (reorder_insns_with_line_notes): Replace
9401 emit_line_note_after with emit_note_copy_after.
9402 (emit_insn_after_with_line_notes): Likewise.
9403 (emit_line_note_after): Kill.
9404 (emit_note_copy_after): New.
9405 (emit_note_copy): New.
9406 * function.c (emit_return_into_block): Use emit_note_copy_after.
9407 (thread_prologue_and_epilogue_insns): Likewise.
9408 * integrate.c (expand_inline_function): Use emit_note_copy.
9409 (copy_insn_list): Likewise.
9410 * unroll.c (copy_loop_body): Likewise.
9411 * cfglayout.c (duplicate_insn_chain): Likewise.
9412
9413 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
9414
9415 * c-tree.h (define_label): Replace filename and lineno arguments
9416 with a location_t.
9417 * c-decl.c (poplevel): Adjust define_label call.
9418 (pop_label_level): Likewise.
9419 (define_label): Replace filename and lineno arguments with a
9420 location_t.
9421 (store_parm_decls): Use DECL_SOURCE_LOCATION.
9422 * c-parse.in (label): Adjust define_label call.
9423
9424 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
9425
9426 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
9427 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
9428 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
9429 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
9430 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
9431
9432 2003-07-01 Andreas Jaeger <aj@suse.de>
9433
9434 * final.c: Convert prototypes to ISO C90.
9435 * flow.c: Likewise.
9436 * flags.h: Likewise.
9437 * gcov-io.c: Likewise.
9438 * gcov-io.h: Likewise.
9439
9440 See ChangeLog.9 for earlier changes.