* tree.h (get_identifier) Define a macro form of get_identifier
[gcc.git] / gcc / ChangeLog
1 2003-08-08 Roger Sayle <roger@eyesopen.com>
2
3 * tree.h (get_identifier) Define a macro form of get_identifier
4 that calls get_identifier_with_length when the string is constant.
5 (get_identifier_with_length): Change type of second argument to
6 size_t in prototype.
7 * stringpool.c (get_identifier): Undefine the macro before giving
8 the function definition.
9 (get_identifier_with_length): Change type of second argument to
10 size_t in function definition.
11 * hashtable.c (calc_hash): Change type of second argument to size_t.
12 (ht_lookup): Change type of third argument to size_t. Reorganize
13 to speed-up the cases where the hash table slot is empty, or the
14 first probe matches (i.e. there isn't a collision).
15 * hashtable.h (ht_lookup): Adjust function prototype.
16
17 2003-08-08 Bernardo Innocenti <bernie@develer.com>
18
19 PR target/9697
20 PR target/11777
21 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
22
23 2003-08-08 Neil Booth <neil@daikokuya.co.uk>
24
25 * common.opt: Add debug switches.
26 * flags.h (use_gnu_debug_info_extensions): Boolify.
27 * opts.c (write_symbols, debug_info_level,
28 use_gnu_debug_info_extensions): Move from toplev.c.
29 (set_debug_level): New.
30 (common_handle_options): Handle debug switches.
31 (print_help): Display target options directly.
32 * toplev.c (debug_hooks): Don't initialize.
33 (write_symbols, debug_info_level,
34 use_gnu_debug_info_extensions): Move to opts.c.
35 (debug_args, display_help, decode_g_option): Remove.
36 (process_options): Set no debug if level zero here,
37 and no-debug-hooks. Error here if impossible debug format selected.
38 * toplev.h (display_help, decode_g_option): Remove.
39
40 2003-08-08 Richard Sandiford <rsandifo@redhat.com>
41
42 * tree.c (get_file_function_name_long): Fix size of alloca() area.
43
44 2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
45
46 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
47 and gcc_cv_prog_cmp_skip.
48 * configure: Regenerate.
49
50 2003-08-08 Stan Cox <scox@redhat.com>
51
52 * config/iq2000: New port.
53 * config.gcc (iq2000-*-elf): Added.
54 * doc/install.texi (Specific): Add iq2000 description.
55
56 2003-08-08 Andreas Schwab <schwab@suse.de>
57
58 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
59 and insert missing empty argument.
60 * configure: Regenerate.
61
62 2003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
63
64 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
65 (attr_length_millicode_call): Likewise.
66 (attr_length_call): Likewise. Revise some maximum insn lengths.
67 (attr_length_indirect_call): Likewise.
68 (output_call): Fix thinko that added extra nop.
69 * pa.h (IN_NAMED_SECTION_P): Define.
70
71 PR c++/11712
72 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
73 __STDC_EXT__ when using C++ dialect.
74
75 2003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
76
77 * sh.c (calc_live_regs): If the return address pointer is live,
78 force pr live.
79 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
80 for saves / restores.
81 (sh_expand_epilogue): If sh_media_register_for_return returns a
82 register number, flag the instructions that restores PR_MEDIA_REG
83 as possibly dead.
84 Remove dead update of offset.
85 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
86 we can use the result of get_hard_reg_initial_val.
87 * sh.md (UNSPEC_RA): New constant.
88 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
89 (load_ra). Handle UNSPEC_RA.
90 (sibcall_media): Use PR_MEDIA_REG.
91
92 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
93 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
94 needs saving on SHmedia.
95
96 2003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
97
98 * config/s390/s390.md: Replace all occurrences of \\t with \t.
99
100 2003-08-07 Richard Sandiford <rsandifo@redhat.com>
101
102 * local-alloc.c (combine_regs): Fix comment typo.
103
104 2003-08-06 Zack Weinberg <zack@codesourcery.com>
105
106 * c-decl.c (builtin_decls): Replace with first_builtin_decl
107 and last_builtin_decl.
108 (c_init_decl_processing): Initialize both.
109 (c_reset_state): Iterate from first_builtin_decl to
110 last_builtin_decl inclusive to reintroduce builtins.
111
112 2003-08-06 David Mosberger <davidm@hpl.hp.com>
113
114 * doc/extend.texi (Function Attributes): Document the IA-64 version
115 of the "model" attribute.
116
117 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
118 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
119 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
120
121 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
122 (ia64_encode_section_info): Likewise.
123 (ia64_attribute_table): Add "model" attribute.
124 (TARGET_ENCODE_SECTION_INFO): Define.
125 (small_addr_symbolic_operand): New function.
126 (got_symbolic_operand): Return 0 for a symbolref to an object
127 in the small address area.
128 (enum ia64_addr_area): New type.
129 (small_ident1): New variable.
130 (small_ident2): Likewise.
131 (init_idents): New function.
132 (ia64_get_addr_area): Likewise.
133 (ia64_encode_addr_area): Likewise.
134 (ia64_encode_section_info): Likewise.
135 (ia64_expand_load_address): For symbolic references to objects in
136 the small-address-area, load the address via gen_rtx_SET() (which,
137 eventually, will expand into "addl").
138
139 2003-08-06 Per Bothner <pbothner@apple.com>
140
141 * line-map.h (fileline): New typedef.
142 (struct line_map, linemap_add, linemap_lookup): Use it.
143 * input.h (struct location_s): Comment notes that long-term we want
144 to replace it by fileline.
145
146 2003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
147
148 Fix SHcompact exception handling:
149 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
150 by the prologue, return a MEM with return_address_pointer_rtx
151 as address.
152 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
153 (RETURN_ADDR_OFFSET): Don't define.
154 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
155 registers that are visible in compact mode. Show that SHmedia
156 registers still exist in compact mode, even if there are not
157 readily accessible.
158 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
159 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
160 and DW_EH_PE_pcrel for pic data.
161 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
162 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
163 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
164 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
165 * sh.md (movsi_media-1): New splitter.
166
167 2003-08-06 Graeme Peterson <gp@qnx.com>
168
169 * config/i386/nto.h: New.
170 * config/i386/t-nto: New.
171 * config.gcc (i[34567]86-*-nto-qnx*): New.
172
173 2003-08-06 Phil Edwards <pme@gcc.gnu.org>
174
175 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
176
177 2003-08-06 Alan Modra <amodra@bigpond.net.au>
178
179 * calls.c (load_register_parameters): Arrange for call_fusage to
180 report the whole register as used when shifting to the msb.
181
182 2003-08-05 Roger Sayle <roger@eyesopen.com>
183
184 * builtins.c (expand_builtin): When not optimizing, call the library
185 function for all builtins that have library functions (except alloca).
186
187 2003-08-05 Alexandre Oliva <aoliva@redhat.com>
188
189 * c.opt: Introduce -fworking-directory.
190 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
191 * c-common.h (flag_working_directory): Declare.
192 * c-common.c (flag_working_directory): Define.
193 * c-opts.c (c_common_handle_options): Set it.
194 (sanitize_cpp_opts): Set...
195 * cpplib.h (struct cpp_options): ... working_directory option.
196 (struct cpp_callbacks): Add dir_change.
197 * cppinit.c (read_original_filename): Call...
198 (read_original_directory): New. Look for # 1 "directory//"
199 and process it.
200 (cpp_read_main_file): Call dir_change callback if working_directory
201 option is set.
202 * gcc.c (cpp_unique_options): Pass -g*.
203 * c-lex.c (cb_dir_change): New.
204 (init_c_lex): Set dir_change callback.
205 * toplev.c (src_pwd): New static variable.
206 (set_src_pwd, get_src_pwd): New functions.
207 * toplev.h (get_src_pwd, set_src_pwd): Declare.
208 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
209 * dwarf2out.c (gen_compile_unit_die): Likewise.
210 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
211
212 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
213
214 * pretty-print.h (pp_set_line_maximum_length): Make macro.
215 (pp_set_prefix): Likewise.
216 (pp_destroy_prefix): Likewise.
217 (pp_remaining_character_count_for_line): Likewise.
218 (pp_clear_output_area): Likewise.
219 (pp_formatted_text): Likewise.
220 (pp_last_position_in_text): Likewise.
221 (pp_emit_prefix): Likewise.
222 (pp_append_text): Likewise.
223 (pp_flush): Likewise.
224 (pp_format_text): Likewise.
225 (pp_format_verbatim): Likewise.
226 (pp_tree_identifier): Tidy.
227 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
228 (pp_base_format_verbatim): Rename from pp_format_verbatim.
229 (pp_base_flush): Rename from pp_flush.
230 (pp_base_set_line_maximum_length): Rename from
231 pp_set_line_maximum_length.
232 (pp_base_clear_output_area): Rename from pp_clear_output_area.
233 (pp_base_set_prefix): Rename from pp_set_prefix.
234 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
235 (pp_base_emit_prefix): Rename from pp_emit_prefix.
236 (pp_base_append_text): Rename from pp_append_text.
237 (pp_base_formatted_text): Rename from pp_formatted_text.
238 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
239 (pp_base_remaining_character_count_for_line): Rename from
240 pp_remaining_character_count_for_line.
241 * diagnostic.h (diagnostic_format_decoder): Tidy.
242 (diagnostic_flush_buffer): Likewise.
243 * c-pretty-print.h: (pp_c_string_literal): Declare.
244 (pp_c_real_literal): Likewise.
245 (pp_c_integer_literal): Likewise.
246 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
247 pp_identifier.
248 (pp_c_character_literal): Tidy.
249 (pp_c_string_literal): Make public.
250 (pp_c_bool_literal): Likewise.
251 (pp_c_integer_literal): Likewise.
252 (pp_c_real_literal): Likewise.
253
254 * Makefile.in (C_PRETTY_PRINT_H): New variable.
255 (c-pretty-print.o): Update dependence.
256
257 2003-08-05 Chris Demetriou <cgd@broadcom.com>
258
259 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
260 ".set nomacro" state.
261 (fix_truncsfsi2_macro): Likewise.
262
263 2003-08-05 Steven Bosscher <steven@gcc.gnu.org>
264
265 * tree.h (DID_INLINE_FUNC): Remove macro.
266 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
267 add tree check for FUNCTION_DECL.
268 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
269 (struct tree_decl): Rename inlined_function_flag to
270 declared_inline_flag.
271 * c-common.h (c_lang_decl): Remove.
272 (DECL_ESTIMATED_INSNS): Remove.
273 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
274 (DECL_DECLARED_INLINE_P): Remove.
275 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
276 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
277 (finish_function): Make uninlinable a bool. Fixup call to
278 tree_inlinable_function_p() and fix some code style issues.
279 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
280 * cgraph.c (dump_cgraph): Likewise.
281 * cgraphunit.c (cgraph_decide_inlining): Likewise
282 (cgraph_finalize_compilation_unit): Likewise.
283 Also update call to tree_inlinable_function_p().
284 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
285 look at DECL_DECLARED_INLINE and reverse logic.
286 * print-tree.c (print_node): Likewise.
287 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
288 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
289 prototype.
290 * tree-inline.c (inlinable_function_p): Split up in this function to
291 check for basic inlining inhibiting conditions, and new
292 limits_allow_inlining() function. Warn if inlining is impossible
293 because the inline candidate calls alloca or uses sjlj exceptions.
294 (limits_allow_inlining): this new function to check if the inlining
295 limits are satisfied. Throttle from currfn_max_inline_insns, not from
296 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
297 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
298 Update prototypes.
299 (tree_inlinable_function_p): Make a bool. Update call to
300 inlinable_function_p
301 (expand_call_inline): Use limits_allow_inlining() when not in
302 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
303 instead see if the function was declared `inline'.
304
305 2003-08-05 Josef Zlomek <zlomekj@suse.cz>
306
307 * gcse.c (try_replace_reg): Fix updating of note.
308
309 2003-08-04 Roger Sayle <roger@eyesopen.com>
310
311 PR middle-end/11771
312 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
313 logic in negate_expr, i.e. we don't invert (A-B) for floating
314 point types unless flag_unsafe_math_optimizations.
315
316 2003-08-04 Roger Sayle <roger@eyesopen.com>
317
318 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
319 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
320 for floating point expressions with -ffast-math.
321 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
322 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
323
324 2003-08-04 Roger Sayle <roger@eyesopen.com>
325
326 * c-common.c (flag_noniso_default_format_attributes): Delete.
327 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
328 (c_attrs_initialized): Delete.
329 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
330 always call c_init_attributes.
331 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
332 set c_attrs_initialized when done.
333 (c_common_insert_default_attributes): Delete.
334 * c-common.h (flag_noniso_default_format_attributes): Delete.
335 (c_coomon_insert_default_attributes): Delete prototype.
336 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
337 flag_noniso_default_format_attributes.
338
339 * c-decl.c (c_insert_default_attributes): Delete.
340 * c-tree.h (c_insert_default_attributes): Delete prototype.
341
342 * attribs.c (decl_attributes): Don't call insert_default_attributes
343 langhook. Update function description comment.
344 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
345 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
346 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
347 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
348
349 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
350 define.
351
352 2003-08-04 Richard Sandiford <rsandif@redhat.com>
353
354 * config/mips/mips.c (override_options): Disable -G on targets that
355 have no .section support.
356 (mips_select_section): Use default_select_section for such targets.
357
358 2003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
359
360 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
361 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
362 * fixinc/fixincl.x: Rebuild.
363 * fixinc/tests/base/regexp.h: New test.
364
365 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
366
367 * c-ppoutput.c (cb_line_change): Don't skip line changing while
368 parsing macro arguments in the top-level context.
369
370 2003-08-04 Neil Booth <neil@daikokuya.co.uk>
371
372 * config.in: Remove HAVE_LSTAT.
373 * configure, configure.in: Don't test for lstat.
374
375 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
376
377 * opts.c (decode_options): Do language-specific initialization for
378 the global diagnostic context.
379 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
380 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
381 (LANG_HOOKS_INITIALIZER): Adjust.
382 * langhooks.h (struct lang_hooks): Add new field
383 initialize_diagnostics.
384 * langhooks.c (lhd_initialize_diagnostics): Define.
385
386 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
387
388 * pretty-print.h: Adjust macro definitions.
389 * pretty-print.c (pp_newline): Rename to pp_base_newline.
390 (pp_character): Rename to pp_base_character.
391 (pp_string): Rename to pp_base_string.
392 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
393 (pp_newline): Likewise. Adjust.
394 (pp_c_char): Adjust.
395
396 2003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
397
398 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
399 BUILT_IN_LLABS): Move to miscellaneous section.
400
401 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
402
403 PR preprocessor/11534
404 * cppexp.c (parse_defined): Warn only if -pedantic.
405
406 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
407
408 * cppfiles.c (stack_file): Use file path.
409
410 2003-08-02 Roger Sayle <roger@eyesopen.com>
411
412 * builtin-types.def (BT_SSIZE): New primitive type.
413 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
414 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
415 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
416 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
417 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
418 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
419 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
420 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
421 few functions that define default attributes using it.
422 * c-common.c (c_common_insert_default_attributes): Do nothing.
423
424 * doc/extend.texi: Document these "new" builtins.
425
426 2003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
427
428 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
429 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
430 when -mieee-fp set and -shared not set.
431 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
432
433 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
434
435 * cppfiles.c (struct _cpp_file): Rename once_only_next to
436 next_file. Remove import and pragma_once, add once_only.
437 (find_file): Add new file structures to the all_files list.
438 (should_stack_file): Mark #import-ed files once-only, and
439 don't stack them if the file has already been stacked.
440 (_cp_mark_file_once_only): Simplify.
441 * cpphash.h (struct cpp_reader): Rename once_only_files
442 to all_files. Rename saw_pragma_once to seen_once_only.
443 (_cpp_mark_file_once_only): Update prototype.
444 * cpplib.c (do_pragma_once): Update.
445
446 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
447
448 * cppfiles.c (ENOTDIR): Remove.
449 (open_file_in_dir): Rename find_file_in_dir. Handle errors
450 other than ENOENT here.
451 (once_only_file_p): Rename should_stack_file.
452 (find_file, open_file_failed, read_file_guts): Report errors
453 with full path name.
454 (read_file): Move pch handling to should_stack_file.
455 (should_stack_file): Handle PCH and once-only issues, and
456 reading the file.
457 (stack_file): Don't do file reads.
458
459 2003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
460
461 * libgcov.c (gcov_exit): Cleanup and fix.
462 * profile.c (compute_value_histograms): Don't try to read profiles
463 that are not present.
464
465 2003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
466
467 * builtins.def: Categorize.
468
469 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
470 Mind fp rounding.
471 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
472
473 2003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
474
475 * config.gcc: Enable posix threads by default on darwin.
476
477 2003-08-01 Jakub Jelinek <jakub@redhat.com>
478
479 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
480 even if nehedges1 is 0.
481
482 2003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
483
484 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
485 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
486 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
487 and defintions.
488
489 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
490 * fixinc/fixincl.x: Regenerate.
491 * fixinc/tests/base/math.h: Regenerate to match test_text change.
492
493 2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
494
495 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
496
497 2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
498
499 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
500 for accesses to exc_ptr.
501
502 2003-08-01 Geoffrey Keating <geoffk@apple.com>
503
504 * doc/sourcebuild.texi (Front End Directory): Don't make references
505 to libsubdir, it's not part of the interface to frontends.
506 * doc/install.texi (Configuration): Help users read faster by saying
507 that GCC's configure options are the standard autoconf ones.
508 Mention --libdir. Update the default rules for finding the
509 assembler. Don't use libsubdir since we haven't said what it means.
510 (Specific): In the Solaris 7 notes, update the place to put the
511 assembler.
512 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
513 * doc/cpp.texi (Search Path): Actually, the search path
514 depends on libdir, which can relocate with cpp.
515 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
516 now a private interface between the Makefile and the driver.
517
518 2003-08-01 Richard Henderson <rth@redhat.com>
519
520 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
521
522 * varasm.c (lookup_constant_def): New function.
523 * rtl.h (lookup_constant_def): Declare it.
524 * dwarf2out.c (loc_descriptor_from_tree): Use it.
525 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
526
527 2003-08-01 Zack Weinberg <zack@codesourcery.com>
528
529 * c-decl.c (gettags, pushdecl_function_level): Delete.
530 (last_function_parm_vars): Rename last_function_parm_others.
531 (current_function_parm_vars): Rename current_function_parm_others.
532 (struct c_scope): Rewrite comment explaining this data structure.
533 Add names_last, blocks_last, parms_last fields. Rename
534 incomplete_list to incomplete.
535 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
536 (poplevel): Ignore second argument. No need to nreverse
537 anything. Restructure such that each list is processed
538 exactly once. Use 'const location_t *locus' syntactic sugar
539 variable where useful. Issue unused variable warnings
540 ourselves, do not rely on function.c.
541 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
542 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
543 (implicitly_declare): decl cannot be error_mark_node.
544 (undeclared_variable): Manipulate scope structure directly.
545 (c_make_fname_decl): Likewise.
546 (getdecls, c_init_decl_processing): Fix comment.
547 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
548 for 'last' variable.
549 (grokparms): No need to nreverse parms list.
550 (store_parm_decls_newstyle): Set up the parms_last and
551 names_last fields of the new scope too.
552 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
553 on parms to begin with; check this under ENABLE_CHECKING. Set
554 up parms_last.
555 (check_for_loop_decls): Refer directly to current_scope->tags.
556 Use consistent quote style in diagnostics.
557 (c_write_global_declarations): The names list is not backward.
558
559 * c-common.h: Don't prototype gettags.
560 * c-parse.in: Call poplevel with second argument 0 always.
561
562 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
563
564 * builtins.def: Resort builtins.
565
566 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
567
568 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
569 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
570 Prepend "__builtin_" onto NAME with string concatenation. Remove
571 explicit "__builtin_" from each macro call.
572
573 Reformat entire file.
574
575 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
576
577 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
578 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
579
580 2003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
581
582 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
583 CCL1, or CCL2 modes with floating point operations.
584
585 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
586 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
587 "*subdf3_cconly"): New insns.
588 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
589
590 2003-08-01 Neil Booth <neil@daikokuya.co.uk>
591
592 * Makefile.in: Refine dependencies.
593 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
594 * c.opt: Update help for -Wimport.
595 * cppfiles.c: Include hashtab.h. Update comments.
596 (stack_file): Read the file before updating dependencies.
597 (once_only_file_p): Be smarter about marking once-only files.
598 (_cpp_mark_file_once_only): Correct the check for existence on
599 the list.
600 (open_file_failed): Use name not path, which is NULL.
601 * cpphash.h: Don't include hashtab.h.
602 (struct _cpp_file): Remove.
603 (struct cpp_reader): Update.
604 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
605 * cpplib.h (struct cpp_options): Remove warn_import.
606 (cpp_simplify_path): Remove.
607
608 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
609
610 PR c++/11295
611 * doc/extend.texi (Statement Expressions): Document C++ semantics.
612
613 2003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
614
615 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
616
617 2003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
618
619 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
620 throughout.
621 * builtins.def: Likewise.
622
623 2003-07-31 Jason Merrill <jason@redhat.com>
624
625 * Makefile.in (bubblestrap): Don't require a previous full
626 bootstrap.
627
628 * expr.c (mostly_zeros_p): No longer static.
629 * tree.h: Declare it.
630 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
631 unless we need to do substitutions.
632
633 2003-07-31 Roger Sayle <roger@eyesopen.com>
634
635 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
636 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
637 as pow(x,2.0) when the latter will be expanded back into x*x.
638 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
639 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
640 pow can never set errno when used with an integer exponent.
641 Always use expand_powi when exponent is -1, 0, 1 or 2.
642 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
643 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
644 the pow forms of these expressions.
645
646 2003-07-31 Geoffrey Keating <geoffk@apple.com>
647
648 * Makefile.in (libexecdir): New.
649 (libsubdir): Use gcc instead of gcc-lib.
650 (libexecsubdir): New.
651 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
652 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
653 gcc-lib.
654 (installdirs): Make libexecsubdir.
655 (install-common): Put executables in libexecsubdir.
656 (itoolsdir): Use libexecsubdir.
657 (itoolsdatadir): New.
658 (install-mkheaders): Separate data files and executables.
659 (install-collect2): Put executables in libexecsubdir.
660 (uninstall): Remove libexecsubdir.
661 * mkheaders.in: Update for new arrangement of files.
662 (libexecdir): New.
663 (libexecsubdir): New.
664 (itoolsdir): Use libexecsubdir.
665 (itoolsdatadir): New.
666 * gcc.c (gcc_libexec_prefix): New.
667 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
668 (standard_exec_prefix_1): Use libexec.
669 (standard_exec_prefix_2): New.
670 (standard_libexec_prefix): New.
671 (process_command): Update for new arrangement of files. Compute
672 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
673
674 2003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
675
676 * inclhack.def (stdio_va_list): Avoid bogus replacement which
677 triggers on Interix.
678 * fixincl.x: Regenerate.
679
680 2003-07-31 Jakub Jelinek <jakub@redhat.com>
681
682 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
683 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
684
685 2003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
686
687 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
688
689 2003-07-31 Per Bothner <pbothner@apple.com>
690
691 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
692 (add_input_filename): New function.
693 (handle_options): Call add_input_filename directly instead of
694 with a lang hook.
695 * opts.h (in_fnames, num_in_fnames): Moved here.
696 (add_input_filename): Declare.
697 * c-decl.c: Need to #include opts.h.
698 * Makefile.in (c-decl.o): Also depends on opts.h.
699 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
700 (c_common_handle_filename): Replaced by add_input_filename.
701 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
702 Remove.
703 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
704 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
705 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
706 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
707
708 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
709
710 * combine.c (try_combine): Set JUMP_LABEL for newly created
711 unconditional jump.
712
713 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
714
715 * fold-const.c (fold): Fold some comparisons of bit operations.
716
717 Thu Jul 31 19:49:53 CEST 2003 Jan Hubicka <jh@suse.cz>
718
719 * cgraph.c (create_edge): Fix typo.
720 * i386.c (pic_symbolic_operand): Reorder tests.
721
722 2003-07-31 Nathan Sidwell <nathan@codesourcery.com>
723
724 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
725 more fully.
726 (Gcov Data Files): Update.
727
728 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
729
730 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
731 default.
732
733 * gthr-posix.c: New file.
734 * gthr-posix.h: Define _REENTRANT if missing.
735 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
736
737 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
738 by gthr-posix.o.
739 * config/alpha/t-osf-pthread: New file.
740
741 * fixinc/inclhack.def (alpha_pthread): New fix.
742 * fixinc/fixincl.x: Regenerate.
743 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
744
745 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
746 warning.
747 Fixes PR bootstrap/9330.
748
749 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
750
751 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
752 without GNU ld.
753 Update comment.
754 * configure: Regenerate.
755
756 2003-07-31 Vladimir Makarov <vmakarov@redhat.com>
757
758 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
759 setter.
760
761 2003-07-30 Roger Sayle <roger@eyesopen.com>
762
763 * builtins.def: Alphabetize.
764
765 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
766
767 * doc/c-tree.texi: Normalize spellings of "lowercase" and
768 "uppercase".
769 * doc/cpp.texi: Likewise.
770 * doc/md.texi: Likewise.
771 * doc/rtl.texi: Likewise.
772 * doc/tm.texi: Likewise.
773
774 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
775
776 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
777 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
778 of cc1obj.
779
780 2003-07-30 Chris Demetriou <cgd@broadcom.com>
781
782 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
783 macros before defining them.
784
785 2003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
786
787 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
788 UNSPECV_BLOCKAGE): New constants.
789 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
790 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
791 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
792 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
793
794 (all insns and expanders): Write output control string as brace block
795 where appropriate. Remove \-escapes for doublequote characters.
796
797 Thu Jul 31 01:04:19 CEST 2003 Jan Hubicka <jh@suse.cz>
798
799 * gcse.c (insert_store): Fix typo in previous patch.
800
801 2003-07-30 Neil Booth <neil@daikokuya.co.uk>
802
803 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
804
805 2003-07-30 Andi Kleen <ak@muc.de>
806
807 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
808
809 2003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
810
811 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
812 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
813 GCOV_N_VALUE_COUNTERS): New.
814 * profile.c (compute_value_histograms): New static function.
815 (branch_prob): Read back the value histograms.
816 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
817 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
818 * value-prof.c: Add comment on reading the profile.
819 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
820 * doc/invoke.texi (-fprofile-values): Document behavior with
821 -fbranch-probabilities.
822
823 2003-07-30 David Edelsohn <edelsohn@gnu.org>
824
825 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
826
827 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
828
829 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
830 symbolically.
831
832 Wed Jul 30 19:12:10 CEST 2003 Jan Hubicka <jh@suse.cz>
833
834 * gcse.c (insert_store): Ignore fake edges.
835
836 * c-common.c (flag_vtable_gc): Kill.
837 * c-common.g (flag_vtable_gc): Kill.
838 * c-opts (c_common_handle_option): Kill.
839 * c.opt (fvtable-gc): Kill.
840 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
841 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
842 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
843
844 * invoke.texi (-ftable-gc): Kill documentation.
845
846 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
847 just because function body is missing.
848
849 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
850
851 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
852
853 * unwind-sjlj.c: Fix typo in file description.
854
855 2003-07-30 Alan Modra <amodra@bigpond.net.au>
856
857 * calls.c (load_register_parameters): When shifting reg sized values
858 to the msb, move the value to a reg first.
859
860 2003-07-29 Geoffrey Keating <geoffk@apple.com>
861
862 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
863 * line-map.h (linemap_add): Update comments.
864 * line-map.c (linemap_add): Update comments, interpret zero-length
865 filename as "<stdin>".
866
867 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
868
869 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
870
871 2003-07-29 Zack Weinberg <zack@codesourcery.com>
872
873 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
874 New static variables.
875 (struct c_scope): Add parms and warned_forward_parm_decls
876 fields; remove parm_order.
877 (storedecls, storetags): Delete.
878 (poplevel): Also clear bindings on the parms chain.
879 (pushdecl): Handle forward declarations of parameters, and
880 chain PARM_DECLs on the parms list, not the names list.
881 (lookup_name_current_level): Check for PARM_DECLs on the parms
882 list too.
883 (push_parm_decl): Don't update parm_order.
884 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
885 warning, only once per parameter list, and set TREE_ASM_WRITTEN
886 on the decls here. Then move the forward decls to the names list.
887 (grokparms): Set last_function_parm_vars.
888 (get_parm_info): Don't use gettags or getdecls. No need to
889 extract non-parms from the parms list, or reorganize the parms
890 list. Feed nonparms back in the TREE_TYPE of the list node
891 returned. Issue only one error per parameter list for "void"
892 appearing more than once in said parameter list. Collapse
893 parmlist_tags_warning into this function to avoid double scan
894 of tags list.
895 (start_function): Set current_function_parm_vars.
896 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
897 directly. Get non-parms from current_function_parm_vars; no
898 need to extract them from the parms chain. Properly bind tags
899 in the new scope.
900 (store_parm_decls_oldstyle): No need to extract non-parameters
901 from the parms chain, nor to store them back afterward. Move
902 declaration to top of function, restructure code reordering
903 DECL_ARGUMENTS.
904 (store_parm_decls): No need to save and restore warn_shadow.
905 * c-parse.in: Don't call parmlist_tags_warning nor
906 clear_parm_order. Call mark_forward_parm_decls when forward
907 parm decls are encountered.
908 * c-tree.h: Prototype mark_forward_parm_decls; not
909 clear_parm_order or parmlist_tags_warning.
910
911 2003-07-29 Geoffrey Keating <geoffk@apple.com>
912
913 * c-common.c (allow_pch): Remove.
914 * c-common.h (allow_pch): Remove.
915 (c_common_no_more_pch): Declare.
916 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
917 * c-pch.c: Include hosthooks.h.
918 (c_common_valid_pch): Don't check allow_pch.
919 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
920 (c_common_no_more_pch): New.
921 * ggc-common.c: Include hosthooks.h.
922 (gt_pch_save): Call gt_pch_get_address.
923 (gt_pch_restore): Call gt_pch_use_address.
924 * hooks.c (hook_voidp_size_t_null): New.
925 (hook_bool_voidp_size_t_false): New.
926 * hooks.h (hook_voidp_size_t_null): New.
927 (hook_bool_voidp_size_t_false): New.
928 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
929 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
930 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
931 HOST_HOOKS_GT_PCH_USE_ADDRESS.
932 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
933 gt_pch_use_address.
934 * doc/hostconfig.texi (Host Common): Document
935 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
936 * Makefile.in (c-pch.o): Depend on hosthooks.h.
937 (ggc-common.o): Likewise.
938
939 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
940 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
941 (pch_address_space): New.
942 (darwin_rs6000_gt_pch_get_address): New.
943 (darwin_rs6000_gt_pch_use_address): New.
944
945 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
946
947 PR preprocessor/11569
948 PR preprocessor/11649
949 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
950 * cppfiles.c: Completely rewritten.
951 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
952 struct cpp_path is now struct cpp_dir.
953 (remove_duplicates): Don't simplify path names.
954 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
955 cpp_stack_file.
956 * cpphash.h: Include hashtab.h.
957 (_cpp_file): Declare.
958 (struct cpp_buffer): struct include_file is now struct _cpp_file,
959 and struct cpp_path is now struct cpp_dir. Rename members.
960 (struct cpp_reader): Similarly. New members once_only_files,
961 file_hash, file_hash_entries, quote_ignores_source_dir,
962 no_search_path, saw_pragma_once. Remove all_include_files and
963 max_include_len. Make some members bool.
964 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
965 (_cpp_stack_file): Renamed from _cpp_read_file.
966 (_cpp_stack_include): Renamed from _cpp_execute_include.
967 (_cpp_init_files): Renamed from _cpp_init_includes.
968 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
969 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
970 (cpp_read_next_file): Rename and move to cppfiles.c.
971 (cpp_read_main_file): Update.
972 * cpplib.c (run_directive): Update for renamed members.
973 (do_include_common, _cpp_pop_buffer): Update.
974 (do_import): Undeprecate #import.
975 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
976 * cpplib.h: Remove file_name_map_list.
977 (cpp_options): Remove map_list.
978 (cpp_dir): Rename from cpp_path. New datatype for name_map.
979 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
980
981 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
982
983 * Makefile.in: Make stamp-objdir safe for parallel builds.
984
985 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
986
987 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
988 (info): Depend on stmp-docobjdir.
989
990 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
991
992 * configure: Regenerate.
993
994 Tue Jul 29 19:24:49 CEST 2003 Jan Hubicka <jh@suse.cz>
995
996 PR C++/11131
997 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
998 in !unit-at-a-time mode.
999
1000 2003-07-28 Geoffrey Keating <geoffk@apple.com>
1001
1002 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
1003 main function.
1004
1005 2003-07-28 Mark Mitchell <mark@codesourcery.com>
1006
1007 PR c++/11667
1008 * c-common.c (shorten_compare): Take into account differences
1009 between C and C++ representation for enumeration types.
1010 * tree.h (set_min_and_max_values_for_integral_type): Declare.
1011 * stor-layout.c (set_min_and_max_values_for_integral_type): New
1012 function, broken out from ...
1013 (fixup_signed_type): ... here and ...
1014 (fixup_unsigned_type): ... here.
1015
1016 2003-07-28 Zack Weinberg <zack@codesourcery.com>
1017
1018 * c-decl.c: Update commentary, adjust blank lines throughout.
1019 (struct c_scope): Fix indentation. Reorder members so
1020 outer-context pointers come first, booleans last.
1021 (duplicate_decls, define_label): Use a 'locus' variable for
1022 diagnostic locations in a few more places.
1023 (warn_if_shadowing): Un-split a conditional that fits on one line.
1024 (c_init_decl_processing): No need to clear current_scope and
1025 current_function_scope.
1026 (start_decl): Merge if/else if statements with same action.
1027 (push_parm_decl): Rename old_immediate_size_expand to use
1028 save_foo convention; save/restore around entire function.
1029 (grokdeclarator): Remove unnecessary braces.
1030
1031 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
1032 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
1033
1034 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
1035 when warn_declaration_after_statement. Call pedwarn_c90, not
1036 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
1037 * c-common.c (warn_declaration_after_statement): Define.
1038 * c-common.h (warn_declaration_after_statement): Declare.
1039 * c.opt (Wdeclaration-after-statement): New.
1040 * c-errors.c (pedwarn_c90): New function.
1041 * c-opts.c (c_common_handle_option) <case
1042 OPT_Wdeclaration_after_statement>: New.
1043 * c-tree.h (pedwarn_c90): Declare.
1044 * doc/invoke.texi (Option Summary): Document
1045 -Wdeclaration-after-statement.
1046 (Warning Options): Ditto.
1047
1048 Mon Jul 28 20:13:06 CEST 2003 Jan Hubicka <jh@suse.cz>
1049
1050 * i386.md (memory attribute) Avoid accessing uninitialized memory
1051 for ishift1 type instructions.
1052
1053 2003-07-28 Jakub Jelinek <jakub@redhat.com>
1054
1055 * configure.in (--enable-checking): Add fold category.
1056 (ENABLE_FOLD_CHECKING): Define if requested.
1057 * configure: Rebuilt.
1058 * config.in: Rebuilt.
1059 * doc/install.texi: Document it.
1060 * fold-const.c: Include md5.h.
1061 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
1062 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
1063 print_fold_checksum): New functions.
1064
1065 * fold-const.c (fold): Never modify argument passed to fold, instead
1066 change a copy and return it.
1067 * convert.c (convert_to_integer): Likewise.
1068
1069 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
1070
1071 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
1072 cleanup of junk after #else and #endif directives. Collapse repeated
1073 clauses into for statment.
1074
1075 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
1076
1077 2003-07-27 Zack Weinberg <zack@codesourcery.com>
1078
1079 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
1080 (keep_next_if_subblocks): Rename next_is_function_body.
1081 (pushlevel): Adjust commentary. Always set ->keep on the
1082 outermost level of a function. Don't set ->keep_if_subblocks.
1083 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
1084 (store_parm_decls): Adjust to match.
1085 (finish_function): Adjust to match.
1086 Call poplevel with all three arguments zero.
1087
1088 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
1089 New functions split out of store_parm_decls.
1090 Avoid unnecessary work. Use local variables consistently.
1091 (store_parm_decls): Likewise.
1092
1093 (finish_function): No need to set functionbody flag on call to
1094 poplevel.
1095 (struct language_function): Remove scope field.
1096 (c_push_function_context, c_pop_function_context): No need to
1097 save and restore current_scope.
1098
1099 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
1100
1101 * doc/extend.texi (Deprecated Features): Implicit typename is
1102 gone. Default args on types is going.
1103
1104 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
1105
1106 * Makefile.in (ifcvt.o): Depend on target.h
1107 * ifcvt.c (target.h): Include.
1108 (if_convert): Don't call mark_loop_exit_edges if we can't
1109 modify jumps.
1110
1111 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1112
1113 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
1114
1115 2003-07-26 Richard Henderson <rth@redhat.com>
1116
1117 PR inline-asm/11676
1118 * cse.c (count_reg_usage): Handle asm_operands properly.
1119
1120 2003-07-26 Roger Sayle <roger@eyesopen.com>
1121
1122 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
1123 (DEF_EXT_FALLBACK_BUILTIN): Delete.
1124 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
1125 the regular DEF_EXT_LIB_BUILTIN macro.
1126 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
1127 the regular DEF_LIB_BUILTIN macro.
1128 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
1129 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
1130 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
1131 DEF_EXT_LIB_BUILTIN macro.
1132
1133 * c-decl.c (duplicate_decls): Remove code to handle builtin
1134 functions prototyped without an argument list.
1135
1136 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
1137
1138 * config/i386/winnt.c: Revert 2003-07-08 change.
1139 (i386_pe_section_type_flags): Remove error_with_decl here too.
1140
1141 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
1142
1143 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
1144 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
1145 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
1146 (v850_handle_data_area_attribute): Likewise.
1147
1148 2003-07-26 Geoffrey Keating <geoffk@apple.com>
1149
1150 * varasm.c (output_constant_def_contents): Use
1151 ASM_DECLARE_CONSTANT_NAME if defined.
1152 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
1153 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
1154 objects get at least one byte to prevent assembler problems.
1155 (ASM_DECLARE_CONSTANT_NAME): New.
1156
1157 * Makefile.in (libbackend.o): Remove options_.h.
1158 (mostlyclean): Likewise.
1159
1160 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
1161 insert a label at the end of an function under Mach-O.
1162
1163 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
1164
1165 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
1166
1167 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
1168 equality.
1169 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
1170
1171 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
1172
1173 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1174
1175 * doc/passes.texi (Passes): Mention pretty-printing and
1176 diagnostic files.
1177
1178 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
1179
1180 * doc/extend.texi (Function Attributes): GNU C++ does now allow
1181 unused parameter decls.
1182 (Attribute Syntax): GNU C++ does not allow label attributes to be
1183 after the ':'.
1184
1185 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1186
1187 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
1188 (objc_declare_class): Likewise.
1189 (error_with_ivar): Likewise.
1190 (start_class): Likewise.
1191 (warn_with_method): Likewise.
1192
1193 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1194
1195 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
1196 from GCC.
1197 * calls.c (try_to_integrate): Don't use xxx_with_decl.
1198 (expand_call): Likewise.
1199 * dwarfout.c (output_reg_number): Likewise.
1200 * expr.c (expand_expr): Likewise.
1201 * function.c (assign_temp): Likewise.
1202 (uninitialized_vars_warning): Likewise.
1203 (setjmp_args_warning): Likewise.
1204 (expand_function_end): Likewise.
1205 * stmt.c (fixup_gotos): Likewise.
1206 (warn_about_unused_variables): Likewise.
1207 (expand_end_bindings): Likewise.
1208 * stor-layout.c (layout_decl): Likewise.
1209 (place_field): Likewise.
1210 * toplev.c (check_global_declarations): Likewise.
1211 (rest_of_handle_inlining): Likewise.
1212 (default_tree_printer): New function.
1213 (general_init): Initialize diagnostic machinery before routing
1214 signals to the ICE machinery. Set default tree printer.
1215 * toplev.h (pedwarn_with_decl): Remove declaration.
1216 (warning_with_decl): Likewise.
1217 (error_with_decl): Likewise.
1218 (pedwarn): Remove attribute for the time being.
1219 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
1220 * varasm.c (named_section): Likewise.
1221 (make_decl_rtl): Likewise.
1222 (assemble_variable): Likewise.
1223 (merge_weak): Likewise.
1224 (declare_weak): Likewise.
1225
1226 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
1227 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
1228 (format_with_decl): Remove.
1229 (diagnostic_for_decl): Likewise.
1230 (pedwarn_with_decl): Likewise.
1231 (warning_with_decl): Likewise.
1232 (error_with_decl): Likewise.
1233 (diagnostic_initialize): Adjust.
1234 (diagnostic_count_diagnostic): Likewise.
1235 (announce_function): Likewise.
1236 (lhd_print_error_function): Likewise.
1237 (diagnostic_report_current_module): Likewise.
1238 (default_diagnostic_starter): Likewise.
1239 (diagnostic_report_diagnostic): Likewise.
1240 (default_diagnostic_finalizer): Likewise.
1241 (verbatim): Likewise.
1242 (error): Likewise.
1243 (warning): Likewise.
1244 * opts.c (common_handle_option): Likewise.
1245 * pretty-print.c: New file.
1246 * c-pretty-print.h (pp_base): Override.
1247 * c-pretty-print.c: Adjust use of macros throughout.
1248 (pp_buffer): New macro.
1249 (pp_newline): Likewise.
1250 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
1251 * Makefile.in (DIAGNOSTIC_H): New variable.
1252 (c-errors.o): Use it.
1253 (c-objc-common.o): Likewise.
1254 (c-common.o): Likewise.
1255 (c-opts.o): Likewise.
1256 (c-format.o): Likewise.
1257 (diagnostic.o): Likewise.
1258 (opts.o): Likewise.
1259 (toplev.o): Likewise.
1260 (rtl-error.o): Likewise.
1261 (dwarf2out.o): Likewise.
1262 (jump.o): Likewise.
1263 (pretty-print.o): New rule.
1264
1265 2003-07-24 Roger Sayle <roger@eyesopen.com>
1266
1267 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
1268 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
1269 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
1270 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
1271 (DEF_FRONT_END_LIB_BUILTIN): Delete.
1272 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
1273 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
1274
1275 * builtins.c (build_string_literal): New function to construct
1276 a char* pointer to a string literal.
1277 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
1278 "rtx target" to be consistent with other expand_builtin_* functions.
1279 Change 3rd argument from "int unlocked" to "bool unlocked".
1280 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
1281 c-common.c to avoid front-end dependencies. Optimize printf("")
1282 as a no-op when the result isn't required. Handle embedded NULs
1283 in format string.
1284 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
1285 from c-common.c to avoid front-end dependencies. Likewise, optimize
1286 fprintf(fp,"") as a no-op when the result isn't required, evaluating
1287 fp for side-effects. Handle embedded NULs in format string.
1288 (expand_builtin_sprintf): Fix typo.
1289 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
1290 optimizing. Adjust calls of expand_builtin_fputs to match the API
1291 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
1292 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
1293 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
1294
1295 * c-common.c (is_valid_printf_arglist): Delete.
1296 (c_expand_builtin): Delete.
1297 (c_expand_builtin_printf): Moved to builtins.c. Delete.
1298 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
1299 (c_expand_expr): No longer treat CALL_EXPRs specially.
1300 (CALLED_AS_BUILT_IN): Delete.
1301
1302 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1303
1304 PR optimization/11631
1305 * gcse.c (store_motion): Connect infinite loops to exit.
1306
1307 2003-07-24 Jason Merrill <jason@redhat.com>
1308
1309 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
1310 (boolean_true_node, boolean_false_node): Likewise.
1311 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
1312 * tree.c (build_common_tree_nodes): Init boolean_type_node.
1313 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
1314 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
1315 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
1316 (truthvalue_true_node): Renamed from boolean_true_node.
1317 (truthvalue_false_node): Renamed from boolean_false_node.
1318 * c-decl.c: Just set truthvalue_* to integer_*.
1319 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
1320
1321 2003-07-24 Roger Sayle <roger@eyesopen.com>
1322
1323 * c-decl.c (match_builtin_function_types): New subroutine of
1324 duplicate_decls to test whether a redeclaration of a builtin
1325 function is suitably close, i.e. the return type and all of
1326 the argument types have the same modes as the builtin expects.
1327 (duplicate_decls): Fuzzy type matching for builtin functions
1328 moved to match_builtin_function_types.
1329
1330 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1331
1332 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
1333 flag correctly.
1334
1335 2003-07-24 Zack Weinberg <zack@codesourcery.com>
1336
1337 * c-decl.c: Search-and-replace change 'binding level' to
1338 'scope' in commentary.
1339 (struct binding_level): Now struct c_scope.
1340 (current_binding_level): Now current_scope.
1341 (free_binding_level): Now scope_freelist.
1342 (current_function_level): Now current_function_scope.
1343 (global_binding_level): Now global_scope.
1344 (make_binding_level): Now make_scope.
1345 (pop_binding_level): Now pop_scope.
1346
1347 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1348
1349 * configure.in (libgcc_visibility): Add missing whitespace.
1350
1351 2003-07-24 Richard Henderson <rth@redhat.com>
1352
1353 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
1354 __gcc_personality_v0.
1355
1356 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1357
1358 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
1359
1360 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
1361
1362 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
1363 documentation missed from my 2003-07-09 patch.
1364
1365 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
1366
1367 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
1368 it's not provided.
1369 * configure: Rebuild.
1370
1371 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
1372
1373 PR c/10602
1374 * c-typeck.c (type_lists_compatible_p): Do not compare
1375 arguments if one of them is an error_mark_node
1376
1377 2003-07-24 Alan Modra <amodra@bigpond.net.au>
1378
1379 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
1380 if current_function_calls_eh_return.
1381
1382 2003-07-23 Mark Mitchell <mark@codesourcery.com>
1383
1384 * doc/c-tree.texi (OFFSET_TYPE): Update description.
1385
1386 2003-07-23 Bob Wilson <bob.wilson@acm.org>
1387
1388 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
1389 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
1390 __umodsi3, __modsi3): Increase frame size to 32.
1391
1392 2003-07-23 Geoffrey Keating <geoffk@apple.com>
1393
1394 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
1395 prototype.
1396
1397 2003-07-23 Mark Mitchell <mark@codesourcery.com>
1398
1399 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
1400
1401 PR optimization/10679
1402 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
1403
1404 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1405
1406 PR target/11607 and PR target/11516
1407 * pa.md (extzv, extv, insv): Revert latter half of last patch.
1408
1409 2003-07-22 Mark Mitchell <mark@codesourcery.com>
1410
1411 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
1412 * varasam.c (output_constant): Likewise.
1413
1414 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
1415
1416 * alias.c: Fix comment formatting.
1417 * c-common.c: Likewise.
1418 * c-decl.c: Likewise.
1419 * c-opts.c: Likewise.
1420 * combine.c: Likewise.
1421 * cpplib.c: Likewise.
1422 * diagnostic.c: Likewise.
1423 * dojump.c: Likewise.
1424 * final.c: Likewise.
1425 * fold-const.c: Likewise.
1426 * gcc.c: Likewise.
1427 * gcse.c: Likewise.
1428 * ggc-page.c: Likewise.
1429 * jump.c: Likewise.
1430 * loop.c: Likewise.
1431 * mips-tfile.c: Likewise.
1432 * recog.c: Likewise.
1433 * regclass.c: Likewise.
1434 * regmove.c: Likewise.
1435 * tree.c: Likewise.
1436 * tree.h: Likewise.
1437
1438 2003-07-22 Per Bothner <pbothner@apple.com>
1439
1440 * line-map.c (add_line_map): Handle invalid LEAVE request.
1441 Fixes PR preprocessor/11361.
1442
1443 2003-07-22 Per Bothner <pbothner@apple.com>
1444
1445 * diagnostic.c.(diagnostic_report_current_module): Update to match
1446 2003-06-05 changes to push_srcloc and pop_srcloc.
1447
1448 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
1449
1450 * doc/trouble.texi: Better document two-stage name lookup.
1451
1452 2003-07-22 Eric Christopher <echristo@redhat.com>
1453
1454 * config/s390.c (s390_valid_pointer_mode): New.
1455 (TARGET_VALID_POINTER_MODE): Use.
1456 (s390_emit_prologue): Add tpf profiling hooks.
1457 (s390_emit_epilogue): Ditto.
1458 * config/s390.h (MASK_TPF): New.
1459 (TARGET_TPF): Use.
1460 (POINTERS_EXTEND_UNSIGNED): Define.
1461 * config/s390.md (ptr_extend): New pattern.
1462
1463 2003-07-22 Zack Weinberg <zack@codesourcery.com>
1464
1465 * hashtable.c (approx_sqrt): Make static.
1466 * hashtable.h: Don't prototype approx_sqrt.
1467 * line-map.c (init_line_maps): Rename linemap_init.
1468 (free_line_maps): Rename linemap_free.
1469 (add_line_map): Rename linemap_add.
1470 (lookup_line): Rename linemap_lookup.
1471 (print_containing_files): Rename linemap_print_containing_files.
1472 * linemap.h: Update to match.
1473
1474 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
1475 linemap routines to use new names.
1476
1477 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
1478
1479 * c-common.c (handle_packed_attribute): Don't pack a struct via a
1480 typedef. Propagate packedness from a main variant.
1481
1482 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
1483
1484 * Makefile.in (install-common): Add dependency on installdirs.
1485
1486 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
1487
1488 * c-common.c (c_common_type_for_mode): Return integer types for
1489 pointer modes.
1490
1491 2003-07-22 Geoffrey Keating <geoffk@apple.com>
1492
1493 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
1494 (finish_decl): Call maybe_apply_pragma_weak here.
1495 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
1496 TREE_PUBLIC and TREE_STATIC are decided.
1497 (start_function): Move call to maybe_apply_pragma_weak. Check that
1498 DECL_ASSEMBLER_NAME isn't set too early.
1499
1500 * cpplex.c (_cpp_process_line_notes): Mention option name in
1501 trigraphs warning.
1502
1503 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
1504
1505 * combine.c (if_then_else_cond): Simplify the comparison of
1506 rtx against -1, 0, and 1.
1507 * loop.c (check_dbra_loop): Likewise.
1508 * optabs.c (emit_conditional_move): Likewise.
1509 (emit_conditional_add): Likewise.
1510 * config/i386/i386.md (*movsi_or): Likewise.
1511 (*movdi_or_rex6): Likewise.
1512
1513 Tue Jul 22 00:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
1514
1515 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
1516
1517 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
1518
1519 * cppfiles.c (open_file_pch): Don't put unused entries in the
1520 splay tree. Remove dead code.
1521
1522 2003-07-21 Geoffrey Keating <geoffk@apple.com>
1523
1524 * c-common.h (num_in_fnames): Declare.
1525 (c_static_assembler_name): Move from here...
1526 * c-tree.h (c_static_assembler_name): ... to here.
1527 * c-opts.c: Don't include langhooks-def.h.
1528 (c_static_assembler_name): Move to c-decl.c.
1529 (num_in_fnames): Make externally visible.
1530 * c-decl.c: Include langhooks-def.h.
1531 (c_static_assembler_name): Move from c-opts.c.
1532 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
1533 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
1534
1535 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
1536 when it's not needed.
1537
1538 2003-07-21 Jakub Jelinek <jakub@redhat.com>
1539
1540 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
1541 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
1542 (rs6000_emit_prologue): Save FPRs inline if set.
1543
1544 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
1545
1546 * config/ia64/ia64.md (prefetch): Support predicate.
1547
1548 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
1549
1550 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
1551 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
1552 table.
1553
1554 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
1555
1556 PR optimization/11536
1557 * unroll.c (loop_iterations): Do not replace a register holding
1558 the final value by its equivalent before the loop if it is not
1559 invariant.
1560
1561 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
1562
1563 * doc/extend.texi: Fixes to spelling, grammar, and diction.
1564
1565 2003-07-21 Ben Elliston <bje@wasabisystems.com>
1566
1567 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
1568 (V850 Options): Spelling fixes.
1569
1570 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
1571
1572 * doc/invoke.texi: Fixes to style, grammar and diction.
1573
1574 2003-07-20 Roger Sayle <roger@eyesopen.com>
1575
1576 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
1577 * system.h (SMALL_STACK): Poison obsolete target macro.
1578 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
1579
1580 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
1581
1582 * configure.in: Cache the results of testing for cmp's capabilities.
1583 * configure: Regenerate.
1584
1585 2003-07-20 Mark Mitchell <mark@codesourcery.com>
1586
1587 PR debug/11279
1588 * dwarf2out.c (gen_enumeration_type_die): Remember that
1589 enumerators can be unsigned.
1590
1591 2003-07-19 Zack Weinberg <zack@codesourcery.com>
1592
1593 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
1594 (push_label_level, pop_label_level): Kill.
1595 (struct binding_level): Rename level_chain to outer.
1596 Add outer_function field. Change parm_flag, function_body,
1597 keep, keep_if_subblocks to 1-bit bitfields of type bool.
1598 (current_function_level): New variable.
1599 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
1600 (keep_next_level, declare_parm_level, warn_if_shadowing):
1601 Update to match.
1602 (struct language_function): Kill named_labels, shadowed_labels fields.
1603 (c_init_decl_processing, start_function, c_push__function_context)
1604 (c_pop_function_context): No need to muck with named_labels nor
1605 shadowed_labels.
1606
1607 (make_binding_level): No need to clear the structure here.
1608 (pop_binding_level): Always operate on current_binding_level.
1609 Update current_function_level if necessary.
1610 (pushlevel): Don't clear named_labels. Update current_function_level
1611 if necessary. Use "true" and "false" where appropriate.
1612 (poplevel): Diagnose labels defined but not used, or vice
1613 versa, and clear out label-meanings leaving scope, while
1614 walking down the decls list, for all binding levels.
1615 Handle LABEL_DECLs appearing in the shadowed list.
1616 pop_binding_level takes no arguments.
1617 (pushdecl_function_level): Use current_function_level.
1618
1619 (make_label, bind_label): New static functions.
1620 (declare_label): New exported function.
1621 (lookup_label, define_label): Rewritten for new data structure.
1622 (shadow_label): Kill.
1623
1624 * c-tree.h: Prototype declare_label; don't prototype
1625 push_label_level, pop_label_level, nor shadow_label.
1626 * c-parse.in: Remove all calls to push_label_level and
1627 pop_label_level. Use declare_label for __label__ decls.
1628
1629 * doc/extend.texi: Clarify that __label__ can be used to
1630 declare labels with local scope in any nested block, not
1631 just statement expressions. Cross-reference nested functions
1632 section from local labels section.
1633
1634 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1635
1636 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
1637
1638 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
1639
1640 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
1641
1642 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1643
1644 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
1645 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
1646
1647 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
1648
1649 * config/s390/s390.c (legitimize_pic_address): Access local symbols
1650 relative to the GOT instead of relative to the literal pool base.
1651 (s390_output_symbolic_const): Handle new GOT-relative accesses.
1652 * config/s390/s390.md ("call"): Access local functions and PLT stubs
1653 relative to the GOT instead of relative to the literal pool base.
1654 ("call_value"): Likewise.
1655 ("call_value_tls"): Likewise.
1656
1657 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
1658 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
1659 (s390_chunkify_finish): Likewise.
1660 (s390_chunkify_cancel): Likewise.
1661 (s390_reorg): Adapt caller.
1662 (find_base_register_in_addr,
1663 find_base_register_ref, replace_base_register_ref): Delete.
1664 (find_ltrel_base, replace_ltrel_base): New functions.
1665 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
1666 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
1667 base vs. index register usage.
1668 (struct constant_pool): Remove 'anchor'.
1669 (s390_add_anchor): Delete.
1670 (s390_dump_pool): Remove anchor handling.
1671 * config/s390/s390.md ("reload_anchor"): Remove.
1672
1673 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
1674 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
1675 (s390_emit_prologue): Use it.
1676 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
1677 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
1678 hard-code register 14.
1679 * config/s390/s390-protos.h (s390_load_got): Declare.
1680
1681 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
1682 Support TImode constants.
1683 * config/s390/s390.md ("consttable_ti"): New.
1684 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
1685
1686 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
1687 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
1688 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
1689 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
1690 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
1691 New symbolic constants.
1692 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
1693 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
1694 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
1695 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
1696 symbolic UNSPEC values.
1697 * config/s390/s390.c (larl_operand, s390_short_displacement,
1698 bras_sym_operand, s390_cannot_force_const_mem,
1699 s390_delegitimize_address, s390_decompose_address,
1700 legitimize_pic_address, s390_output_symbolic_const,
1701 s390_function_profiler): Use symbolic UNSPEC values.
1702
1703 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1704
1705 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
1706 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
1707 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
1708 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
1709 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
1710 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
1711 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
1712 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
1713 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
1714 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
1715 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
1716 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
1717 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
1718 postreload.c prefix.c print-tree.c protoize.c ra-build.c
1719 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
1720 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
1721 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
1722 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
1723 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
1724 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
1725 casts.
1726
1727 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
1728
1729 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
1730 * toplev.h (warning): Remove attribute.
1731
1732 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
1733
1734 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
1735 (pop_label_level): Likewise.
1736 (duplicate_decls): Likewise.
1737 (implicitly_declare): Likewise.
1738 (shadow_label): Likewise.
1739 (start_decl): Likewise.
1740 (finish_decl): Likewise.
1741 (grokdeclarator): Likewise.
1742 (get_parm_info): Likewise.
1743 (detect_field_duplicates): Likewise.
1744 (finish_struct): Likewise.
1745 (start_function): Likewise.
1746 (store_parm_decls): Likewise.
1747 (finish_function): Likewise.
1748 (c_expand_body_1): Likewise.
1749 (check_for_loop_decls): Likewise.
1750 (merge_translation_unit_decls): Likewise.
1751
1752 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
1753
1754 * common.opt: Document --param.
1755 * opts.c (columns, undocumented_msg): New.
1756 (print_help): Get number of columns from environment. Print
1757 --param help. Tweak newline handling.
1758 (print_param_help): New.
1759 (print_filtered_help): Better handling of duplicates. Complain
1760 about undocumented switches.
1761 (print_switch): New.
1762 (wrap_help): Improve wrapping, use COLUMNS.
1763 * opts.sh: Ignore comments in records.
1764 * params.def: Fix typos and remove trailing periods.
1765 * toplev.c (display_help): Don't dump --param help.
1766 * doc/sourcebuild.texi: Update.
1767
1768 2003-07-18 Richard Henderson <rth@redhat.com>
1769
1770 PR target/11556
1771 * optabs.c (prepare_operand): Fail gracefully instead of abort
1772 if the predicate doesn't satisfy.
1773 (gen_cond_trap): Allow prepare_operand to fail.
1774
1775 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
1776
1777 * c-common.c: Don't undefine GCC_DIAG_STYLE.
1778 (fname_decl): Don't use xxx_with_decl.
1779 (c_add_case_label): Likewise.
1780 (handle_section_attribute): Likewise.
1781 (handle_alias_attribute): Likewise.
1782 (handle_no_instrument_function_attribute): Likewise.
1783 (handle_no_limit_stack_attribute): Likewise.
1784 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
1785 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
1786
1787 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1788
1789 * Makefile.in (ifcvt.o): Add cfgloop.h.
1790 * basic-block.h (EDGE_LOOP_EXIT): New flag.
1791 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
1792 * ifcvt.c: Include cfgloop.h.
1793 (mark_loop_exit_edges): New static function.
1794 (if_convert): Call it.
1795 (find_if_header): Ignore branches out of loops.
1796
1797 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
1798
1799 * combine.c (simplify_comparison): Don't share rtx when converting
1800 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
1801
1802 2003-07-18 David Edelsohn <edelsohn@gnu.org>
1803
1804 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
1805 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
1806 (MUST_PASS_IN_STACK): Define.
1807 (BLOCK_REG_PADDING): Define.
1808
1809 2003-07-18 Richard Henderson <rth@redhat.com>
1810
1811 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
1812 to skip the addr_vec.
1813
1814 Fri Jul 18 15:22:28 2003 Alexandre Oliva <aoliva@redhat.com>
1815
1816 * combine.c (combinable_i3pat): Don't forbid occurrences of
1817 i2dest or i1dest in inner_dest if inner_dest is a mem.
1818
1819 Fri Jul 18 17:05:57 CEST 2003 Jan Hubicka <jh@suse.cz>
1820
1821 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
1822
1823 2003-07-17 Jakub Jelinek <jakub@redhat.com>
1824
1825 PR target/11087
1826 * loop.c (basic_induction_var): Check if convert_modes emitted any
1827 instructions. Remove them and return 0 if so.
1828
1829 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
1830
1831 PR optimization/11083
1832 * toplev.c (rest_of_handle_addresof): Rename into
1833 rest_of_handle_addressof. Delete unreachable blocks
1834 if dead edges were purged after the addressof pass.
1835
1836 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
1837
1838 * Makefile.in, configure, configure.in: Remove handling of
1839 lang-options.h and options_.h.
1840 * toplev.c (struct lang_opt, documented_lang_options): Remove.
1841 (display_help): Don't use documented_lang_options.
1842
1843 2003-07-17 Zack Weinberg <zack@codesourcery.com>
1844
1845 * c-decl.c (pushdecl_function_level): Make static, return nothing.
1846 (kept_level_p): Fold into poplevel.
1847 (undeclared_variable): Moved here from c-typeck.c. Export.
1848 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
1849 (undeclared_variable): Prototype here. Don't prototype
1850 kept_level_p nor pushdecl_function_level.
1851 * c-parse.in: Change first argument to poplevel from
1852 "kept_level_p()" to "KEEP_MAYBE".
1853 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
1854
1855 2003-07-17 Roger Sayle <roger@eyesopen.com>
1856
1857 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
1858 commutative operands instead of modifying the RTL in-place.
1859
1860 2003-07-17 Mark Mitchell <mark@codesourcery.com>
1861
1862 PR optimization/11557
1863 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
1864 unless we know which function is being called.
1865
1866 2003-07-17 Roger Sayle <roger@eyesopen.com>
1867
1868 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
1869 whether to reorder the operands of a commutative binary operator.
1870
1871 2003-07-17 Roger Sayle <roger@eyesopen.com>
1872
1873 * fold-const.c (const_binop): Avoid performing the FP operation at
1874 compile-time, if either operand is NaN and we honor signaling NaNs,
1875 or if we're dividing by zero and either flag_trapping_math is set
1876 or the desired mode doesn't support infinities.
1877 (fold_initializer): New function to fold an expression ignoring any
1878 potential run-time exceptions or traps.
1879 * tree.h (fold_initializer): Prototype here.
1880 * c-typeck.c (build_binary_op): Move to the end of the file so
1881 that intializer_stack is in scope. If constructing an initializer,
1882 i.e. when initializer_stack is not NULL, use fold_initializer to
1883 fold expressions.
1884 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
1885 performing FP operations at compile-time, if they would raise an
1886 exception at run-time.
1887
1888 2003-07-17 Geoffrey Keating <geoffk@apple.com>
1889
1890 PR 11498
1891 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
1892 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
1893 (GTFILES): Add langhooks.c.
1894 (gt-langhooks.h): New.
1895 * c-common.h (c_static_assembler_name): Prototype.
1896 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
1897 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
1898 * c-opts.c: Include langhooks-def.h.
1899 (c_static_assembler_name): New.
1900 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
1901 (var_labelno): New.
1902 (lhd_set_decl_assembler_name): Give static objects with context
1903 unique names.
1904 * varasm.c (var_labelno): Delete.
1905 (make_decl_rtl): Don't change the assembler name once it's set.
1906
1907 * c-opts.c (this_input_filename): New.
1908 (finish_options): Take new parameter, name of file being compiled.
1909 Update callers. Set this_input_filename.
1910 (push_command_line_include): Use this_input_filename not
1911 main_input_filename.
1912
1913 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
1914
1915 * Makefile.in: Depend .pot generation on options.c.
1916 * po/exgettext: Add an extra_files variable containing additional
1917 files to scan.
1918
1919 2003-07-17 Zack Weinberg <zack@codesourcery.com>
1920
1921 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
1922 c_write_global_declarations.
1923
1924 * c-decl.c: Fix typos in several comments. Remove all
1925 #if 0 blocks; reindent as needed. Remove unused argument
1926 to declare_parm_level; all callers changed.
1927 * c-parse.in: Update calls to declare_parm_level. Avoid
1928 issuing a double warning in some circumstances.
1929 * c-typeck.c: Update calls to declare_parm_level.
1930 * c-tree.h: Update prototype of declare_parm_level.
1931
1932 * c-pragma.c (apply_pragma_weak): Don't complain about a
1933 redundant #pragma weak.
1934
1935 * objc/objc-act.c (forward_declare_categories,
1936 build_selector_reference_decl, build_class_reference_decl,
1937 build_objc_string_decl, synth_forward_declarations,
1938 build_protocol_reference): Set TREE_PUBLIC on synthetic
1939 forward decl to 0, consistent with eventual definition.
1940 Correct comments to match.
1941
1942 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
1943 in regexp that don't form a range expression.
1944 * fixinc/fixincl.def: Regenerate.
1945
1946 2003-07-17 Richard Henderson <rth@redhat.com>
1947
1948 PR target/10907
1949 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
1950 even with !TARGET_CONST_GP.
1951 (ia64_function_ok_for_sibcall): Reject non-local functions.
1952
1953 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
1954
1955 * c-common.c (c_estimate_num_insns_1): Don't handle
1956 METHOD_CALL_EXPR.
1957 * expr.c (safe_from_p): Likewise.
1958 * gengtype.c (adjust_field_tree_exp): Likewise.
1959 * stmt.c (warn_if_unused_value): Likewise
1960 * tree.c (first_rtl_op): Likewise.
1961 * tree.def: Don't define METHOD_CALL_EXPR.
1962 * java/lang.c (java_estimate_num_insns_1): Don't handle
1963 METHOD_CALL_EXPR.
1964
1965 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
1966
1967 PR other/11466
1968 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
1969 and its restrictions for the SPARC64 port.
1970 Move the entry of "-mimpure-text" before that of "-mv8".
1971
1972 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
1973 Phil Edwards <phil@jaj.com>
1974
1975 * doc/install.texi (*-*-solaris2*): Document the step-by-step
1976 procedure to bootstrap and install.
1977 Document the preference for the legacy Sun tools in /usr/bin
1978 over the POSIX tools in /usr/xpg4/bin for the build process.
1979
1980 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
1981
1982 * c.opt: Document Uncodumented; use it. Document ObjC options.
1983 * opts.c (print_filtered_help): Skip undocumented switches.
1984 * opts.h (CL_UNDOCUMENTED): New.
1985 * opts.sh: Handle Undocumented.
1986 * toplev.c (documented_lang_options): Prevent its becoming empty.
1987 objc:
1988 * lang-options.h: Remove.
1989
1990 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
1991
1992 * loop.c (check_ext_dependent_givs): Pass const struct loop *
1993 instead of struct loop_info * as argument. Accept BIVs with
1994 increment +/- 1 provided there is a friendly exit test against
1995 a loop-invariant value.
1996 (strength_reduce): Adapt call to check_ext_dependent_givs.
1997
1998 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
1999 Con Bradley <con.bradley@superh.com>
2000
2001 * sh-protos.h (sh_get_pr_initial_val): Declare.
2002 * sh.c (regno_reg_class): Make its elements type enum reg_class.
2003 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
2004 and live_regs_mask arguments. Changed all callers.
2005 (save_schedule_s): New structure.
2006 (save_schedule): New typedef.
2007 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
2008 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
2009 In interrupts handlers, also save registers that are usually
2010 partially saved, and make sure there is at least one general purpose
2011 register saved if a target register needs saving.
2012 Add casts in comparisons to avoid warnings.
2013 (sh_media_register_for_return): return -1 for interrupt handlers.
2014 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
2015 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
2016 registers used are available.
2017 Set RTX_FRAME_RELATED_P where appropriate.
2018 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
2019 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
2020 (initial_elimination_offset): Likewise.
2021 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
2022 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
2023 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
2024 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
2025 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
2026 and for target registers.
2027 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
2028 (regno_reg_class): Make its elements type enum reg_class.
2029 (CONSTRAINT_LEN): Don't use isdigit.
2030 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
2031 (FUNCTION_ARG): Add parentheses to avoid warnings.
2032 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
2033 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
2034 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
2035 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
2036 * sh.md (xordi3+1): Remove unused variable regno.
2037 (return_media): Check that tr0 is available before using it.
2038
2039 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
2040
2041 * c.opt: Document more options.
2042
2043 2003-07-16 Roger Sayle <roger@eyesopen.com>
2044
2045 * combine.c (subst): Also handle (subreg (const_double ...)) case
2046 if created by a substitution, by using the original inner mode.
2047
2048 2003-07-16 Roger Sayle <roger@eyesopen.com>
2049
2050 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
2051 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
2052 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
2053
2054 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
2055
2056 * doc/install.texi (--without-headers): New.
2057
2058 Partial Fix PR/10129
2059 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
2060 (machopic_output_function_base_name): New; print the true pic label.
2061 (machopic_classify_ident): Pic Base is always a defined data.
2062 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
2063 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
2064
2065 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
2066 if they are not floating point registers.
2067
2068 PR c/10962
2069 * ggc.h: Add header guards.
2070 * c-decl.c (finish_struct): Sort fields if
2071 number greater than 15 and there are no
2072 anonymous structs/unions.
2073 * c-common.h: Include ggc.h.
2074 (sorted_fields_type): New struct.
2075 (field_decl_cmp): New prototype.
2076 (resort_sorted_fields): New prototype.
2077 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
2078 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
2079 as s, removing other fields.
2080 * c-typeck.c (lookup_field): Use s in lang_type.
2081 These were mostly moved from cp/class.c:
2082 * c-common.c (field_decl_cmp): New static function.
2083 (field_decl_cmp): New function.
2084 (resort_sorted_fields): New function.
2085
2086 2003-07-16 Geoffrey Keating <geoffk@apple.com>
2087
2088 * config/darwin.c (machopic_select_section): Use decl_readonly_section
2089 to do most of the work.
2090
2091 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
2092
2093 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
2094 * config/mmix/mmix.c: Convert functions to ISO C90.
2095 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
2096 formatting.
2097 (mmix_get_hard_reg_initial_val): Tweak section head comment.
2098
2099 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
2100
2101 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
2102
2103 2003-07-16 Jakub Jelinek <jakub@redhat.com>
2104
2105 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
2106 (uw_update_context_1): Use it.
2107 * config/rs6000/rs6000.c (insn_after_throw): Remove.
2108 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
2109 in parent frame if _Unwind_* called directly instead of through
2110 .plt.
2111 (rs6000_emit_eh_toc_restore): Remove.
2112 (rs6000_emit_prologue): Update stack pointer before doing any saving
2113 if current_function_calls_eh_return. Generate unwind info for $r2.
2114 (rs6000_emit_epilogue): Restore stack pointer after doing all
2115 restoring if current_function_calls_eh_return. Restore $r2.
2116 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
2117 * config/rs6000/rs6000.md (eh_return): Remove call to
2118 rs6000_emit_eh_toc_restore.
2119 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
2120 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
2121
2122 2003-07-15 Jakub Jelinek <jakub@redhat.com>
2123
2124 * expr.c (emit_block_move): Don't move anything if size is const 0.
2125 (clear_storage): Test against const0_rtx instead of comparing INTVAL
2126 against 0.
2127
2128 2003-07-15 David S. Miller <davem@redhat.com>
2129
2130 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
2131 emit nop if the last real insn is CALL_INSN.
2132
2133 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
2134
2135 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
2136 as "nul".
2137 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
2138
2139 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
2140
2141 * config/i386/winnt.c (associated_type): Artificial methods are not
2142 affected by the import/export status of their class unless they are
2143 COMDAT.
2144 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
2145
2146 * config/i386/winnt.c: Fix GCC copyright comment.
2147
2148 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
2149
2150 PR c++/11531
2151 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
2152 not recursing on hard error.
2153 (diagnostic_for_decl): Likewise.
2154 * diagnostic.def: Rearrange.
2155
2156 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
2157
2158 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
2159 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
2160
2161 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
2162 Richard Henderson <rth@redhat.com>
2163
2164 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
2165 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
2166 (_Unwind_SetGR): Likewise.
2167 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
2168 (Unwind_SpTmp): New typedef.
2169 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
2170 (uw_update_context): Use _Unwind_GetPtr.
2171 (init_dwarf_reg_size_table): Move above uw_init_context_1.
2172 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
2173 Use _Unwind_SetSpColumn.
2174 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
2175 Use _Unwind_GetPtr.
2176
2177 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
2178
2179 * c.opt: Document more options.
2180 * toplev.c (documented_lang_options): Remove all local help strings.
2181
2182 2003-07-15 Mark Mitchell <mark@codesourcery.com>
2183
2184 PR debug/11473
2185 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
2186 base classes.
2187
2188 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
2189
2190 PR target/10795
2191 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
2192 swap comparison operands if doing so would generate an
2193 unrecognizable insn.
2194
2195 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
2196
2197 PR optimization/11320
2198 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
2199 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
2200 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
2201 current_sched_info->compute_jump_reg_dependencies. Record which
2202 registers are used and which registers are set by the jump.
2203 Clear deps->reg_conditional_sets after a barrier.
2204 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
2205 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
2206 (init_deps): Initialize reg_conditional_sets.
2207 (free_deps): Clear reg_conditional_sets.
2208 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
2209 Mark registers live on entry of the fallthrough block and conditionally
2210 set as set by the jump. Mark registers live on entry of non-fallthrough
2211 blocks as used by the jump.
2212 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
2213 Mark new parameters as unused.
2214
2215 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
2216
2217 * doc/invoke.texi: Resync MIPS -march documentation.
2218
2219 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
2220
2221 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
2222 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
2223 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
2224 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
2225 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
2226 (mips_issue_rate): Handle PROCESSOR_R9000.
2227 (mips_use_dfa_pipeline_interface): Likewise.
2228 * config/mips/9000.md: New file.
2229 * config/mips/mips.md: Include it.
2230 (define_attr cpu): Add r9000.
2231 (mulsi3_mult3): Use "mul" for rm9000 code.
2232
2233 2003-07-15 Stan Cox <scox@redhat.com>
2234
2235 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
2236 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
2237 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
2238 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
2239 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
2240 (mips_issue_rate): Handle PROCESSOR_R7000.
2241 (mips_use_dfa_pipeline_interface): Likewise.
2242 * config/mips/7000.md: New file.
2243 * config/mips/mips.md: Include it.
2244 (define_attr cpu): Add r7000.
2245 (mulsi3_mult3): Use "mul" for rm7000 code.
2246
2247 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
2248
2249 * config/mips/mips.md (define_attr type): Add condmove. Use it for
2250 the conditional move patterns.
2251 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
2252 Check for condmove type.
2253 (ir_vr54_arith): Add move type.
2254 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
2255 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
2256
2257 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
2258
2259 * c-opts.c (print_help): Remove.
2260 (c_common_handle_option): Don't handle --help.
2261 * c.opt: Document some options.
2262 (--help): Remove.
2263 * opts.c (print_filtered_help): New.
2264 (print_help): Use it.
2265
2266 2003-07-14 Geoffrey Keating <geoffk@apple.com>
2267
2268 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
2269 * tree.c: (build_common_tree_nodes_2): Likewise.
2270 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
2271 (V4DF_type_node): New.
2272
2273 * c-opts.c (push_command_line_include): Don't free deferred_opts,
2274 we'll need it.
2275 (finish_options): Reset init_cursor.
2276
2277 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
2278
2279 * expr.c (expand_assignment): Remove an unused argument
2280 SUGGEST_REG.
2281 * expr.h: Update the prototype.
2282 * function.c: Update the callers.
2283 * stmt.c: Likewise.
2284
2285 2003-07-14 Mark Mitchell <mark@codesourcery.com>
2286
2287 PR debug/11098
2288 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
2289 as DECL_ABSTRACT.
2290
2291 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
2292
2293 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
2294 with __cplusplus, not "we must use the C++ compiler's type"
2295 * fixinc/inclhack.def (void_null): Note that Interix needs this.
2296 * fixinc/fixincl.x: Regenerate.
2297
2298 2003-07-14 Geoffrey Keating <geoffk@apple.com>
2299
2300 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
2301 and unseen_objects from the global data before calling
2302 __deregister_frame_info_bases.
2303 (examine_objects): Insert objects into the seen_objects list,
2304 not unseen_objects.
2305 (_Unwind_Find_FDE): Always unlock the global object lists, even if
2306 we couldn't allocate a data structure to put in it.
2307
2308 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
2309 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
2310 (SET_TYPE_PROTOCOL_LIST): New.
2311 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
2312 (get_object_reference): Likewise.
2313
2314 Mon Jul 14 23:14:28 CEST 2003 Jan Hubicka <jh@suse.cz>
2315
2316 * cfglayout.c (locator_file): Break out from ....
2317 (insn_file): ... here.
2318 (locator_line): Break out from ....
2319 (insn_line): ... here.
2320 * rtl.h (locator_file, locator_line): Declare.
2321 (final_start_function): Set proper line/file info.
2322
2323 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
2324
2325 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
2326 handled by pp_c_cast_expression.
2327
2328 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
2329
2330 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
2331 allocate 32768 bytes of stack. Use addition rather than subtraction
2332 when a single insn is enough.
2333 * config/mips/mips.md: Remove insns and splitters for subtracting
2334 constants.
2335 (subsi3): Only accept register operands.
2336 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
2337 (subdi3_internal_3, subsi3_internal_2): Likewise.
2338 (casesi): Use expand_binop to subtract the lower bound.
2339
2340 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
2341
2342 * config/mips/mips.c (mips_in_small_data_p): Don't handle
2343 TARGET_MIPS16 specially.
2344
2345 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
2346
2347 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
2348 mips_output_aligned_bss.
2349 * config/mips/linux.h: Likewise.
2350 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
2351 * config/mips/mips.c (mips_output_aligned_bss): New function.
2352
2353 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
2354 * config/mips/elf64.h: Likewise.
2355
2356 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
2357 mips_declare_object_name.
2358 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
2359 * config/mips/elf64.h: As for elf.h.
2360 * config/mips/iris6.h: Likewise.
2361 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
2362 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
2363 do...while (0) block.
2364 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
2365 (mips_finish_declare_object): Declare.
2366 * config/mips/mips.c (mips_declare_object_name): New function.
2367 (mips_finish_declare_object): New function.
2368
2369 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
2370 * config/mips/linux.h: Likewise.
2371
2372 * config/mips/mips.c (inside_function): Delete.
2373 (file_in_function_warning, ignore_line_number): Delete.
2374 (mips_output_filename): Don't warn about changing filenames within
2375 a function.
2376 (mips_output_lineno): Update accordingly.
2377 (mips_output_function_prologue): Don't reset the deleted variables.
2378 * config/mips/mips.h (inside_function): Delete.
2379 (file_in_function_warning, ignore_line_number): Delete.
2380
2381 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
2382 * config/mips/elf64.h: Likewise.
2383 * config/mips/openbsd.h: Likewise.
2384 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
2385 * config/mips/linux.h: Likewise.
2386 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
2387 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
2388
2389 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
2390 to the list of include files when using gas.
2391 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
2392 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
2393 * config/mips/elf64.h: Likewise.
2394 * config/mips/iris5.h: Likewise.
2395 * config/mips/linux.h: Likewise.
2396 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
2397 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
2398 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
2399 * config/mips/sdb.h: ...this new file.
2400
2401 2003-07-14 Douglas Rupp <rupp@gnat.com>
2402
2403 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
2404 argument to getcwd; use fixed buffer instead.
2405
2406 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
2407
2408 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
2409 * fixinc/fixinc.wrap: Delete.
2410
2411 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
2412
2413 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
2414 don't have 2.
2415
2416 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
2417
2418 * ggc-page.c (struct globals): Add new fields to keep track of the
2419 total allocated memory and overhead.
2420 (ggc_print_statistics): Print them.
2421 (ggc_alloc): Keep track of the total allocated memory and the
2422 overhead.
2423
2424 * tree.c (dump_tree_statistics): Increase spacing.
2425 (enum tree_node_kind): Move to ...
2426 * tree.h (enum tree_node_kind): ... here.
2427 (tree_node_counts, tree_node_sizes): Declare.
2428
2429 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
2430
2431 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
2432
2433 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2434
2435 PR optimization/11440
2436 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
2437 SIGN_EXTRACT SETs.
2438
2439 2003-07-14 Alan Modra <amodra@bigpond.net.au>
2440
2441 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
2442 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
2443 (emit_group_load, emit_group_store): Adjust declarations.
2444 Remove most occurrences of #ifdef TREE_CODE.
2445 * expr.c (emit_group_load): Add "type" param, and use
2446 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
2447 aligned accesses if !SLOW_UNALIGNED_ACCESS.
2448 (emit_group_store): Likewise.
2449 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
2450 emit_group_load and emit_group_store calls.
2451 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
2452 BLOCK_REG_PADDING to determine whether we need endian_correction.
2453 (load_register_parameters): Localize vars. Handle shifting of
2454 small values to the correct end of regs. Adjust emit_group_load
2455 call.
2456 (expand_call, emit_library_call_value_1): Adjust emit_group_load
2457 and emit_group_store calls.
2458 * function.c (assign_parms): Set mem alignment for stack slots.
2459 Adjust emit_group_store call. Store values at the "wrong" end
2460 of regs to the stack. Use BLOCK_REG_PADDING.
2461 (locate_and_pad_parm): Save where_pad.
2462 (expand_function_end): Adjust emit_group_load call.
2463 * stmt.c (expand_value_return): Adjust emit_group_load call.
2464 * Makefile.in (calls.o): Depend on $(OPTABS_H).
2465 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
2466 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
2467 (MUST_PASS_IN_STACK): Define.
2468 (BLOCK_REG_PADDING): Define.
2469 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
2470 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
2471 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
2472 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
2473 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
2474
2475 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
2476
2477 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
2478
2479 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2480
2481 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
2482 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
2483
2484 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
2485
2486 PR other/11123
2487 * toplev.c: Don't cut off option names.
2488
2489 2003-07-13 Andreas Jaeger <aj@suse.de>
2490
2491 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
2492 to integer of different size.
2493
2494 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
2495
2496 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
2497 to (eq (and X 1) 0).
2498
2499 2003-07-13 Andreas Jaeger <aj@suse.de>
2500
2501 * config.gcc: Add pmmintrin.h for x86_64-*-*.
2502
2503 2003-07-13 Zack Weinberg <zack@codesourcery.com>
2504
2505 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
2506 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
2507 list. Move these all together down by cpplib.
2508
2509 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
2510 definition of CPPCHAR_SIGNED_T.
2511
2512 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
2513 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
2514 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
2515
2516 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
2517 * cppinit.c (cpp_create_reader): Likewise.
2518
2519 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
2520 * cpptrad.c: Likewise. All callers changed.
2521 * cpplib.c: All callers changed.
2522 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
2523 * hashtable.h: Define GTY(x) to nothing here too.
2524
2525 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2526
2527 * stor-layout.c (compute_record_mode): Remove very obsolete test
2528 that forces BLKmode for records with fields crossing word boundary.
2529
2530 2003-07-13 Zack Weinberg <zack@codesourcery.com>
2531
2532 * Makefile.in: Remove orphan reference to acconfig.h.
2533
2534 2003-07-13 Andreas Jaeger <aj@suse.de>
2535
2536 * cgraphunit.c: Convert prototypes to ISO C90.
2537
2538 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
2539
2540 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
2541 (for OpenBSD).
2542 * fixinc/fixincl.x: Rebuild.
2543
2544 2003-07-12 Zack Weinberg <zack@codesourcery.com>
2545
2546 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
2547 i?86-*-*. Use correct name of cache variable.
2548 * configure: Regenerate.
2549
2550 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
2551
2552 * config/alpha/alpha.c: Fix comment typos.
2553 * config/alpha/alpha.md: Likewise.
2554 * config/arm/arm.c: Likewise.
2555 * config/arm/arm.md: Likewise.
2556 * config/arm/lib1funcs.asm: Likewise.
2557 * config/avr/avr.md: Likewise.
2558 * config/arm/README-interworking: Fix typos.
2559
2560 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
2561
2562 * c-format.c: Fix comment formatting.
2563 * c-typeck.c: Likewise.
2564 * coverage.c: Likewise.
2565 * cppcharset.c: Likewise.
2566 * cpplib.c: Likewise.
2567 * dbxout.c: Likewise.
2568 * gcov-io.h: Likewise.
2569 * toplev.c: Likewise.
2570
2571 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
2572
2573 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
2574 fix.
2575
2576 2003-07-12 Zack Weinberg <zack@codesourcery.com>
2577
2578 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
2579 uses three-argument AC_DEFINE so no acconfig.h entries are
2580 needed.
2581 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
2582 which contains the GAS version number as a scaled integer.
2583 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
2584 ability to check for ELF assembler.
2585 (gcc_GAS_CHECK_FEATURE): New macro.
2586 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
2587 assembler feature checks using gcc_GAS_CHECK_FEATURE.
2588 Use three-argument AC_DEFINE everywhere.
2589 * acconfig.h: Deleted.
2590 * config.in, configure: Regenerate.
2591
2592 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
2593
2594 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
2595 (on OpenBSD).
2596 * fixinc/fixincl.x: Regenerate.
2597
2598 * fixinc/inclhack.def (gnu_types): Improve comment.
2599
2600 2003-07-12 Andreas Jaeger <aj@suse.de>
2601
2602 * fp-test.c (main): Use ISO C90 prototype.
2603
2604 * version.c: Remove unneded include of ansidecl.h.
2605
2606 * cgraph.h: Convert prototypes to ISO C90.
2607 * cgraph.c: Likewise.
2608 * fix-header.c: Likewise.
2609 * ra.h: Likewise.
2610 * protoize.c: Likewise.
2611
2612 Sat Jul 12 06:09:38 CEST 2003 Jan Hubicka <jh@suse.cz>
2613
2614 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
2615 warning.
2616
2617 Sat Jul 12 03:06:01 CEST 2003 Jan Hubicka <jh@suse.cz>
2618 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
2619
2620 * cgraph.c (cgraph_max_uid): New global variable.
2621 (cgraph_node): Set uid field.
2622 (create_edge): Keep inline flags consistent.
2623 (dump_cgraph): Dump more info.
2624 * cgraph.h (struct cgraph_local_info): Remove inline_many and
2625 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
2626 (struct cgraph_global_info): Add insns, calls, cloned_times,
2627 will_be_output.
2628 (struct cgraph_node): Add uid.
2629 (struct cgraph_edge): Add inline_call.
2630 (cgraph_max_uid, cgraph_inline_p): Declare.
2631 * cgraph.c: Include params.h and fibheap.h
2632 (cgraph_mark_functions_to_inline_once): Kill.
2633 (INSNS_PER_CALL): New constant.
2634 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
2635 static variables.
2636 (cgraph_finalize_function): Do not analyze inlining.
2637 (cgraph_finalize_compilation_unit): Set inlining attributes.
2638 (cgraph_mark_functions_to_output): More consistency checks.
2639 (cgraph_optimize_function): Set current_function_decl to NULL.
2640 (cgraph_expand_function): Use new inline flags.
2641 (cgraph_postorder): Expand from cgraph_expand_functions.
2642 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
2643 (cgraph_inlined_into, cgraph_inlined_callees,
2644 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
2645 cgraph_mark_inline, cgraph_check_inline_limits,
2646 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
2647 cgraph_decide_inlining, cgraph_inline_p): New functions.
2648 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
2649 PARAM_INLINE_UNIT_GROWTH): New parameters.
2650 * tree-inline.c (struct inline_data): New field current_decl.
2651 (expand_call_inline): Avoid forward declarations; use
2652 inlinable_function_p.
2653 (optimize_inline_calls): Set id.current_decl.
2654
2655 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
2656
2657 * configure.in: Remove wrongly added definition of
2658 local_prefix.
2659 * configure: Regenerate.
2660
2661 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
2662
2663 * rtl.def (NOTE): Do not use padding.
2664
2665 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
2666
2667 * doc/install.tex: Update required binutils for i?86-*-linux*
2668
2669 2003-07-11 Richard Henderson <rth@redhat.com>
2670
2671 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
2672
2673 2003-07-11 Mark Mitchell <mark@codesourcery.com>
2674
2675 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
2676 TRANSLATION_UNIT_DECL as top_level.
2677
2678 2003-07-11 Jakub Jelinek <jakub@redhat.com>
2679
2680 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
2681 then fall back to cmpstrM.
2682 * builtins.c (expand_builtin_memcmp): Likewise.
2683 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
2684 (s390_expand_cmpmem): ... this.
2685 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
2686 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
2687 from cmpstr* patterns. Rename call to s390_expand_cmpstr
2688 to s390_expand_cmpmem.
2689 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
2690 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
2691 to cmpmem*.
2692 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
2693 cmpstr* patterns.
2694 * doc/md.texi (cmpstrM): Describe as String compare insn, not
2695 Block compare insn.
2696 (cmpmemM): Add.
2697
2698 2003-07-11 Loren James Rittle <ljrittle@acm.org>
2699
2700 * config/i386/freebsd.h (SET_ASM_OP): Remove.
2701 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
2702 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
2703 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
2704
2705 2003-07-11 Richard Henderson <rth@redhat.com>
2706
2707 * function.c (assign_parms): Don't recombine complex args if
2708 fnargs is unchanged from orig_fnargs.
2709 (split_complex_args): Return args without complex before copying.
2710 Re-layout the modified parameters.
2711
2712 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
2713
2714 * regclass.c (choose_hard_reg_mode): Add third argument.
2715 Changed all callers.
2716 * rtl.h (choose_hard_reg_mode): Update declaration.
2717 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
2718 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
2719
2720 2003-07-11 Geoffrey Keating <geoffk@apple.com>
2721
2722 * c-decl.c (finish_decl): Handle 'used' here...
2723 * cgraphunit.c (cgraph_finalize_function): ... and here ...
2724 * c-common.c: (handle_used_attribute): ... not here.
2725
2726 * configure.in (onstep): Support --enable-intermodule.
2727 * Makefile.in (OBJS-common): New.
2728 (OBJS-md): New.
2729 (OBJS-archive): New.
2730 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
2731 (OBJS-onestep): New.
2732 (libbackend.a): Support @onestep@.
2733 (libbackend.o): New.
2734 * configure: Regenerate.
2735
2736 * c-common.h (c_reset_state): New prototype.
2737 (c_parse_file): New prototype.
2738 (finish_file): Move prototype from c-tree.h.
2739 * c-decl.c: Include <hashtab.h>.
2740 (builtin_decls): New.
2741 (current_file_decl): New.
2742 (duplicate_decls): Add extra parameter. Change all callers. Don't
2743 output duplicate common symbols.
2744 (link_hash_hash): New.
2745 (link_hash_eq): New.
2746 (poplevel): Handle popping of the top level.
2747 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
2748 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
2749 (pushdecl_top_level): Likewise.
2750 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
2751 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
2752 (finish_decl): Handle TRANSLATION_UNIT_DECL.
2753 (merge_translation_unit_decls): New.
2754 (c_write_global_declarations): New.
2755 (c_reset_state): New.
2756 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
2757 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
2758 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
2759 TRANSLATION_UNIT_DECL.
2760 (c_objc_common_finish_file): Call merge_translation_unit_decls.
2761 * c-opts.c (in_fnames): Rename from in_fname.
2762 (c_common_decode_option): Handle multiple input filenames.
2763 (c_common_post_options): Likewise.
2764 (c_common_parse_file): Likewise; also, call c_parse_file rather than
2765 yyparse.
2766 * c-parse.in: Move cleanup code to c_parse_file.
2767 (free_parser_stacks): Move contents to c_parse_file.
2768 (c_parse_file): New.
2769 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
2770 for integer types.
2771 (C_DECL_FILE_SCOPE): New.
2772 (finish_file): Move prototype to c-common.h.
2773 (merge_translation_unit_decls): New prototype.
2774 (comptypes): Add extra parameter to prototype.
2775 (c_write_global_declarations): New prototype.
2776 * c-typeck.c (tagged_types_tu_compatible_p): New.
2777 (function_types_compatible_p): Add extra parameter, change all callers.
2778 (type_lists_compatible_p): Likewise.
2779 (comptypes): Likewise.
2780 (struct tagged_tu_seen): New.
2781 (tagged_tu_seen_base): New.
2782 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
2783 (c_mark_addressable): Remove #if 0 code.
2784 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
2785 comment explaining why it shouldn't have to.
2786 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
2787 options.
2788 * cppinit.c (cpp_read_next_file): New.
2789 (cpp_read_main_file): Use it.
2790 * cpplib.c (undefine_macros): New.
2791 (cpp_undef_all): New.
2792 * cpplib.h (cpp_read_next_file): Prototype.
2793 (cpp_undef_all): Prototype.
2794 * langhooks-def.h (write_global_declarations): Remove prototype.
2795 * toplev.h (write_global_declarations): Add prototype.
2796 * tree.c (decl_type_context): Use switch statement, handle
2797 TRANSLATION_UNIT_DECL.
2798 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
2799 (TRANSLATION_UNIT_DECL): New kind of tree.
2800 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
2801 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
2802 * doc/invoke.texi: Make attempt to document new functionality.
2803
2804 2003-05-19 Per Bothner <bothner@apple.com>
2805
2806 * gcc.c (combine_inputs): New.
2807 (process_command): Set combine_inputs.
2808 (do_spec_1): Handle combine_inputs.
2809 (main): Likewise.
2810
2811 2003-07-10 James E Wilson <wilson@tuliptree.org>
2812
2813 PR optimization/9745
2814 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
2815 loop_insn_emit_before.
2816 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
2817
2818 2003-07-10 Zack Weinberg <zack@codesourcery.com>
2819
2820 * cppcharset.c: Fix comment.
2821 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
2822 (EILSEQ): #define to EINVAL if not already defined.
2823 (convert_using_iconv): #if out when !HAVE_ICONV.
2824 (init_iconv_desc): Handle !HAVE_ICONV here...
2825 (cpp_init_iconv): ...not here.
2826
2827 2003-07-11 Neil Booth <neil@daikokuya.co.uk>
2828
2829 * common.opt: More --help messages.
2830 * opts.c (print_help): Use puts().
2831 * toplev.c (f_options): Remove help text.
2832 (display_help): Don't dump f_options.
2833
2834 2003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
2835
2836 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
2837 Move i?86-*-interix* to the don't-fix list.
2838 * fixinc/fixinc.interix: Delete with extreme prejudice.
2839
2840 2003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
2841
2842 PR bootstrap/10758
2843 * doc/install.texi: Document requirements for ia64-*-hpux* target.
2844
2845 2003-07-10 Roger Sayle <roger@eyesopen.com>
2846
2847 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
2848
2849 2003-07-10 Zack Weinberg <zack@codesourcery.com>
2850
2851 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
2852 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
2853 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
2854 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
2855 convert_no_conversion, convert_using_iconv): New functions.
2856 (APPLY_CONVERSION): New macro.
2857 (struct conversion, conversion_tab): New data structure.
2858 (init_iconv_desc): Check conversion_tab for a custom conversion
2859 primitive before trying to use iconv.
2860 (convert_cset): Deleted.
2861 (cpp_init_iconv): Use UTF- terminology, not UCS-.
2862 (_cpp_destroy_iconv): Update to match.
2863 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
2864 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
2865 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
2866 (_cpp_interpret_string_notranslate): New function, moved here
2867 from cpplib.c.
2868
2869 * cpphash.h (convert_f, struct cset_converter): New types.
2870 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
2871 are now struct cset_converter, not bare iconv_t.
2872 Update prototypes.
2873 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
2874 all callers changed.
2875
2876 2003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
2877
2878 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
2879 to opts.sh command line.
2880 * opts.sh: Write to temporary files with a move-if-change at the end.
2881
2882 2003-07-10 Denis Chertykov <denisc@overta.ru>
2883 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2884
2885 * combine.c (gen_binary): Handle the CLOBBER rtx and
2886 don't build a binary operation with it.
2887
2888 2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2889
2890 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
2891 store_killed_after, store_killed_before): Keep track of the correct
2892 dependency function to use.
2893
2894 2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
2895 * toplev.c (do_compile): Don't try to open dump files before
2896 lang_dependent_init initializes dump_base_name.
2897
2898 2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2899
2900 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
2901 Use ARRAY_SIZE.
2902 * config/frv/frv.c (frv_expand_builtin): Likewise.
2903 * config/sh/sh.c (sh_media_init_builtins): Likewise.
2904
2905 2003-07-09 Mark Mitchell <mark@codesourcery.com>
2906
2907 PR c++/10032
2908 * doc/invoke.texi (C++ Dialect Options): Change documentation of
2909 -fpermissive.
2910
2911 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
2912
2913 * tm.texi (RETURN_ADDR_OFFSET): Document.
2914
2915 2003-07-10 Nathan Sidwell <nathan@codesourcery.com>
2916
2917 * gcov-io.h: Update documentation.
2918 (GCOV_UNSIGNED2STRING): New.
2919 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
2920 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
2921 GCOV_TAG_SUMMARY_LENGTH): Adjust.
2922 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
2923 GCOV_TAG_COUNTER_NUM): New.
2924 (GCOV_BLOCK_SIZE): Number of words.
2925 (gcov_var): Adjust buffer type.
2926 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
2927 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
2928 count, not byte count.
2929 (gcov_open): Adjust overread init.
2930 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
2931 gcov_write_string, gcov_write_tag, gcov_write_length,
2932 gcov_write_tag_length): Adjust.
2933 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
2934 (gcov_sync, gcov_seek): Adjust.
2935 * gcov-dump.c (print_usage): Show gcc version only.
2936 (dump_file): Use GCOV_UNSIGNED2STRING.
2937 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
2938 * gcov.c (print_version): Show gcc version only.
2939 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
2940 GCOV_TAG_*_NUM macros.
2941 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
2942 GCOV_TAG_COUNTER_LENGTH.
2943 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
2944 Use GCOV_TAG_COUNTER_NUM.
2945 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
2946 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
2947
2948 2003-07-10 Andreas Schwab <schwab@suse.de>
2949
2950 * gcov-dump.c (dump_file): Fix missing address operator.
2951
2952 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
2953
2954 PR c/11449
2955 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
2956 of HOST_WIDE_INT.
2957 (fold_single_bit_test): If sign_bit_p() fails, assume that the
2958 bit being tested is not a sign bit.
2959
2960 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
2961
2962 * config/h8300/h8300.md (a peephole2): New.
2963
2964 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
2965
2966 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
2967 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
2968 from ld-linux.so.2 to ld.so.1.
2969 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
2970 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
2971 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
2972 nor -Wl,-rpath-link.
2973 (LIB_SPEC): Add -rpath-link if !static.
2974 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
2975 * config/mn10300/mn10300.c (mn10300_protect_label): New
2976 variable.
2977 * config/mn10300/linux.h (PRINT_OPERAND,
2978 PRINT_OPERAND_ADDRESS): Set it during their execution.
2979 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
2980 mn10300_protect_label is set.
2981 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
2982 -Wl,-rpath-link.
2983 (LIB_SPEC, STARTFILE_SPEC): Define.
2984 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
2985 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
2986 FLOAT_BIT_ORDER_MISMATCH.
2987 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
2988 * config.gcc (am33_2.0-*-linux*): Added.
2989 * config/mn10300/linux.h: New.
2990 * config/mn10300/t-linux: New.
2991
2992 2003-07-10 Andreas Jaeger <aj@suse.de>
2993
2994 * fold-const.c: Properly wrap prototypes.
2995
2996 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
2997
2998 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
2999 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
3000 Moved from...
3001 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
3002 * config/mn10300/mn10300.h: GTY-declare it.
3003 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
3004 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
3005 prototype. Use incoming RTL argument.
3006 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
3007 * config/mn10300/mn10300.md (int_label): Move C statements...
3008 (GOTaddr2picreg): ... here.
3009 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
3010 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
3011 * config/mn10300/mn10300.c (mn10300_encode_section_info):
3012 ... here. New function.
3013 (TARGET_ENCODE_SECTION_INFO): Define to it.
3014 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
3015 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
3016 pattern name.
3017 (mn10300_loadPC): Define as insn splittable after reload.
3018 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
3019 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
3020 be defined in .rodata even in PIC, now that the assembler
3021 supports that.
3022 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
3023 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
3024 symbol take an underscore prefix.
3025 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
3026 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
3027 legitimize_pic_address): Declare.
3028 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
3029 the PIC register as fixed.
3030 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
3031 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
3032 PIC.
3033 (LEGITIMATE_PIC_OPERAND_P): Define.
3034 (PIC_OFFSET_TABLE_REGNUM): Define.
3035 (GOT_SYMBOL_NAME): Define.
3036 (SYMBOLIC_CONST_P): Define.
3037 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
3038 symbols.
3039 (MN10300_GLOBAL_P): Test it.
3040 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
3041 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
3042 * config/mn10300/mn10300.c (print_operand): Handle unspec.
3043 (expand_prologue): Set PIC register.
3044 (call_address_operand): Don't match SYMBOL_REFs in PIC.
3045 (legitimize_address): Call legitimize_pic_address.
3046 (legitimize_pic_address): New fn.
3047 (legitimate_pic_operand_p): New fn.
3048 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
3049 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
3050 UNSPEC_PLT): New constants.
3051 (pop_pic_reg): New insn.
3052 (movsi): Adjust non-PIC addresses.
3053 (builtin_setjmp_receiver): Restore the PIC register.
3054 (casesi): New insn.
3055 (call): Adjust non-PIC addresses.
3056 (int_label, GOTaddr2picreg): New expands.
3057 (am33_loadPC): New insn.
3058 (mn10300_loadPC): New expand.
3059 (call_next_insn): New insn.
3060 (add_GOT_to_pic_reg): New expand.
3061 (symGOT2reg, symGOT2reg_i): New expands.
3062 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
3063 (sym2PIC, sym2PLT): New expands.
3064
3065 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
3066
3067 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
3068 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
3069 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
3070 to flag_unsafe_math_optimizations.
3071 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
3072 * config/mn10300/mn10300.c (expand_prologue): Mark
3073 FP-register-saving insns as frame-related.
3074 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
3075 * config/mn10300/mn10300.c
3076 (mn10300_get_live_callee_saved_regs): Don't search past
3077 LAST_EXTENDED_REGNUM.
3078 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
3079 * config/mn10300/mn10300.md: Remove excessive line breaks from
3080 `@' output patterns that were accounted as additional
3081 alternatives.
3082 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
3083 Re-introduce changes accidentally removed in Richard Sandiford's
3084 2000-12-05's patch.
3085 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
3086 Re-instate am33-2 lost in merge from net GCC.
3087 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
3088 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
3089 floating-point registers.
3090 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
3091 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
3092 pessimizations that had gone in on 2000-05-08.
3093 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
3094 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
3095 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
3096 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
3097 operand 0.
3098 * (movhi): Likewise.
3099 * (movsi): Likewise.
3100 * (movsf): Likewise.
3101 * (movdi): Likewise.
3102 * (movdf): Likewise.
3103 Wed May 24 13:16:09 2000 Alexandre Oliva <aoliva@cygnus.com>
3104 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
3105 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
3106 (expand_prologue, expand_epilogue): Save and restore FP regs.
3107 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
3108 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
3109 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
3110 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
3111 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
3112 Do not clobber cc0.
3113 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
3114 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
3115 Discourage the two-argument, longer opcodes.
3116 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
3117 ones.
3118 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
3119 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
3120 * config/mn10300/mn10300.md (cmpsf): New pattern.
3121 (branch): Test mdep.fpCC and output fbCC.
3122 * config/mn10300/mn10300.c (print_operand): Output conditions.
3123 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
3124 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
3125 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
3126 mulsf3, divsf3): Use the `F' constraint for FP values.
3127 * config/mn10300/mn10300.c (const_1f_operand): New function.
3128 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
3129 * config/mn10300/mn10300.md (sqrtsf2): New expand.
3130 (rsqrtsf2): New insn.
3131 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
3132 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
3133 previous check-in.
3134 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
3135 * config/mn10300/mn10300.md (abssf2, negdf2): On
3136 TARGET_AM33_2, expand to...
3137 (abssf2_am33_2, negdf2_am33_2): New insns.
3138 (addsf3, subsf3, mulsf3, divsf3): Likewise.
3139 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
3140 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
3141 movdi, movdf): Added FP regs.
3142 * invoke.texi (-mam33-2, -mno-am33-2): Document.
3143 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
3144 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
3145 New macros.
3146 (REGNO_AM33_2_FP_P): Renamed to...
3147 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
3148 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
3149 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
3150 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
3151 regs from GENERAL_REGS.
3152 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
3153 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
3154 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
3155 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
3156 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
3157 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
3158 as FP_REGS.
3159 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
3160 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
3161 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
3162 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
3163 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
3164 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
3165 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
3166 AM33/2.0 floating-point registers.
3167 (CONDITIONAL_REGISTER_USAGE): Adjust.
3168 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
3169 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
3170 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
3171 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
3172 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
3173 (MULTILIB_DIRNAMES): Likewise.
3174 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
3175 `__AM33_2__' when `-mam33-2' is given.
3176 (TARGET_AM33_2): Define.
3177 (TARGET_SWITCHES): Adjust.
3178 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
3179 when appropriate.
3180
3181 2003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
3182
3183 * doc/install.texi: Add missing @.
3184
3185 2003-07-09 Bob Wilson <bob.wilson@acm.org>
3186
3187 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
3188
3189 2003-07-09 Aldy Hernandez <aldyh@redhat.com>
3190
3191 PR/11144
3192 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
3193
3194 2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
3195
3196 PR bootstrap/11043
3197 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
3198 "x-crtfini.o" with "crtinit.o", "crtfini.o".
3199
3200 * fixinc/inclhack.def (limits_ifndefs): Add select test.
3201 * fixinc/fixincl.x: Rebuild.
3202
3203 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
3204 * fixinc/fixincl.x: Rebuild.
3205
3206 2003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
3207
3208 * doc/install.texi (Configuration): Document the valgrind option
3209 to --enable-checking.
3210
3211 Wed Jul 9 16:16:30 CEST 2003 Jan Hubicka <jh@suse.cz>
3212
3213 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
3214
3215 2003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3216
3217 * c-lex.c (cb_ident): Cast cstr.text to const char *.
3218
3219 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
3220
3221 * gcov-io.h: Update documentation.
3222 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
3223 GCOV_NOTE_MAGIC.
3224 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
3225 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
3226 (struct gcov_var): Change buffer's type. Add endian flag.
3227 (gcov_open): Remove mode in libgcov.
3228 (gcov_magic): Prototype.
3229 * gcov-io.c (from_file): New.
3230 (gcov_open): Clear endian flag.
3231 (gcov_magic): New.
3232 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
3233 pointers.
3234 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
3235 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
3236 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
3237 * gcov-iov.c (main): Correct cast.
3238 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
3239 conversion.
3240 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
3241 (coverage_init): Use GCOV_NOTE_SUFFIX.
3242 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
3243 Rename to gcov_version, and return flag.
3244 (gcov_exit): Use gcov_version.
3245 (__gcov_init): Use gcov_version.
3246 * Makefile.in (coverageexts): Update.
3247 * gcov.c (print_version): Remove endianness conversion.
3248 (create_file_names): Use GCOV_NOTE_SUFFIX.
3249 (read_graph_file): Use gcov_magic.
3250 (read_count_file): Likewise.
3251 * gcov-dump.c (dump_file): Remove endianness conversion, use
3252 gcov_magic.
3253
3254 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
3255
3256 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
3257 coverage is on.
3258 * configure: Regenerated.
3259 * Makefile.in (ALL_CFLAGS): Correct its comment.
3260
3261 2003-07-08 Mark Mitchell <mark@codesourcery.com>
3262
3263 * fold-const.c (make_range): Do not access operand 1 for a
3264 zero-operand operator.
3265
3266 2003-07-09 Neil Booth <neil@daikokuya.co.uk>
3267
3268 * toplev.c (warn_dummy, W_options): Die.
3269 (display_help): Don't print W_options.
3270 * common.opt: Add W_options help from toplev.c.
3271
3272 2003-07-09 Andreas Jaeger <aj@suse.de>
3273
3274 * opts.c (wrap_help): Only pass int arguments as arguments to
3275 printf's '*' modifier. Change argument of function.
3276
3277 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
3278
3279 * doc/invoke.texi: Fix misspelling of "@item".
3280
3281 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
3282
3283 * config/i386/i386.md: Remove an old comment about
3284 NOTICE_UPDATE_CC.
3285
3286 Wed Jul 9 03:00:10 CEST 2003 Jan Hubicka <jh@suse.cz>
3287
3288 * cgraph.c (cgraph_node_name): New function.
3289 (dump_cgraph): Use it.
3290 * cgraph.h (cgraph_dump_file): Declare.
3291 (cgraph_node_name): Declare.
3292 * cgraphunit.c: Include timevar.h
3293 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
3294 (cgraph_optimize_function): Use TV_INTEGRATION.
3295 (cgraph_mark_local_functions): reorganize dumps.
3296 (cgraph_mark_functions_to_inline_once): Likewise.
3297 (cgraph_optimize): Likewise; use timevar.
3298 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
3299 * toplev.c (dump_file_index): Add DFI_cgraph.
3300 (dump_file_info): Likewise.
3301 (cgraph_dump_file): New global variable.
3302 (do_compile): Open and close cgraph dump.
3303 * invoke.texi (-d): Document new flag; renumber.
3304
3305 2003-07-08 Roger Sayle <roger@eyesopen.com>
3306
3307 PR c/11370
3308 * calls.c (emit_call_1): Don't bother popping the arguments off of
3309 the stack after a noreturn function call; The adjustment is dead.
3310 (expand_call): Likewise.
3311
3312 2003-07-08 Geoffrey Keating <geoffk@apple.com>
3313
3314 * expr.c (MOVE_MAX_PIECES): Move from here...
3315 * defaults.h (MOVE_MAX_PIECES): ... to here.
3316
3317 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
3318
3319 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
3320
3321 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3322
3323 * genattr.c (internal_dfa_insn_code): Don't prototype.
3324 * genattrtab.c (attr_desc): Add `static_p' field.
3325 (expand_units): Make blockage range and ready cost functions
3326 static.
3327 (write_attr_get): Don't add extern prototypes in C file. Mark
3328 static functions as appropriate.
3329 (find_attr, make_internal_attr): Initialize static_p.
3330 * genattrtab.h (ATTR_STATIC): New macro.
3331 * genautomata.c (output_internal_reset_func): Mark output function
3332 as inline.
3333 (make_internal_dfa_insn_code_attr): Mark output function as static.
3334
3335 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3336
3337 * genattrtab.h: Add new macros for attr `special' flags.
3338 * genattrtab.c (attr_desc): Reorder/resize fields better.
3339 Use attr `special' macros in all calls to make_internal_attr.
3340 * genautomata.c: Likewise.
3341
3342 Wed Jul 9 02:25:39 CEST 2003 Jan Hubicka <jh@suse.cz>
3343
3344 * c-common.c (c_estimate_num_insns_1): New static function.
3345 (c_estimate_num_insns): New global function.
3346 * c-common.h (DECL_NUM_STMTS): Rename to...
3347 (DECL_ESTIMATED_INSNS): ... this.
3348 (c_estimate_num_insns): Declare.
3349 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
3350 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
3351 * c-semantics.c (add_stmt): Do not account statements.
3352 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
3353 New.
3354 * langhooks.h (lang_hooks_for_tree_inlining): Add
3355 estimate_num_insns
3356 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
3357 to 100.
3358 (max-inline-insns): set to 300.
3359 (min-inline-insns): set to 10.
3360 * tree-inline.c (struct inline_data): Rename inlined_stmts to
3361 inlined-insns.
3362 (INSNS_PER_STMT): Kill.
3363 (inlinable_function_p): Compute and store body size.
3364 (expand_call_inline): Likewise.
3365 (optimize_inline_calls): Likewise.
3366
3367 2003-07-08 James E Wilson <wilson@tuliptree.org>
3368
3369 PR target/10021
3370 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
3371 loop over new variable t2 instead of t.
3372
3373 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
3374
3375 PR bootstrap/11455
3376 * config/i386/winnt.c: Replace use of error(), warning() with
3377 error_with_decl(), warning_with_decl(), throughout.
3378
3379 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
3380
3381 * opts.c (wrap_help): Use unsigned int, not size_t.
3382
3383 2003-07-08 Stephane Carrez <stcarrez@nerim.fr>
3384
3385 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
3386 as .file/.loc directives are incompatible with linker relaxation.
3387
3388 2003-07-08 Zack Weinberg <zack@codesourcery.com>
3389
3390 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
3391 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
3392 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
3393 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
3394 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
3395 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
3396 Escape { and } characters which are not part of range expressions.
3397 * fixinc/fixincl.x: Regenerate.
3398 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
3399
3400 2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
3401
3402 PR c/1687
3403 * tree-inline.c (find_alloca_call): Use
3404 walk_tree_without_duplicates, instead of walk_tree.
3405 (find_builtin_longjmp_call): Likewise.
3406 * c-objc-common.c (c_cannot_inline_fn): Likewise.
3407 * c-semantics.c (find_reachable_label): Likewise.
3408
3409 2003-07-08 Jakub Jelinek <jakub@redhat.com>
3410
3411 PR c/11420
3412 * config/i386/i386.c (ix86_check_movabs): New function.
3413 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
3414 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
3415 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
3416
3417 2003-07-08 Chris Demetriou <cgd@broadcom.com>
3418
3419 * Makefile.in (install-po): Cope with empty CATALOGS.
3420
3421 2003-07-08 Richard Sandiford <rsandifo@redhat.com>
3422
3423 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
3424 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
3425 (SECTION_FUNCTION_TEMPLATE): Delete.
3426 * config/mips/elf.h: As for elf64.h.
3427 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
3428 * config/mips/linux.h: As for elf.h
3429 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
3430 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
3431 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
3432 of in_sdata from current_section_name and current_section_flags.
3433 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
3434 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
3435 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
3436 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
3437 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
3438 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
3439 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
3440 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
3441 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
3442 (override_options): Remove setting of MASK_GPOPT.
3443 (mips_output_external): Use mips_in_small_data_p to check whether a
3444 symbol needs an .extern directive. Don't emit such directives for
3445 TARGET_EXPLICIT_RELOCS.
3446 (mips_declare_object): Update accordingly.
3447 (mips_select_rtx_section): Call named_section rather than
3448 SMALL_DATA_SECTION.
3449 (mips_select_section): Use default_elf_section_section for everything
3450 except .text string constants.
3451 (mips_in_small_data_p): New function.
3452 (mips_encode_section_info): Remove small data handling.
3453 (mips_unique_section): Delete.
3454 (iris6_section_type_flags): New function.
3455 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
3456
3457 2003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3458
3459 PR Target/11453
3460 * pa.md: Disparage all mtsar constraints.
3461 (extzv, extv, insv): Don't fail on length of {32|64}.
3462
3463 2003-07-08 Zack Weinberg <zack@codesourcery.com>
3464
3465 * system.h: Poison MAP_CHARACTER.
3466 * config/i370/i370-protos.h (mvs_map_char): Delete.
3467 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
3468 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
3469 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
3470
3471 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
3472
3473 * toplev.c (randomize): Correct call to time().
3474
3475 2003-07-08 Jakub Jelinek <jakub@redhat.com>
3476
3477 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
3478 REG_EQUIV notes as well.
3479
3480 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
3481
3482 * doc/md.texi: Fix the description of addmodecc.
3483
3484 2003-07-07 Zack Weinberg <zack@codesourcery.com>
3485
3486 * Makefile.in (top_builddir): Set to "..", not ".".
3487 (INTLLIBS, INTLDEPS): Delete.
3488 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
3489 (LIBDEPS): Add $(LIBICONV_DEP).
3490 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
3491 (INCLUDES): Replace -I../intl with @INCINTL@.
3492 ($(top_builddir)/intl/libintl.a): Delete rule.
3493 (stage2-start, stage3-start, stage4-start, stageprofile-start,
3494 stagefeedback-start): Use $$ for variable to be evaluated by
3495 shell, not make.
3496 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
3497 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
3498 * aclocal.m4: sinclude ../config/progtest.m4. Add
3499 contents of lcmessage.m4 from gettext distro.
3500 * configure.in: Check for wchar.h and setlocale. Set
3501 LIBICONV_DEP to the empty string and substitute it.
3502 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
3503 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
3504 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
3505 in $LIBINTL, to avoid linking it twice.
3506 * configure, config.in: Regenerate.
3507
3508 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
3509
3510 * fixinc/mkfixinc.sh: Remove winnt support.
3511 * fixinc/fixinc.winnt: Delete with extreme prejudice.
3512
3513 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
3514
3515 * Makefile.in: Update.
3516 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
3517 * c.opt: Update documentation.
3518 * common.opt: Add some help text.
3519 * opts.c: Include intl.h.
3520 (wrap_help, print_help): New.
3521 (find_opt, handle_option, common_handle_option): opt_text now
3522 contains the '-'. Use print_help to output help.
3523 * opts.h (struct cl_option): New member "help".
3524 * opts.sh: Update to handle help text output and to prepend
3525 options with '-'.
3526 * toplev.c (display_help): Remove some help text.
3527
3528 2003-07-07 David Edelsohn <edelsohn@gnu.org>
3529 Fariborz Jahanian <fjahanian@apple.com>
3530
3531 * configure.in: Test for PowerPC mfcr field support in assembler.
3532 * config.in, configure: Regenderated.
3533
3534 * config/rs6000/power4.md: Add mfcrf reservation.
3535 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
3536 * config/rs6000/rs6000.c (mfcr_operation): Define.
3537 (print_operand): Add 'Q' case for mfcrf.
3538 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
3539 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
3540 (movcc_internal1): Emit optional field operand for mfcr and set
3541 "type" attribute appropriately.
3542 (mfcr SCC): Likewise.
3543 (movesi_from_cr_one): New.
3544
3545 2003-07-07 Roger Sayle <roger@eyesopen.com>
3546
3547 * config/i386/i386.md: Correct check-in of incorrect version.
3548
3549 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3550
3551 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
3552 adjacent stdio calls.
3553 * c-decl.c (c_print_identifier): Likewise.
3554 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
3555 * print-rtl.c (print_rtx): Likewise.
3556 * print-tree.c (print_node_brief, print_node): Likewise.
3557 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
3558
3559 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
3560 * config.in, configure: Regenerated.
3561
3562 2003-07-07 Roger Sayle <roger@eyesopen.com>
3563
3564 PR target/10979
3565 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
3566 Changed to define_expand patterns that copy operand[1] to prevent
3567 it from being clobbered before emitting an atan2?f3_1 insn.
3568 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
3569 patterns that actually specify the behaviour of x87's FPATAN.
3570
3571 2003-07-07 Jakub Jelinek <jakub@redhat.com>
3572
3573 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
3574 clearing of SYMBOL_FLAG_LOCAL bit.
3575 If vcall_offset fits into signed 16-bit immediate, use
3576 one instruction for both addition and load.
3577
3578 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
3579
3580 * opts.c (common_handle_option): Correct handling of the
3581 -falign- switches that do and don't take an argument.
3582
3583 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
3584
3585 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
3586 today.
3587 (pushhi1_h8300hs): Likewise.
3588
3589 2003-07-07 Andreas Jaeger <aj@suse.de>
3590
3591 * genextract.c: Convert remaining prototypes to ISO C90.
3592
3593 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
3594 * fold-const.c (fold_single_bit_test): Likewise.
3595 * diagnostic.c (default_diagnostic_finalizer): Likewise.
3596 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
3597
3598 * gengtype.c (write_array): Generate ISO C90 prototypes.
3599
3600 * genflags.c (gen_proto): Generate ISO C90 prototypes.
3601
3602 2003-07-07 Roger Sayle <roger@eyesopen.com>
3603
3604 PR optimization/11059
3605 * expr.c (can_store_by_pieces): Return true if length is zero.
3606 (store_by_pieces): If length is zero and endp is two, abort,
3607 othwerise, if length is zero and endp is not two, return "to".
3608 (clear_by_pieces): Do nothing if length is zero.
3609 (clear_storage): Do nothing if length is zero.
3610 (store_constructor): Simplify code when size is zero, or the
3611 target has already been cleared. This avoids emitting a
3612 blockage instruction when initializing empty structures.
3613
3614 2003-07-07 Andreas Jaeger <aj@suse.de>
3615
3616 * mips-tfile.c: Convert prototypes to ISO C90.
3617 * mips-tdump.c: Convert prototypes to ISO C90.
3618
3619 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
3620
3621 * rtl.h (emit_line_note): Take a location_t.
3622 (emit_line_note_force): Remove.
3623 (set_file_and_line_for_statement): Take a location_t.
3624 * tree.g (emit_line_note): Take a location_t.
3625 * emit-rtl.c (emit_line_note): Take a location_t.
3626 (emit_line_note_force): Remove.
3627 * function.c (init_function_start): Adjust emit_line_note call.
3628 (expand_function_end): Use force_next_line_note, not
3629 emit_line_note_force.
3630 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
3631 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
3632 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
3633 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
3634 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
3635 genrtl_continue_stmt, genrtl_switch_stmt,
3636 genrtl_asm_stmt): Likewise.
3637 * expr.c (expand_expr): Likewise.
3638 * integrate.c (expand_inline_function): Likewise.
3639 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
3640 (expand_decl_init): Adjust emit_line_note call.
3641
3642 2003-07-07 Dale Johannesen <dalej@apple.com>
3643
3644 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
3645
3646 2003-07-07 Andreas Jaeger <aj@suse.de>
3647
3648 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
3649 * config/i386/i386.c: Likewise.
3650
3651 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
3652
3653 * config/h8300/h8300.md: Use gen_int_mode instead of
3654 GEN_INT (trunc_int_for_mode (...)).
3655
3656 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
3657
3658 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
3659 2 bytes and then subtract 2 from the stack pointer.
3660 (pushhi1_h8300hs): Likewise.
3661
3662 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
3663
3664 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
3665 -frandom-seed.
3666 * configure: Regenerated.
3667 * Makefile.in: Remove extraneous comment.
3668 * toplev.c (randomize): Protect against potential multiple calls.
3669 * doc/invoke.texi (-frandom-seed): Document use for in coverage
3670 files.
3671
3672 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3673 Eric Botcazou <ebotcazou@libertysurf.fr>
3674
3675 PR optimization/11198
3676 * alias.c (objects_must_conflict_p): Return 1 if the types have
3677 the same alias set, not if the alias sets only conflict.
3678
3679 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
3680
3681 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
3682 (convert_cset): Change inbuf to type ICONV_CONST char.
3683 * Makefile.in (LIBS): Add LIBICONV.
3684
3685 * doc/invoke.texi (-falign-functions): Document that
3686 when n is zero then a machine-dependent default is used.
3687 (-falign-labels): Document that when n is zero then a
3688 machine-dependent default is used and that -falign-labels =1
3689 is equivalent to -fno-align-labels.
3690 (-falign-loops): Likewise.
3691 (-falign-jumps): Likewise.
3692
3693 2003-07-06 Art Haas <ahaas@airmail.net>
3694
3695 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
3696 initializer syntax.
3697
3698 2003-07-06 James E Wilson <wilson@tuliptree.org>
3699
3700 PR optimization/9812
3701 * rtl.h (mem_for_const_double): Delete prototype.
3702 * varasm.c (mem_for_const_double): Delete function.
3703 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
3704 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
3705 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
3706 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
3707 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
3708 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
3709 comment about confused support for XFmode constants.
3710
3711 Mon Jul 7 02:03:56 CEST 2003 Jan Hubicka <jh@suse.cz>
3712
3713 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
3714
3715 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
3716
3717 * config/h8300/h8300.c: Fix comment typos.
3718 * config/h8300/h8300.md: Likewise.
3719 * config/i386/athlon.md: Likewise.
3720 * config/i386/i386.c: Likewise.
3721 * config/i386/pentium.md: Likewise.
3722 * config/ia64/ia64.c: Likewise.
3723 * config/ia64/itanium1.md: Likewise.
3724 * config/ia64/itanium2.md: Likewise.
3725 * config/m32r/m32r.md: Likewise.
3726 * config/m68hc11/m68hc11.c: Likewise.
3727 * config/mcore/mcore.c: Likewise.
3728 * config/mips/sr71k.md: Likewise.
3729 * config/mips/t-iris5-as: Likewise.
3730 * config/mmix/mmix.h: Likewise.
3731 * config/ns32k/ns32k.h: Likewise.
3732 * config/ns32k/NOTES: Fix a typo.
3733
3734 2003-07-06 Andreas Jaeger <aj@suse.de>
3735
3736 * stmt.c: Convert remaining prototypes to ISO C90.
3737 * cfglayout.c: Likewise.
3738 * dbxout.c: Likewise.
3739 * gcc.c: Likewise.
3740 * genemit.c: Likewise.
3741
3742 * basic-block.h: Convert prototypes to ISO C90.
3743 * c-parse.in: Likewise.
3744 * c-pragma.h: Likewise.
3745 * c-typeck.c: Likewise.
3746 * cfghooks.h: Likewise.
3747 * cfgloopanal.c: Likewise.
3748 * dbxout.h: Likewise.
3749 * debug.h: Likewise.
3750 * dwarf2asm.h: Likewise.
3751 * gcov.c: Likewise.
3752 * gengtype-lex.l: Likewise.
3753 * sched-int.h: Likewise.
3754 * timevar.c: Likewise.
3755
3756 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
3757
3758 * c-common.h (c_comon_handle_filename,
3759 c_common_missing_arguement): New.
3760 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
3761 LANG_HOOKS_MISSING_ARGUMENT): New.
3762 * c-opts.c (missing_arg): Rename c_common_missing_argument,
3763 update to be an appropriate langhook.
3764 (c_common_handle_option): Don't handle filenames.
3765 (c_common_handle_filename): New.
3766 * hooks.c (hook_void_constcharptr,
3767 hook_bool_constcharptr_size_t_false): New.
3768 * hooks.h (hook_void_constcharptr,
3769 hook_bool_constcharptr_size_t_false): New.
3770 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
3771 LANG_HOOKS_MISSING_ARGUMENT): New.
3772 (LANG_HOOKS_INITIALIZER): Update.
3773 * langhooks.h (struct lang_hooks): Add handle_filename and
3774 missing_argument.
3775 * opts.c (handle_option): Don't handle filenames here, but ...
3776 (handle_options): ... here.
3777 (common_handle_option): Don't handle missing arguments here.
3778 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
3779 LANG_HOOKS_MISSING_ARGUMENT): New.
3780
3781 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
3782
3783 * Makfile.in: Remove traces of mbchar.
3784 * c-parse.in (MULTIBYTE_CHARS): Remove.
3785 * config.in (MULTIBYTE_CHARS): Remove.
3786 * configure: Remove --enable-mbchar.
3787 * configure.in: Remove --enable-mbchar.
3788 * mbchar.c, mbchar.h: Remove.
3789 * system.h: Poison MULTIBYTE_CHARS.
3790 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
3791 * config/linux.h (MULTIBYTE_CHARS): Remove.
3792 * config/svr4.h (MULTIBYTE_CHARS): Remove.
3793 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
3794
3795 2003-07-06 Andreas Jaeger <aj@suse.de>
3796
3797 * varray.c (varray_check_failed): Fix typo.
3798
3799 * unroll.c: Convert prototypes to ISO C90.
3800 * varasm.c: Likewise.
3801 * varray.c: Likewise.
3802 * varray.h: Likewise.
3803 * vmsdbgout.c: Likewise.
3804 * xcoffout.c: Likewise.
3805 * xcoffout.h: Likewise.
3806
3807 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
3808
3809 * gcov-io.h: Add a local time stamp.
3810 (struct gcov_info): Add stamp field.
3811 (gcov_truncate): New.
3812 * coverage.c (read_counts_file): Skip the stamp.
3813 (coverage_begin_output): Write the stamp.
3814 (build_gcov_info): Declare and init the stamp.
3815 (coverage_finish): Only unlink data file, if stamp is zero.
3816 * gcov-dump.c (dump_file): Dump the stamp.
3817 * gcov.c (bbg_stamp): New.
3818 (release_structures): Clear bbg_stamp.
3819 (read_graph_file): Read stamp.
3820 (read_count_file): Check stamp.
3821 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
3822
3823 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
3824
3825 * tree.h (default_flag_random_seed): Remove.
3826 * toplev.h (local_tick): Declare.
3827 * tree.c (flag_random_seed, default_flag_random_seed): Move to
3828 toplev.c.
3829 (append_random_chars): Don't call default_flag_random_seed.
3830 * toplev.c (flag_random_seed): Define here. Set local_tick.
3831 (local_tick): Define.
3832 (randomize): New, moved from tree.c.
3833 (print_switch_values): Adjust.
3834 (toplev_main): Call randomize.
3835
3836 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
3837
3838 * tree.h (crc32_string): Declare.
3839 * tree.c (append_random_chars): Remove.
3840 (crc32_string): New.
3841 (get_file_function_name_long): Use crc32_string here.
3842
3843 2003-07-06 Andreas Jaeger <aj@suse.de>
3844
3845 * gcc.c: Convert prototypes to ISO C90.
3846 * gcc.h: Likewise.
3847 * gcov-dump.c: Likewise.
3848 * gcov-iov.c: Likewise.
3849 * gcse.c: Likewise.
3850 * genattrtab.h: Likewise.
3851 * ggc.h: Likewise.
3852 * global.c: Likewise.
3853 * graph.c: Likewise.
3854 * graph.h: Likewise.
3855 * hosthooks.h: Likewise.
3856 * hooks.h: Likewise.
3857 * hooks.c: Likewise.
3858 * hashtable.h: Likewise.
3859 * hashtable.c: Likewise.
3860 * haifa-sched.c: Likewise.
3861 * integrate.h: Likewise.
3862 * integrate.c: Likewise.
3863 * input.h: Likewise.
3864 * ifcvt.c: Likewise.
3865 * jump.c: Likewise.
3866 * langhooks-def.h: Likewise. Add extern to prototypes.
3867 * langhooks.c: Likewise.
3868 * langhooks.h: Likewise.
3869 * lcm.c: Likewise.
3870 * local-alloc.c: Likewise.
3871 * loop-init.c: Likewise.
3872 * loop-unroll.c: Likewise.
3873 * loop-unswitch.c: Likewise.
3874 * loop.c: Likewise.
3875 * loop.h: Likewise. Add extern to prototypes.
3876 * machmode.h: Likewise.
3877 * main.c: Likewise.
3878 * mbchar.c: Likewise.
3879 * mbchar.h: Likewise.
3880 * mkdeps.c: Likewise.
3881 * mkdeps.h: Likewise.
3882 * optabs.c: Likewise.
3883 * optabs.h: Likewise.
3884 * output.h: Likewise.
3885 * gccspec.c: Likwise.
3886 * postreload.c: Likewise.
3887 * prefix.c: Likewise.
3888 * prefix.h: Likewise.
3889 * print-rtl.c: Likewise.
3890 * print-tree.c: Likewise.
3891 * profile.c: Likewise.
3892 * read-rtl.c: Likewise.
3893 * real.c: Likewise.
3894 * real.h: Likewise.
3895 * recog.c: Likewise.
3896 * recog.h: Likewise.
3897 * reg-stack.c: Likewise.
3898 * regclass.c: Likewise.
3899 * regmove.c: Likewise.
3900 * regrename.c: Likewise.
3901 * regs.h: Likewise.
3902 * reload.c: Likewise.
3903 * reload.h: Likewise.
3904 * reload1.c: Likewise.
3905 * reorg.c: Likewise.
3906 * resource.c: Likewise.
3907 * resource.h: Likewise.
3908 * rtl-error.c: Likewise.
3909 * rtl.c: Likewise.
3910 * rtl.h: Likewise.
3911 * rtlanal.c: Likewise.
3912 * sbitmap.c: Likewise.
3913 * sbitmap.h: Likewise.
3914 * scan-decls.c: Likewise.
3915 * scan.c: Likewise.
3916 * sched-deps.c: Likewise.
3917 * sched-ebb.c: Likewise.
3918 * sched-int.h: Likewise.
3919 * sched-rgn.c: Likewise.
3920 * sched-vis.c: Likewise.
3921 * sibcall.c: Likewise.
3922 * simplify-rtx.c: Likewise.
3923 * sreal.c: Likewise.
3924 * sreal.h: Likewise.
3925 * ssa-ccp.c: Likewise.
3926 * ssa-dce.c: Likewise.
3927 * ssa.c: Likewise.
3928 * ssa.h: Likewise.
3929 * stack.h: Likewise.
3930 * stmt.c: Likewise.
3931 * stor-layout.c: Likewise.
3932 * stringpool.c: Likewise.
3933 * target.h: Likewise.
3934 * timevar.c: Likewise.
3935 * timevar.h: Likewise.
3936 * tlink.c: Likewise.
3937 * tracer.c: Likewise.
3938 * tree-inline.c: Likewise.
3939 * tree-inline.h: Likewise.
3940 * tree.c: Likewise.
3941 * tree.h: Likewise.
3942
3943 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
3944
3945 * combine.c (nonzero_bits1): Fix a warning.
3946
3947 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
3948
3949 * config/h8300/h8300.c (compute_mov_length): Correct the
3950 length of loading CONST0_RTX (SFmode).
3951
3952 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
3953
3954 * toplev.c (output_clean_symbol_name): Remove.
3955 * toplev.h (output_clean_symbol_name): Remove.
3956 * config/alpha/alpha.c (unicosmk_output_module_name): Use
3957 lbasename & clean_symbol_name.
3958
3959 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
3960
3961 * ggc.h: Follow spelling conventions.
3962 * config/i386/i386.c: Likewise.
3963 * config/i386/winnt.c: Likewise.
3964 * config/rs6000/rs6000.c: Likewise.
3965
3966 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
3967
3968 * bt-load.c: Fix comment typos.
3969 * c-incpath.c: Likewise.
3970 * cfg.c: Likewise.
3971 * cfgcleanup.c: Likewise.
3972 * cfgloop.h: Likewise.
3973 * cfgloopmanip.c: Likewise.
3974 * cfgrtl.c: Likewise.
3975 * diagnostic.h: Likewise.
3976 * dwarfout.c: Likewise.
3977 * emit-rtl.c: Likewise.
3978 * et-forest.c: Likewise.
3979 * et-forest.h: Likewise.
3980 * expr.c: Likewise.
3981 * gcse.c: Likewise.
3982 * genattr.c: Likewise.
3983 * jump.c: Likewise.
3984 * langhooks.h: Likewise.
3985 * local-alloc.c: Likewise.
3986 * loop-unroll.c: Likewise.
3987 * loop-unswitch.c: Likewise.
3988 * ra-build.c: Likewise.
3989 * regclass.c: Likewise.
3990 * regmove.c: Likewise.
3991 * rtl.def: Likewise.
3992 * rtlanal.c: Likewise.
3993 * sched-ebb.c: Likewise.
3994 * sched-rgn.c: Likewise.
3995 * simplify-rtx.c: Likewise.
3996 * ssa.c: Likewise.
3997 * tracer.c: Likewise.
3998 * tree.c: Likewise.
3999
4000 2003-07-05 Zack Weinberg <zack@codesourcery.com>
4001
4002 * cppcharset.c: Use the correct return type for the fallback iconv
4003 macro.
4004
4005 Sat Jul 5 16:18:53 CEST 2003 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4006
4007 Blame to Jan Hubicka <jh@suse.cz>
4008 * cfglayout.c (record_effective_endpoints): Split insns before
4009 first basic block correctly.
4010
4011 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4012
4013 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
4014 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
4015 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
4016
4017 2003-07-05 Andreas Jaeger <aj@suse.de>
4018
4019 * genattrtab.c (write_attr_get): Revert part of last patch to
4020 always write out a prototype.
4021
4022 * genemit.c (gen_split): Readd lost unused attributes in last
4023 patch.
4024
4025 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4026
4027 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
4028 different from header.
4029
4030 2003-07-05 Andreas Schwab <schwab@suse.de>
4031
4032 * config/m68k/m68k.c: Remove code protected by CRDS.
4033 * config/m68k/m68k.md: Likewise.
4034
4035 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
4036
4037 PR driver/11417
4038 * c-opts.c (permit_fortran_options): New.
4039 (c_common_init_options): Accept fortran front end options if
4040 it looks like we might be preprocessing Fortran.
4041 (c_common_handle_option): Don't reject switch if permit_fotran_options.
4042
4043 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4044
4045 * genattr.c (internal_dfa_insn_code): Output prototype.
4046 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
4047 * genautomata.c: Likewise.
4048 * genconditions.c: Likewise.
4049 * genemit.c: Likewise.
4050 * genextract.c: Likewise.
4051 * gengenrtl.c: Likewise.
4052 * gengtype.c: Likewise.
4053 * genopinit.c: Likewise.
4054 * genoutput.c: Likewise.
4055 * genpeep.c: Likewise.
4056 * genrecog.c: Likewise.
4057
4058 2003-07-04 Zack Weinberg <zack@codesourcery.com>
4059
4060 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
4061 (struct cpp_options): Add narrow_charset, wide_charset,
4062 bytes_big_endian fields. Remove EBCDIC field.
4063 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
4064
4065 * cpphash.h: Include <iconv.h> if we have it, otherwise
4066 provide a dummy definition of iconv_t.
4067 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
4068 (_cpp_valid_ucn): Update prototype.
4069 (_cpp_destroy_iconv): New prototype.
4070
4071 * doc/cpp.texi: Document character set handling.
4072 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
4073 * doc/extend.texi: Delete entire section on multiline strings.
4074 Rewrite section on __FUNCTION__ etc now that these are
4075 variables in C.
4076
4077 * cppucnid.tab, cppucnid.pl: New files.
4078 * cppucnid.h: New generated file.
4079 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
4080 (iconv_open, iconv, iconv_close): Provide dummy definitions
4081 if !HAVE_ICONV.
4082 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
4083 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
4084 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
4085 cpp_interpret_string, narrow_str_to_charconst,
4086 wide_str_to_charconst): New.
4087 (ucn_valid_in_identifier): Use a binary search through the
4088 ucnranges table defined in cppucnid.h, not a long chain of if
4089 statements.
4090 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
4091 character names are only valid in C++ and C99" to a warning.
4092 Issue the "meaning of \[uU] is different in traditional C"
4093 warning here. Take care not to let iconv see an invalid UCS
4094 value if we get a malformed UCN. Issue an error if we don't
4095 have iconv.
4096 (cpp_interpret_charconst): Moved here from cpplex.c. Use
4097 cpp_interpret_string to do the heavy lifting.
4098
4099 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
4100 narrow_charset, wide_charset fields of options structure.
4101 (cpp_destroy): Call _cpp_destroy_iconv.
4102 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
4103 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
4104 (cpp_interpret_charconst): Moved to cppcharset.c.
4105 * cpplib.c (dequote_string): Delete.
4106 (interpret_string_notranslate): New.
4107 (do_line, do_linemarker): Use interpret_string_notranslate.
4108
4109 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
4110
4111 * c-common.c (fname_string, combine_strings): Delete.
4112 * c-common.h (fname_string, combine_strings): Delete prototypes.
4113 * c-lex.c (ignore_escape_flag): Delete.
4114 (cb_ident): Use cpp_interpret_string, not lex_string.
4115 (get_nonpadding_token): New function.
4116 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
4117 Adjust calls to lex_string. Don't write *value twice.
4118 (lex_string): Now handles string constant concatenation.
4119 Most of the work handed off to cpp_interpret_string.
4120 Call fix_string_type here.
4121 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
4122 FUNC_NAME, throughout.
4123 (OBJC_STRING): New token type.
4124 (primary:STRING): No need to call fix_string_type here.
4125 (primary:objc_string): Make that OBJC_STRING.
4126 (objc_string nonterminal): Delete.
4127 (yylexname): Delete code to handle fake string constants.
4128 (yylexstring): Delete entirely.
4129 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
4130 to handle CPP_ATSIGN.
4131
4132 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
4133 * c-opts.c (missing_arg, c_common_handle_option): Handle
4134 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
4135 (c_common_init): Set cpp_opts->bytes_big_endian, not
4136 cpp_opts->EBCDIC. Call cpp_init_iconv.
4137 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
4138 (TARGET_EBCDIC): Delete default definition.
4139
4140 * objc/objc-act.c (build_objc_string_object): No need to
4141 handle string constant concatenation.
4142
4143 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
4144
4145 * doc/install.texi: Fix typos.
4146 * doc/invoke.texi: Likewise.
4147 * doc/tm.texi: Likewise.
4148
4149 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
4150
4151 * config/pa/fptr.c: Fix comment typos.
4152 * config/pa/pa-64.h: Likewise.
4153 * config/pa/pa.c: Likewise.
4154 * config/pa/pa.h: Likewise.
4155 * config/rs6000/603.md: Likewise.
4156 * config/rs6000/7xx.md: Likewise.
4157 * config/rs6000/darwin.h: Likewise.
4158 * config/rs6000/freebsd.h: Likewise.
4159 * config/rs6000/rs6000.c: Likewise.
4160 * config/rs6000/rs6000.md: Likewise.
4161 * config/rs6000/spe.h: Likewise.
4162
4163 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
4164
4165 * config/s390/2064.md: Change GNU CC to GCC.
4166 * config/s390/2084.md: Likewise.
4167 * config/s390/fixdfdi.h: Likewise.
4168 * config/s390/linux.h: Likewise.
4169 * config/s390/s390-modes.def: Likewise.
4170 * config/s390/s390-protos.h: Likewise.
4171 * config/s390/s390.c: Likewise.
4172 * config/s390/s390.h: Likewise.
4173 * config/s390/s390.md: Likewise.
4174 * config/s390/s390x.h: Likewise.
4175
4176 2003-07-04 Jeff Law <law@redhat.com>
4177
4178 PR c/11428
4179 * expr.c (do_store_flag): Pass in the correct result type
4180 when calling fold_single_bit_test.
4181 * fold-const.c (fold_single_bit_test): Use result_type for the
4182 result when folding a sign bit test.
4183
4184 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
4185
4186 * opts.c (common_handle_options): Negate sense of -falign- switches.
4187
4188 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
4189
4190 * Makefile.in: Replace PWD with PWD_COMMAND.
4191
4192 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4193
4194 * cfgloopanal.c (count_strange_loop_iterations): New static function.
4195 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
4196 Handle strange loops.
4197
4198 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
4199
4200 * install.texi: Even the g77 manpage is derived from
4201 the full g77 manual.
4202
4203 2003-07-04 Zack Weinberg <zack@codesourcery.com>
4204
4205 * ABOUT-NLS: Delete.
4206 * intl: Delete entire directory.
4207 * aclocal.m4: Include ../config/gettext.m4. Delete
4208 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
4209 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
4210 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
4211 Remove intl/Makefile from all_outputs.
4212 * configure, config.in: Regenerate.
4213 * Makefile.in: Expunge all references to intl subdirectory.
4214 Add -I../intl to INCLUDES.
4215 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
4216
4217 2003-07-04 Roger Sayle <roger@eyesopen.com>
4218
4219 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
4220 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
4221
4222 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
4223
4224 PR c++/5287, PR c++/7910, PR c++/11021
4225 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
4226 dllimport attribute if function is defined at declaration, but
4227 report error instead. Likewise for dllimport'd variable
4228 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
4229 declared within functions, Report error if dllimport or dllexport
4230 symbol is not global.
4231 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
4232 if defined after declaration or if inlined. Don't allow definition
4233 of static data members of C++ classes. Don't dllimport virtual
4234 methods.
4235 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
4236 (i386_pe_mark_dllimport): Remove unnecessary checks.
4237 (i386_pe_encode_section_info): Warn if the dllimport attribute
4238 and symbol prefix have been instantiated and then overridden.
4239
4240 * doc/extend.texi: Document dllimport and dllexport attributes.
4241
4242 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
4243
4244 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
4245
4246 * config/kaos.h (CPP_PREDEFINES): Delete.
4247 (TARGET_OS_CPP_BUILTINS): New.
4248
4249 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4250
4251 * c-aux-info.c: Include toplev.h after c-tree.h.
4252 * c-common.c: Likewise.
4253 (GCC_DIAG_STYLE): Undef.
4254 * c-semantics.c (GCC_DIAG_STYLE): Define.
4255 * c-tree.h (GCC_DIAG_STYLE): Likewise.
4256 * diagnostic.h (inform): Move prototype to toplev.h.
4257 * jump.c: Include diagnostic.h before toplev.h.
4258 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
4259 (warning, error, fatal_error, pedwarn, sorry, inform,
4260 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
4261
4262 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4263
4264 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
4265 at all if edge is not specified.
4266 (can_copy_bbs_p, copy_bbs): New.
4267 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
4268 * cfgloop.c (get_loop_body): Comment more precisely.
4269 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
4270 (scale_bbs_frequencies): Fix comment typo.
4271 (can_duplicate_loop_p): Use can_copy_bbs_p.
4272 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
4273
4274 2003-07-03 Devang Patel <dpatel@apple.com>
4275
4276 * c-opts.c (c_common_parse_file): Remove extra
4277 debug_hooks->start_source_file call.
4278
4279 2003-07-03 Roger Sayle <roger@eyesopen.com>
4280
4281 * real.c (real_trunc, real_floor, real_ceil): New functions
4282 to implement trunc, floor and ceil respectively.
4283 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
4284 * builtins.c (integer_valued_real_p): New function to test if
4285 a floating point expression has an integer valued result.
4286 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
4287 foo(x) where foo is an integer rounding function. Similarly,
4288 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
4289 (double)(int)x when both foo and bar are integer rounding
4290 functions and we don't need to honor errno.
4291 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
4292 New functions to fold trunc, floor and ceil.
4293 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
4294 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
4295 to fold BUILT_IN_CEIL*.
4296 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
4297 the remaining integer rounding functions.
4298
4299 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
4300
4301 * config/sparc/sparc.c (function_arg_partial_nregs): Use
4302 SPARC_INT_ARG_MAX to determine where to split unnamed
4303 complex FP arguments.
4304
4305 Thu Jul 3 20:36:47 CEST 2003 Jan Hubicka <jh@suse.cz>
4306
4307 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
4308 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
4309 (merge_blocks_move_predecessor_nojumps,
4310 merge_blocks_move_successor_nojumps): Use merge_blocks.
4311 (try_optimize_cfg): Use merge_blocks_move.
4312 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
4313 (merge_blocks_nomove): Rename to rtl_merge_blocks.
4314 (cfg_layout_create_basic_block): New.
4315 (rtl_can_merge_blocks): New.
4316 (cfg_layout_split_block): Do not alloc aux by hand.
4317 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
4318 merge_blocks.
4319 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
4320 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
4321 * cfgloopmanip.c (loop_split_edge_with): Likewise.
4322 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
4323
4324 * basic-block.h (basic_block_def): Add field 'rbi'.
4325 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
4326 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
4327 * cfg.c (entry_exit_blocks): Add new field.
4328 * cfglayout.c: Include alloc-pool.h;
4329 (cfg_layout_pool): New.
4330 (record_effective_endpoints, fixup_reorder_chain,
4331 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
4332 of rbi.
4333 (cfg_layout_initialize_rbi): New function.
4334 (cfg_layout_initialize): Use it.
4335 (cfg_layout_finalize): Clear rbi fields.
4336 * cfglayout.h (RBI): Kill.
4337 (cfg_layout_initialize_rbi): Declare.
4338 * cfgloopmanip.c (copy_bbs): Use rbi.
4339 (record_exit_edges): Likewise.
4340 (duplicate_loop_to_header_edge): Likewise.
4341 * cfgrtl.c (cfg_layout_create_basic_block): Use
4342 cfg_layout_initialize_rbi.
4343 (cfg_layout_split_block): Use rbi.
4344 (cfg_layout_delete_block): Likewise.
4345 * loop-init.c (loop_optimizer_finalize): Likewise.
4346 * loop-unswitch.c (unswitch_loop): Likewise.
4347 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
4348
4349 * cfgrtl.c: Update comments.
4350 (try_redirect_by_replacing_jump): New argument.
4351 (redirect_branch_edge): Break out from ...
4352 (rtl_redirect_edge_and_branch): ... this one.
4353 (update_cfg_after_block_merging): Break out from ...
4354 (rtl_merge_blocks): ... this one.
4355 (cfg_layout_split_edge): New.
4356 (cfg_layout_merge_blocks): New.
4357 (cfg_layout_can_merge_blocks_p): New.
4358 (cfg_layout_redirect_edge_and_branch): Reorganize.
4359 (cfg_layout_rtl_cfg_hooks): Fill in.
4360 (cfg_layout_delete_block): Kill barriers.
4361 * cfganal.c (can_fallthru): Deal with exit blocks
4362 * cfglayout.c (cfg_layout_function_header): New function
4363 (record_effective_endpoints): Record function header.
4364 (fixup_reorder_chain): Fixup dead jumptables; place header
4365
4366 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
4367 * bb-reorder.c (cfg_layout_initialize): Update call.
4368 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
4369 edges in cfglayout mode.
4370 * cfglayout.c (cleanup_unconditional_jumps): Kill.
4371 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
4372 * cfglayout.h (cfg_layout_initialize): Update prototype.
4373 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
4374 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
4375 * flow.c (propagate_block): Do not crash when basic block ends
4376 by first insn in the chain.
4377 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
4378 do loop discovery.
4379 * tracer.c (tracer): Update call of cfg_layout_initialize.
4380
4381 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4382
4383 * Makefile.in: Use dependency variables in lieu of explicit
4384 files throughout.
4385
4386 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
4387
4388 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
4389 * tree.h: ...to here.
4390
4391 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
4392
4393 * config/s390/2064.md: Fix comment typos.
4394 * config/s390/2084.md: Likewise.
4395 * config/s390/s390.c: Likewise.
4396 * config/s390/s390.md: Likewise.
4397 * config/sh/sh.c: Likewise.
4398 * config/sh/sh.h: Likewise.
4399 * config/sh/sh.md: Likewise.
4400 * config/sparc/sparc.c: Likewise.
4401 * config/sparc/sparc.h: Likewise.
4402 * config/sparc/sparc.md: Likewise.
4403 * config/stormy16/stormy16.c: Likewise.
4404 * config/stormy16/stormy16.h: Likewise.
4405 * config/stormy16/stormy-abi: Fix a typo.
4406
4407 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
4408
4409 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
4410
4411 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4412
4413 * config/mips/mips.h (save_argv): Delete.
4414
4415 2003-07-03 Roger Sayle <roger@eyesopen.com>
4416
4417 PR target/10700
4418 * fold-const.c (extract_muldiv_1): There's nothing that can be done
4419 if the expression is a SAVE_EXPR.
4420
4421 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
4422
4423 * config/m32r/m32r.c: Fix comment typos.
4424 * config/m68hc11/m68hc11.c: Likewise.
4425 * config/m68hc11/m68hc11.h: Likewise.
4426 * config/m68k/m68k.c: Likewise.
4427 * config/mcore/mcore.c: Likewise.
4428 * config/mcore/mcore.h: Likewise.
4429 * config/mcore/mcore.md: Likewise.
4430 * config/mips/mips.c: Likewise.
4431 * config/mips/mips.h: Likewise.
4432 * config/mips/mips.md: Likewise.
4433 * config/mips/netbsd.h: Likewise.
4434 * config/mn10300/mn10300.c: Likewise.
4435
4436 2003-07-03 Andreas Schwab <schwab@suse.de>
4437
4438 * dbxout.c (pending_bincls): Move decl down inside
4439 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
4440
4441 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
4442
4443 * rtl.h (NOTE_DATA): Refer to whole union.
4444 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
4445
4446 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
4447
4448 PR optimization/11381
4449 * simplify-rtx.c (simplify_relational_operation): Check that
4450 two equal operands have no side-effects before simplifying
4451 the comparison.
4452
4453 2003-07-02 Jeff Law <law@redhat.com>
4454
4455 * expr.c (do_store_flag): Remove special case folding for
4456 single bit tests. Instead call back into the commonized folder
4457 routine.
4458 * fold-const.c (fold_single_bit_test): New function, mostly
4459 extracted from do_store_flag, with an additional case extracted
4460 from fold.
4461 (fold): Call fold_single_bit_test appropriately.
4462 * tree.h (fold_single_bit_test): Prototype.
4463
4464 2003-07-02 Zack Weinberg <zack@codesourcery.com>
4465
4466 * system.h: Include filenames.h.
4467 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
4468 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
4469 define based on HAVE_DOS_BASED_FILE_SYSTEM.
4470 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
4471 * config/i386/xm-mingw32.h: Don't define
4472 HAVE_DOS_BASED_FILE_SYSTEM,
4473 DIR_SEPARATOR, or DIR_SEPARATOR_2.
4474 * doc/hostconfig.texi: Update to match.
4475
4476 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
4477 config/i386/cygwin.h:
4478 Use IS_ABSOLUTE_PATH throughout.
4479 * gcc.c (DIR_UP): Delete, unused.
4480 * protoize.c (IS_SAME_PATH): Define in terms of
4481 FILENAME_CMP.
4482 (is_abspath): Delete.
4483
4484 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
4485
4486 * config/i386/emmintrin.h: Fix comment typos.
4487 * config/i386/i386.c: Likewise.
4488 * config/i386/i386.h: Likewise.
4489 * config/i386/sco5.h: Likewise.
4490 * config/ia64/ia64.c: Likewise.
4491 * config/ia64/itanium2.md: Likewise.
4492
4493 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
4494
4495 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
4496 DBX_USE_BINCL.
4497 (emit_bincl_stab): Same.
4498 (emit_pending_bincls): Same.
4499
4500 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
4501
4502 * config/h8300/h8300.c (compute_mov_length): Fix the length of
4503 loading CONST0_RTX (SFmode).
4504 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
4505 'G' to CONST0_RTX (SFmode).
4506 * config/h8300/h8300.md (movsf_h8300): Change the first
4507 constraint to 'G'.
4508 (movsf_h8300h): Likewise.
4509
4510 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
4511
4512 * c-common.h (c_common_init_options): New prototype.
4513 * c-opts.c (deferred_size): Remove.
4514 (defer_opt): Array is now pre-allocated.
4515 (c_common_init_options): Pre-allocate deferred_opts. Make
4516 lang_flags unsigned.
4517 (push_command_line_options): Free deferred_opts.
4518 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
4519 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
4520 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
4521 * langhooks.h (struct lang_hooks): New prototype for init_options.
4522 * main.c (main): Cast argv.
4523 * opts.c (handle_option, handle_options): Update prototypes.
4524 (decode_options): save_argc, save_argv are not global. Constify.
4525 * opts.h (decode_options): New prototype.
4526 * toplev.c (general_init): New protoype.
4527 (save_argv): Make static.
4528 (save_argc): Remove.
4529 (print_switch_values, general_init): Constify.
4530 (toplev_main): Save argv.
4531 * toplev.h (toplev_main): Update prototype.
4532 (save_argc, save_argv): Remove.
4533
4534 2003-07-02 David Edelsohn <edelsohn@gnu.org>
4535
4536 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
4537 (emit_bincl_stab): Same.
4538 (emit_pending_bincls): Same.
4539
4540 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
4541
4542 PR c++/11072
4543 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
4544
4545 2003-07-02 Andreas Schwab <schwab@suse.de>
4546
4547 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
4548
4549 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
4550
4551 PR optimization/11210
4552 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
4553 about the behaviour with regard to bitfields.
4554 * fold-const (decode_field_reference): Record outermost type in
4555 case the expression is a NOP. Strip all NOPs. Set the signedness
4556 to that of the outermost type (if any) when the bitsize is equal
4557 to the size of the type.
4558
4559 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
4560
4561 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
4562 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
4563 (adddi3_internal_3, addsi3_internal_2): Likewise.
4564
4565 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
4566
4567 * config/mips/mips.c (machine_function): Add new fields:
4568 ignore_hazard_length_p and all_noreorder_p.
4569 (mips_flag_delayed_branch): New variable.
4570 (override_options): Treat '/' as an operand punctuation character.
4571 Set up mips_flag_delayed_branch.
4572 (print_operand): Handle '/'.
4573 (mips_output_function_prologue): Put the whole function in
4574 .set noreorder and .set nomacro if all_noreorder_p is true.
4575 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
4576 (mips16_optimize_gp): Remove "first insn" parameter.
4577 (mips16_lay_out_constants): New function, split out from mips_reorg.
4578 (mips_avoid_hazard, mips_avoid_hazards): New functions.
4579 (mips_reorg): For mips16 code, call mips16_lay_out_constant
4580 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
4581 do delayed-branch scheduling followed by hazard detection.
4582 (mips_adjust_insn_length): Only account for hazards if
4583 !ignore_hazard_length_p.
4584 (mips_output_load_label): Add a nop to the o32 sequence if
4585 the target suffers from load delays.
4586 (mips_output_conditional_branch): Add %/ to the end of branches.
4587 (mips_output_division): Fill the branch delay slot with %#.
4588 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
4589 instructions. End all other %* branches with %/.
4590 (ffssi2, ffsdi2): Fix lengths.
4591 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
4592 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
4593 (fix_truncsfsi2_macro): Likewise.
4594 (mov_lwl): Set hazard to "none".
4595 (ashldi3_internal): Fill the branch delay slot with %#.
4596 (ashrdi3_internal, lshrdi3_internal): Likewise.
4597 (exception_receiver): Explicitly set $28.
4598 (hazard_nop): New pattern.
4599
4600 Wed Jul 2 08:12:36 CEST 2003 Jan Hubicka <jh@suse.cz>
4601
4602 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
4603 before calling tree_inlinable_function_p.
4604
4605 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4606
4607 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
4608 <internal/stdio_core.h> too.
4609 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
4610 <internal/wchar_core.h> too.
4611 Substitute va_list uses in inline definition.
4612 * fixinc/fixincl.x: Regenerate.
4613
4614 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4615
4616 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
4617 Undef before redefinition.
4618 (LABEL_AFTER_LOC): Likewise.
4619 (DEFAULT_SIGNED_CHAR): Likewise.
4620 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
4621 Fix IRIX spelling.
4622
4623 * config/mips/iris3.h: Remove, unused.
4624 * config/mips/iris4.h: Likewise.
4625
4626 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
4627
4628 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
4629 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
4630 target_cpu_default.
4631
4632 * config/mips/iris5.h: Move explicit includes ...
4633 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
4634
4635 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
4636 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
4637 tm_defines.
4638
4639 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
4640 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
4641 target_cpu_default.
4642
4643 * config/mips/iris6.h: Fix IRIX spelling.
4644 (MULTILIB_DEFAULTS): Undef before redefinition.
4645
4646 * config/mips/iris6.h: Move explicit includes ...
4647 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
4648
4649 Wed Jul 2 02:16:48 CEST 2003 Jan Hubicka <jh@suse.cz>
4650
4651 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
4652 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
4653 Use next_needed field instead of aux to maintain the queue.
4654 * cgraph.h (cgraph_node): Add next_needed.
4655 (cgraph_varpool_node): Add next_needed; remove aux.
4656 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
4657
4658 Wed Jul 2 02:12:51 CEST 2003 Jan Hubicka <jh@suse.cz>
4659
4660 * cgraphunit.c (cgraph_finalize_function): Set finalized.
4661 (cgraph_finalize_function): Do not examine inlinablility.
4662 (cgraph_finalize_compilation_unit): Do it here.
4663 * cgraph.h (cgraph_local_info): Add finalized field.
4664
4665 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4666
4667 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
4668 (gt_pch_restore): Likewise.
4669
4670 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
4671
4672 * config/alpha/alpha.c: Fix comment typos.
4673 * config/alpha/elf.h: Likewise.
4674 * config/arm/arm.c: Likewise.
4675 * config/arm/arm.h: Likewise.
4676 * config/arm/arm.md: Likewise.
4677 * config/arm/t-arm-coff: Likewise.
4678 * config/arm/t-strongarm-pe: Likewise.
4679 * config/arm/xscale-elf.h: Likewise.
4680 * config/avr/avr.h: Likewise.
4681
4682 2003-07-01 Jeff Law <law@redhat.com>
4683
4684 * stmt.c (any_pending_cleanups): Remove another redundant test.
4685
4686 2003-07-01 David Edelsohn <edelsohn@gnu.org>
4687 J"orn Rennecke <joern.rennecke@superh.com>
4688
4689 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
4690 for MEM case.
4691
4692 2003-07-01 Devang Patel <dpatel@apple.com>
4693
4694 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
4695 (binclstatus): New.
4696 (struct dbx_file): New members - bincl_status, pending_bincl_name and
4697 prev.
4698 (pending_bincls): New.
4699 (dbxout_init): Initialize new dbx_file members.
4700 (dbxout_start_source_file): Same.
4701 (emit_bincl_stab): New function.
4702 (emit_pending_bincls): Same.
4703 (emit_pending_bincls_if_required): Same.
4704 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
4705 processed.
4706 (dbxout_begin_block): Emit pending BINCL stabs.
4707 (dbxout_end_block): Same.
4708 (dbxout_function_decl): Same.
4709 (dbxout_continue): Same.
4710 (dbxout_type): Same.
4711 (dbxout_class_name_qualifiers): Same.
4712 (dbxout_symbol): Same.
4713 (dbxout_symbol_location): Same.
4714 (dbxout_parms): Same.
4715
4716 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4717
4718 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
4719 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
4720
4721 2003-07-01 Andreas Jaeger <aj@suse.de>
4722
4723 * fold-const.c: Convert prototypes to ISO C90.
4724 * function.c: Likewise.
4725 * function.h: Likewise.
4726
4727 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
4728
4729 * doc/contrib.texi: Fix typos.
4730 * doc/invoke.texi: Likewise.
4731 * doc/passes.texi: Likewise.
4732 * doc/sourcebuild.texi: Likewise.
4733 * doc/tm.texi: Likewise.
4734
4735 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
4736
4737 * basic-block.h: Fix comment typos.
4738 * bb-reorder.c: Likewise.
4739 * c-format.c: Likewise.
4740 * cfgcleanup.c: Likewise.
4741 * cfghooks.h: Likewise.
4742 * cfgloop.c: Likewise.
4743 * cfgloopmanip.c: Likewise.
4744 * cfgrtl.c: Likewise.
4745 * cgraph.h: Likewise.
4746 * cgraphunit.c: Likewise.
4747 * combine.c: Likewise.
4748 * convert.c: Likewise.
4749 * dbxout.c: Likewise.
4750 * df.c: Likewise.
4751 * df.h: Likewise.
4752 * diagnostic.c: Likewise.
4753 * dwarf2out.c: Likewise.
4754 * et-forest.h: Likewise.
4755 * flow.c: Likewise.
4756 * fold-const.c: Likewise.
4757 * function.h: Likewise.
4758 * gcov-io.h: Likewise.
4759 * gcov.c: Likewise.
4760 * gcse.c: Likewise.
4761 * genautomata.c: Likewise.
4762 * ggc-common.c: Likewise.
4763 * ggc-page.c: Likewise.
4764 * loop-unroll.c: Likewise.
4765 * loop-unswitch.c: Likewise.
4766 * loop.c: Likewise.
4767 * mips-tfile.c: Likewise.
4768 * optabs.c: Likewise.
4769 * ra-build.c: Likewise.
4770 * ra-colorize.c: Likewise.
4771 * ra-rewrite.c: Likewise.
4772 * ra.h: Likewise.
4773 * regmove.c: Likewise.
4774 * reload.c: Likewise.
4775 * rtlanal.c: Likewise.
4776 * sched-ebb.c: Likewise.
4777 * sched-int.h: Likewise.
4778 * sched-vis.c: Likewise.
4779 * sreal.c: Likewise.
4780 * ssa-ccp.c: Likewise.
4781 * ssa.c: Likewise.
4782 * toplev.c: Likewise.
4783 * tree-inline.c: Likewise.
4784 * value-prof.c: Likewise.
4785 * value-prof.h: Likewise.
4786
4787 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
4788
4789 * rtl.h (emit_line_note_after): Remove.
4790 (emit_note_copy_after, emit_note_copy): New.
4791 * emit-rtl.c (reorder_insns_with_line_notes): Replace
4792 emit_line_note_after with emit_note_copy_after.
4793 (emit_insn_after_with_line_notes): Likewise.
4794 (emit_line_note_after): Kill.
4795 (emit_note_copy_after): New.
4796 (emit_note_copy): New.
4797 * function.c (emit_return_into_block): Use emit_note_copy_after.
4798 (thread_prologue_and_epilogue_insns): Likewise.
4799 * integrate.c (expand_inline_function): Use emit_note_copy.
4800 (copy_insn_list): Likewise.
4801 * unroll.c (copy_loop_body): Likewise.
4802 * cfglayout.c (duplicate_insn_chain): Likewise.
4803
4804 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
4805
4806 * c-tree.h (define_label): Replace filename and lineno arguments
4807 with a location_t.
4808 * c-decl.c (poplevel): Adjust define_label call.
4809 (pop_label_level): Likewise.
4810 (define_label): Replace filename and lineno arguments with a
4811 location_t.
4812 (store_parm_decls): Use DECL_SOURCE_LOCATION.
4813 * c-parse.in (label): Adjust define_label call.
4814
4815 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
4816
4817 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
4818 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
4819 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
4820 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
4821 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
4822
4823 2003-07-01 Andreas Jaeger <aj@suse.de>
4824
4825 * final.c: Convert prototypes to ISO C90.
4826 * flow.c: Likewise.
4827 * flags.h: Likewise.
4828 * gcov-io.c: Likewise.
4829 * gcov-io.h: Likewise.
4830
4831 See ChangeLog.9 for earlier changes.