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