]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
* longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
[gcc.git] / gcc / ChangeLog
CommitLineData
0e6cb2cb
DE
12003-07-30 David Edelsohn <edelsohn@gnu.org>
2
3 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
4
656ec3b1
UW
52003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
6
7 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
8 symbolically.
9
a0c8285b
JH
10Wed Jul 30 19:12:10 CEST 2003 Jan Hubicka <jh@suse.cz>
11
12 * gcse.c (insert_store): Ignore fake edges.
13
14 * c-common.c (flag_vtable_gc): Kill.
15 * c-common.g (flag_vtable_gc): Kill.
16 * c-opts (c_common_handle_option): Kill.
17 * c.opt (fvtable-gc): Kill.
18 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
19 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
20 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
21
22 * invoke.texi (-ftable-gc): Kill documentation.
23
24 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
25 just because function body is missing.
26
27 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
28
b2e863b8
RM
292003-07-30 Ranjit Mathew <rmathew@hotmail.com>
30
31 * unwind-sjlj.c: Fix typo in file description.
32
9206d736
AM
332003-07-30 Alan Modra <amodra@bigpond.net.au>
34
35 * calls.c (load_register_parameters): When shifting reg sized values
36 to the msb, move the value to a reg first.
37
9074464c
GK
382003-07-29 Geoffrey Keating <geoffk@apple.com>
39
40 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
41 * line-map.h (linemap_add): Update comments.
42 * line-map.c (linemap_add): Update comments, interpret zero-length
43 filename as "<stdin>".
44
e55e4f68
NN
452003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
46
47 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
48
55d54003
ZW
492003-07-29 Zack Weinberg <zack@codesourcery.com>
50
51 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
52 New static variables.
53 (struct c_scope): Add parms and warned_forward_parm_decls
54 fields; remove parm_order.
55 (storedecls, storetags): Delete.
56 (poplevel): Also clear bindings on the parms chain.
57 (pushdecl): Handle forward declarations of parameters, and
58 chain PARM_DECLs on the parms list, not the names list.
59 (lookup_name_current_level): Check for PARM_DECLs on the parms
60 list too.
61 (push_parm_decl): Don't update parm_order.
62 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
63 warning, only once per parameter list, and set TREE_ASM_WRITTEN
64 on the decls here. Then move the forward decls to the names list.
65 (grokparms): Set last_function_parm_vars.
66 (get_parm_info): Don't use gettags or getdecls. No need to
67 extract non-parms from the parms list, or reorganize the parms
68 list. Feed nonparms back in the TREE_TYPE of the list node
69 returned. Issue only one error per parameter list for "void"
70 appearing more than once in said parameter list. Collapse
71 parmlist_tags_warning into this function to avoid double scan
72 of tags list.
73 (start_function): Set current_function_parm_vars.
74 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
75 directly. Get non-parms from current_function_parm_vars; no
76 need to extract them from the parms chain. Properly bind tags
77 in the new scope.
78 (store_parm_decls_oldstyle): No need to extract non-parameters
79 from the parms chain, nor to store them back afterward. Move
80 declaration to top of function, restructure code reordering
81 DECL_ARGUMENTS.
82 (store_parm_decls): No need to save and restore warn_shadow.
83 * c-parse.in: Don't call parmlist_tags_warning nor
84 clear_parm_order. Call mark_forward_parm_decls when forward
85 parm decls are encountered.
86 * c-tree.h: Prototype mark_forward_parm_decls; not
87 clear_parm_order or parmlist_tags_warning.
88
18c81520
GK
892003-07-29 Geoffrey Keating <geoffk@apple.com>
90
91 * c-common.c (allow_pch): Remove.
92 * c-common.h (allow_pch): Remove.
93 (c_common_no_more_pch): Declare.
94 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
95 * c-pch.c: Include hosthooks.h.
96 (c_common_valid_pch): Don't check allow_pch.
97 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
98 (c_common_no_more_pch): New.
99 * ggc-common.c: Include hosthooks.h.
100 (gt_pch_save): Call gt_pch_get_address.
101 (gt_pch_restore): Call gt_pch_use_address.
102 * hooks.c (hook_voidp_size_t_null): New.
103 (hook_bool_voidp_size_t_false): New.
104 * hooks.h (hook_voidp_size_t_null): New.
105 (hook_bool_voidp_size_t_false): New.
106 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
107 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
108 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
109 HOST_HOOKS_GT_PCH_USE_ADDRESS.
110 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
111 gt_pch_use_address.
112 * doc/hostconfig.texi (Host Common): Document
113 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
114 * Makefile.in (c-pch.o): Depend on hosthooks.h.
115 (ggc-common.o): Likewise.
116
117 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
118 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
119 (pch_address_space): New.
120 (darwin_rs6000_gt_pch_get_address): New.
121 (darwin_rs6000_gt_pch_use_address): New.
122
8f9b4009
NB
1232003-07-29 Neil Booth <neil@daikokuya.co.uk>
124
125 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
126 * cppfiles.c: Completely rewritten.
127 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
128 struct cpp_path is now struct cpp_dir.
129 (remove_duplicates): Don't simplify path names.
130 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
131 cpp_stack_file.
132 * cpphash.h: Include hashtab.h.
133 (_cpp_file): Declare.
134 (struct cpp_buffer): struct include_file is now struct _cpp_file,
135 and struct cpp_path is now struct cpp_dir. Rename members.
136 (struct cpp_reader): Similarly. New members once_only_files,
137 file_hash, file_hash_entries, quote_ignores_source_dir,
138 no_search_path, saw_pragma_once. Remove all_include_files and
139 max_include_len. Make some members bool.
140 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
141 (_cpp_stack_file): Renamed from _cpp_read_file.
142 (_cpp_stack_include): Renamed from _cpp_execute_include.
143 (_cpp_init_files): Renamed from _cpp_init_includes.
144 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
145 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
146 (cpp_read_next_file): Rename and move to cppfiles.c.
147 (cpp_read_main_file): Update.
148 * cpplib.c (run_directive): Update for renamed members.
149 (do_include_common, _cpp_pop_buffer): Update.
150 (do_import): Undeprecate #import.
151 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
152 * cpplib.h: Remove file_name_map_list.
153 (cpp_options): Remove map_list.
154 (cpp_dir): Rename from cpp_path. New datatype for name_map.
155 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
156
a6400add
PE
1572003-07-29 Phil Edwards <pme@gcc.gnu.org>
158
159 * Makefile.in: Make stamp-objdir safe for parallel builds.
160
b2790407
PE
1612003-07-29 Phil Edwards <pme@gcc.gnu.org>
162
163 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
164 (info): Depend on stmp-docobjdir.
165
8e3940b2
RO
1662003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
167
168 * configure: Regenerate.
169
987bf56f
JH
170Tue Jul 29 19:24:49 CEST 2003 Jan Hubicka <jh@suse.cz>
171
172 PR C++/11131
173 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
174 in !unit-at-a-time mode.
175
5f0eabcc
GK
1762003-07-28 Geoffrey Keating <geoffk@apple.com>
177
178 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
179 main function.
180
7b6d72fc
MM
1812003-07-28 Mark Mitchell <mark@codesourcery.com>
182
183 PR c++/11667
184 * c-common.c (shorten_compare): Take into account differences
185 between C and C++ representation for enumeration types.
186 * tree.h (set_min_and_max_values_for_integral_type): Declare.
187 * stor-layout.c (set_min_and_max_values_for_integral_type): New
188 function, broken out from ...
189 (fixup_signed_type): ... here and ...
190 (fixup_unsigned_type): ... here.
191
14077d68
ZW
1922003-07-28 Zack Weinberg <zack@codesourcery.com>
193
194 * c-decl.c: Update commentary, adjust blank lines throughout.
195 (struct c_scope): Fix indentation. Reorder members so
196 outer-context pointers come first, booleans last.
197 (duplicate_decls, define_label): Use a 'locus' variable for
198 diagnostic locations in a few more places.
199 (warn_if_shadowing): Un-split a conditional that fits on one line.
200 (c_init_decl_processing): No need to clear current_scope and
201 current_function_scope.
202 (start_decl): Merge if/else if statements with same action.
203 (push_parm_decl): Rename old_immediate_size_expand to use
204 save_foo convention; save/restore around entire function.
205 (grokdeclarator): Remove unnecessary braces.
206
85617eba
HPN
2072003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
208 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
209
210 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
211 when warn_declaration_after_statement. Call pedwarn_c90, not
212 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
213 * c-common.c (warn_declaration_after_statement): Define.
214 * c-common.h (warn_declaration_after_statement): Declare.
215 * c.opt (Wdeclaration-after-statement): New.
216 * c-errors.c (pedwarn_c90): New function.
217 * c-opts.c (c_common_handle_option) <case
218 OPT_Wdeclaration_after_statement>: New.
219 * c-tree.h (pedwarn_c90): Declare.
220 * doc/invoke.texi (Option Summary): Document
221 -Wdeclaration-after-statement.
222 (Warning Options): Ditto.
223
f527d196
JH
224Mon Jul 28 20:13:06 CEST 2003 Jan Hubicka <jh@suse.cz>
225
226 * i386.md (memory attribute) Avoid accessing uninitialized memory
227 for ishift1 type instructions.
228
5dfa45d0
JJ
2292003-07-28 Jakub Jelinek <jakub@redhat.com>
230
231 * configure.in (--enable-checking): Add fold category.
232 (ENABLE_FOLD_CHECKING): Define if requested.
233 * configure: Rebuilt.
234 * config.in: Rebuilt.
235 * doc/install.texi: Document it.
236 * fold-const.c: Include md5.h.
237 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
238 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
239 print_fold_checksum): New functions.
240
241 * fold-const.c (fold): Never modify argument passed to fold, instead
242 change a copy and return it.
243 * convert.c (convert_to_integer): Likewise.
244
447673de
NN
2452003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
246
14077d68 247 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
447673de
NN
248 cleanup of junk after #else and #endif directives. Collapse repeated
249 clauses into for statment.
250
251 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
252
66db6b62
ZW
2532003-07-27 Zack Weinberg <zack@codesourcery.com>
254
a8ccdffe
ZW
255 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
256 (keep_next_if_subblocks): Rename next_is_function_body.
257 (pushlevel): Adjust commentary. Always set ->keep on the
258 outermost level of a function. Don't set ->keep_if_subblocks.
259 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
260 (store_parm_decls): Adjust to match.
261 (finish_function): Adjust to match.
262 Call poplevel with all three arguments zero.
263
66db6b62
ZW
264 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
265 New functions split out of store_parm_decls.
266 Avoid unnecessary work. Use local variables consistently.
267 (store_parm_decls): Likewise.
268
269 (finish_function): No need to set functionbody flag on call to
270 poplevel.
271 (struct language_function): Remove scope field.
272 (c_push_function_context, c_pop_function_context): No need to
273 save and restore current_scope.
274
90ea7324
NS
2752003-07-27 Nathan Sidwell <nathan@codesourcery.com>
276
277 * doc/extend.texi (Deprecated Features): Implicit typename is
278 gone. Default args on types is going.
279
11a004ef
R
2802003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
281
282 * Makefile.in (ifcvt.o): Depend on target.h
283 * ifcvt.c (target.h): Include.
284 (if_convert): Don't call mark_loop_exit_edges if we can't
285 modify jumps.
286
6cbf57c9
GP
2872003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
288
289 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
290
a6c14a64
RH
2912003-07-26 Richard Henderson <rth@redhat.com>
292
293 PR inline-asm/11676
294 * cse.c (count_reg_usage): Handle asm_operands properly.
295
cc42f5f5
RS
2962003-07-26 Roger Sayle <roger@eyesopen.com>
297
298 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
299 (DEF_EXT_FALLBACK_BUILTIN): Delete.
300 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
301 the regular DEF_EXT_LIB_BUILTIN macro.
302 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
303 the regular DEF_LIB_BUILTIN macro.
304 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
305 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
306 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
307 DEF_EXT_LIB_BUILTIN macro.
308
309 * c-decl.c (duplicate_decls): Remove code to handle builtin
310 functions prototyped without an argument list.
311
92e7a6ef
DS
3122003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
313
314 * config/i386/winnt.c: Revert 2003-07-08 change.
315 (i386_pe_section_type_flags): Remove error_with_decl here too.
316
ba9cfcb5
GDR
3172003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
318
319 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
320 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
321 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
322 (v850_handle_data_area_attribute): Likewise.
323
0e5da0be
GK
3242003-07-26 Geoffrey Keating <geoffk@apple.com>
325
66db6b62 326 * varasm.c (output_constant_def_contents): Use
18f3e349
GK
327 ASM_DECLARE_CONSTANT_NAME if defined.
328 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
329 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
330 objects get at least one byte to prevent assembler problems.
331 (ASM_DECLARE_CONSTANT_NAME): New.
332
d2908a50
GK
333 * Makefile.in (libbackend.o): Remove options_.h.
334 (mostlyclean): Likewise.
335
0e5da0be
GK
336 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
337 insert a label at the end of an function under Mach-O.
863d3dfb
GK
338
339 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
340
36252949
AH
3412003-07-25 Aldy Hernandez <aldyh@redhat.com>
342
343 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
344 equality.
345 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
346
347 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
348
0fe37f68
GDR
3492003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
350
351 * doc/passes.texi (Passes): Mention pretty-printing and
352 diagnostic files.
353
50fc59e7
NS
3542003-07-25 Nathan Sidwell <nathan@codesourcery.com>
355
356 * doc/extend.texi (Function Attributes): GNU C++ does now allow
357 unused parameter decls.
358 (Attribute Syntax): GNU C++ does not allow label attributes to be
359 after the ':'.
360
cd475805
GDR
3612003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
362
363 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
364 (objc_declare_class): Likewise.
365 (error_with_ivar): Likewise.
366 (start_class): Likewise.
367 (warn_with_method): Likewise.
368
b6fe0bb8
GDR
3692003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
370
371 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
66db6b62 372 from GCC.
b6fe0bb8
GDR
373 * calls.c (try_to_integrate): Don't use xxx_with_decl.
374 (expand_call): Likewise.
375 * dwarfout.c (output_reg_number): Likewise.
376 * expr.c (expand_expr): Likewise.
377 * function.c (assign_temp): Likewise.
378 (uninitialized_vars_warning): Likewise.
379 (setjmp_args_warning): Likewise.
380 (expand_function_end): Likewise.
381 * stmt.c (fixup_gotos): Likewise.
382 (warn_about_unused_variables): Likewise.
383 (expand_end_bindings): Likewise.
384 * stor-layout.c (layout_decl): Likewise.
385 (place_field): Likewise.
386 * toplev.c (check_global_declarations): Likewise.
387 (rest_of_handle_inlining): Likewise.
388 (default_tree_printer): New function.
389 (general_init): Initialize diagnostic machinery before routing
390 signals to the ICE machinery. Set default tree printer.
391 * toplev.h (pedwarn_with_decl): Remove declaration.
392 (warning_with_decl): Likewise.
393 (error_with_decl): Likewise.
66db6b62 394 (pedwarn): Remove attribute for the time being.
b6fe0bb8
GDR
395 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
396 * varasm.c (named_section): Likewise.
397 (make_decl_rtl): Likewise.
398 (assemble_variable): Likewise.
399 (merge_weak): Likewise.
400 (declare_weak): Likewise.
401
402 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
403 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
404 (format_with_decl): Remove.
405 (diagnostic_for_decl): Likewise.
406 (pedwarn_with_decl): Likewise.
407 (warning_with_decl): Likewise.
408 (error_with_decl): Likewise.
409 (diagnostic_initialize): Adjust.
410 (diagnostic_count_diagnostic): Likewise.
411 (announce_function): Likewise.
412 (lhd_print_error_function): Likewise.
413 (diagnostic_report_current_module): Likewise.
414 (default_diagnostic_starter): Likewise.
415 (diagnostic_report_diagnostic): Likewise.
416 (default_diagnostic_finalizer): Likewise.
417 (verbatim): Likewise.
418 (error): Likewise.
419 (warning): Likewise.
420 * opts.c (common_handle_option): Likewise.
421 * pretty-print.c: New file.
422 * c-pretty-print.h (pp_base): Override.
423 * c-pretty-print.c: Adjust use of macros throughout.
424 (pp_buffer): New macro.
425 (pp_newline): Likewise.
426 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
427 * Makefile.in (DIAGNOSTIC_H): New variable.
428 (c-errors.o): Use it.
429 (c-objc-common.o): Likewise.
430 (c-common.o): Likewise.
431 (c-opts.o): Likewise.
432 (c-format.o): Likewise.
433 (diagnostic.o): Likewise.
434 (opts.o): Likewise.
435 (toplev.o): Likewise.
436 (rtl-error.o): Likewise.
437 (dwarf2out.o): Likewise.
438 (jump.o): Likewise.
439 (pretty-print.o): New rule.
440
868b8cda
RS
4412003-07-24 Roger Sayle <roger@eyesopen.com>
442
443 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
444 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
445 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
446 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
447 (DEF_FRONT_END_LIB_BUILTIN): Delete.
448 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
449 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
450
451 * builtins.c (build_string_literal): New function to construct
452 a char* pointer to a string literal.
453 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
454 "rtx target" to be consistent with other expand_builtin_* functions.
455 Change 3rd argument from "int unlocked" to "bool unlocked".
456 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
457 c-common.c to avoid front-end dependencies. Optimize printf("")
458 as a no-op when the result isn't required. Handle embedded NULs
459 in format string.
460 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
461 from c-common.c to avoid front-end dependencies. Likewise, optimize
462 fprintf(fp,"") as a no-op when the result isn't required, evaluating
463 fp for side-effects. Handle embedded NULs in format string.
464 (expand_builtin_sprintf): Fix typo.
465 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
466 optimizing. Adjust calls of expand_builtin_fputs to match the API
467 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
468 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
469 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
470
471 * c-common.c (is_valid_printf_arglist): Delete.
472 (c_expand_builtin): Delete.
473 (c_expand_builtin_printf): Moved to builtins.c. Delete.
474 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
475 (c_expand_expr): No longer treat CALL_EXPRs specially.
476 (CALLED_AS_BUILT_IN): Delete.
477
2a868ea4
ZD
4782003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
479
480 PR optimization/11631
481 * gcse.c (store_motion): Connect infinite loops to exit.
482
de7df9eb
JM
4832003-07-24 Jason Merrill <jason@redhat.com>
484
485 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
486 (boolean_true_node, boolean_false_node): Likewise.
487 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
488 * tree.c (build_common_tree_nodes): Init boolean_type_node.
489 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
490 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
491 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
492 (truthvalue_true_node): Renamed from boolean_true_node.
493 (truthvalue_false_node): Renamed from boolean_false_node.
494 * c-decl.c: Just set truthvalue_* to integer_*.
495 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
496
6907ddd3
RS
4972003-07-24 Roger Sayle <roger@eyesopen.com>
498
499 * c-decl.c (match_builtin_function_types): New subroutine of
500 duplicate_decls to test whether a redeclaration of a builtin
501 function is suitably close, i.e. the return type and all of
502 the argument types have the same modes as the builtin expects.
503 (duplicate_decls): Fuzzy type matching for builtin functions
504 moved to match_builtin_function_types.
505
84d45ad1
ZD
5062003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
507
508 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
509 flag correctly.
510
f8521984
ZW
5112003-07-24 Zack Weinberg <zack@codesourcery.com>
512
513 * c-decl.c: Search-and-replace change 'binding level' to
514 'scope' in commentary.
515 (struct binding_level): Now struct c_scope.
516 (current_binding_level): Now current_scope.
517 (free_binding_level): Now scope_freelist.
518 (current_function_level): Now current_function_scope.
519 (global_binding_level): Now global_scope.
520 (make_binding_level): Now make_scope.
521 (pop_binding_level): Now pop_scope.
522
0f31374d
RO
5232003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
524
525 * configure.in (libgcc_visibility): Add missing whitespace.
526
270606ac
RH
5272003-07-24 Richard Henderson <rth@redhat.com>
528
529 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
530 __gcc_personality_v0.
f8521984 531
5f08e44f
RO
5322003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
533
534 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
535
a4878735
NS
5362003-07-24 Nathan Sidwell <nathan@codesourcery.com>
537
538 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
539 documentation missed from my 2003-07-09 patch.
540
5aaaf0e8
NN
5412003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
542
543 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
544 it's not provided.
545 * configure: Rebuild.
546
8f5b6d29
SB
5472003-07-24 Steven Bosscher <steven@gcc.gnu.org>
548
549 PR c/10602
550 * c-typeck.c (type_lists_compatible_p): Do not compare
551 arguments if one of them is an error_mark_node
552
acd0b319
AM
5532003-07-24 Alan Modra <amodra@bigpond.net.au>
554
555 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
556 if current_function_calls_eh_return.
557
28b619b2
MM
5582003-07-23 Mark Mitchell <mark@codesourcery.com>
559
560 * doc/c-tree.texi (OFFSET_TYPE): Update description.
561
07154156
BW
5622003-07-23 Bob Wilson <bob.wilson@acm.org>
563
564 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
565 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
566 __umodsi3, __modsi3): Increase frame size to 32.
567
5f5bfdd0
GK
5682003-07-23 Geoffrey Keating <geoffk@apple.com>
569
570 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
571 prototype.
572
11b8e71c
MM
5732003-07-23 Mark Mitchell <mark@codesourcery.com>
574
28b619b2
MM
575 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
576
11b8e71c
MM
577 PR optimization/10679
578 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
579
9d6b7c09
JDA
5802003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
581
582 PR target/11607 and PR target/11516
583 * pa.md (extzv, extv, insv): Revert latter half of last patch.
584
a5ac359a
MM
5852003-07-22 Mark Mitchell <mark@codesourcery.com>
586
587 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
588 * varasam.c (output_constant): Likewise.
589
938d968e
KH
5902003-07-22 Kazu Hirata <kazu@cs.umass.edu>
591
592 * alias.c: Fix comment formatting.
593 * c-common.c: Likewise.
594 * c-decl.c: Likewise.
595 * c-opts.c: Likewise.
596 * combine.c: Likewise.
597 * cpplib.c: Likewise.
598 * diagnostic.c: Likewise.
599 * dojump.c: Likewise.
600 * final.c: Likewise.
601 * fold-const.c: Likewise.
602 * gcc.c: Likewise.
603 * gcse.c: Likewise.
604 * ggc-page.c: Likewise.
605 * jump.c: Likewise.
606 * loop.c: Likewise.
607 * mips-tfile.c: Likewise.
608 * recog.c: Likewise.
609 * regclass.c: Likewise.
610 * regmove.c: Likewise.
611 * tree.c: Likewise.
612 * tree.h: Likewise.
613
b3147029
PB
6142003-07-22 Per Bothner <pbothner@apple.com>
615
616 * line-map.c (add_line_map): Handle invalid LEAVE request.
617 Fixes PR preprocessor/11361.
618
53f72d60
PB
6192003-07-22 Per Bothner <pbothner@apple.com>
620
621 * diagnostic.c.(diagnostic_report_current_module): Update to match
622 2003-06-05 changes to push_srcloc and pop_srcloc.
623
5cf0212f
WB
6242003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
625
626 * doc/trouble.texi: Better document two-stage name lookup.
627
c7453384
EC
6282003-07-22 Eric Christopher <echristo@redhat.com>
629
630 * config/s390.c (s390_valid_pointer_mode): New.
631 (TARGET_VALID_POINTER_MODE): Use.
632 (s390_emit_prologue): Add tpf profiling hooks.
633 (s390_emit_epilogue): Ditto.
634 * config/s390.h (MASK_TPF): New.
635 (TARGET_TPF): Use.
636 (POINTERS_EXTEND_UNSIGNED): Define.
637 * config/s390.md (ptr_extend): New pattern.
638
a2f7be91
ZW
6392003-07-22 Zack Weinberg <zack@codesourcery.com>
640
641 * hashtable.c (approx_sqrt): Make static.
642 * hashtable.h: Don't prototype approx_sqrt.
643 * line-map.c (init_line_maps): Rename linemap_init.
644 (free_line_maps): Rename linemap_free.
645 (add_line_map): Rename linemap_add.
646 (lookup_line): Rename linemap_lookup.
647 (print_containing_files): Rename linemap_print_containing_files.
648 * linemap.h: Update to match.
649
650 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
651 linemap routines to use new names.
652
c6e4cc53
NS
6532003-07-16 Nathan Sidwell <nathan@codesourcery.com>
654
655 * c-common.c (handle_packed_attribute): Don't pack a struct via a
656 typedef. Propagate packedness from a main variant.
657
55de4f08
NN
6582003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
659
660 * Makefile.in (install-common): Add dependency on installdirs.
661
fb5d2a87
AO
6622003-07-21 Alexandre Oliva <aoliva@redhat.com>
663
664 * c-common.c (c_common_type_for_mode): Return integer types for
665 pointer modes.
666
905bd7b5
GK
6672003-07-22 Geoffrey Keating <geoffk@apple.com>
668
d05cc98e
GK
669 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
670 (finish_decl): Call maybe_apply_pragma_weak here.
671 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
672 TREE_PUBLIC and TREE_STATIC are decided.
673 (start_function): Move call to maybe_apply_pragma_weak. Check that
674 DECL_ASSEMBLER_NAME isn't set too early.
675
905bd7b5
GK
676 * cpplex.c (_cpp_process_line_notes): Mention option name in
677 trigraphs warning.
678
87d9741e
KH
6792003-07-22 Kazu Hirata <kazu@cs.umass.edu>
680
681 * combine.c (if_then_else_cond): Simplify the comparison of
682 rtx against -1, 0, and 1.
683 * loop.c (check_dbra_loop): Likewise.
684 * optabs.c (emit_conditional_move): Likewise.
685 (emit_conditional_add): Likewise.
686 * config/i386/i386.md (*movsi_or): Likewise.
687 (*movdi_or_rex6): Likewise.
688
b67d7f4a
JH
689Tue Jul 22 00:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
690
691 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
692
8d973a83
NB
6932003-07-21 Neil Booth <neil@daikokuya.co.uk>
694
695 * cppfiles.c (open_file_pch): Don't put unused entries in the
696 splay tree. Remove dead code.
697
49a64b24
GK
6982003-07-21 Geoffrey Keating <geoffk@apple.com>
699
48873ed2
GK
700 * c-common.h (num_in_fnames): Declare.
701 (c_static_assembler_name): Move from here...
702 * c-tree.h (c_static_assembler_name): ... to here.
703 * c-opts.c: Don't include langhooks-def.h.
704 (c_static_assembler_name): Move to c-decl.c.
705 (num_in_fnames): Make externally visible.
706 * c-decl.c: Include langhooks-def.h.
707 (c_static_assembler_name): Move from c-opts.c.
708 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
709 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
710
49a64b24
GK
711 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
712 when it's not needed.
713
8c29550d
JJ
7142003-07-21 Jakub Jelinek <jakub@redhat.com>
715
716 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
717 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
718 (rs6000_emit_prologue): Save FPRs inline if set.
719
92cbea22
L
7202003-07-21 H.J. Lu <hongjiu.lu@intel.com>
721
722 * config/ia64/ia64.md (prefetch): Support predicate.
723
ee735eef
JZ
7242003-07-21 Josef Zlomek <zlomekj@suse.cz>
725
726 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
727 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
728 table.
729
bbda30a4
EB
7302003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
731
a2f7be91 732 PR optimization/11536
bbda30a4
EB
733 * unroll.c (loop_iterations): Do not replace a register holding
734 the final value by its equivalent before the loop if it is not
735 invariant.
736
64c18e57
DF
7372003-07-21 Dave Fluri <dave.fluri@onlink.net>
738
739 * doc/extend.texi: Fixes to spelling, grammar, and diction.
740
b222f49a
BE
7412003-07-21 Ben Elliston <bje@wasabisystems.com>
742
743 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
744 (V850 Options): Spelling fixes.
745
9eff22bc
LG
7462003-07-20 Lisa M. Goldstein <opus@gnu.org>
747
a2f7be91 748 * doc/invoke.texi: Fixes to style, grammar and diction.
9eff22bc 749
6a6c0154
RS
7502003-07-20 Roger Sayle <roger@eyesopen.com>
751
752 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
753 * system.h (SMALL_STACK): Poison obsolete target macro.
754 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
755
d38b3a8d
PE
7562003-07-20 Phil Edwards <pme@gcc.gnu.org>
757
758 * configure.in: Cache the results of testing for cmp's capabilities.
759 * configure: Regenerate.
760
35dc2bd8
MM
7612003-07-20 Mark Mitchell <mark@codesourcery.com>
762
763 PR debug/11279
764 * dwarf2out.c (gen_enumeration_type_die): Remember that
765 enumerators can be unsigned.
766
14e33ee8
ZW
7672003-07-19 Zack Weinberg <zack@codesourcery.com>
768
769 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
770 (push_label_level, pop_label_level): Kill.
771 (struct binding_level): Rename level_chain to outer.
772 Add outer_function field. Change parm_flag, function_body,
773 keep, keep_if_subblocks to 1-bit bitfields of type bool.
774 (current_function_level): New variable.
775 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
776 (keep_next_level, declare_parm_level, warn_if_shadowing):
777 Update to match.
778 (struct language_function): Kill named_labels, shadowed_labels fields.
779 (c_init_decl_processing, start_function, c_push__function_context)
780 (c_pop_function_context): No need to muck with named_labels nor
781 shadowed_labels.
782
783 (make_binding_level): No need to clear the structure here.
784 (pop_binding_level): Always operate on current_binding_level.
785 Update current_function_level if necessary.
786 (pushlevel): Don't clear named_labels. Update current_function_level
787 if necessary. Use "true" and "false" where appropriate.
788 (poplevel): Diagnose labels defined but not used, or vice
789 versa, and clear out label-meanings leaving scope, while
790 walking down the decls list, for all binding levels.
791 Handle LABEL_DECLs appearing in the shadowed list.
792 pop_binding_level takes no arguments.
793 (pushdecl_function_level): Use current_function_level.
794
795 (make_label, bind_label): New static functions.
796 (declare_label): New exported function.
797 (lookup_label, define_label): Rewritten for new data structure.
798 (shadow_label): Kill.
799
800 * c-tree.h: Prototype declare_label; don't prototype
801 push_label_level, pop_label_level, nor shadow_label.
802 * c-parse.in: Remove all calls to push_label_level and
803 pop_label_level. Use declare_label for __label__ decls.
804
805 * doc/extend.texi: Clarify that __label__ can be used to
806 declare labels with local scope in any nested block, not
807 just statement expressions. Cross-reference nested functions
808 section from local labels section.
809
8a6b9b7f
ZD
8102003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
811
812 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
813
026fe6c8
PE
8142003-07-19 Phil Edwards <pme@gcc.gnu.org>
815
816 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
817
c68b0a84
KG
8182003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
819
820 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
821 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
822
fd7643fb
UW
8232003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
824
14e33ee8 825 * config/s390/s390.c (legitimize_pic_address): Access local symbols
fd7643fb
UW
826 relative to the GOT instead of relative to the literal pool base.
827 (s390_output_symbolic_const): Handle new GOT-relative accesses.
828 * config/s390/s390.md ("call"): Access local functions and PLT stubs
829 relative to the GOT instead of relative to the literal pool base.
830 ("call_value"): Likewise.
831 ("call_value_tls"): Likewise.
832
14e33ee8 833 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
fd7643fb
UW
834 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
835 (s390_chunkify_finish): Likewise.
836 (s390_chunkify_cancel): Likewise.
837 (s390_reorg): Adapt caller.
838 (find_base_register_in_addr,
839 find_base_register_ref, replace_base_register_ref): Delete.
840 (find_ltrel_base, replace_ltrel_base): New functions.
841 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
842 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
843 base vs. index register usage.
844 (struct constant_pool): Remove 'anchor'.
845 (s390_add_anchor): Delete.
846 (s390_dump_pool): Remove anchor handling.
847 * config/s390/s390.md ("reload_anchor"): Remove.
848
849 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
850 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
851 (s390_emit_prologue): Use it.
14e33ee8
ZW
852 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
853 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
fd7643fb
UW
854 hard-code register 14.
855 * config/s390/s390-protos.h (s390_load_got): Declare.
856
14e33ee8 857 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
fd7643fb
UW
858 Support TImode constants.
859 * config/s390/s390.md ("consttable_ti"): New.
860 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
861
862 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
863 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
864 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
865 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
866 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
867 New symbolic constants.
868 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
869 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
870 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
871 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
872 symbolic UNSPEC values.
14e33ee8 873 * config/s390/s390.c (larl_operand, s390_short_displacement,
fd7643fb
UW
874 bras_sym_operand, s390_cannot_force_const_mem,
875 s390_delegitimize_address, s390_decompose_address,
876 legitimize_pic_address, s390_output_symbolic_const,
877 s390_function_profiler): Use symbolic UNSPEC values.
878
703ad42b
KG
8792003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
880
881 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
882 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
883 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
884 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
885 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
886 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
887 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
888 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
889 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
890 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
891 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
892 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
893 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
894 postreload.c prefix.c print-tree.c protoize.c ra-build.c
895 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
896 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
897 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
898 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
899 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
900 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
901 casts.
902
308ca868
GDR
9032003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
904
905 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
906 * toplev.h (warning): Remove attribute.
907
435ab236
GDR
9082003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
909
910 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
911 (pop_label_level): Likewise.
912 (duplicate_decls): Likewise.
913 (implicitly_declare): Likewise.
914 (shadow_label): Likewise.
915 (start_decl): Likewise.
916 (finish_decl): Likewise.
917 (grokdeclarator): Likewise.
918 (get_parm_info): Likewise.
919 (detect_field_duplicates): Likewise.
920 (finish_struct): Likewise.
921 (start_function): Likewise.
922 (store_parm_decls): Likewise.
923 (finish_function): Likewise.
924 (c_expand_body_1): Likewise.
925 (check_for_loop_decls): Likewise.
926 (merge_translation_unit_decls): Likewise.
927
2cc98056
NB
9282003-07-19 Neil Booth <neil@daikokuya.co.uk>
929
930 * common.opt: Document --param.
931 * opts.c (columns, undocumented_msg): New.
932 (print_help): Get number of columns from environment. Print
933 --param help. Tweak newline handling.
934 (print_param_help): New.
935 (print_filtered_help): Better handling of duplicates. Complain
936 about undocumented switches.
937 (print_switch): New.
938 (wrap_help): Improve wrapping, use COLUMNS.
939 * opts.sh: Ignore comments in records.
940 * params.def: Fix typos and remove trailing periods.
941 * toplev.c (display_help): Don't dump --param help.
942 * doc/sourcebuild.texi: Update.
943
d893ccde
RH
9442003-07-18 Richard Henderson <rth@redhat.com>
945
0e38b30b 946 PR target/11556
d893ccde
RH
947 * optabs.c (prepare_operand): Fail gracefully instead of abort
948 if the predicate doesn't satisfy.
949 (gen_cond_trap): Allow prepare_operand to fail.
950
eb8221ea
GDR
9512003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
952
953 * c-common.c: Don't undefine GCC_DIAG_STYLE.
954 (fname_decl): Don't use xxx_with_decl.
955 (c_add_case_label): Likewise.
956 (handle_section_attribute): Likewise.
957 (handle_alias_attribute): Likewise.
958 (handle_no_instrument_function_attribute): Likewise.
959 (handle_no_limit_stack_attribute): Likewise.
960 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
961 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
962
65f43cdf
ZD
9632003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
964
965 * Makefile.in (ifcvt.o): Add cfgloop.h.
966 * basic-block.h (EDGE_LOOP_EXIT): New flag.
967 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
968 * ifcvt.c: Include cfgloop.h.
969 (mark_loop_exit_edges): New static function.
970 (if_convert): Call it.
971 (find_if_header): Ignore branches out of loops.
972
e5686da7
KH
9732003-07-18 Kazu Hirata <kazu@cs.umass.edu>
974
14e33ee8 975 * combine.c (simplify_comparison): Don't share rtx when converting
e5686da7
KH
976 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
977
8d05ebaa
DE
9782003-07-18 David Edelsohn <edelsohn@gnu.org>
979
980 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
981 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
982 (MUST_PASS_IN_STACK): Define.
983 (BLOCK_REG_PADDING): Define.
984
79019985
RH
9852003-07-18 Richard Henderson <rth@redhat.com>
986
987 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
988 to skip the addr_vec.
989
0595d388
AO
990Fri Jul 18 15:22:28 2003 Alexandre Oliva <aoliva@redhat.com>
991
992 * combine.c (combinable_i3pat): Don't forbid occurrences of
993 i2dest or i1dest in inner_dest if inner_dest is a mem.
994
2ee1067b
JH
995Fri Jul 18 17:05:57 CEST 2003 Jan Hubicka <jh@suse.cz>
996
997 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
998
16f6812f
JJ
9992003-07-17 Jakub Jelinek <jakub@redhat.com>
1000
1001 PR target/11087
1002 * loop.c (basic_induction_var): Check if convert_modes emitted any
1003 instructions. Remove them and return 0 if so.
1004
f129791c
EB
10052003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
1006
1007 PR optimization/11083
1008 * toplev.c (rest_of_handle_addresof): Rename into
1009 rest_of_handle_addressof. Delete unreachable blocks
1010 if dead edges were purged after the addressof pass.
1011
b2e608ca
NB
10122003-07-18 Neil Booth <neil@daikokuya.co.uk>
1013
1014 * Makefile.in, configure, configure.in: Remove handling of
1015 lang-options.h and options_.h.
1016 * toplev.c (struct lang_opt, documented_lang_options): Remove.
1017 (display_help): Don't use documented_lang_options.
1018
9cd51ef6
ZW
10192003-07-17 Zack Weinberg <zack@codesourcery.com>
1020
1021 * c-decl.c (pushdecl_function_level): Make static, return nothing.
1022 (kept_level_p): Fold into poplevel.
1023 (undeclared_variable): Moved here from c-typeck.c. Export.
1024 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
1025 (undeclared_variable): Prototype here. Don't prototype
1026 kept_level_p nor pushdecl_function_level.
1027 * c-parse.in: Change first argument to poplevel from
1028 "kept_level_p()" to "KEEP_MAYBE".
1029 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
1030
cf6bcbd0
RS
10312003-07-17 Roger Sayle <roger@eyesopen.com>
1032
1033 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
1034 commutative operands instead of modifying the RTL in-place.
1035
2b187c63
MM
10362003-07-17 Mark Mitchell <mark@codesourcery.com>
1037
1038 PR optimization/11557
1039 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
1040 unless we know which function is being called.
1041
c715abdd
RS
10422003-07-17 Roger Sayle <roger@eyesopen.com>
1043
1044 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
1045 whether to reorder the operands of a commutative binary operator.
1046
3e4093b6
RS
10472003-07-17 Roger Sayle <roger@eyesopen.com>
1048
1049 * fold-const.c (const_binop): Avoid performing the FP operation at
1050 compile-time, if either operand is NaN and we honor signaling NaNs,
1051 or if we're dividing by zero and either flag_trapping_math is set
1052 or the desired mode doesn't support infinities.
1053 (fold_initializer): New function to fold an expression ignoring any
1054 potential run-time exceptions or traps.
1055 * tree.h (fold_initializer): Prototype here.
1056 * c-typeck.c (build_binary_op): Move to the end of the file so
1057 that intializer_stack is in scope. If constructing an initializer,
1058 i.e. when initializer_stack is not NULL, use fold_initializer to
1059 fold expressions.
1060 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
1061 performing FP operations at compile-time, if they would raise an
1062 exception at run-time.
1063
89e9faee
GK
10642003-07-17 Geoffrey Keating <geoffk@apple.com>
1065
26e0dcb3
GK
1066 PR 11498
1067 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
1068 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
1069 (GTFILES): Add langhooks.c.
1070 (gt-langhooks.h): New.
1071 * c-common.h (c_static_assembler_name): Prototype.
1072 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
1073 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
1074 * c-opts.c: Include langhooks-def.h.
1075 (c_static_assembler_name): New.
1076 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
1077 (var_labelno): New.
1078 (lhd_set_decl_assembler_name): Give static objects with context
1079 unique names.
1080 * varasm.c (var_labelno): Delete.
1081 (make_decl_rtl): Don't change the assembler name once it's set.
1082
89e9faee
GK
1083 * c-opts.c (this_input_filename): New.
1084 (finish_options): Take new parameter, name of file being compiled.
1085 Update callers. Set this_input_filename.
1086 (push_command_line_include): Use this_input_filename not
1087 main_input_filename.
1088
6ec3f553
NB
10892003-07-17 Neil Booth <neil@daikokuya.co.uk>
1090
1091 * Makefile.in: Depend .pot generation on options.c.
1092 * po/exgettext: Add an extra_files variable containing additional
1093 files to scan.
1094
78ff95dc
ZW
10952003-07-17 Zack Weinberg <zack@codesourcery.com>
1096
36c6d174
ZW
1097 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
1098 c_write_global_declarations.
1099
eb1dfbb2
ZW
1100 * c-decl.c: Fix typos in several comments. Remove all
1101 #if 0 blocks; reindent as needed. Remove unused argument
1102 to declare_parm_level; all callers changed.
1103 * c-parse.in: Update calls to declare_parm_level. Avoid
1104 issuing a double warning in some circumstances.
1105 * c-typeck.c: Update calls to declare_parm_level.
1106 * c-tree.h: Update prototype of declare_parm_level.
1107
1108 * c-pragma.c (apply_pragma_weak): Don't complain about a
1109 redundant #pragma weak.
1110
1111 * objc/objc-act.c (forward_declare_categories,
1112 build_selector_reference_decl, build_class_reference_decl,
1113 build_objc_string_decl, synth_forward_declarations,
1114 build_protocol_reference): Set TREE_PUBLIC on synthetic
1115 forward decl to 0, consistent with eventual definition.
1116 Correct comments to match.
1117
78ff95dc
ZW
1118 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
1119 in regexp that don't form a range expression.
1120 * fixinc/fixincl.def: Regenerate.
1121
b23ba0b8
RH
11222003-07-17 Richard Henderson <rth@redhat.com>
1123
78ff95dc
ZW
1124 PR target/10907
1125 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
1126 even with !TARGET_CONST_GP.
1127 (ia64_function_ok_for_sibcall): Reject non-local functions.
b23ba0b8 1128
d944c82d
SB
11292003-07-17 Steven Bosscher <steven@gcc.gnu.org>
1130
1131 * c-common.c (c_estimate_num_insns_1): Don't handle
1132 METHOD_CALL_EXPR.
1133 * expr.c (safe_from_p): Likewise.
1134 * gengtype.c (adjust_field_tree_exp): Likewise.
1135 * stmt.c (warn_if_unused_value): Likewise
1136 * tree.c (first_rtl_op): Likewise.
1137 * tree.def: Don't define METHOD_CALL_EXPR.
1138 * java/lang.c (java_estimate_num_insns_1): Don't handle
1139 METHOD_CALL_EXPR.
1140
54284728
EB
11412003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
1142
1143 PR other/11466
1144 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
1145 and its restrictions for the SPARC64 port.
1146 Move the entry of "-mimpure-text" before that of "-mv8".
1147
bc890961 11482003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
78ff95dc 1149 Phil Edwards <phil@jaj.com>
bc890961
EB
1150
1151 * doc/install.texi (*-*-solaris2*): Document the step-by-step
1152 procedure to bootstrap and install.
1153 Document the preference for the legacy Sun tools in /usr/bin
1154 over the POSIX tools in /usr/xpg4/bin for the build process.
1155
f2ac9964
NB
11562003-07-17 Neil Booth <neil@daikokuya.co.uk>
1157
1158 * c.opt: Document Uncodumented; use it. Document ObjC options.
1159 * opts.c (print_filtered_help): Skip undocumented switches.
1160 * opts.h (CL_UNDOCUMENTED): New.
1161 * opts.sh: Handle Undocumented.
1162 * toplev.c (documented_lang_options): Prevent its becoming empty.
1163objc:
1164 * lang-options.h: Remove.
1165
03988cac
UW
11662003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
1167
1168 * loop.c (check_ext_dependent_givs): Pass const struct loop *
1169 instead of struct loop_info * as argument. Accept BIVs with
1170 increment +/- 1 provided there is a friendly exit test against
1171 a loop-invariant value.
1172 (strength_reduce): Adapt call to check_ext_dependent_givs.
1173
fada1961
R
11742003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
1175 Con Bradley <con.bradley@superh.com>
1176
1177 * sh-protos.h (sh_get_pr_initial_val): Declare.
1178 * sh.c (regno_reg_class): Make its elements type enum reg_class.
1179 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
1180 and live_regs_mask arguments. Changed all callers.
1181 (save_schedule_s): New structure.
1182 (save_schedule): New typedef.
1183 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
1184 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
1185 In interrupts handlers, also save registers that are usually
1186 partially saved, and make sure there is at least one general purpose
1187 register saved if a target register needs saving.
1188 Add casts in comparisons to avoid warnings.
1189 (sh_media_register_for_return): return -1 for interrupt handlers.
1190 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
1191 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
1192 registers used are available.
1193 Set RTX_FRAME_RELATED_P where appropriate.
1194 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
1195 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
1196 (initial_elimination_offset): Likewise.
1197 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
1198 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
1199 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
1200 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
1201 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
1202 and for target registers.
1203 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
1204 (regno_reg_class): Make its elements type enum reg_class.
1205 (CONSTRAINT_LEN): Don't use isdigit.
1206 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
1207 (FUNCTION_ARG): Add parentheses to avoid warnings.
1208 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
1209 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
1210 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
1211 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
1212 * sh.md (xordi3+1): Remove unused variable regno.
1213 (return_media): Check that tr0 is available before using it.
1214
bae92bf3
NB
12152003-07-16 Neil Booth <neil@daikokuya.co.uk>
1216
1217 * c.opt: Document more options.
1218
cc8c96fd
RS
12192003-07-16 Roger Sayle <roger@eyesopen.com>
1220
1221 * combine.c (subst): Also handle (subreg (const_double ...)) case
1222 if created by a substitution, by using the original inner mode.
1223
d41ba56f
RS
12242003-07-16 Roger Sayle <roger@eyesopen.com>
1225
1226 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
1227 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
1228 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
1229
264d65c1 12302003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
78ff95dc 1231
264d65c1 1232 * doc/install.texi (--without-headers): New.
1622229c
AP
1233
1234 Partial Fix PR/10129
1235 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
1236 (machopic_output_function_base_name): New; print the true pic label.
1237 (machopic_classify_ident): Pic Base is always a defined data.
1238 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
1239 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
1240
db2f435b
AP
1241 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
1242 if they are not floating point registers.
1243
d07605f5
AP
1244 PR c/10962
1245 * ggc.h: Add header guards.
1246 * c-decl.c (finish_struct): Sort fields if
1247 number greater than 15 and there are no
1248 anonymous structs/unions.
1249 * c-common.h: Include ggc.h.
1250 (sorted_fields_type): New struct.
1251 (field_decl_cmp): New prototype.
1252 (resort_sorted_fields): New prototype.
1253 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
1254 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
1255 as s, removing other fields.
1256 * c-typeck.c (lookup_field): Use s in lang_type.
1257 These were mostly moved from cp/class.c:
1258 * c-common.c (field_decl_cmp): New static function.
1259 (field_decl_cmp): New function.
1260 (resort_sorted_fields): New function.
1261
3d7964d5
GK
12622003-07-16 Geoffrey Keating <geoffk@apple.com>
1263
1264 * config/darwin.c (machopic_select_section): Use decl_readonly_section
1265 to do most of the work.
1266
4e58524e
HPN
12672003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
1268
1269 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
1270 * config/mmix/mmix.c: Convert functions to ISO C90.
1271 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
1272 formatting.
1273 (mmix_get_hard_reg_initial_val): Tweak section head comment.
1274
1e0343dd
R
12752003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
1276
1277 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
1278
fc4767bb
JJ
12792003-07-16 Jakub Jelinek <jakub@redhat.com>
1280
1281 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
1282 (uw_update_context_1): Use it.
1283 * config/rs6000/rs6000.c (insn_after_throw): Remove.
1284 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
1285 in parent frame if _Unwind_* called directly instead of through
1286 .plt.
1287 (rs6000_emit_eh_toc_restore): Remove.
1288 (rs6000_emit_prologue): Update stack pointer before doing any saving
1289 if current_function_calls_eh_return. Generate unwind info for $r2.
1290 (rs6000_emit_epilogue): Restore stack pointer after doing all
1291 restoring if current_function_calls_eh_return. Restore $r2.
1292 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
1293 * config/rs6000/rs6000.md (eh_return): Remove call to
1294 rs6000_emit_eh_toc_restore.
1295 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
1296 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
1297
6972c506
JJ
12982003-07-15 Jakub Jelinek <jakub@redhat.com>
1299
1300 * expr.c (emit_block_move): Don't move anything if size is const 0.
1301 (clear_storage): Test against const0_rtx instead of comparing INTVAL
1302 against 0.
1303
ac59ed37
DM
13042003-07-15 David S. Miller <davem@redhat.com>
1305
1306 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
1307 emit nop if the last real insn is CALL_INSN.
1308
b828d124
DS
13092003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
1310
1311 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
1312 as "nul".
1313 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
1314
d5648e12
DS
13152003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
1316
1317 * config/i386/winnt.c (associated_type): Artificial methods are not
1318 affected by the import/export status of their class unless they are
1319 COMDAT.
1320 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
1321
1322 * config/i386/winnt.c: Fix GCC copyright comment.
1323
b0e3f7ec
GDR
13242003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
1325
1326 PR c++/11531
1327 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
1328 not recursing on hard error.
1329 (diagnostic_for_decl): Likewise.
1330 * diagnostic.def: Rearrange.
1331
71628aa0
R
13322003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
1333
1334 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
1335 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
1336
13372003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
1338 Richard Henderson <rth@redhat.com>
1339
1340 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
1341 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
1342 (_Unwind_SetGR): Likewise.
1343 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
1344 (Unwind_SpTmp): New typedef.
1345 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
1346 (uw_update_context): Use _Unwind_GetPtr.
1347 (init_dwarf_reg_size_table): Move above uw_init_context_1.
1348 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
1349 Use _Unwind_SetSpColumn.
1350 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
1351 Use _Unwind_GetPtr.
1352
5a170a05
NB
13532003-07-15 Neil Booth <neil@daikokuya.co.uk>
1354
1355 * c.opt: Document more options.
1356 * toplev.c (documented_lang_options): Remove all local help strings.
1357
b0afa2fc
MM
13582003-07-15 Mark Mitchell <mark@codesourcery.com>
1359
1360 PR debug/11473
1361 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
1362 base classes.
1363
5df90541
KH
13642003-07-15 Kazu Hirata <kazu@cs.umass.edu>
1365
1366 PR target/10795
1367 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
1368 swap comparison operands if doing so would generate an
1369 unrecognizable insn.
1370
5a257872
EB
13712003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
1372
1373 PR optimization/11320
1374 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
1375 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
1376 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
1377 current_sched_info->compute_jump_reg_dependencies. Record which
1378 registers are used and which registers are set by the jump.
1379 Clear deps->reg_conditional_sets after a barrier.
1380 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
1381 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
1382 (init_deps): Initialize reg_conditional_sets.
1383 (free_deps): Clear reg_conditional_sets.
1384 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
1385 Mark registers live on entry of the fallthrough block and conditionally
1386 set as set by the jump. Mark registers live on entry of non-fallthrough
1387 blocks as used by the jump.
1388 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
1389 Mark new parameters as unused.
1390
3cec3f83
RS
13912003-07-15 Richard Sandiford <rsandifo@redhat.com>
1392
1393 * doc/invoke.texi: Resync MIPS -march documentation.
1394
98450f0d
RS
13952003-07-15 Richard Sandiford <rsandifo@redhat.com>
1396
1397 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
1398 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
1399 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
1400 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
1401 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
1402 (mips_issue_rate): Handle PROCESSOR_R9000.
1403 (mips_use_dfa_pipeline_interface): Likewise.
1404 * config/mips/9000.md: New file.
1405 * config/mips/mips.md: Include it.
1406 (define_attr cpu): Add r9000.
1407 (mulsi3_mult3): Use "mul" for rm9000 code.
1408
5fe25f47
SC
14092003-07-15 Stan Cox <scox@redhat.com>
1410
1411 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
1412 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
1413 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
1414 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
1415 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
1416 (mips_issue_rate): Handle PROCESSOR_R7000.
1417 (mips_use_dfa_pipeline_interface): Likewise.
1418 * config/mips/7000.md: New file.
1419 * config/mips/mips.md: Include it.
1420 (define_attr cpu): Add r7000.
1421 (mulsi3_mult3): Use "mul" for rm7000 code.
1422
5a2515e6
RS
14232003-07-15 Richard Sandiford <rsandifo@redhat.com>
1424
1425 * config/mips/mips.md (define_attr type): Add condmove. Use it for
1426 the conditional move patterns.
1427 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
1428 Check for condmove type.
1429 (ir_vr54_arith): Add move type.
1430 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
1431 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
1432
72de27ea
NB
14332003-07-15 Neil Booth <neil@daikokuya.co.uk>
1434
1435 * c-opts.c (print_help): Remove.
1436 (c_common_handle_option): Don't handle --help.
1437 * c.opt: Document some options.
1438 (--help): Remove.
1439 * opts.c (print_filtered_help): New.
1440 (print_help): Use it.
1441
e6ebd07b
GK
14422003-07-14 Geoffrey Keating <geoffk@apple.com>
1443
2d799c09
GK
1444 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
1445 * tree.c: (build_common_tree_nodes_2): Likewise.
1446 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
1447 (V4DF_type_node): New.
1448
e6ebd07b
GK
1449 * c-opts.c (push_command_line_include): Don't free deferred_opts,
1450 we'll need it.
1451 (finish_options): Reset init_cursor.
1452
b90f141a
KH
14532003-07-15 Kazu Hirata <kazu@cs.umass.edu>
1454
1455 * expr.c (expand_assignment): Remove an unused argument
1456 SUGGEST_REG.
1457 * expr.h: Update the prototype.
1458 * function.c: Update the callers.
1459 * stmt.c: Likewise.
1460
1e7ee6ad
MM
14612003-07-14 Mark Mitchell <mark@codesourcery.com>
1462
1463 PR debug/11098
1464 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
1465 as DECL_ABSTRACT.
1466
bf66f7b0
NN
14672003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
1468
1469 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
1470 with __cplusplus, not "we must use the C++ compiler's type"
1471 * fixinc/inclhack.def (void_null): Note that Interix needs this.
1472 * fixinc/fixincl.x: Regenerate.
1473
18009d03
GK
14742003-07-14 Geoffrey Keating <geoffk@apple.com>
1475
ea00486e
GK
1476 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
1477 and unseen_objects from the global data before calling
1478 __deregister_frame_info_bases.
1479 (examine_objects): Insert objects into the seen_objects list,
1480 not unseen_objects.
1481 (_Unwind_Find_FDE): Always unlock the global object lists, even if
1482 we couldn't allocate a data structure to put in it.
1483
18009d03
GK
1484 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
1485 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
1486 (SET_TYPE_PROTOCOL_LIST): New.
1487 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
1488 (get_object_reference): Likewise.
1489
9ae130f8
JH
1490Mon Jul 14 23:14:28 CEST 2003 Jan Hubicka <jh@suse.cz>
1491
1492 * cfglayout.c (locator_file): Break out from ....
1493 (insn_file): ... here.
1494 (locator_line): Break out from ....
1495 (insn_line): ... here.
1496 * rtl.h (locator_file, locator_line): Declare.
1497 (final_start_function): Set proper line/file info.
1498
e07d4821
GDR
14992003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
1500
1501 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
1502 handled by pp_c_cast_expression.
1503
121d69e6
RS
15042003-07-14 Richard Sandiford <rsandifo@redhat.com>
1505
1506 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
1507 allocate 32768 bytes of stack. Use addition rather than subtraction
1508 when a single insn is enough.
1509 * config/mips/mips.md: Remove insns and splitters for subtracting
1510 constants.
1511 (subsi3): Only accept register operands.
1512 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
1513 (subdi3_internal_3, subsi3_internal_2): Likewise.
1514 (casesi): Use expand_binop to subtract the lower bound.
1515
3485245e
RS
15162003-07-14 Richard Sandiford <rsandifo@redhat.com>
1517
1518 * config/mips/mips.c (mips_in_small_data_p): Don't handle
1519 TARGET_MIPS16 specially.
1520
6627b7f9
RS
15212003-07-14 Richard Sandiford <rsandifo@redhat.com>
1522
6d0b50a4
RS
1523 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
1524 mips_output_aligned_bss.
1525 * config/mips/linux.h: Likewise.
1526 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
1527 * config/mips/mips.c (mips_output_aligned_bss): New function.
1528
8d50bd19
RS
1529 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
1530 * config/mips/elf64.h: Likewise.
1531
c1115ccd
RS
1532 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
1533 mips_declare_object_name.
1534 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
1535 * config/mips/elf64.h: As for elf.h.
1536 * config/mips/iris6.h: Likewise.
1537 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
1538 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
1539 do...while (0) block.
1540 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
1541 (mips_finish_declare_object): Declare.
1542 * config/mips/mips.c (mips_declare_object_name): New function.
1543 (mips_finish_declare_object): New function.
1544
060ff934
RS
1545 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
1546 * config/mips/linux.h: Likewise.
1547
d82783b6
RS
1548 * config/mips/mips.c (inside_function): Delete.
1549 (file_in_function_warning, ignore_line_number): Delete.
1550 (mips_output_filename): Don't warn about changing filenames within
1551 a function.
1552 (mips_output_lineno): Update accordingly.
1553 (mips_output_function_prologue): Don't reset the deleted variables.
1554 * config/mips/mips.h (inside_function): Delete.
1555 (file_in_function_warning, ignore_line_number): Delete.
1556
373f8df7
RS
1557 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
1558 * config/mips/elf64.h: Likewise.
1559 * config/mips/openbsd.h: Likewise.
1560 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
1561 * config/mips/linux.h: Likewise.
1562 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
1563 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
1564
6627b7f9
RS
1565 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
1566 to the list of include files when using gas.
1567 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
1568 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
1569 * config/mips/elf64.h: Likewise.
1570 * config/mips/iris5.h: Likewise.
1571 * config/mips/linux.h: Likewise.
1572 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
1573 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
1574 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
1575 * config/mips/sdb.h: ...this new file.
1576
c18b00c0
NN
15772003-07-14 Douglas Rupp <rupp@gnat.com>
1578
1579 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
1580 argument to getcwd; use fixed buffer instead.
1581
15822003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
1583
1584 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
1585 * fixinc/fixinc.wrap: Delete.
1586
adc4adcd
GP
15872003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
1588
1589 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
1590 don't have 2.
1591
15922003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
1593
1594 * ggc-page.c (struct globals): Add new fields to keep track of the
1595 total allocated memory and overhead.
1596 (ggc_print_statistics): Print them.
1597 (ggc_alloc): Keep track of the total allocated memory and the
1598 overhead.
1599
1600 * tree.c (dump_tree_statistics): Increase spacing.
1601 (enum tree_node_kind): Move to ...
1602 * tree.h (enum tree_node_kind): ... here.
1603 (tree_node_counts, tree_node_sizes): Declare.
1604
16052003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
1606
1607 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
1608
bbd288a4
FS
16092003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1610
1611 PR optimization/11440
1612 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
1613 SIGN_EXTRACT SETs.
1614
6e985040
AM
16152003-07-14 Alan Modra <amodra@bigpond.net.au>
1616
1617 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
1618 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
1619 (emit_group_load, emit_group_store): Adjust declarations.
1620 Remove most occurrences of #ifdef TREE_CODE.
1621 * expr.c (emit_group_load): Add "type" param, and use
1622 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
1623 aligned accesses if !SLOW_UNALIGNED_ACCESS.
1624 (emit_group_store): Likewise.
1625 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
1626 emit_group_load and emit_group_store calls.
1627 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
1628 BLOCK_REG_PADDING to determine whether we need endian_correction.
1629 (load_register_parameters): Localize vars. Handle shifting of
1630 small values to the correct end of regs. Adjust emit_group_load
1631 call.
1632 (expand_call, emit_library_call_value_1): Adjust emit_group_load
1633 and emit_group_store calls.
1634 * function.c (assign_parms): Set mem alignment for stack slots.
1635 Adjust emit_group_store call. Store values at the "wrong" end
1636 of regs to the stack. Use BLOCK_REG_PADDING.
1637 (locate_and_pad_parm): Save where_pad.
1638 (expand_function_end): Adjust emit_group_load call.
1639 * stmt.c (expand_value_return): Adjust emit_group_load call.
1640 * Makefile.in (calls.o): Depend on $(OPTABS_H).
1641 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
1642 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
1643 (MUST_PASS_IN_STACK): Define.
1644 (BLOCK_REG_PADDING): Define.
1645 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
1646 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
1647 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
1648 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
1649 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
1650
4fab535e
AL
16512003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
1652
1653 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
1654
8d2e5f72
RK
16552003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1656
1657 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
1658 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
1659
7eaab492
NN
16602003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
1661
1662 PR other/11123
1663 * toplev.c: Don't cut off option names.
1664
9d4a30f2
AJ
16652003-07-13 Andreas Jaeger <aj@suse.de>
1666
1667 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
1668 to integer of different size.
1669
34ed3bb0
KH
16702003-07-13 Kazu Hirata <kazu@cs.umass.edu>
1671
1672 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
1673 to (eq (and X 1) 0).
1674
1a7d0840
AJ
16752003-07-13 Andreas Jaeger <aj@suse.de>
1676
1677 * config.gcc: Add pmmintrin.h for x86_64-*-*.
1678
43839642
ZW
16792003-07-13 Zack Weinberg <zack@codesourcery.com>
1680
1681 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
1682 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
1683 list. Move these all together down by cpplib.
1684
1685 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
1686 definition of CPPCHAR_SIGNED_T.
1687
1688 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
1689 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
1690 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
1691
1692 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
1693 * cppinit.c (cpp_create_reader): Likewise.
1694
1695 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
1696 * cpptrad.c: Likewise. All callers changed.
1697 * cpplib.c: All callers changed.
1698 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
1699 * hashtable.h: Define GTY(x) to nothing here too.
1700
0acf4f88
RK
17012003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1702
1703 * stor-layout.c (compute_record_mode): Remove very obsolete test
1704 that forces BLKmode for records with fields crossing word boundary.
1705
46db61e7
ZW
17062003-07-13 Zack Weinberg <zack@codesourcery.com>
1707
1708 * Makefile.in: Remove orphan reference to acconfig.h.
1709
db0e878d
AJ
17102003-07-13 Andreas Jaeger <aj@suse.de>
1711
1712 * cgraphunit.c: Convert prototypes to ISO C90.
1713
4146d8d0
NN
17142003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
1715
1716 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
1717 (for OpenBSD).
1718 * fixinc/fixincl.x: Rebuild.
1719
6f3ca281
ZW
17202003-07-12 Zack Weinberg <zack@codesourcery.com>
1721
1722 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
1723 i?86-*-*. Use correct name of cache variable.
1724 * configure: Regenerate.
1725
9a9f7594
KH
17262003-07-12 Kazu Hirata <kazu@cs.umass.edu>
1727
1728 * config/alpha/alpha.c: Fix comment typos.
1729 * config/alpha/alpha.md: Likewise.
1730 * config/arm/arm.c: Likewise.
1731 * config/arm/arm.md: Likewise.
1732 * config/arm/lib1funcs.asm: Likewise.
1733 * config/avr/avr.md: Likewise.
1734 * config/arm/README-interworking: Fix typos.
1735
4ed43216
KH
17362003-07-12 Kazu Hirata <kazu@cs.umass.edu>
1737
1738 * c-format.c: Fix comment formatting.
1739 * c-typeck.c: Likewise.
1740 * coverage.c: Likewise.
1741 * cppcharset.c: Likewise.
1742 * cpplib.c: Likewise.
1743 * dbxout.c: Likewise.
1744 * gcov-io.h: Likewise.
1745 * toplev.c: Likewise.
1746
c3a5b1e9
NN
17472003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
1748
6f3ca281 1749 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
c3a5b1e9
NN
1750 fix.
1751
8ada417f
ZW
17522003-07-12 Zack Weinberg <zack@codesourcery.com>
1753
1754 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
1755 uses three-argument AC_DEFINE so no acconfig.h entries are
1756 needed.
1757 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
1758 which contains the GAS version number as a scaled integer.
1759 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
1760 ability to check for ELF assembler.
1761 (gcc_GAS_CHECK_FEATURE): New macro.
1762 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
1763 assembler feature checks using gcc_GAS_CHECK_FEATURE.
1764 Use three-argument AC_DEFINE everywhere.
1765 * acconfig.h: Deleted.
1766 * config.in, configure: Regenerate.
1767
d5d16b5f
NN
17682003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
1769
3b57c563
NN
1770 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
1771 (on OpenBSD).
d33fb69b 1772 * fixinc/fixincl.x: Regenerate.
3b57c563 1773
d5d16b5f
NN
1774 * fixinc/inclhack.def (gnu_types): Improve comment.
1775
439f7bc3
AJ
17762003-07-12 Andreas Jaeger <aj@suse.de>
1777
1778 * fp-test.c (main): Use ISO C90 prototype.
1779
1780 * version.c: Remove unneded include of ansidecl.h.
1781
1782 * cgraph.h: Convert prototypes to ISO C90.
1783 * cgraph.c: Likewise.
1784 * fix-header.c: Likewise.
1785 * ra.h: Likewise.
1786 * protoize.c: Likewise.
1787
1a5c5701
JH
1788Sat Jul 12 06:09:38 CEST 2003 Jan Hubicka <jh@suse.cz>
1789
1790 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
1791 warning.
1792
b58b1157
JH
1793Sat Jul 12 03:06:01 CEST 2003 Jan Hubicka <jh@suse.cz>
1794 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
1795
1796 * cgraph.c (cgraph_max_uid): New global variable.
1797 (cgraph_node): Set uid field.
1798 (create_edge): Keep inline flags consistent.
1799 (dump_cgraph): Dump more info.
1800 * cgraph.h (struct cgraph_local_info): Remove inline_many and
1801 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
1802 (struct cgraph_global_info): Add insns, calls, cloned_times,
1803 will_be_output.
1804 (struct cgraph_node): Add uid.
1805 (struct cgraph_edge): Add inline_call.
1806 (cgraph_max_uid, cgraph_inline_p): Declare.
1807 * cgraph.c: Include params.h and fibheap.h
1808 (cgraph_mark_functions_to_inline_once): Kill.
1809 (INSNS_PER_CALL): New constant.
1810 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
1811 static variables.
1812 (cgraph_finalize_function): Do not analyze inlining.
1813 (cgraph_finalize_compilation_unit): Set inlining attributes.
1814 (cgraph_mark_functions_to_output): More consistency checks.
1815 (cgraph_optimize_function): Set current_function_decl to NULL.
1816 (cgraph_expand_function): Use new inline flags.
1817 (cgraph_postorder): Expand from cgraph_expand_functions.
1818 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
1819 (cgraph_inlined_into, cgraph_inlined_callees,
1820 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
1821 cgraph_mark_inline, cgraph_check_inline_limits,
439f7bc3 1822 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
b58b1157
JH
1823 cgraph_decide_inlining, cgraph_inline_p): New functions.
1824 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
1825 PARAM_INLINE_UNIT_GROWTH): New parameters.
1826 * tree-inline.c (struct inline_data): New field current_decl.
1827 (expand_call_inline): Avoid forward declarations; use
1828 inlinable_function_p.
1829 (optimize_inline_calls): Set id.current_decl.
1830
27b8e366
AP
18312003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
1832
1833 * configure.in: Remove wrongly added definition of
1834 local_prefix.
1835 * configure: Regenerate.
1836
80fa0b4c
DN
18372003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
1838
1839 * rtl.def (NOTE): Do not use padding.
1840
1ea6f4c8
DH
18412003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
1842
1843 * doc/install.tex: Update required binutils for i?86-*-linux*
1844
ed2d8944
RH
18452003-07-11 Richard Henderson <rth@redhat.com>
1846
1847 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
1848
a44cea75
MM
18492003-07-11 Mark Mitchell <mark@codesourcery.com>
1850
1851 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
1852 TRANSLATION_UNIT_DECL as top_level.
1853
358b8f01
JJ
18542003-07-11 Jakub Jelinek <jakub@redhat.com>
1855
1856 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
1857 then fall back to cmpstrM.
1858 * builtins.c (expand_builtin_memcmp): Likewise.
1859 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
1860 (s390_expand_cmpmem): ... this.
1861 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
1862 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
1863 from cmpstr* patterns. Rename call to s390_expand_cmpstr
1864 to s390_expand_cmpmem.
1865 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
1866 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
1867 to cmpmem*.
1868 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
1869 cmpstr* patterns.
1870 * doc/md.texi (cmpstrM): Describe as String compare insn, not
1871 Block compare insn.
1872 (cmpmemM): Add.
1873
8634e925
LR
18742003-07-11 Loren James Rittle <ljrittle@acm.org>
1875
1876 * config/i386/freebsd.h (SET_ASM_OP): Remove.
1877 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
1878 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
1879 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
1880
48144cd4
RH
18812003-07-11 Richard Henderson <rth@redhat.com>
1882
1883 * function.c (assign_parms): Don't recombine complex args if
1884 fnargs is unchanged from orig_fnargs.
1885 (split_complex_args): Return args without complex before copying.
1886 Re-layout the modified parameters.
1887
fee226d2
R
18882003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
1889
1890 * regclass.c (choose_hard_reg_mode): Add third argument.
1891 Changed all callers.
1892 * rtl.h (choose_hard_reg_mode): Update declaration.
1893 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
1894 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
1895
d1bd0ded
GK
18962003-07-11 Geoffrey Keating <geoffk@apple.com>
1897
1898 * c-decl.c (finish_decl): Handle 'used' here...
1899 * cgraphunit.c (cgraph_finalize_function): ... and here ...
1900 * c-common.c: (handle_used_attribute): ... not here.
439f7bc3 1901
d1bd0ded
GK
1902 * configure.in (onstep): Support --enable-intermodule.
1903 * Makefile.in (OBJS-common): New.
1904 (OBJS-md): New.
1905 (OBJS-archive): New.
1906 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
1907 (OBJS-onestep): New.
1908 (libbackend.a): Support @onestep@.
1909 (libbackend.o): New.
1910 * configure: Regenerate.
439f7bc3 1911
d1bd0ded
GK
1912 * c-common.h (c_reset_state): New prototype.
1913 (c_parse_file): New prototype.
1914 (finish_file): Move prototype from c-tree.h.
1915 * c-decl.c: Include <hashtab.h>.
1916 (builtin_decls): New.
1917 (current_file_decl): New.
1918 (duplicate_decls): Add extra parameter. Change all callers. Don't
1919 output duplicate common symbols.
1920 (link_hash_hash): New.
1921 (link_hash_eq): New.
1922 (poplevel): Handle popping of the top level.
1923 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
1924 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
1925 (pushdecl_top_level): Likewise.
1926 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
1927 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
1928 (finish_decl): Handle TRANSLATION_UNIT_DECL.
1929 (merge_translation_unit_decls): New.
1930 (c_write_global_declarations): New.
1931 (c_reset_state): New.
1932 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
1933 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
1934 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
1935 TRANSLATION_UNIT_DECL.
1936 (c_objc_common_finish_file): Call merge_translation_unit_decls.
1937 * c-opts.c (in_fnames): Rename from in_fname.
1938 (c_common_decode_option): Handle multiple input filenames.
1939 (c_common_post_options): Likewise.
1940 (c_common_parse_file): Likewise; also, call c_parse_file rather than
1941 yyparse.
1942 * c-parse.in: Move cleanup code to c_parse_file.
1943 (free_parser_stacks): Move contents to c_parse_file.
1944 (c_parse_file): New.
1945 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
1946 for integer types.
1947 (C_DECL_FILE_SCOPE): New.
1948 (finish_file): Move prototype to c-common.h.
1949 (merge_translation_unit_decls): New prototype.
1950 (comptypes): Add extra parameter to prototype.
1951 (c_write_global_declarations): New prototype.
1952 * c-typeck.c (tagged_types_tu_compatible_p): New.
1953 (function_types_compatible_p): Add extra parameter, change all callers.
1954 (type_lists_compatible_p): Likewise.
1955 (comptypes): Likewise.
1956 (struct tagged_tu_seen): New.
1957 (tagged_tu_seen_base): New.
1958 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
1959 (c_mark_addressable): Remove #if 0 code.
1960 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
1961 comment explaining why it shouldn't have to.
1962 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
1963 options.
1964 * cppinit.c (cpp_read_next_file): New.
1965 (cpp_read_main_file): Use it.
1966 * cpplib.c (undefine_macros): New.
1967 (cpp_undef_all): New.
1968 * cpplib.h (cpp_read_next_file): Prototype.
1969 (cpp_undef_all): Prototype.
1970 * langhooks-def.h (write_global_declarations): Remove prototype.
1971 * toplev.h (write_global_declarations): Add prototype.
1972 * tree.c (decl_type_context): Use switch statement, handle
1973 TRANSLATION_UNIT_DECL.
1974 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
1975 (TRANSLATION_UNIT_DECL): New kind of tree.
1976 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
1977 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
1978 * doc/invoke.texi: Make attempt to document new functionality.
1979
1980 2003-05-19 Per Bothner <bothner@apple.com>
1981
1982 * gcc.c (combine_inputs): New.
1983 (process_command): Set combine_inputs.
1984 (do_spec_1): Handle combine_inputs.
1985 (main): Likewise.
1986
ac8354b1
JW
19872003-07-10 James E Wilson <wilson@tuliptree.org>
1988
1989 PR optimization/9745
1990 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
1991 loop_insn_emit_before.
1992 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
439f7bc3 1993
dea55da5
ZW
19942003-07-10 Zack Weinberg <zack@codesourcery.com>
1995
1996 * cppcharset.c: Fix comment.
1997 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
1998 (EILSEQ): #define to EINVAL if not already defined.
1999 (convert_using_iconv): #if out when !HAVE_ICONV.
2000 (init_iconv_desc): Handle !HAVE_ICONV here...
2001 (cpp_init_iconv): ...not here.
2002
f3fdaec4
NB
20032003-07-11 Neil Booth <neil@daikokuya.co.uk>
2004
2005 * common.opt: More --help messages.
2006 * opts.c (print_help): Use puts().
2007 * toplev.c (f_options): Remove help text.
2008 (display_help): Don't dump f_options.
2009
7ebbf1ea
NN
20102003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
2011
2012 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
2013 Move i?86-*-interix* to the don't-fix list.
2014 * fixinc/fixinc.interix: Delete with extreme prejudice.
2015
959a73a4
DH
20162003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
2017
2018 PR bootstrap/10758
2019 * doc/install.texi: Document requirements for ia64-*-hpux* target.
2020
9959901c
RS
20212003-07-10 Roger Sayle <roger@eyesopen.com>
2022
2023 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
2024
6b88314c
ZW
20252003-07-10 Zack Weinberg <zack@codesourcery.com>
2026
2027 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
2028 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
2029 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
2030 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
2031 convert_no_conversion, convert_using_iconv): New functions.
2032 (APPLY_CONVERSION): New macro.
2033 (struct conversion, conversion_tab): New data structure.
2034 (init_iconv_desc): Check conversion_tab for a custom conversion
2035 primitive before trying to use iconv.
2036 (convert_cset): Deleted.
2037 (cpp_init_iconv): Use UTF- terminology, not UCS-.
2038 (_cpp_destroy_iconv): Update to match.
2039 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
2040 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
2041 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
2042 (_cpp_interpret_string_notranslate): New function, moved here
2043 from cpplib.c.
2044
2045 * cpphash.h (convert_f, struct cset_converter): New types.
2046 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
2047 are now struct cset_converter, not bare iconv_t.
2048 Update prototypes.
2049 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
2050 all callers changed.
2051
38f4680f 20522003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
6b88314c 2053
38f4680f
KC
2054 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
2055 to opts.sh command line.
2056 * opts.sh: Write to temporary files with a move-if-change at the end.
2057
2a868fac 20582003-07-10 Denis Chertykov <denisc@overta.ru>
6b88314c 2059 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9db367b4
DC
2060
2061 * combine.c (gen_binary): Handle the CLOBBER rtx and
2062 don't build a binary operation with it.
2063
3b14e3af
ZD
20642003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2065
2066 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
2067 store_killed_after, store_killed_before): Keep track of the correct
2068 dependency function to use.
2069
a9189cc0
SB
20702003-07-10 Steven Bosscher <steven@gcc.gnu.org>
2071 * toplev.c (do_compile): Don't try to open dump files before
2072 lang_dependent_init initializes dump_base_name.
2073
e97a46ce
KG
20742003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2075
2076 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
2077 Use ARRAY_SIZE.
2078 * config/frv/frv.c (frv_expand_builtin): Likewise.
2079 * config/sh/sh.c (sh_media_init_builtins): Likewise.
2080
4a386498
MM
20812003-07-09 Mark Mitchell <mark@codesourcery.com>
2082
2083 PR c++/10032
2084 * doc/invoke.texi (C++ Dialect Options): Change documentation of
2085 -fpermissive.
2086
1e60c057
R
20872003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
2088
2089 * tm.texi (RETURN_ADDR_OFFSET): Document.
2090
330d2e2a
NS
20912003-07-10 Nathan Sidwell <nathan@codesourcery.com>
2092
2093 * gcov-io.h: Update documentation.
2094 (GCOV_UNSIGNED2STRING): New.
2095 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
2096 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
2097 GCOV_TAG_SUMMARY_LENGTH): Adjust.
2098 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
2099 GCOV_TAG_COUNTER_NUM): New.
2100 (GCOV_BLOCK_SIZE): Number of words.
2101 (gcov_var): Adjust buffer type.
2102 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
2103 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
2104 count, not byte count.
2105 (gcov_open): Adjust overread init.
2106 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
2107 gcov_write_string, gcov_write_tag, gcov_write_length,
2108 gcov_write_tag_length): Adjust.
2109 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
2110 (gcov_sync, gcov_seek): Adjust.
2111 * gcov-dump.c (print_usage): Show gcc version only.
2112 (dump_file): Use GCOV_UNSIGNED2STRING.
2113 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
2114 * gcov.c (print_version): Show gcc version only.
2115 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
2116 GCOV_TAG_*_NUM macros.
2117 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
2118 GCOV_TAG_COUNTER_LENGTH.
2119 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
2120 Use GCOV_TAG_COUNTER_NUM.
2121 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
2122 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
2123
3dbb446e
AS
21242003-07-10 Andreas Schwab <schwab@suse.de>
2125
2126 * gcov-dump.c (dump_file): Fix missing address operator.
2127
11791dbc
KH
21282003-07-10 Kazu Hirata <kazu@cs.umass.edu>
2129
2130 PR c/11449
2131 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
2132 of HOST_WIDE_INT.
2133 (fold_single_bit_test): If sign_bit_p() fails, assume that the
2134 bit being tested is not a sign bit.
2135
ae12c666
KH
21362003-07-10 Kazu Hirata <kazu@cs.umass.edu>
2137
2138 * config/h8300/h8300.md (a peephole2): New.
2139
2beef00e
AO
21402003-07-10 Alexandre Oliva <aoliva@redhat.com>
2141
2142 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
2143 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
2144 from ld-linux.so.2 to ld.so.1.
2145 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
2146 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
2147 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
2148 nor -Wl,-rpath-link.
2149 (LIB_SPEC): Add -rpath-link if !static.
2150 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
2151 * config/mn10300/mn10300.c (mn10300_protect_label): New
2152 variable.
2153 * config/mn10300/linux.h (PRINT_OPERAND,
2154 PRINT_OPERAND_ADDRESS): Set it during their execution.
2155 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
2156 mn10300_protect_label is set.
2157 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
2158 -Wl,-rpath-link.
2159 (LIB_SPEC, STARTFILE_SPEC): Define.
2160 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
2161 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
2162 FLOAT_BIT_ORDER_MISMATCH.
2163 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
2164 * config.gcc (am33_2.0-*-linux*): Added.
2165 * config/mn10300/linux.h: New.
2166 * config/mn10300/t-linux: New.
2167
75040a04
AJ
21682003-07-10 Andreas Jaeger <aj@suse.de>
2169
2170 * fold-const.c: Properly wrap prototypes.
2171
d1776069
AO
21722003-07-09 Alexandre Oliva <aoliva@redhat.com>
2173
2174 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
2175 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
2176 Moved from...
2177 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
2178 * config/mn10300/mn10300.h: GTY-declare it.
2179 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
2180 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
2181 prototype. Use incoming RTL argument.
2182 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
2183 * config/mn10300/mn10300.md (int_label): Move C statements...
2184 (GOTaddr2picreg): ... here.
2185 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
2186 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
2187 * config/mn10300/mn10300.c (mn10300_encode_section_info):
2188 ... here. New function.
2189 (TARGET_ENCODE_SECTION_INFO): Define to it.
2190 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
2191 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
2192 pattern name.
2193 (mn10300_loadPC): Define as insn splittable after reload.
2194 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
2195 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
2196 be defined in .rodata even in PIC, now that the assembler
2197 supports that.
2198 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
2199 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
2200 symbol take an underscore prefix.
2201 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
2202 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
2203 legitimize_pic_address): Declare.
2204 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
2205 the PIC register as fixed.
2206 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
2207 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
2208 PIC.
2209 (LEGITIMATE_PIC_OPERAND_P): Define.
2210 (PIC_OFFSET_TABLE_REGNUM): Define.
2211 (GOT_SYMBOL_NAME): Define.
2212 (SYMBOLIC_CONST_P): Define.
2213 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
2214 symbols.
2215 (MN10300_GLOBAL_P): Test it.
2216 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
2217 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
2218 * config/mn10300/mn10300.c (print_operand): Handle unspec.
2219 (expand_prologue): Set PIC register.
2220 (call_address_operand): Don't match SYMBOL_REFs in PIC.
2221 (legitimize_address): Call legitimize_pic_address.
2222 (legitimize_pic_address): New fn.
2223 (legitimate_pic_operand_p): New fn.
2224 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
2225 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
2226 UNSPEC_PLT): New constants.
2227 (pop_pic_reg): New insn.
2228 (movsi): Adjust non-PIC addresses.
2229 (builtin_setjmp_receiver): Restore the PIC register.
2230 (casesi): New insn.
2231 (call): Adjust non-PIC addresses.
2232 (int_label, GOTaddr2picreg): New expands.
2233 (am33_loadPC): New insn.
2234 (mn10300_loadPC): New expand.
2235 (call_next_insn): New insn.
2236 (add_GOT_to_pic_reg): New expand.
2237 (symGOT2reg, symGOT2reg_i): New expands.
2238 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
2239 (sym2PIC, sym2PLT): New expands.
2240
18e9d2f9
AO
22412003-07-09 Alexandre Oliva <aoliva@redhat.com>
2242
2243 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
2244 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
2245 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
2246 to flag_unsafe_math_optimizations.
2247 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
2248 * config/mn10300/mn10300.c (expand_prologue): Mark
2249 FP-register-saving insns as frame-related.
2250 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
2251 * config/mn10300/mn10300.c
2252 (mn10300_get_live_callee_saved_regs): Don't search past
2253 LAST_EXTENDED_REGNUM.
2254 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
2255 * config/mn10300/mn10300.md: Remove excessive line breaks from
2256 `@' output patterns that were accounted as additional
2257 alternatives.
2258 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
2259 Re-introduce changes accidentally removed in Richard Sandiford's
2260 2000-12-05's patch.
2261 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
2262 Re-instate am33-2 lost in merge from net GCC.
2263 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
2264 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
2265 floating-point registers.
2266 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
2267 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
2268 pessimizations that had gone in on 2000-05-08.
2269 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
2270 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
2271 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
2272 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
2273 operand 0.
2274 * (movhi): Likewise.
2275 * (movsi): Likewise.
2276 * (movsf): Likewise.
2277 * (movdi): Likewise.
2278 * (movdf): Likewise.
2279 Wed May 24 13:16:09 2000 Alexandre Oliva <aoliva@cygnus.com>
2280 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
2281 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
2282 (expand_prologue, expand_epilogue): Save and restore FP regs.
2283 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
2284 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
2285 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
2286 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
2287 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
2288 Do not clobber cc0.
2289 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
2290 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
2291 Discourage the two-argument, longer opcodes.
2292 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
2293 ones.
2294 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
2295 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
2296 * config/mn10300/mn10300.md (cmpsf): New pattern.
2297 (branch): Test mdep.fpCC and output fbCC.
2298 * config/mn10300/mn10300.c (print_operand): Output conditions.
2299 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
2300 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
2301 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
2302 mulsf3, divsf3): Use the `F' constraint for FP values.
2303 * config/mn10300/mn10300.c (const_1f_operand): New function.
2304 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
2305 * config/mn10300/mn10300.md (sqrtsf2): New expand.
2306 (rsqrtsf2): New insn.
2307 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
2308 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
2309 previous check-in.
2310 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
2311 * config/mn10300/mn10300.md (abssf2, negdf2): On
2312 TARGET_AM33_2, expand to...
2313 (abssf2_am33_2, negdf2_am33_2): New insns.
2314 (addsf3, subsf3, mulsf3, divsf3): Likewise.
2315 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
2316 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
2317 movdi, movdf): Added FP regs.
2318 * invoke.texi (-mam33-2, -mno-am33-2): Document.
2319 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
2320 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
2321 New macros.
2322 (REGNO_AM33_2_FP_P): Renamed to...
2323 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
2324 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
2325 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
2326 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
2327 regs from GENERAL_REGS.
2328 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
2329 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
2330 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
2331 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
2332 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
2333 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
2334 as FP_REGS.
2335 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
2336 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
2337 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
2338 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
2339 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
2340 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
2341 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
2342 AM33/2.0 floating-point registers.
2343 (CONDITIONAL_REGISTER_USAGE): Adjust.
2344 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
2345 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
2346 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
2347 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
2348 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
2349 (MULTILIB_DIRNAMES): Likewise.
2350 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
2351 `__AM33_2__' when `-mam33-2' is given.
2352 (TARGET_AM33_2): Define.
2353 (TARGET_SWITCHES): Adjust.
2354 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
2355 when appropriate.
2356
2ff16718
MK
23572003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
2358
2359 * doc/install.texi: Add missing @.
2360
a7bda3d5
BW
23612003-07-09 Bob Wilson <bob.wilson@acm.org>
2362
2363 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
2364
bb498ea3
AH
23652003-07-09 Aldy Hernandez <aldyh@redhat.com>
2366
2367 PR/11144
2368 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
2369
a401fd60
NN
23702003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
2371
21f3dbfc 2372 PR bootstrap/11043
6b88314c 2373 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
21f3dbfc
NN
2374 "x-crtfini.o" with "crtinit.o", "crtfini.o".
2375
15e4ea18
NN
2376 * fixinc/inclhack.def (limits_ifndefs): Add select test.
2377 * fixinc/fixincl.x: Rebuild.
2378
a401fd60
NN
2379 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
2380 * fixinc/fixincl.x: Rebuild.
2381
c2f82a84
HPN
23822003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
2383
2384 * doc/install.texi (Configuration): Document the valgrind option
2385 to --enable-checking.
2386
1f66e2a0
JH
2387Wed Jul 9 16:16:30 CEST 2003 Jan Hubicka <jh@suse.cz>
2388
2389 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
2390
d0974745
RO
23912003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2392
2393 * c-lex.c (cb_ident): Cast cstr.text to const char *.
2394
160e2e4f
NS
23952003-07-09 Nathan Sidwell <nathan@codesourcery.com>
2396
2397 * gcov-io.h: Update documentation.
2398 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
2399 GCOV_NOTE_MAGIC.
2400 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
2401 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
2402 (struct gcov_var): Change buffer's type. Add endian flag.
2403 (gcov_open): Remove mode in libgcov.
2404 (gcov_magic): Prototype.
2405 * gcov-io.c (from_file): New.
2406 (gcov_open): Clear endian flag.
2407 (gcov_magic): New.
2408 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
2409 pointers.
2410 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
2411 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
2412 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
2413 * gcov-iov.c (main): Correct cast.
2414 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
2415 conversion.
2416 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
2417 (coverage_init): Use GCOV_NOTE_SUFFIX.
2418 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
2419 Rename to gcov_version, and return flag.
2420 (gcov_exit): Use gcov_version.
2421 (__gcov_init): Use gcov_version.
2422 * Makefile.in (coverageexts): Update.
2423 * gcov.c (print_version): Remove endianness conversion.
2424 (create_file_names): Use GCOV_NOTE_SUFFIX.
2425 (read_graph_file): Use gcov_magic.
2426 (read_count_file): Likewise.
2427 * gcov-dump.c (dump_file): Remove endianness conversion, use
2428 gcov_magic.
2429
83599948
NS
24302003-07-09 Nathan Sidwell <nathan@codesourcery.com>
2431
2432 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
2433 coverage is on.
2434 * configure: Regenerated.
2435 * Makefile.in (ALL_CFLAGS): Correct its comment.
2436
d17811fd
MM
24372003-07-08 Mark Mitchell <mark@codesourcery.com>
2438
2439 * fold-const.c (make_range): Do not access operand 1 for a
2440 zero-operand operator.
2441
28786366
NB
24422003-07-09 Neil Booth <neil@daikokuya.co.uk>
2443
2444 * toplev.c (warn_dummy, W_options): Die.
2445 (display_help): Don't print W_options.
2446 * common.opt: Add W_options help from toplev.c.
2447
fbdb0453
AJ
24482003-07-09 Andreas Jaeger <aj@suse.de>
2449
2450 * opts.c (wrap_help): Only pass int arguments as arguments to
2451 printf's '*' modifier. Change argument of function.
2452
c80e4c17
MK
24532003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
2454
2455 * doc/invoke.texi: Fix misspelling of "@item".
2456
2c5a64c6
KH
24572003-07-08 Kazu Hirata <kazu@cs.umass.edu>
2458
2459 * config/i386/i386.md: Remove an old comment about
2460 NOTICE_UPDATE_CC.
2461
a194aa56
JH
2462Wed Jul 9 03:00:10 CEST 2003 Jan Hubicka <jh@suse.cz>
2463
2464 * cgraph.c (cgraph_node_name): New function.
2465 (dump_cgraph): Use it.
2466 * cgraph.h (cgraph_dump_file): Declare.
2467 (cgraph_node_name): Declare.
2468 * cgraphunit.c: Include timevar.h
2469 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
2470 (cgraph_optimize_function): Use TV_INTEGRATION.
2471 (cgraph_mark_local_functions): reorganize dumps.
2472 (cgraph_mark_functions_to_inline_once): Likewise.
2473 (cgraph_optimize): Likewise; use timevar.
2474 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
2475 * toplev.c (dump_file_index): Add DFI_cgraph.
2476 (dump_file_info): Likewise.
2477 (cgraph_dump_file): New global variable.
2478 (do_compile): Open and close cgraph dump.
2479 * invoke.texi (-d): Document new flag; renumber.
2480
8af61113
RS
24812003-07-08 Roger Sayle <roger@eyesopen.com>
2482
2483 PR c/11370
2484 * calls.c (emit_call_1): Don't bother popping the arguments off of
2485 the stack after a noreturn function call; The adjustment is dead.
2486 (expand_call): Likewise.
2487
436bcda1
GK
24882003-07-08 Geoffrey Keating <geoffk@apple.com>
2489
2490 * expr.c (MOVE_MAX_PIECES): Move from here...
2491 * defaults.h (MOVE_MAX_PIECES): ... to here.
2492
6f3fcc0b
MK
24932003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
2494
2495 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
2496
ec049fdb
KG
24972003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2498
2499 * genattr.c (internal_dfa_insn_code): Don't prototype.
2500 * genattrtab.c (attr_desc): Add `static_p' field.
2501 (expand_units): Make blockage range and ready cost functions
2502 static.
2503 (write_attr_get): Don't add extern prototypes in C file. Mark
2504 static functions as appropriate.
2505 (find_attr, make_internal_attr): Initialize static_p.
2506 * genattrtab.h (ATTR_STATIC): New macro.
2507 * genautomata.c (output_internal_reset_func): Mark output function
2508 as inline.
2509 (make_internal_dfa_insn_code_attr): Mark output function as static.
2510
11597bc9
KG
25112003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2512
2513 * genattrtab.h: Add new macros for attr `special' flags.
2514 * genattrtab.c (attr_desc): Reorder/resize fields better.
2515 Use attr `special' macros in all calls to make_internal_attr.
2516 * genautomata.c: Likewise.
2517
084c1779
JH
2518Wed Jul 9 02:25:39 CEST 2003 Jan Hubicka <jh@suse.cz>
2519
2520 * c-common.c (c_estimate_num_insns_1): New static function.
2521 (c_estimate_num_insns): New global function.
2522 * c-common.h (DECL_NUM_STMTS): Rename to...
2523 (DECL_ESTIMATED_INSNS): ... this.
2524 (c_estimate_num_insns): Declare.
2525 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
2526 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
2527 * c-semantics.c (add_stmt): Do not account statements.
2528 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
2529 New.
2530 * langhooks.h (lang_hooks_for_tree_inlining): Add
2531 estimate_num_insns
2532 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
2533 to 100.
2534 (max-inline-insns): set to 300.
2535 (min-inline-insns): set to 10.
2536 * tree-inline.c (struct inline_data): Rename inlined_stmts to
2537 inlined-insns.
2538 (INSNS_PER_STMT): Kill.
2539 (inlinable_function_p): Compute and store body size.
2540 (expand_call_inline): Likewise.
2541 (optimize_inline_calls): Likewise.
2542
1b1838b6
JW
25432003-07-08 James E Wilson <wilson@tuliptree.org>
2544
2545 PR target/10021
2546 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
2547 loop over new variable t2 instead of t.
2548
81a6341d
DS
25492003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
2550
2551 PR bootstrap/11455
2552 * config/i386/winnt.c: Replace use of error(), warning() with
2553 error_with_decl(), warning_with_decl(), throughout.
2554
21789816
NB
25552003-07-08 Neil Booth <neil@daikokuya.co.uk>
2556
2557 * opts.c (wrap_help): Use unsigned int, not size_t.
2558
f6423302
SC
25592003-07-08 Stephane Carrez <stcarrez@nerim.fr>
2560
2561 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
2562 as .file/.loc directives are incompatible with linker relaxation.
2563
ab747408
ZW
25642003-07-08 Zack Weinberg <zack@codesourcery.com>
2565
2566 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
2567 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
2568 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
2569 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
2570 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
2571 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
2572 Escape { and } characters which are not part of range expressions.
2573 * fixinc/fixincl.x: Regenerate.
a27531fb 2574 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
ab747408 2575
51657442
SB
25762003-07-08 Steven Bosscher <steven@gcc.gnu.org>
2577
2578 PR c/1687
2579 * tree-inline.c (find_alloca_call): Use
2580 walk_tree_without_duplicates, instead of walk_tree.
2581 (find_builtin_longjmp_call): Likewise.
2582 * c-objc-common.c (c_cannot_inline_fn): Likewise.
2583 * c-semantics.c (find_reachable_label): Likewise.
2584
7e6dc358
JJ
25852003-07-08 Jakub Jelinek <jakub@redhat.com>
2586
2587 PR c/11420
2588 * config/i386/i386.c (ix86_check_movabs): New function.
2589 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
2590 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
2591 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
2592
318b7749
CD
25932003-07-08 Chris Demetriou <cgd@broadcom.com>
2594
2595 * Makefile.in (install-po): Cope with empty CATALOGS.
2596
b8898790
RS
25972003-07-08 Richard Sandiford <rsandifo@redhat.com>
2598
2599 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
2600 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
2601 (SECTION_FUNCTION_TEMPLATE): Delete.
2602 * config/mips/elf.h: As for elf64.h.
2603 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
2604 * config/mips/linux.h: As for elf.h
2605 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
2606 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
2607 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
2608 of in_sdata from current_section_name and current_section_flags.
2609 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
2610 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
2611 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
2612 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
2613 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
2614 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2615 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
2616 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
2617 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
2618 (override_options): Remove setting of MASK_GPOPT.
2619 (mips_output_external): Use mips_in_small_data_p to check whether a
2620 symbol needs an .extern directive. Don't emit such directives for
2621 TARGET_EXPLICIT_RELOCS.
2622 (mips_declare_object): Update accordingly.
2623 (mips_select_rtx_section): Call named_section rather than
2624 SMALL_DATA_SECTION.
2625 (mips_select_section): Use default_elf_section_section for everything
2626 except .text string constants.
2627 (mips_in_small_data_p): New function.
2628 (mips_encode_section_info): Remove small data handling.
2629 (mips_unique_section): Delete.
2630 (iris6_section_type_flags): New function.
2631 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
2632
f5d1c3de
JDA
26332003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2634
2635 PR Target/11453
2636 * pa.md: Disparage all mtsar constraints.
2637 (extzv, extv, insv): Don't fail on length of {32|64}.
2638
ce1bb65b
ZW
26392003-07-08 Zack Weinberg <zack@codesourcery.com>
2640
2641 * system.h: Poison MAP_CHARACTER.
2642 * config/i370/i370-protos.h (mvs_map_char): Delete.
2643 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
2644 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
2645 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
2646
c163ddca
DS
26472003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
2648
2649 * toplev.c (randomize): Correct call to time().
2650
8df63efa
JJ
26512003-07-08 Jakub Jelinek <jakub@redhat.com>
2652
2653 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
2654 REG_EQUIV notes as well.
2655
4b5cc2b3
KH
26562003-07-08 Kazu Hirata <kazu@cs.umass.edu>
2657
2658 * doc/md.texi: Fix the description of addmodecc.
2659
56694dd9
ZW
26602003-07-07 Zack Weinberg <zack@codesourcery.com>
2661
2662 * Makefile.in (top_builddir): Set to "..", not ".".
2663 (INTLLIBS, INTLDEPS): Delete.
2664 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
2665 (LIBDEPS): Add $(LIBICONV_DEP).
2666 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
2667 (INCLUDES): Replace -I../intl with @INCINTL@.
2668 ($(top_builddir)/intl/libintl.a): Delete rule.
2669 (stage2-start, stage3-start, stage4-start, stageprofile-start,
2670 stagefeedback-start): Use $$ for variable to be evaluated by
2671 shell, not make.
2672 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
2673 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
2674 * aclocal.m4: sinclude ../config/progtest.m4. Add
2675 contents of lcmessage.m4 from gettext distro.
2676 * configure.in: Check for wchar.h and setlocale. Set
2677 LIBICONV_DEP to the empty string and substitute it.
2678 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
2679 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
2680 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
2681 in $LIBINTL, to avoid linking it twice.
2682 * configure, config.in: Regenerate.
2683
a294c4cf
NN
26842003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
2685
2686 * fixinc/mkfixinc.sh: Remove winnt support.
2687 * fixinc/fixinc.winnt: Delete with extreme prejudice.
2688
979312a4
NB
26892003-07-08 Neil Booth <neil@daikokuya.co.uk>
2690
2691 * Makefile.in: Update.
2692 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
2693 * c.opt: Update documentation.
2694 * common.opt: Add some help text.
2695 * opts.c: Include intl.h.
2696 (wrap_help, print_help): New.
2697 (find_opt, handle_option, common_handle_option): opt_text now
2698 contains the '-'. Use print_help to output help.
2699 * opts.h (struct cl_option): New member "help".
2700 * opts.sh: Update to handle help text output and to prepend
2701 options with '-'.
2702 * toplev.c (display_help): Remove some help text.
2703
2c4a9cff
DE
27042003-07-07 David Edelsohn <edelsohn@gnu.org>
2705 Fariborz Jahanian <fjahanian@apple.com>
2706
2707 * configure.in: Test for PowerPC mfcr field support in assembler.
2708 * config.in, configure: Regenderated.
2709
2710 * config/rs6000/power4.md: Add mfcrf reservation.
2711 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
2712 * config/rs6000/rs6000.c (mfcr_operation): Define.
2713 (print_operand): Add 'Q' case for mfcrf.
2714 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
2715 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
2716 (movcc_internal1): Emit optional field operand for mfcr and set
2717 "type" attribute appropriately.
2718 (mfcr SCC): Likewise.
2719 (movesi_from_cr_one): New.
2720
923c4cf2
RS
27212003-07-07 Roger Sayle <roger@eyesopen.com>
2722
2723 * config/i386/i386.md: Correct check-in of incorrect version.
2724
75b6f3fd
KG
27252003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2726
2727 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
2728 adjacent stdio calls.
2729 * c-decl.c (c_print_identifier): Likewise.
2730 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
2731 * print-rtl.c (print_rtx): Likewise.
2732 * print-tree.c (print_node_brief, print_node): Likewise.
2733 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
56694dd9 2734
75b6f3fd
KG
2735 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
2736 * config.in, configure: Regenerated.
2737
afeeac3f
RS
27382003-07-07 Roger Sayle <roger@eyesopen.com>
2739
2740 PR target/10979
2741 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
2742 Changed to define_expand patterns that copy operand[1] to prevent
2743 it from being clobbered before emitting an atan2?f3_1 insn.
2744 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
2745 patterns that actually specify the behaviour of x87's FPATAN.
2746
eeff9307
JJ
27472003-07-07 Jakub Jelinek <jakub@redhat.com>
2748
2749 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
2750 clearing of SYMBOL_FLAG_LOCAL bit.
2751 If vcall_offset fits into signed 16-bit immediate, use
2752 one instruction for both addition and load.
2753
0fcd5dda
NB
27542003-07-07 Neil Booth <neil@daikokuya.co.uk>
2755
2756 * opts.c (common_handle_option): Correct handling of the
2757 -falign- switches that do and don't take an argument.
2758
b275810a
KH
27592003-07-07 Kazu Hirata <kazu@cs.umass.edu>
2760
2761 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
2762 today.
2763 (pushhi1_h8300hs): Likewise.
2764
5671bf27
AJ
27652003-07-07 Andreas Jaeger <aj@suse.de>
2766
2767 * genextract.c: Convert remaining prototypes to ISO C90.
2768
2769 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
2770 * fold-const.c (fold_single_bit_test): Likewise.
2771 * diagnostic.c (default_diagnostic_finalizer): Likewise.
2772 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
2773
2774 * gengtype.c (write_array): Generate ISO C90 prototypes.
2775
2776 * genflags.c (gen_proto): Generate ISO C90 prototypes.
2777
2c430630
RS
27782003-07-07 Roger Sayle <roger@eyesopen.com>
2779
2780 PR optimization/11059
2781 * expr.c (can_store_by_pieces): Return true if length is zero.
2782 (store_by_pieces): If length is zero and endp is two, abort,
2783 othwerise, if length is zero and endp is not two, return "to".
2784 (clear_by_pieces): Do nothing if length is zero.
2785 (clear_storage): Do nothing if length is zero.
2786 (store_constructor): Simplify code when size is zero, or the
2787 target has already been cleared. This avoids emitting a
2788 blockage instruction when initializing empty structures.
2789
cf633f5b
AJ
27902003-07-07 Andreas Jaeger <aj@suse.de>
2791
2792 * mips-tfile.c: Convert prototypes to ISO C90.
2793 * mips-tdump.c: Convert prototypes to ISO C90.
2794
0cea056b
NS
27952003-07-07 Nathan Sidwell <nathan@codesourcery.com>
2796
2797 * rtl.h (emit_line_note): Take a location_t.
2798 (emit_line_note_force): Remove.
2799 (set_file_and_line_for_statement): Take a location_t.
2800 * tree.g (emit_line_note): Take a location_t.
2801 * emit-rtl.c (emit_line_note): Take a location_t.
2802 (emit_line_note_force): Remove.
2803 * function.c (init_function_start): Adjust emit_line_note call.
2804 (expand_function_end): Use force_next_line_note, not
2805 emit_line_note_force.
2806 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
2807 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
2808 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
2809 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
2810 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
2811 genrtl_continue_stmt, genrtl_switch_stmt,
2812 genrtl_asm_stmt): Likewise.
2813 * expr.c (expand_expr): Likewise.
2814 * integrate.c (expand_inline_function): Likewise.
2815 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
2816 (expand_decl_init): Adjust emit_line_note call.
2817
8eb910fc
DJ
28182003-07-07 Dale Johannesen <dalej@apple.com>
2819
56694dd9 2820 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
8eb910fc 2821
b96a374d
AJ
28222003-07-07 Andreas Jaeger <aj@suse.de>
2823
2824 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
2825 * config/i386/i386.c: Likewise.
2826
273fc01e
KH
28272003-07-07 Kazu Hirata <kazu@cs.umass.edu>
2828
2829 * config/h8300/h8300.md: Use gen_int_mode instead of
2830 GEN_INT (trunc_int_for_mode (...)).
2831
fb7d7712
KH
28322003-07-07 Kazu Hirata <kazu@cs.umass.edu>
2833
2834 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
2835 2 bytes and then subtract 2 from the stack pointer.
2836 (pushhi1_h8300hs): Likewise.
2837
e61a2eb7
NS
28382003-07-07 Nathan Sidwell <nathan@codesourcery.com>
2839
2840 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
2841 -frandom-seed.
2842 * configure: Regenerated.
2843 * Makefile.in: Remove extraneous comment.
2844 * toplev.c (randomize): Protect against potential multiple calls.
2845 * doc/invoke.texi (-frandom-seed): Document use for in coverage
2846 files.
2847
82d610ec 28482003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
56694dd9 2849 Eric Botcazou <ebotcazou@libertysurf.fr>
82d610ec
RK
2850
2851 PR optimization/11198
2852 * alias.c (objects_must_conflict_p): Return 1 if the types have
2853 the same alias set, not if the alias sets only conflict.
2854
5beadb33
AP
28552003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
2856
2857 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
2858 (convert_cset): Change inbuf to type ICONV_CONST char.
2859 * Makefile.in (LIBS): Add LIBICONV.
2860
9bb34f3c
AJ
2861 * doc/invoke.texi (-falign-functions): Document that
2862 when n is zero then a machine-dependent default is used.
2863 (-falign-labels): Document that when n is zero then a
2864 machine-dependent default is used and that -falign-labels =1
2865 is equivalent to -fno-align-labels.
2866 (-falign-loops): Likewise.
2867 (-falign-jumps): Likewise.
2868
1dbb6ce8
AH
28692003-07-06 Art Haas <ahaas@airmail.net>
2870
2871 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
2872 initializer syntax.
2873
8338d44d
JW
28742003-07-06 James E Wilson <wilson@tuliptree.org>
2875
2876 PR optimization/9812
2877 * rtl.h (mem_for_const_double): Delete prototype.
2878 * varasm.c (mem_for_const_double): Delete function.
2879 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
2880 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
2881 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
2882 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
2883 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
2884 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
2885 comment about confused support for XFmode constants.
2886
9efd34a5
JH
2887Mon Jul 7 02:03:56 CEST 2003 Jan Hubicka <jh@suse.cz>
2888
2889 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
2890
2a43945f
KH
28912003-07-06 Kazu Hirata <kazu@cs.umass.edu>
2892
2893 * config/h8300/h8300.c: Fix comment typos.
2894 * config/h8300/h8300.md: Likewise.
2895 * config/i386/athlon.md: Likewise.
2896 * config/i386/i386.c: Likewise.
2897 * config/i386/pentium.md: Likewise.
2898 * config/ia64/ia64.c: Likewise.
2899 * config/ia64/itanium1.md: Likewise.
2900 * config/ia64/itanium2.md: Likewise.
2901 * config/m32r/m32r.md: Likewise.
2902 * config/m68hc11/m68hc11.c: Likewise.
2903 * config/mcore/mcore.c: Likewise.
2904 * config/mips/sr71k.md: Likewise.
2905 * config/mips/t-iris5-as: Likewise.
2906 * config/mmix/mmix.h: Likewise.
2907 * config/ns32k/ns32k.h: Likewise.
2908 * config/ns32k/NOTES: Fix a typo.
2909
ceee09f7
AJ
29102003-07-06 Andreas Jaeger <aj@suse.de>
2911
7e51717c
AJ
2912 * stmt.c: Convert remaining prototypes to ISO C90.
2913 * cfglayout.c: Likewise.
2914 * dbxout.c: Likewise.
2915 * gcc.c: Likewise.
2916 * genemit.c: Likewise.
2917
ceee09f7
AJ
2918 * basic-block.h: Convert prototypes to ISO C90.
2919 * c-parse.in: Likewise.
2920 * c-pragma.h: Likewise.
2921 * c-typeck.c: Likewise.
2922 * cfghooks.h: Likewise.
2923 * cfgloopanal.c: Likewise.
2924 * dbxout.h: Likewise.
2925 * debug.h: Likewise.
2926 * dwarf2asm.h: Likewise.
2927 * gcov.c: Likewise.
2928 * gengtype-lex.l: Likewise.
2929 * sched-int.h: Likewise.
2930 * timevar.c: Likewise.
2931
cb66e385
NB
29322003-07-06 Neil Booth <neil@daikokuya.co.uk>
2933
2934 * c-common.h (c_comon_handle_filename,
2935 c_common_missing_arguement): New.
2936 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
2937 LANG_HOOKS_MISSING_ARGUMENT): New.
2938 * c-opts.c (missing_arg): Rename c_common_missing_argument,
2939 update to be an appropriate langhook.
2940 (c_common_handle_option): Don't handle filenames.
2941 (c_common_handle_filename): New.
2942 * hooks.c (hook_void_constcharptr,
2943 hook_bool_constcharptr_size_t_false): New.
2944 * hooks.h (hook_void_constcharptr,
2945 hook_bool_constcharptr_size_t_false): New.
2946 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
2947 LANG_HOOKS_MISSING_ARGUMENT): New.
2948 (LANG_HOOKS_INITIALIZER): Update.
2949 * langhooks.h (struct lang_hooks): Add handle_filename and
2950 missing_argument.
2951 * opts.c (handle_option): Don't handle filenames here, but ...
2952 (handle_options): ... here.
2953 (common_handle_option): Don't handle missing arguments here.
2954 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
2955 LANG_HOOKS_MISSING_ARGUMENT): New.
2956
ade4289c
NB
29572003-07-06 Neil Booth <neil@daikokuya.co.uk>
2958
2959 * Makfile.in: Remove traces of mbchar.
2960 * c-parse.in (MULTIBYTE_CHARS): Remove.
2961 * config.in (MULTIBYTE_CHARS): Remove.
2962 * configure: Remove --enable-mbchar.
2963 * configure.in: Remove --enable-mbchar.
2964 * mbchar.c, mbchar.h: Remove.
2965 * system.h: Poison MULTIBYTE_CHARS.
2966 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
2967 * config/linux.h (MULTIBYTE_CHARS): Remove.
2968 * config/svr4.h (MULTIBYTE_CHARS): Remove.
2969 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
2970
2e1eedd6
AJ
29712003-07-06 Andreas Jaeger <aj@suse.de>
2972
11dc5cc6
AJ
2973 * varray.c (varray_check_failed): Fix typo.
2974
2975 * unroll.c: Convert prototypes to ISO C90.
2e1eedd6
AJ
2976 * varasm.c: Likewise.
2977 * varray.c: Likewise.
2978 * varray.h: Likewise.
2979 * vmsdbgout.c: Likewise.
2980 * xcoffout.c: Likewise.
2981 * xcoffout.h: Likewise.
2982
dd486eb2
NS
29832003-07-06 Nathan Sidwell <nathan@codesourcery.com>
2984
2985 * gcov-io.h: Add a local time stamp.
2986 (struct gcov_info): Add stamp field.
2987 (gcov_truncate): New.
2988 * coverage.c (read_counts_file): Skip the stamp.
2989 (coverage_begin_output): Write the stamp.
2990 (build_gcov_info): Declare and init the stamp.
2991 (coverage_finish): Only unlink data file, if stamp is zero.
2992 * gcov-dump.c (dump_file): Dump the stamp.
2993 * gcov.c (bbg_stamp): New.
2994 (release_structures): Clear bbg_stamp.
2995 (read_graph_file): Read stamp.
2996 (read_count_file): Check stamp.
2997 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
2998
c07e5477
NS
29992003-07-06 Nathan Sidwell <nathan@codesourcery.com>
3000
3001 * tree.h (default_flag_random_seed): Remove.
3002 * toplev.h (local_tick): Declare.
3003 * tree.c (flag_random_seed, default_flag_random_seed): Move to
3004 toplev.c.
3005 (append_random_chars): Don't call default_flag_random_seed.
3006 * toplev.c (flag_random_seed): Define here. Set local_tick.
3007 (local_tick): Define.
3008 (randomize): New, moved from tree.c.
3009 (print_switch_values): Adjust.
3010 (toplev_main): Call randomize.
3011
2aab7ceb
NS
30122003-07-06 Nathan Sidwell <nathan@codesourcery.com>
3013
3014 * tree.h (crc32_string): Declare.
3015 * tree.c (append_random_chars): Remove.
3016 (crc32_string): New.
3017 (get_file_function_name_long): Use crc32_string here.
3018
1d088dee
AJ
30192003-07-06 Andreas Jaeger <aj@suse.de>
3020
3021 * gcc.c: Convert prototypes to ISO C90.
3022 * gcc.h: Likewise.
3023 * gcov-dump.c: Likewise.
3024 * gcov-iov.c: Likewise.
3025 * gcse.c: Likewise.
3026 * genattrtab.h: Likewise.
3027 * ggc.h: Likewise.
3028 * global.c: Likewise.
3029 * graph.c: Likewise.
3030 * graph.h: Likewise.
3031 * hosthooks.h: Likewise.
3032 * hooks.h: Likewise.
3033 * hooks.c: Likewise.
3034 * hashtable.h: Likewise.
3035 * hashtable.c: Likewise.
3036 * haifa-sched.c: Likewise.
3037 * integrate.h: Likewise.
3038 * integrate.c: Likewise.
3039 * input.h: Likewise.
3040 * ifcvt.c: Likewise.
f8ec47c7 3041 * jump.c: Likewise.
0c20a65f
AJ
3042 * langhooks-def.h: Likewise. Add extern to prototypes.
3043 * langhooks.c: Likewise.
3044 * langhooks.h: Likewise.
3045 * lcm.c: Likewise.
3046 * local-alloc.c: Likewise.
3047 * loop-init.c: Likewise.
3048 * loop-unroll.c: Likewise.
3049 * loop-unswitch.c: Likewise.
3050 * loop.c: Likewise.
3051 * loop.h: Likewise. Add extern to prototypes.
3052 * machmode.h: Likewise.
3053 * main.c: Likewise.
3054 * mbchar.c: Likewise.
3055 * mbchar.h: Likewise.
3056 * mkdeps.c: Likewise.
3057 * mkdeps.h: Likewise.
3058 * optabs.c: Likewise.
3059 * optabs.h: Likewise.
3060 * output.h: Likewise.
3061 * gccspec.c: Likwise.
3062 * postreload.c: Likewise.
3063 * prefix.c: Likewise.
3064 * prefix.h: Likewise.
3065 * print-rtl.c: Likewise.
3066 * print-tree.c: Likewise.
3067 * profile.c: Likewise.
3068 * read-rtl.c: Likewise.
3069 * real.c: Likewise.
3070 * real.h: Likewise.
3071 * recog.c: Likewise.
3072 * recog.h: Likewise.
3073 * reg-stack.c: Likewise.
3074 * regclass.c: Likewise.
3075 * regmove.c: Likewise.
3076 * regrename.c: Likewise.
3077 * regs.h: Likewise.
3078 * reload.c: Likewise.
3079 * reload.h: Likewise.
3080 * reload1.c: Likewise.
3081 * reorg.c: Likewise.
3082 * resource.c: Likewise.
3083 * resource.h: Likewise.
3084 * rtl-error.c: Likewise.
3085 * rtl.c: Likewise.
3086 * rtl.h: Likewise.
3087 * rtlanal.c: Likewise.
46c5ad27
AJ
3088 * sbitmap.c: Likewise.
3089 * sbitmap.h: Likewise.
3090 * scan-decls.c: Likewise.
3091 * scan.c: Likewise.
3092 * sched-deps.c: Likewise.
3093 * sched-ebb.c: Likewise.
3094 * sched-int.h: Likewise.
3095 * sched-rgn.c: Likewise.
3096 * sched-vis.c: Likewise.
3097 * sibcall.c: Likewise.
3098 * simplify-rtx.c: Likewise.
3099 * sreal.c: Likewise.
3100 * sreal.h: Likewise.
3101 * ssa-ccp.c: Likewise.
3102 * ssa-dce.c: Likewise.
3103 * ssa.c: Likewise.
3104 * ssa.h: Likewise.
3105 * stack.h: Likewise.
3106 * stmt.c: Likewise.
3107 * stor-layout.c: Likewise.
3108 * stringpool.c: Likewise.
3109 * target.h: Likewise.
3110 * timevar.c: Likewise.
3111 * timevar.h: Likewise.
3112 * tlink.c: Likewise.
3113 * tracer.c: Likewise.
3114 * tree-inline.c: Likewise.
3115 * tree-inline.h: Likewise.
3116 * tree.c: Likewise.
3117 * tree.h: Likewise.
1d088dee 3118
4f649bc1
KH
31192003-07-05 Kazu Hirata <kazu@cs.umass.edu>
3120
3121 * combine.c (nonzero_bits1): Fix a warning.
3122
31232003-07-05 Kazu Hirata <kazu@cs.umass.edu>
2c4a71b3
KH
3124
3125 * config/h8300/h8300.c (compute_mov_length): Correct the
3126 length of loading CONST0_RTX (SFmode).
3127
f5924ac1
NS
31282003-07-05 Nathan Sidwell <nathan@codesourcery.com>
3129
3130 * toplev.c (output_clean_symbol_name): Remove.
3131 * toplev.h (output_clean_symbol_name): Remove.
3132 * config/alpha/alpha.c (unicosmk_output_module_name): Use
3133 lbasename & clean_symbol_name.
3134
39e3f58c
KH
31352003-07-05 Kazu Hirata <kazu@cs.umass.edu>
3136
3137 * ggc.h: Follow spelling conventions.
3138 * config/i386/i386.c: Likewise.
3139 * config/i386/winnt.c: Likewise.
3140 * config/rs6000/rs6000.c: Likewise.
3141
4d6922ee
KH
31422003-07-05 Kazu Hirata <kazu@cs.umass.edu>
3143
3144 * bt-load.c: Fix comment typos.
3145 * c-incpath.c: Likewise.
3146 * cfg.c: Likewise.
3147 * cfgcleanup.c: Likewise.
3148 * cfgloop.h: Likewise.
3149 * cfgloopmanip.c: Likewise.
3150 * cfgrtl.c: Likewise.
3151 * diagnostic.h: Likewise.
3152 * dwarfout.c: Likewise.
3153 * emit-rtl.c: Likewise.
3154 * et-forest.c: Likewise.
3155 * et-forest.h: Likewise.
3156 * expr.c: Likewise.
3157 * gcse.c: Likewise.
3158 * genattr.c: Likewise.
3159 * jump.c: Likewise.
3160 * langhooks.h: Likewise.
3161 * local-alloc.c: Likewise.
3162 * loop-unroll.c: Likewise.
3163 * loop-unswitch.c: Likewise.
3164 * ra-build.c: Likewise.
3165 * regclass.c: Likewise.
3166 * regmove.c: Likewise.
3167 * rtl.def: Likewise.
3168 * rtlanal.c: Likewise.
3169 * sched-ebb.c: Likewise.
3170 * sched-rgn.c: Likewise.
3171 * simplify-rtx.c: Likewise.
3172 * ssa.c: Likewise.
3173 * tracer.c: Likewise.
3174 * tree.c: Likewise.
3175
f1c4bc4f
ZW
31762003-07-05 Zack Weinberg <zack@codesourcery.com>
3177
3178 * cppcharset.c: Use the correct return type for the fallback iconv
3179 macro.
3180
65c6f1b4
ZD
3181Sat Jul 5 16:18:53 CEST 2003 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3182
3183 Blame to Jan Hubicka <jh@suse.cz>
3184 * cfglayout.c (record_effective_endpoints): Split insns before
3185 first basic block correctly.
3186
a8f3bf52
RK
31872003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3188
f1c4bc4f 3189 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
a8f3bf52
RK
3190 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
3191 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
3192
0641776c
AJ
31932003-07-05 Andreas Jaeger <aj@suse.de>
3194
3195 * genattrtab.c (write_attr_get): Revert part of last patch to
3196 always write out a prototype.
3197
3198 * genemit.c (gen_split): Readd lost unused attributes in last
3199 patch.
3200
977129f6
ZD
32012003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3202
3203 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
3204 different from header.
3205
5ee084df
AS
32062003-07-05 Andreas Schwab <schwab@suse.de>
3207
3208 * config/m68k/m68k.c: Remove code protected by CRDS.
3209 * config/m68k/m68k.md: Likewise.
3210
33de9573
NB
32112003-07-05 Neil Booth <neil@daikokuya.co.uk>
3212
3213 PR driver/11417
3214 * c-opts.c (permit_fortran_options): New.
3215 (c_common_init_options): Accept fortran front end options if
3216 it looks like we might be preprocessing Fortran.
3217 (c_common_handle_option): Don't reject switch if permit_fotran_options.
3218
6906ba40
KG
32192003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3220
3221 * genattr.c (internal_dfa_insn_code): Output prototype.
3222 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
3223 * genautomata.c: Likewise.
3224 * genconditions.c: Likewise.
3225 * genemit.c: Likewise.
3226 * genextract.c: Likewise.
3227 * gengenrtl.c: Likewise.
3228 * gengtype.c: Likewise.
3229 * genopinit.c: Likewise.
3230 * genoutput.c: Likewise.
3231 * genpeep.c: Likewise.
3232 * genrecog.c: Likewise.
3233
e6cc3a24
ZW
32342003-07-04 Zack Weinberg <zack@codesourcery.com>
3235
3236 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
3237 (struct cpp_options): Add narrow_charset, wide_charset,
3238 bytes_big_endian fields. Remove EBCDIC field.
3239 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
3240
3241 * cpphash.h: Include <iconv.h> if we have it, otherwise
3242 provide a dummy definition of iconv_t.
3243 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
3244 (_cpp_valid_ucn): Update prototype.
3245 (_cpp_destroy_iconv): New prototype.
3246
3247 * doc/cpp.texi: Document character set handling.
3248 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
3249 * doc/extend.texi: Delete entire section on multiline strings.
3250 Rewrite section on __FUNCTION__ etc now that these are
3251 variables in C.
3252
3253 * cppucnid.tab, cppucnid.pl: New files.
3254 * cppucnid.h: New generated file.
3255 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
3256 (iconv_open, iconv, iconv_close): Provide dummy definitions
3257 if !HAVE_ICONV.
3258 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
3259 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
3260 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
3261 cpp_interpret_string, narrow_str_to_charconst,
3262 wide_str_to_charconst): New.
3263 (ucn_valid_in_identifier): Use a binary search through the
3264 ucnranges table defined in cppucnid.h, not a long chain of if
3265 statements.
3266 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
3267 character names are only valid in C++ and C99" to a warning.
3268 Issue the "meaning of \[uU] is different in traditional C"
3269 warning here. Take care not to let iconv see an invalid UCS
3270 value if we get a malformed UCN. Issue an error if we don't
3271 have iconv.
3272 (cpp_interpret_charconst): Moved here from cpplex.c. Use
3273 cpp_interpret_string to do the heavy lifting.
3274
3275 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
3276 narrow_charset, wide_charset fields of options structure.
3277 (cpp_destroy): Call _cpp_destroy_iconv.
3278 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
3279 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
3280 (cpp_interpret_charconst): Moved to cppcharset.c.
3281 * cpplib.c (dequote_string): Delete.
3282 (interpret_string_notranslate): New.
3283 (do_line, do_linemarker): Use interpret_string_notranslate.
3284
3285 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
3286
3287 * c-common.c (fname_string, combine_strings): Delete.
3288 * c-common.h (fname_string, combine_strings): Delete prototypes.
3289 * c-lex.c (ignore_escape_flag): Delete.
3290 (cb_ident): Use cpp_interpret_string, not lex_string.
3291 (get_nonpadding_token): New function.
3292 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
3293 Adjust calls to lex_string. Don't write *value twice.
3294 (lex_string): Now handles string constant concatenation.
3295 Most of the work handed off to cpp_interpret_string.
3296 Call fix_string_type here.
3297 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
3298 FUNC_NAME, throughout.
3299 (OBJC_STRING): New token type.
3300 (primary:STRING): No need to call fix_string_type here.
3301 (primary:objc_string): Make that OBJC_STRING.
3302 (objc_string nonterminal): Delete.
3303 (yylexname): Delete code to handle fake string constants.
3304 (yylexstring): Delete entirely.
3305 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
3306 to handle CPP_ATSIGN.
3307
3308 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
3309 * c-opts.c (missing_arg, c_common_handle_option): Handle
3310 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
3311 (c_common_init): Set cpp_opts->bytes_big_endian, not
3312 cpp_opts->EBCDIC. Call cpp_init_iconv.
3313 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
3314 (TARGET_EBCDIC): Delete default definition.
3315
3316 * objc/objc-act.c (build_objc_string_object): No need to
3317 handle string constant concatenation.
3318
61aeb06f
KH
33192003-07-04 Kazu Hirata <kazu@cs.umass.edu>
3320
3321 * doc/install.texi: Fix typos.
3322 * doc/invoke.texi: Likewise.
3323 * doc/tm.texi: Likewise.
3324
c1207243
KH
33252003-07-04 Kazu Hirata <kazu@cs.umass.edu>
3326
3327 * config/pa/fptr.c: Fix comment typos.
3328 * config/pa/pa-64.h: Likewise.
3329 * config/pa/pa.c: Likewise.
3330 * config/pa/pa.h: Likewise.
3331 * config/rs6000/603.md: Likewise.
3332 * config/rs6000/7xx.md: Likewise.
3333 * config/rs6000/darwin.h: Likewise.
3334 * config/rs6000/freebsd.h: Likewise.
3335 * config/rs6000/rs6000.c: Likewise.
3336 * config/rs6000/rs6000.md: Likewise.
3337 * config/rs6000/spe.h: Likewise.
3338
58add37a
UW
33392003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
3340
3341 * config/s390/2064.md: Change GNU CC to GCC.
3342 * config/s390/2084.md: Likewise.
3343 * config/s390/fixdfdi.h: Likewise.
3344 * config/s390/linux.h: Likewise.
3345 * config/s390/s390-modes.def: Likewise.
3346 * config/s390/s390-protos.h: Likewise.
3347 * config/s390/s390.c: Likewise.
3348 * config/s390/s390.h: Likewise.
3349 * config/s390/s390.md: Likewise.
3350 * config/s390/s390x.h: Likewise.
3351
60cd4dae
JL
33522003-07-04 Jeff Law <law@redhat.com>
3353
a38825d2 3354 PR c/11428
60cd4dae
JL
3355 * expr.c (do_store_flag): Pass in the correct result type
3356 when calling fold_single_bit_test.
3357 * fold-const.c (fold_single_bit_test): Use result_type for the
3358 result when folding a sign bit test.
3359
5e14ae7e
NB
33602003-07-04 Neil Booth <neil@daikokuya.co.uk>
3361
3362 * opts.c (common_handle_options): Negate sense of -falign- switches.
3363
8c90b13a
L
33642003-07-04 H.J. Lu <hongjiu.lu@intel.com>
3365
c3b3975a 3366 * Makefile.in: Replace PWD with PWD_COMMAND.
8c90b13a 3367
72d4a2ad
ZD
33682003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3369
3370 * cfgloopanal.c (count_strange_loop_iterations): New static function.
3371 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
3372 Handle strange loops.
3373
8e9a4a45
TM
33742003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
3375
3376 * install.texi: Even the g77 manpage is derived from
3377 the full g77 manual.
3378
6eb95e99
ZW
33792003-07-04 Zack Weinberg <zack@codesourcery.com>
3380
3381 * ABOUT-NLS: Delete.
3382 * intl: Delete entire directory.
3383 * aclocal.m4: Include ../config/gettext.m4. Delete
3384 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
3385 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
3386 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
3387 Remove intl/Makefile from all_outputs.
3388 * configure, config.in: Regenerate.
3389 * Makefile.in: Expunge all references to intl subdirectory.
3390 Add -I../intl to INCLUDES.
3391 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
3392
bcd5d841
RS
33932003-07-04 Roger Sayle <roger@eyesopen.com>
3394
3395 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
3396 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
3397
6b6cb52e
DS
33982003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
3399
3400 PR c++/5287, PR c++/7910, PR c++/11021
3401 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
3402 dllimport attribute if function is defined at declaration, but
3403 report error instead. Likewise for dllimport'd variable
3404 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
3405 declared within functions, Report error if dllimport or dllexport
3406 symbol is not global.
3407 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
3408 if defined after declaration or if inlined. Don't allow definition
3409 of static data members of C++ classes. Don't dllimport virtual
3410 methods.
3411 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
3412 (i386_pe_mark_dllimport): Remove unnecessary checks.
3413 (i386_pe_encode_section_info): Warn if the dllimport attribute
3414 and symbol prefix have been instantiated and then overridden.
3415
3416 * doc/extend.texi: Document dllimport and dllexport attributes.
3417
3418 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
3419
cc2f5d34
US
34202003-07-03 Uwe Stieber <uwe@kaos-group.de>
3421
3422 * config/kaos.h (CPP_PREDEFINES): Delete.
3423 (TARGET_OS_CPP_BUILTINS): New.
3424
5f1989e6
KG
34252003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3426
3427 * c-aux-info.c: Include toplev.h after c-tree.h.
3428 * c-common.c: Likewise.
3429 (GCC_DIAG_STYLE): Undef.
3430 * c-semantics.c (GCC_DIAG_STYLE): Define.
3431 * c-tree.h (GCC_DIAG_STYLE): Likewise.
3432 * diagnostic.h (inform): Move prototype to toplev.h.
3433 * jump.c: Include diagnostic.h before toplev.h.
3434 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
3435 (warning, error, fatal_error, pedwarn, sorry, inform,
3436 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
3437
8d28e87d
ZD
34382003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3439
3440 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
3441 at all if edge is not specified.
3442 (can_copy_bbs_p, copy_bbs): New.
3443 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
3444 * cfgloop.c (get_loop_body): Comment more precisely.
3445 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
3446 (scale_bbs_frequencies): Fix comment typo.
3447 (can_duplicate_loop_p): Use can_copy_bbs_p.
3448 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
3449
694abeb6
DP
34502003-07-03 Devang Patel <dpatel@apple.com>
3451
3452 * c-opts.c (c_common_parse_file): Remove extra
3453 debug_hooks->start_source_file call.
6eb95e99 3454
0a9530a9
RS
34552003-07-03 Roger Sayle <roger@eyesopen.com>
3456
3457 * real.c (real_trunc, real_floor, real_ceil): New functions
3458 to implement trunc, floor and ceil respectively.
3459 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
3460 * builtins.c (integer_valued_real_p): New function to test if
3461 a floating point expression has an integer valued result.
3462 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
3463 foo(x) where foo is an integer rounding function. Similarly,
3464 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
3465 (double)(int)x when both foo and bar are integer rounding
3466 functions and we don't need to honor errno.
3467 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
3468 New functions to fold trunc, floor and ceil.
3469 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
3470 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
3471 to fold BUILT_IN_CEIL*.
3472 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
3473 the remaining integer rounding functions.
3474
c3427c7d
EB
34752003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
3476
3477 * config/sparc/sparc.c (function_arg_partial_nregs): Use
3478 SPARC_INT_ARG_MAX to determine where to split unnamed
3479 complex FP arguments.
3480
bc35512f
JH
3481Thu Jul 3 20:36:47 CEST 2003 Jan Hubicka <jh@suse.cz>
3482
3483 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
3484 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
3485 (merge_blocks_move_predecessor_nojumps,
3486 merge_blocks_move_successor_nojumps): Use merge_blocks.
3487 (try_optimize_cfg): Use merge_blocks_move.
3488 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
3489 (merge_blocks_nomove): Rename to rtl_merge_blocks.
3490 (cfg_layout_create_basic_block): New.
3491 (rtl_can_merge_blocks): New.
3492 (cfg_layout_split_block): Do not alloc aux by hand.
3493 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
3494 merge_blocks.
3495 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
3496 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
3497 * cfgloopmanip.c (loop_split_edge_with): Likewise.
3498 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
3499
3500 * basic-block.h (basic_block_def): Add field 'rbi'.
3501 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
3502 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
3503 * cfg.c (entry_exit_blocks): Add new field.
3504 * cfglayout.c: Include alloc-pool.h;
3505 (cfg_layout_pool): New.
3506 (record_effective_endpoints, fixup_reorder_chain,
3507 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
3508 of rbi.
3509 (cfg_layout_initialize_rbi): New function.
3510 (cfg_layout_initialize): Use it.
3511 (cfg_layout_finalize): Clear rbi fields.
3512 * cfglayout.h (RBI): Kill.
3513 (cfg_layout_initialize_rbi): Declare.
3514 * cfgloopmanip.c (copy_bbs): Use rbi.
3515 (record_exit_edges): Likewise.
3516 (duplicate_loop_to_header_edge): Likewise.
3517 * cfgrtl.c (cfg_layout_create_basic_block): Use
3518 cfg_layout_initialize_rbi.
3519 (cfg_layout_split_block): Use rbi.
3520 (cfg_layout_delete_block): Likewise.
3521 * loop-init.c (loop_optimizer_finalize): Likewise.
3522 * loop-unswitch.c (unswitch_loop): Likewise.
3523 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
3524
3525 * cfgrtl.c: Update comments.
3526 (try_redirect_by_replacing_jump): New argument.
3527 (redirect_branch_edge): Break out from ...
3528 (rtl_redirect_edge_and_branch): ... this one.
3529 (update_cfg_after_block_merging): Break out from ...
3530 (rtl_merge_blocks): ... this one.
3531 (cfg_layout_split_edge): New.
3532 (cfg_layout_merge_blocks): New.
3533 (cfg_layout_can_merge_blocks_p): New.
3534 (cfg_layout_redirect_edge_and_branch): Reorganize.
3535 (cfg_layout_rtl_cfg_hooks): Fill in.
3536 (cfg_layout_delete_block): Kill barriers.
3537 * cfganal.c (can_fallthru): Deal with exit blocks
3538 * cfglayout.c (cfg_layout_function_header): New function
3539 (record_effective_endpoints): Record function header.
3540 (fixup_reorder_chain): Fixup dead jumptables; place header
3541
3542 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
3543 * bb-reorder.c (cfg_layout_initialize): Update call.
3544 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
3545 edges in cfglayout mode.
3546 * cfglayout.c (cleanup_unconditional_jumps): Kill.
3547 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
3548 * cfglayout.h (cfg_layout_initialize): Update prototype.
3549 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
3550 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
3551 * flow.c (propagate_block): Do not crash when basic block ends
3552 by first insn in the chain.
3553 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
3554 do loop discovery.
3555 * tracer.c (tracer): Update call of cfg_layout_initialize.
3556
dd220c49
KG
35572003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3558
3559 * Makefile.in: Use dependency variables in lieu of explicit
3560 files throughout.
3561
fa5b060f
SB
35622003-07-03 Steven Bosscher <steven@gcc.gnu.org>
3563
3564 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
3565 * tree.h: ...to here.
3566
fae778eb
KH
35672003-07-03 Kazu Hirata <kazu@cs.umass.edu>
3568
3569 * config/s390/2064.md: Fix comment typos.
3570 * config/s390/2084.md: Likewise.
3571 * config/s390/s390.c: Likewise.
3572 * config/s390/s390.md: Likewise.
3573 * config/sh/sh.c: Likewise.
3574 * config/sh/sh.h: Likewise.
3575 * config/sh/sh.md: Likewise.
3576 * config/sparc/sparc.c: Likewise.
3577 * config/sparc/sparc.h: Likewise.
3578 * config/sparc/sparc.md: Likewise.
3579 * config/stormy16/stormy16.c: Likewise.
3580 * config/stormy16/stormy16.h: Likewise.
3581 * config/stormy16/stormy-abi: Fix a typo.
3582
58eabcb1
KC
35832003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
3584
3585 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
3586
af261903
KG
35872003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3588
3589 * config/mips/mips.h (save_argv): Delete.
3590
a11c61d2
RS
35912003-07-03 Roger Sayle <roger@eyesopen.com>
3592
3593 PR target/10700
3594 * fold-const.c (extract_muldiv_1): There's nothing that can be done
3595 if the expression is a SAVE_EXPR.
3596
dab66575
KH
35972003-07-03 Kazu Hirata <kazu@cs.umass.edu>
3598
3599 * config/m32r/m32r.c: Fix comment typos.
3600 * config/m68hc11/m68hc11.c: Likewise.
3601 * config/m68hc11/m68hc11.h: Likewise.
3602 * config/m68k/m68k.c: Likewise.
3603 * config/mcore/mcore.c: Likewise.
3604 * config/mcore/mcore.h: Likewise.
3605 * config/mcore/mcore.md: Likewise.
3606 * config/mips/mips.c: Likewise.
3607 * config/mips/mips.h: Likewise.
3608 * config/mips/mips.md: Likewise.
3609 * config/mips/netbsd.h: Likewise.
3610 * config/mn10300/mn10300.c: Likewise.
3611
8837d828
AS
36122003-07-03 Andreas Schwab <schwab@suse.de>
3613
3614 * dbxout.c (pending_bincls): Move decl down inside
3615 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
3616
dd107e66
NS
36172003-07-02 Nathan Sidwell <nathan@codesourcery.com>
3618
3619 * rtl.h (NOTE_DATA): Refer to whole union.
3620 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
3621
8821d091
EB
36222003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
3623
3624 PR optimization/11381
3625 * simplify-rtx.c (simplify_relational_operation): Check that
3626 two equal operands have no side-effects before simplifying
3627 the comparison.
3628
7960bf22
JL
36292003-07-02 Jeff Law <law@redhat.com>
3630
3631 * expr.c (do_store_flag): Remove special case folding for
3632 single bit tests. Instead call back into the commonized folder
3633 routine.
3634 * fold-const.c (fold_single_bit_test): New function, mostly
3635 extracted from do_store_flag, with an additional case extracted
3636 from fold.
3637 (fold): Call fold_single_bit_test appropriately.
3638 * tree.h (fold_single_bit_test): Prototype.
3639
3dce1408
ZW
36402003-07-02 Zack Weinberg <zack@codesourcery.com>
3641
3642 * system.h: Include filenames.h.
3643 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
3644 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
3645 define based on HAVE_DOS_BASED_FILE_SYSTEM.
3646 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
3647 * config/i386/xm-mingw32.h: Don't define
3648 HAVE_DOS_BASED_FILE_SYSTEM,
3649 DIR_SEPARATOR, or DIR_SEPARATOR_2.
3650 * doc/hostconfig.texi: Update to match.
3651
3652 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
3653 config/i386/cygwin.h:
3654 Use IS_ABSOLUTE_PATH throughout.
3655 * gcc.c (DIR_UP): Delete, unused.
3656 * protoize.c (IS_SAME_PATH): Define in terms of
3657 FILENAME_CMP.
3658 (is_abspath): Delete.
3659
c51e6d85
KH
36602003-07-02 Kazu Hirata <kazu@cs.umass.edu>
3661
3662 * config/i386/emmintrin.h: Fix comment typos.
3663 * config/i386/i386.c: Likewise.
3664 * config/i386/i386.h: Likewise.
3665 * config/i386/sco5.h: Likewise.
3666 * config/ia64/ia64.c: Likewise.
3667 * config/ia64/itanium2.md: Likewise.
3668
5ec3a5a7
L
36692003-07-02 H.J. Lu <hongjiu.lu@intel.com>
3670
3671 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
3672 DBX_USE_BINCL.
3673 (emit_bincl_stab): Same.
3674 (emit_pending_bincls): Same.
3675
fad37371
KH
36762003-07-02 Kazu Hirata <kazu@cs.umass.edu>
3677
3678 * config/h8300/h8300.c (compute_mov_length): Fix the length of
3679 loading CONST0_RTX (SFmode).
3680 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
3681 'G' to CONST0_RTX (SFmode).
3682 * config/h8300/h8300.md (movsf_h8300): Change the first
3683 constraint to 'G'.
3684 (movsf_h8300h): Likewise.
3685
b86f6cd9
NB
36862003-07-02 Neil Booth <neil@daikokuya.co.uk>
3687
3688 * c-common.h (c_common_init_options): New prototype.
3689 * c-opts.c (deferred_size): Remove.
3690 (defer_opt): Array is now pre-allocated.
3691 (c_common_init_options): Pre-allocate deferred_opts. Make
3692 lang_flags unsigned.
3693 (push_command_line_options): Free deferred_opts.
3694 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
3695 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
3696 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
3697 * langhooks.h (struct lang_hooks): New prototype for init_options.
3698 * main.c (main): Cast argv.
3699 * opts.c (handle_option, handle_options): Update prototypes.
3700 (decode_options): save_argc, save_argv are not global. Constify.
3701 * opts.h (decode_options): New prototype.
3702 * toplev.c (general_init): New protoype.
3703 (save_argv): Make static.
3704 (save_argc): Remove.
3705 (print_switch_values, general_init): Constify.
3706 (toplev_main): Save argv.
3707 * toplev.h (toplev_main): Update prototype.
3708 (save_argc, save_argv): Remove.
3709
f23b9d52
DE
37102003-07-02 David Edelsohn <edelsohn@gnu.org>
3711
3712 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
3713 (emit_bincl_stab): Same.
3714 (emit_pending_bincls): Same.
3715
300e89a2
NS
37162003-07-02 Nathan Sidwell <nathan@codesourcery.com>
3717
3718 PR c++/11072
3719 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
3720
eaac6968
AS
37212003-07-02 Andreas Schwab <schwab@suse.de>
3722
3723 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
3724
1a8c4ca6
EB
37252003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
3726
3727 PR optimization/11210
3728 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
3729 about the behaviour with regard to bitfields.
3730 * fold-const (decode_field_reference): Record outermost type in
3731 case the expression is a NOP. Strip all NOPs. Set the signedness
3732 to that of the outermost type (if any) when the bitsize is equal
3733 to the size of the type.
3734
23cdfcf7
RS
37352003-07-02 Richard Sandiford <rsandifo@redhat.com>
3736
3737 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
3738 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
3739 (adddi3_internal_3, addsi3_internal_2): Likewise.
3740
6f2993e5
RS
37412003-07-02 Richard Sandiford <rsandifo@redhat.com>
3742
3743 * config/mips/mips.c (machine_function): Add new fields:
3744 ignore_hazard_length_p and all_noreorder_p.
3745 (mips_flag_delayed_branch): New variable.
3746 (override_options): Treat '/' as an operand punctuation character.
3747 Set up mips_flag_delayed_branch.
3748 (print_operand): Handle '/'.
3749 (mips_output_function_prologue): Put the whole function in
3750 .set noreorder and .set nomacro if all_noreorder_p is true.
3751 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
3752 (mips16_optimize_gp): Remove "first insn" parameter.
3753 (mips16_lay_out_constants): New function, split out from mips_reorg.
3754 (mips_avoid_hazard, mips_avoid_hazards): New functions.
3755 (mips_reorg): For mips16 code, call mips16_lay_out_constant
3756 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
3757 do delayed-branch scheduling followed by hazard detection.
3758 (mips_adjust_insn_length): Only account for hazards if
3759 !ignore_hazard_length_p.
3760 (mips_output_load_label): Add a nop to the o32 sequence if
3761 the target suffers from load delays.
3762 (mips_output_conditional_branch): Add %/ to the end of branches.
3763 (mips_output_division): Fill the branch delay slot with %#.
3764 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
3765 instructions. End all other %* branches with %/.
3766 (ffssi2, ffsdi2): Fix lengths.
3767 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
3768 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
3769 (fix_truncsfsi2_macro): Likewise.
3770 (mov_lwl): Set hazard to "none".
3771 (ashldi3_internal): Fill the branch delay slot with %#.
3772 (ashrdi3_internal, lshrdi3_internal): Likewise.
3773 (exception_receiver): Explicitly set $28.
3774 (hazard_nop): New pattern.
3775
0184bd46
JH
3776Wed Jul 2 08:12:36 CEST 2003 Jan Hubicka <jh@suse.cz>
3777
3778 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
3779 before calling tree_inlinable_function_p.
3780
1a78e5a7
RO
37812003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3782
3783 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
3784 <internal/stdio_core.h> too.
3785 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
3786 <internal/wchar_core.h> too.
3787 Substitute va_list uses in inline definition.
3788 * fixinc/fixincl.x: Regenerate.
3789
4c82f12b
RO
37902003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3791
3792 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
3793 Undef before redefinition.
3794 (LABEL_AFTER_LOC): Likewise.
3795 (DEFAULT_SIGNED_CHAR): Likewise.
3796 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
3797 Fix IRIX spelling.
3dce1408 3798
4c82f12b
RO
3799 * config/mips/iris3.h: Remove, unused.
3800 * config/mips/iris4.h: Likewise.
3801
3802 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
3803
3804 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
3805 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
3806 target_cpu_default.
3807
3808 * config/mips/iris5.h: Move explicit includes ...
3809 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
3dce1408 3810
4c82f12b
RO
3811 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
3812 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
3813 tm_defines.
3814
3815 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
3816 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
3817 target_cpu_default.
3818
3819 * config/mips/iris6.h: Fix IRIX spelling.
3820 (MULTILIB_DEFAULTS): Undef before redefinition.
3dce1408 3821
4c82f12b
RO
3822 * config/mips/iris6.h: Move explicit includes ...
3823 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
3824
8bd87c4e
JH
3825Wed Jul 2 02:16:48 CEST 2003 Jan Hubicka <jh@suse.cz>
3826
3827 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
3828 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
3829 Use next_needed field instead of aux to maintain the queue.
3830 * cgraph.h (cgraph_node): Add next_needed.
3831 (cgraph_varpool_node): Add next_needed; remove aux.
3832 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
3833
f6981e16
JH
3834Wed Jul 2 02:12:51 CEST 2003 Jan Hubicka <jh@suse.cz>
3835
3836 * cgraphunit.c (cgraph_finalize_function): Set finalized.
3837 (cgraph_finalize_function): Do not examine inlinablility.
3838 (cgraph_finalize_compilation_unit): Do it here.
3839 * cgraph.h (cgraph_local_info): Add finalized field.
3840
d1c60855
RO
38412003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3842
3843 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
3844 (gt_pch_restore): Likewise.
3845
093354e0
KH
38462003-07-01 Kazu Hirata <kazu@cs.umass.edu>
3847
3848 * config/alpha/alpha.c: Fix comment typos.
3849 * config/alpha/elf.h: Likewise.
3850 * config/arm/arm.c: Likewise.
3851 * config/arm/arm.h: Likewise.
3852 * config/arm/arm.md: Likewise.
3853 * config/arm/t-arm-coff: Likewise.
3854 * config/arm/t-strongarm-pe: Likewise.
3855 * config/arm/xscale-elf.h: Likewise.
3856 * config/avr/avr.h: Likewise.
3857
ce47ca44
JL
38582003-07-01 Jeff Law <law@redhat.com>
3859
3860 * stmt.c (any_pending_cleanups): Remove another redundant test.
3861
43b68ce5
DE
38622003-07-01 David Edelsohn <edelsohn@gnu.org>
3863 J"orn Rennecke <joern.rennecke@superh.com>
3864
3865 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
3866 for MEM case.
3867
33e9d2aa
DP
38682003-07-01 Devang Patel <dpatel@apple.com>
3869
3870 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
3871 (binclstatus): New.
3dce1408 3872 (struct dbx_file): New members - bincl_status, pending_bincl_name and
33e9d2aa
DP
3873 prev.
3874 (pending_bincls): New.
3875 (dbxout_init): Initialize new dbx_file members.
3876 (dbxout_start_source_file): Same.
3877 (emit_bincl_stab): New function.
3878 (emit_pending_bincls): Same.
3879 (emit_pending_bincls_if_required): Same.
3dce1408 3880 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
33e9d2aa
DP
3881 processed.
3882 (dbxout_begin_block): Emit pending BINCL stabs.
3883 (dbxout_end_block): Same.
3884 (dbxout_function_decl): Same.
3885 (dbxout_continue): Same.
3886 (dbxout_type): Same.
3887 (dbxout_class_name_qualifiers): Same.
3888 (dbxout_symbol): Same.
3889 (dbxout_symbol_location): Same.
3890 (dbxout_parms): Same.
3dce1408 3891
0108ae51
KG
38922003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3893
3894 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
3895 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
3896
54ced33d
AJ
38972003-07-01 Andreas Jaeger <aj@suse.de>
3898
3899 * fold-const.c: Convert prototypes to ISO C90.
3900 * function.c: Likewise.
3901 * function.h: Likewise.
3902
c0cbdbd9
KH
39032003-07-01 Kazu Hirata <kazu@cs.umass.edu>
3904
3905 * doc/contrib.texi: Fix typos.
3906 * doc/invoke.texi: Likewise.
3907 * doc/passes.texi: Likewise.
3908 * doc/sourcebuild.texi: Likewise.
3909 * doc/tm.texi: Likewise.
3910
e0bb17a8
KH
39112003-07-01 Kazu Hirata <kazu@cs.umass.edu>
3912
3913 * basic-block.h: Fix comment typos.
3914 * bb-reorder.c: Likewise.
3915 * c-format.c: Likewise.
3916 * cfgcleanup.c: Likewise.
3917 * cfghooks.h: Likewise.
3918 * cfgloop.c: Likewise.
3919 * cfgloopmanip.c: Likewise.
3920 * cfgrtl.c: Likewise.
3921 * cgraph.h: Likewise.
3922 * cgraphunit.c: Likewise.
3923 * combine.c: Likewise.
3924 * convert.c: Likewise.
3925 * dbxout.c: Likewise.
3926 * df.c: Likewise.
3927 * df.h: Likewise.
3928 * diagnostic.c: Likewise.
3929 * dwarf2out.c: Likewise.
3930 * et-forest.h: Likewise.
3931 * flow.c: Likewise.
3932 * fold-const.c: Likewise.
3933 * function.h: Likewise.
3934 * gcov-io.h: Likewise.
3935 * gcov.c: Likewise.
3936 * gcse.c: Likewise.
3937 * genautomata.c: Likewise.
3938 * ggc-common.c: Likewise.
3939 * ggc-page.c: Likewise.
3940 * loop-unroll.c: Likewise.
3941 * loop-unswitch.c: Likewise.
3942 * loop.c: Likewise.
3943 * mips-tfile.c: Likewise.
3944 * optabs.c: Likewise.
3945 * ra-build.c: Likewise.
3946 * ra-colorize.c: Likewise.
3947 * ra-rewrite.c: Likewise.
3948 * ra.h: Likewise.
3949 * regmove.c: Likewise.
3950 * reload.c: Likewise.
3951 * rtlanal.c: Likewise.
3952 * sched-ebb.c: Likewise.
3953 * sched-int.h: Likewise.
3954 * sched-vis.c: Likewise.
3955 * sreal.c: Likewise.
3956 * ssa-ccp.c: Likewise.
3957 * ssa.c: Likewise.
3958 * toplev.c: Likewise.
3959 * tree-inline.c: Likewise.
3960 * value-prof.c: Likewise.
3961 * value-prof.h: Likewise.
3962
5f2fc772
NS
39632003-07-01 Nathan Sidwell <nathan@codesourcery.com>
3964
3965 * rtl.h (emit_line_note_after): Remove.
3966 (emit_note_copy_after, emit_note_copy): New.
3967 * emit-rtl.c (reorder_insns_with_line_notes): Replace
3968 emit_line_note_after with emit_note_copy_after.
3969 (emit_insn_after_with_line_notes): Likewise.
3970 (emit_line_note_after): Kill.
3971 (emit_note_copy_after): New.
3972 (emit_note_copy): New.
3973 * function.c (emit_return_into_block): Use emit_note_copy_after.
3974 (thread_prologue_and_epilogue_insns): Likewise.
3975 * integrate.c (expand_inline_function): Use emit_note_copy.
3976 (copy_insn_list): Likewise.
3977 * unroll.c (copy_loop_body): Likewise.
3978 * cfglayout.c (duplicate_insn_chain): Likewise.
3979
5b030314
NS
39802003-07-01 Nathan Sidwell <nathan@codesourcery.com>
3981
3982 * c-tree.h (define_label): Replace filename and lineno arguments
3983 with a location_t.
3984 * c-decl.c (poplevel): Adjust define_label call.
3985 (pop_label_level): Likewise.
3986 (define_label): Replace filename and lineno arguments with a
3987 location_t.
3988 (store_parm_decls): Use DECL_SOURCE_LOCATION.
3989 * c-parse.in (label): Adjust define_label call.
3990
04df6730
NB
39912003-07-01 Neil Booth <neil@daikokuya.co.uk>
3992
3993 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
3994 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
3995 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
3996 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
3997 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
3998
6cf9ac28
AJ
39992003-07-01 Andreas Jaeger <aj@suse.de>
4000
4001 * final.c: Convert prototypes to ISO C90.
4002 * flow.c: Likewise.
4003 * flags.h: Likewise.
4004 * gcov-io.c: Likewise.
4005 * gcov-io.h: Likewise.
4006
2a868fac 4007See ChangeLog.9 for earlier changes.
This page took 0.60893 seconds and 5 git commands to generate.