]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
genattr.c (internal_dfa_insn_code): Output prototype.
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
6906ba40
KG
12003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2
3 * genattr.c (internal_dfa_insn_code): Output prototype.
4 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
5 * genautomata.c: Likewise.
6 * genconditions.c: Likewise.
7 * genemit.c: Likewise.
8 * genextract.c: Likewise.
9 * gengenrtl.c: Likewise.
10 * gengtype.c: Likewise.
11 * genopinit.c: Likewise.
12 * genoutput.c: Likewise.
13 * genpeep.c: Likewise.
14 * genrecog.c: Likewise.
15
e6cc3a24
ZW
162003-07-04 Zack Weinberg <zack@codesourcery.com>
17
18 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
19 (struct cpp_options): Add narrow_charset, wide_charset,
20 bytes_big_endian fields. Remove EBCDIC field.
21 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
22
23 * cpphash.h: Include <iconv.h> if we have it, otherwise
24 provide a dummy definition of iconv_t.
25 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
26 (_cpp_valid_ucn): Update prototype.
27 (_cpp_destroy_iconv): New prototype.
28
29 * doc/cpp.texi: Document character set handling.
30 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
31 * doc/extend.texi: Delete entire section on multiline strings.
32 Rewrite section on __FUNCTION__ etc now that these are
33 variables in C.
34
35 * cppucnid.tab, cppucnid.pl: New files.
36 * cppucnid.h: New generated file.
37 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
38 (iconv_open, iconv, iconv_close): Provide dummy definitions
39 if !HAVE_ICONV.
40 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
41 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
42 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
43 cpp_interpret_string, narrow_str_to_charconst,
44 wide_str_to_charconst): New.
45 (ucn_valid_in_identifier): Use a binary search through the
46 ucnranges table defined in cppucnid.h, not a long chain of if
47 statements.
48 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
49 character names are only valid in C++ and C99" to a warning.
50 Issue the "meaning of \[uU] is different in traditional C"
51 warning here. Take care not to let iconv see an invalid UCS
52 value if we get a malformed UCN. Issue an error if we don't
53 have iconv.
54 (cpp_interpret_charconst): Moved here from cpplex.c. Use
55 cpp_interpret_string to do the heavy lifting.
56
57 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
58 narrow_charset, wide_charset fields of options structure.
59 (cpp_destroy): Call _cpp_destroy_iconv.
60 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
61 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
62 (cpp_interpret_charconst): Moved to cppcharset.c.
63 * cpplib.c (dequote_string): Delete.
64 (interpret_string_notranslate): New.
65 (do_line, do_linemarker): Use interpret_string_notranslate.
66
67 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
68
69 * c-common.c (fname_string, combine_strings): Delete.
70 * c-common.h (fname_string, combine_strings): Delete prototypes.
71 * c-lex.c (ignore_escape_flag): Delete.
72 (cb_ident): Use cpp_interpret_string, not lex_string.
73 (get_nonpadding_token): New function.
74 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
75 Adjust calls to lex_string. Don't write *value twice.
76 (lex_string): Now handles string constant concatenation.
77 Most of the work handed off to cpp_interpret_string.
78 Call fix_string_type here.
79 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
80 FUNC_NAME, throughout.
81 (OBJC_STRING): New token type.
82 (primary:STRING): No need to call fix_string_type here.
83 (primary:objc_string): Make that OBJC_STRING.
84 (objc_string nonterminal): Delete.
85 (yylexname): Delete code to handle fake string constants.
86 (yylexstring): Delete entirely.
87 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
88 to handle CPP_ATSIGN.
89
90 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
91 * c-opts.c (missing_arg, c_common_handle_option): Handle
92 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
93 (c_common_init): Set cpp_opts->bytes_big_endian, not
94 cpp_opts->EBCDIC. Call cpp_init_iconv.
95 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
96 (TARGET_EBCDIC): Delete default definition.
97
98 * objc/objc-act.c (build_objc_string_object): No need to
99 handle string constant concatenation.
100
61aeb06f
KH
1012003-07-04 Kazu Hirata <kazu@cs.umass.edu>
102
103 * doc/install.texi: Fix typos.
104 * doc/invoke.texi: Likewise.
105 * doc/tm.texi: Likewise.
106
c1207243
KH
1072003-07-04 Kazu Hirata <kazu@cs.umass.edu>
108
109 * config/pa/fptr.c: Fix comment typos.
110 * config/pa/pa-64.h: Likewise.
111 * config/pa/pa.c: Likewise.
112 * config/pa/pa.h: Likewise.
113 * config/rs6000/603.md: Likewise.
114 * config/rs6000/7xx.md: Likewise.
115 * config/rs6000/darwin.h: Likewise.
116 * config/rs6000/freebsd.h: Likewise.
117 * config/rs6000/rs6000.c: Likewise.
118 * config/rs6000/rs6000.md: Likewise.
119 * config/rs6000/spe.h: Likewise.
120
58add37a
UW
1212003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
122
123 * config/s390/2064.md: Change GNU CC to GCC.
124 * config/s390/2084.md: Likewise.
125 * config/s390/fixdfdi.h: Likewise.
126 * config/s390/linux.h: Likewise.
127 * config/s390/s390-modes.def: Likewise.
128 * config/s390/s390-protos.h: Likewise.
129 * config/s390/s390.c: Likewise.
130 * config/s390/s390.h: Likewise.
131 * config/s390/s390.md: Likewise.
132 * config/s390/s390x.h: Likewise.
133
60cd4dae
JL
1342003-07-04 Jeff Law <law@redhat.com>
135
a38825d2 136 PR c/11428
60cd4dae
JL
137 * expr.c (do_store_flag): Pass in the correct result type
138 when calling fold_single_bit_test.
139 * fold-const.c (fold_single_bit_test): Use result_type for the
140 result when folding a sign bit test.
141
5e14ae7e
NB
1422003-07-04 Neil Booth <neil@daikokuya.co.uk>
143
144 * opts.c (common_handle_options): Negate sense of -falign- switches.
145
8c90b13a
L
1462003-07-04 H.J. Lu <hongjiu.lu@intel.com>
147
c3b3975a 148 * Makefile.in: Replace PWD with PWD_COMMAND.
8c90b13a 149
72d4a2ad
ZD
1502003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
151
152 * cfgloopanal.c (count_strange_loop_iterations): New static function.
153 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
154 Handle strange loops.
155
8e9a4a45
TM
1562003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
157
158 * install.texi: Even the g77 manpage is derived from
159 the full g77 manual.
160
6eb95e99
ZW
1612003-07-04 Zack Weinberg <zack@codesourcery.com>
162
163 * ABOUT-NLS: Delete.
164 * intl: Delete entire directory.
165 * aclocal.m4: Include ../config/gettext.m4. Delete
166 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
167 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
168 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
169 Remove intl/Makefile from all_outputs.
170 * configure, config.in: Regenerate.
171 * Makefile.in: Expunge all references to intl subdirectory.
172 Add -I../intl to INCLUDES.
173 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
174
bcd5d841
RS
1752003-07-04 Roger Sayle <roger@eyesopen.com>
176
177 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
178 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
179
6b6cb52e
DS
1802003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
181
182 PR c++/5287, PR c++/7910, PR c++/11021
183 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
184 dllimport attribute if function is defined at declaration, but
185 report error instead. Likewise for dllimport'd variable
186 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
187 declared within functions, Report error if dllimport or dllexport
188 symbol is not global.
189 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
190 if defined after declaration or if inlined. Don't allow definition
191 of static data members of C++ classes. Don't dllimport virtual
192 methods.
193 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
194 (i386_pe_mark_dllimport): Remove unnecessary checks.
195 (i386_pe_encode_section_info): Warn if the dllimport attribute
196 and symbol prefix have been instantiated and then overridden.
197
198 * doc/extend.texi: Document dllimport and dllexport attributes.
199
200 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
201
cc2f5d34
US
2022003-07-03 Uwe Stieber <uwe@kaos-group.de>
203
204 * config/kaos.h (CPP_PREDEFINES): Delete.
205 (TARGET_OS_CPP_BUILTINS): New.
206
5f1989e6
KG
2072003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
208
209 * c-aux-info.c: Include toplev.h after c-tree.h.
210 * c-common.c: Likewise.
211 (GCC_DIAG_STYLE): Undef.
212 * c-semantics.c (GCC_DIAG_STYLE): Define.
213 * c-tree.h (GCC_DIAG_STYLE): Likewise.
214 * diagnostic.h (inform): Move prototype to toplev.h.
215 * jump.c: Include diagnostic.h before toplev.h.
216 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
217 (warning, error, fatal_error, pedwarn, sorry, inform,
218 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
219
8d28e87d
ZD
2202003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
221
222 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
223 at all if edge is not specified.
224 (can_copy_bbs_p, copy_bbs): New.
225 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
226 * cfgloop.c (get_loop_body): Comment more precisely.
227 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
228 (scale_bbs_frequencies): Fix comment typo.
229 (can_duplicate_loop_p): Use can_copy_bbs_p.
230 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
231
694abeb6
DP
2322003-07-03 Devang Patel <dpatel@apple.com>
233
234 * c-opts.c (c_common_parse_file): Remove extra
235 debug_hooks->start_source_file call.
6eb95e99 236
0a9530a9
RS
2372003-07-03 Roger Sayle <roger@eyesopen.com>
238
239 * real.c (real_trunc, real_floor, real_ceil): New functions
240 to implement trunc, floor and ceil respectively.
241 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
242 * builtins.c (integer_valued_real_p): New function to test if
243 a floating point expression has an integer valued result.
244 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
245 foo(x) where foo is an integer rounding function. Similarly,
246 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
247 (double)(int)x when both foo and bar are integer rounding
248 functions and we don't need to honor errno.
249 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
250 New functions to fold trunc, floor and ceil.
251 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
252 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
253 to fold BUILT_IN_CEIL*.
254 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
255 the remaining integer rounding functions.
256
c3427c7d
EB
2572003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
258
259 * config/sparc/sparc.c (function_arg_partial_nregs): Use
260 SPARC_INT_ARG_MAX to determine where to split unnamed
261 complex FP arguments.
262
bc35512f
JH
263Thu Jul 3 20:36:47 CEST 2003 Jan Hubicka <jh@suse.cz>
264
265 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
266 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
267 (merge_blocks_move_predecessor_nojumps,
268 merge_blocks_move_successor_nojumps): Use merge_blocks.
269 (try_optimize_cfg): Use merge_blocks_move.
270 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
271 (merge_blocks_nomove): Rename to rtl_merge_blocks.
272 (cfg_layout_create_basic_block): New.
273 (rtl_can_merge_blocks): New.
274 (cfg_layout_split_block): Do not alloc aux by hand.
275 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
276 merge_blocks.
277 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
278 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
279 * cfgloopmanip.c (loop_split_edge_with): Likewise.
280 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
281
282 * basic-block.h (basic_block_def): Add field 'rbi'.
283 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
284 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
285 * cfg.c (entry_exit_blocks): Add new field.
286 * cfglayout.c: Include alloc-pool.h;
287 (cfg_layout_pool): New.
288 (record_effective_endpoints, fixup_reorder_chain,
289 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
290 of rbi.
291 (cfg_layout_initialize_rbi): New function.
292 (cfg_layout_initialize): Use it.
293 (cfg_layout_finalize): Clear rbi fields.
294 * cfglayout.h (RBI): Kill.
295 (cfg_layout_initialize_rbi): Declare.
296 * cfgloopmanip.c (copy_bbs): Use rbi.
297 (record_exit_edges): Likewise.
298 (duplicate_loop_to_header_edge): Likewise.
299 * cfgrtl.c (cfg_layout_create_basic_block): Use
300 cfg_layout_initialize_rbi.
301 (cfg_layout_split_block): Use rbi.
302 (cfg_layout_delete_block): Likewise.
303 * loop-init.c (loop_optimizer_finalize): Likewise.
304 * loop-unswitch.c (unswitch_loop): Likewise.
305 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
306
307 * cfgrtl.c: Update comments.
308 (try_redirect_by_replacing_jump): New argument.
309 (redirect_branch_edge): Break out from ...
310 (rtl_redirect_edge_and_branch): ... this one.
311 (update_cfg_after_block_merging): Break out from ...
312 (rtl_merge_blocks): ... this one.
313 (cfg_layout_split_edge): New.
314 (cfg_layout_merge_blocks): New.
315 (cfg_layout_can_merge_blocks_p): New.
316 (cfg_layout_redirect_edge_and_branch): Reorganize.
317 (cfg_layout_rtl_cfg_hooks): Fill in.
318 (cfg_layout_delete_block): Kill barriers.
319 * cfganal.c (can_fallthru): Deal with exit blocks
320 * cfglayout.c (cfg_layout_function_header): New function
321 (record_effective_endpoints): Record function header.
322 (fixup_reorder_chain): Fixup dead jumptables; place header
323
324 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
325 * bb-reorder.c (cfg_layout_initialize): Update call.
326 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
327 edges in cfglayout mode.
328 * cfglayout.c (cleanup_unconditional_jumps): Kill.
329 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
330 * cfglayout.h (cfg_layout_initialize): Update prototype.
331 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
332 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
333 * flow.c (propagate_block): Do not crash when basic block ends
334 by first insn in the chain.
335 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
336 do loop discovery.
337 * tracer.c (tracer): Update call of cfg_layout_initialize.
338
dd220c49
KG
3392003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
340
341 * Makefile.in: Use dependency variables in lieu of explicit
342 files throughout.
343
fa5b060f
SB
3442003-07-03 Steven Bosscher <steven@gcc.gnu.org>
345
346 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
347 * tree.h: ...to here.
348
fae778eb
KH
3492003-07-03 Kazu Hirata <kazu@cs.umass.edu>
350
351 * config/s390/2064.md: Fix comment typos.
352 * config/s390/2084.md: Likewise.
353 * config/s390/s390.c: Likewise.
354 * config/s390/s390.md: Likewise.
355 * config/sh/sh.c: Likewise.
356 * config/sh/sh.h: Likewise.
357 * config/sh/sh.md: Likewise.
358 * config/sparc/sparc.c: Likewise.
359 * config/sparc/sparc.h: Likewise.
360 * config/sparc/sparc.md: Likewise.
361 * config/stormy16/stormy16.c: Likewise.
362 * config/stormy16/stormy16.h: Likewise.
363 * config/stormy16/stormy-abi: Fix a typo.
364
58eabcb1
KC
3652003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
366
367 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
368
af261903
KG
3692003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
370
371 * config/mips/mips.h (save_argv): Delete.
372
a11c61d2
RS
3732003-07-03 Roger Sayle <roger@eyesopen.com>
374
375 PR target/10700
376 * fold-const.c (extract_muldiv_1): There's nothing that can be done
377 if the expression is a SAVE_EXPR.
378
dab66575
KH
3792003-07-03 Kazu Hirata <kazu@cs.umass.edu>
380
381 * config/m32r/m32r.c: Fix comment typos.
382 * config/m68hc11/m68hc11.c: Likewise.
383 * config/m68hc11/m68hc11.h: Likewise.
384 * config/m68k/m68k.c: Likewise.
385 * config/mcore/mcore.c: Likewise.
386 * config/mcore/mcore.h: Likewise.
387 * config/mcore/mcore.md: Likewise.
388 * config/mips/mips.c: Likewise.
389 * config/mips/mips.h: Likewise.
390 * config/mips/mips.md: Likewise.
391 * config/mips/netbsd.h: Likewise.
392 * config/mn10300/mn10300.c: Likewise.
393
8837d828
AS
3942003-07-03 Andreas Schwab <schwab@suse.de>
395
396 * dbxout.c (pending_bincls): Move decl down inside
397 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
398
dd107e66
NS
3992003-07-02 Nathan Sidwell <nathan@codesourcery.com>
400
401 * rtl.h (NOTE_DATA): Refer to whole union.
402 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
403
8821d091
EB
4042003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
405
406 PR optimization/11381
407 * simplify-rtx.c (simplify_relational_operation): Check that
408 two equal operands have no side-effects before simplifying
409 the comparison.
410
7960bf22
JL
4112003-07-02 Jeff Law <law@redhat.com>
412
413 * expr.c (do_store_flag): Remove special case folding for
414 single bit tests. Instead call back into the commonized folder
415 routine.
416 * fold-const.c (fold_single_bit_test): New function, mostly
417 extracted from do_store_flag, with an additional case extracted
418 from fold.
419 (fold): Call fold_single_bit_test appropriately.
420 * tree.h (fold_single_bit_test): Prototype.
421
3dce1408
ZW
4222003-07-02 Zack Weinberg <zack@codesourcery.com>
423
424 * system.h: Include filenames.h.
425 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
426 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
427 define based on HAVE_DOS_BASED_FILE_SYSTEM.
428 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
429 * config/i386/xm-mingw32.h: Don't define
430 HAVE_DOS_BASED_FILE_SYSTEM,
431 DIR_SEPARATOR, or DIR_SEPARATOR_2.
432 * doc/hostconfig.texi: Update to match.
433
434 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
435 config/i386/cygwin.h:
436 Use IS_ABSOLUTE_PATH throughout.
437 * gcc.c (DIR_UP): Delete, unused.
438 * protoize.c (IS_SAME_PATH): Define in terms of
439 FILENAME_CMP.
440 (is_abspath): Delete.
441
c51e6d85
KH
4422003-07-02 Kazu Hirata <kazu@cs.umass.edu>
443
444 * config/i386/emmintrin.h: Fix comment typos.
445 * config/i386/i386.c: Likewise.
446 * config/i386/i386.h: Likewise.
447 * config/i386/sco5.h: Likewise.
448 * config/ia64/ia64.c: Likewise.
449 * config/ia64/itanium2.md: Likewise.
450
5ec3a5a7
L
4512003-07-02 H.J. Lu <hongjiu.lu@intel.com>
452
453 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
454 DBX_USE_BINCL.
455 (emit_bincl_stab): Same.
456 (emit_pending_bincls): Same.
457
fad37371
KH
4582003-07-02 Kazu Hirata <kazu@cs.umass.edu>
459
460 * config/h8300/h8300.c (compute_mov_length): Fix the length of
461 loading CONST0_RTX (SFmode).
462 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
463 'G' to CONST0_RTX (SFmode).
464 * config/h8300/h8300.md (movsf_h8300): Change the first
465 constraint to 'G'.
466 (movsf_h8300h): Likewise.
467
b86f6cd9
NB
4682003-07-02 Neil Booth <neil@daikokuya.co.uk>
469
470 * c-common.h (c_common_init_options): New prototype.
471 * c-opts.c (deferred_size): Remove.
472 (defer_opt): Array is now pre-allocated.
473 (c_common_init_options): Pre-allocate deferred_opts. Make
474 lang_flags unsigned.
475 (push_command_line_options): Free deferred_opts.
476 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
477 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
478 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
479 * langhooks.h (struct lang_hooks): New prototype for init_options.
480 * main.c (main): Cast argv.
481 * opts.c (handle_option, handle_options): Update prototypes.
482 (decode_options): save_argc, save_argv are not global. Constify.
483 * opts.h (decode_options): New prototype.
484 * toplev.c (general_init): New protoype.
485 (save_argv): Make static.
486 (save_argc): Remove.
487 (print_switch_values, general_init): Constify.
488 (toplev_main): Save argv.
489 * toplev.h (toplev_main): Update prototype.
490 (save_argc, save_argv): Remove.
491
f23b9d52
DE
4922003-07-02 David Edelsohn <edelsohn@gnu.org>
493
494 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
495 (emit_bincl_stab): Same.
496 (emit_pending_bincls): Same.
497
300e89a2
NS
4982003-07-02 Nathan Sidwell <nathan@codesourcery.com>
499
500 PR c++/11072
501 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
502
eaac6968
AS
5032003-07-02 Andreas Schwab <schwab@suse.de>
504
505 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
506
1a8c4ca6
EB
5072003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
508
509 PR optimization/11210
510 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
511 about the behaviour with regard to bitfields.
512 * fold-const (decode_field_reference): Record outermost type in
513 case the expression is a NOP. Strip all NOPs. Set the signedness
514 to that of the outermost type (if any) when the bitsize is equal
515 to the size of the type.
516
23cdfcf7
RS
5172003-07-02 Richard Sandiford <rsandifo@redhat.com>
518
519 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
520 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
521 (adddi3_internal_3, addsi3_internal_2): Likewise.
522
6f2993e5
RS
5232003-07-02 Richard Sandiford <rsandifo@redhat.com>
524
525 * config/mips/mips.c (machine_function): Add new fields:
526 ignore_hazard_length_p and all_noreorder_p.
527 (mips_flag_delayed_branch): New variable.
528 (override_options): Treat '/' as an operand punctuation character.
529 Set up mips_flag_delayed_branch.
530 (print_operand): Handle '/'.
531 (mips_output_function_prologue): Put the whole function in
532 .set noreorder and .set nomacro if all_noreorder_p is true.
533 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
534 (mips16_optimize_gp): Remove "first insn" parameter.
535 (mips16_lay_out_constants): New function, split out from mips_reorg.
536 (mips_avoid_hazard, mips_avoid_hazards): New functions.
537 (mips_reorg): For mips16 code, call mips16_lay_out_constant
538 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
539 do delayed-branch scheduling followed by hazard detection.
540 (mips_adjust_insn_length): Only account for hazards if
541 !ignore_hazard_length_p.
542 (mips_output_load_label): Add a nop to the o32 sequence if
543 the target suffers from load delays.
544 (mips_output_conditional_branch): Add %/ to the end of branches.
545 (mips_output_division): Fill the branch delay slot with %#.
546 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
547 instructions. End all other %* branches with %/.
548 (ffssi2, ffsdi2): Fix lengths.
549 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
550 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
551 (fix_truncsfsi2_macro): Likewise.
552 (mov_lwl): Set hazard to "none".
553 (ashldi3_internal): Fill the branch delay slot with %#.
554 (ashrdi3_internal, lshrdi3_internal): Likewise.
555 (exception_receiver): Explicitly set $28.
556 (hazard_nop): New pattern.
557
0184bd46
JH
558Wed Jul 2 08:12:36 CEST 2003 Jan Hubicka <jh@suse.cz>
559
560 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
561 before calling tree_inlinable_function_p.
562
1a78e5a7
RO
5632003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
564
565 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
566 <internal/stdio_core.h> too.
567 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
568 <internal/wchar_core.h> too.
569 Substitute va_list uses in inline definition.
570 * fixinc/fixincl.x: Regenerate.
571
4c82f12b
RO
5722003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
573
574 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
575 Undef before redefinition.
576 (LABEL_AFTER_LOC): Likewise.
577 (DEFAULT_SIGNED_CHAR): Likewise.
578 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
579 Fix IRIX spelling.
3dce1408 580
4c82f12b
RO
581 * config/mips/iris3.h: Remove, unused.
582 * config/mips/iris4.h: Likewise.
583
584 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
585
586 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
587 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
588 target_cpu_default.
589
590 * config/mips/iris5.h: Move explicit includes ...
591 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
3dce1408 592
4c82f12b
RO
593 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
594 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
595 tm_defines.
596
597 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
598 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
599 target_cpu_default.
600
601 * config/mips/iris6.h: Fix IRIX spelling.
602 (MULTILIB_DEFAULTS): Undef before redefinition.
3dce1408 603
4c82f12b
RO
604 * config/mips/iris6.h: Move explicit includes ...
605 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
606
8bd87c4e
JH
607Wed Jul 2 02:16:48 CEST 2003 Jan Hubicka <jh@suse.cz>
608
609 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
610 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
611 Use next_needed field instead of aux to maintain the queue.
612 * cgraph.h (cgraph_node): Add next_needed.
613 (cgraph_varpool_node): Add next_needed; remove aux.
614 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
615
f6981e16
JH
616Wed Jul 2 02:12:51 CEST 2003 Jan Hubicka <jh@suse.cz>
617
618 * cgraphunit.c (cgraph_finalize_function): Set finalized.
619 (cgraph_finalize_function): Do not examine inlinablility.
620 (cgraph_finalize_compilation_unit): Do it here.
621 * cgraph.h (cgraph_local_info): Add finalized field.
622
d1c60855
RO
6232003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
624
625 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
626 (gt_pch_restore): Likewise.
627
093354e0
KH
6282003-07-01 Kazu Hirata <kazu@cs.umass.edu>
629
630 * config/alpha/alpha.c: Fix comment typos.
631 * config/alpha/elf.h: Likewise.
632 * config/arm/arm.c: Likewise.
633 * config/arm/arm.h: Likewise.
634 * config/arm/arm.md: Likewise.
635 * config/arm/t-arm-coff: Likewise.
636 * config/arm/t-strongarm-pe: Likewise.
637 * config/arm/xscale-elf.h: Likewise.
638 * config/avr/avr.h: Likewise.
639
ce47ca44
JL
6402003-07-01 Jeff Law <law@redhat.com>
641
642 * stmt.c (any_pending_cleanups): Remove another redundant test.
643
43b68ce5
DE
6442003-07-01 David Edelsohn <edelsohn@gnu.org>
645 J"orn Rennecke <joern.rennecke@superh.com>
646
647 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
648 for MEM case.
649
33e9d2aa
DP
6502003-07-01 Devang Patel <dpatel@apple.com>
651
652 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
653 (binclstatus): New.
3dce1408 654 (struct dbx_file): New members - bincl_status, pending_bincl_name and
33e9d2aa
DP
655 prev.
656 (pending_bincls): New.
657 (dbxout_init): Initialize new dbx_file members.
658 (dbxout_start_source_file): Same.
659 (emit_bincl_stab): New function.
660 (emit_pending_bincls): Same.
661 (emit_pending_bincls_if_required): Same.
3dce1408 662 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
33e9d2aa
DP
663 processed.
664 (dbxout_begin_block): Emit pending BINCL stabs.
665 (dbxout_end_block): Same.
666 (dbxout_function_decl): Same.
667 (dbxout_continue): Same.
668 (dbxout_type): Same.
669 (dbxout_class_name_qualifiers): Same.
670 (dbxout_symbol): Same.
671 (dbxout_symbol_location): Same.
672 (dbxout_parms): Same.
3dce1408 673
0108ae51
KG
6742003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
675
676 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
677 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
678
54ced33d
AJ
6792003-07-01 Andreas Jaeger <aj@suse.de>
680
681 * fold-const.c: Convert prototypes to ISO C90.
682 * function.c: Likewise.
683 * function.h: Likewise.
684
c0cbdbd9
KH
6852003-07-01 Kazu Hirata <kazu@cs.umass.edu>
686
687 * doc/contrib.texi: Fix typos.
688 * doc/invoke.texi: Likewise.
689 * doc/passes.texi: Likewise.
690 * doc/sourcebuild.texi: Likewise.
691 * doc/tm.texi: Likewise.
692
e0bb17a8
KH
6932003-07-01 Kazu Hirata <kazu@cs.umass.edu>
694
695 * basic-block.h: Fix comment typos.
696 * bb-reorder.c: Likewise.
697 * c-format.c: Likewise.
698 * cfgcleanup.c: Likewise.
699 * cfghooks.h: Likewise.
700 * cfgloop.c: Likewise.
701 * cfgloopmanip.c: Likewise.
702 * cfgrtl.c: Likewise.
703 * cgraph.h: Likewise.
704 * cgraphunit.c: Likewise.
705 * combine.c: Likewise.
706 * convert.c: Likewise.
707 * dbxout.c: Likewise.
708 * df.c: Likewise.
709 * df.h: Likewise.
710 * diagnostic.c: Likewise.
711 * dwarf2out.c: Likewise.
712 * et-forest.h: Likewise.
713 * flow.c: Likewise.
714 * fold-const.c: Likewise.
715 * function.h: Likewise.
716 * gcov-io.h: Likewise.
717 * gcov.c: Likewise.
718 * gcse.c: Likewise.
719 * genautomata.c: Likewise.
720 * ggc-common.c: Likewise.
721 * ggc-page.c: Likewise.
722 * loop-unroll.c: Likewise.
723 * loop-unswitch.c: Likewise.
724 * loop.c: Likewise.
725 * mips-tfile.c: Likewise.
726 * optabs.c: Likewise.
727 * ra-build.c: Likewise.
728 * ra-colorize.c: Likewise.
729 * ra-rewrite.c: Likewise.
730 * ra.h: Likewise.
731 * regmove.c: Likewise.
732 * reload.c: Likewise.
733 * rtlanal.c: Likewise.
734 * sched-ebb.c: Likewise.
735 * sched-int.h: Likewise.
736 * sched-vis.c: Likewise.
737 * sreal.c: Likewise.
738 * ssa-ccp.c: Likewise.
739 * ssa.c: Likewise.
740 * toplev.c: Likewise.
741 * tree-inline.c: Likewise.
742 * value-prof.c: Likewise.
743 * value-prof.h: Likewise.
744
5f2fc772
NS
7452003-07-01 Nathan Sidwell <nathan@codesourcery.com>
746
747 * rtl.h (emit_line_note_after): Remove.
748 (emit_note_copy_after, emit_note_copy): New.
749 * emit-rtl.c (reorder_insns_with_line_notes): Replace
750 emit_line_note_after with emit_note_copy_after.
751 (emit_insn_after_with_line_notes): Likewise.
752 (emit_line_note_after): Kill.
753 (emit_note_copy_after): New.
754 (emit_note_copy): New.
755 * function.c (emit_return_into_block): Use emit_note_copy_after.
756 (thread_prologue_and_epilogue_insns): Likewise.
757 * integrate.c (expand_inline_function): Use emit_note_copy.
758 (copy_insn_list): Likewise.
759 * unroll.c (copy_loop_body): Likewise.
760 * cfglayout.c (duplicate_insn_chain): Likewise.
761
5b030314
NS
7622003-07-01 Nathan Sidwell <nathan@codesourcery.com>
763
764 * c-tree.h (define_label): Replace filename and lineno arguments
765 with a location_t.
766 * c-decl.c (poplevel): Adjust define_label call.
767 (pop_label_level): Likewise.
768 (define_label): Replace filename and lineno arguments with a
769 location_t.
770 (store_parm_decls): Use DECL_SOURCE_LOCATION.
771 * c-parse.in (label): Adjust define_label call.
772
04df6730
NB
7732003-07-01 Neil Booth <neil@daikokuya.co.uk>
774
775 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
776 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
777 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
778 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
779 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
780
6cf9ac28
AJ
7812003-07-01 Andreas Jaeger <aj@suse.de>
782
783 * final.c: Convert prototypes to ISO C90.
784 * flow.c: Likewise.
785 * flags.h: Likewise.
786 * gcov-io.c: Likewise.
787 * gcov-io.h: Likewise.
788
4c20b2e7
BH
7892003-06-30 Bruno Haible <bruno@clisp.org>
790
791 PR middle-end/6578
792 * libgcc2.c (__subvsi3): Remove simplification that would not work
793 when subtracting -0x80000000.
794 (__subvdi3): Remove simplification that would return a wrong result.
795 (__mulvsi3): Fix overflow check.
796 (__absvdi2): Fix simplification that would return a wrong result.
797 (__mulvdi3): Fix overflow check.
798
de1f5659
JL
7992003-06-30 Jeff Law <law@redhat.com>
800
801 * stmt.c (any_pending_cleanups): Lose argument THIS_CONTOUR, it
802 was always passed in the value '1'. Simplify body appropriately.
803 * tree.h (any_pending_cleanups): Corresponding changes.
804 * calls.c: (expand_call): Corresponding changes.
805
6001794d
KH
8062003-06-30 Kazu Hirata <kazu@cs.umass.edu>
807
808 * combine.c (distribute_notes): Don't bother REG_WAS_0.
809 * cse.c (cse_insn): Likewise.
810 * final.c (final_scan_insn): Likewise.
811 * jump.c (duplicate_loop_exit_test): Likewise.
812 * rtl.c (reg_note_name): Remove REG_WAS_0.
813 * rtl.h (REG_WAS_0): Remove.
814 * unroll.c (final_reg_note_copy): Don't bother REG_WAS_0.
815 * config/avr/avr.c (output_movqi): Don't use reg_was_0.
816 (output_movhi): Likewise.
817 (output_movsisf): Likewise.
818 (reg_was_0): Remove.
819 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't use
820 REG_WAS_0.
821 (m68hc11_gen_movqi): Likewise.
822 * config/vax/vax-protos.h: Remove the prototype for
823 reg_was_0_p.
824 * config/vax/vax.c (follows_p): Remove.
825 (reg_was_0_p): Likewise.
826 * config/vax/vax.md (movsi): Don't use reg_was_0_p.
827 (movhi): Likewise.
828 (movqi): Likewise.
829 * doc/rtl.texi (REG_WAS_0): Remove.
830
7d896ee9
MM
8312003-06-30 Mark Mitchell <mark@codesourcery.com>
832
833 * config/rs6000/spe.h (__ev_set_spefscr_frmc): Set the flag.
834
e677f70c 8352003-06-30 Bob Wilson <bob.wilson@acm.org>
6cf9ac28 836
e677f70c
BW
837 * config/xtensa/lib1funcs.asm: Use "xtensa-config.h" from
838 top-level include directory.
839 * config/xtensa/lib2funcs.S: Likewise.
840 * config/xtensa/xtensa.h: Likewise.
841 * config/xtensa/xtensa-config.h: Remove.
842 * doc/install.texi: Update location of "xtensa-config.h" header.
6cf9ac28 843
d3632d41
UW
8442003-06-30 Ulrich Weigand <uweigand@de.ibm.com>
845
846 * config/s390/s390.c (s390_extra_constraint): New function.
847 * config/s390/s390-protos.h (s390_extra_constraint): Declare it.
848 * config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
849 * config/s390/s390.c (q_constraint): Remove.
850 * config/s390/s390-protos.h (q_constraint): Likewise.
851 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Add 'R', 'S', 'T'.
852 (EXTRA_ADDRESS_CONSTRAINT): Define.
853
854 * config/s390/s390.c (larl_operand): Refuse out-of-range operands.
855 (DISP_IN_RANGE, s390_short_displacement): New.
856 (legitimate_reload_operand_p): Support long displacements.
857 (s390_decompose_address): Likewise.
858 (legitimize_pic_address): Likewise.
859 (legitimize_address): Likewise.
860 (s390_fixup_clobbered_return_reg): Likewise.
861 (s390_emit_prologue, s390_emit_epilogue): Likewise.
862 (s390_output_mi_thunk): Likewise.
863
864 * config/s390/s390.md (attr "op_type"): Add "RXY", "RSY", "SIY".
865 (attr "atype", attr "length"): Add defaults for new op_types.
866 (all insns): Change op_type attribute where appropriate.
867
868 ("*movdi_lay", "*movsi_lay", "*extendqidi2", "*extendqisi2"): New insns.
869 ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", *tmqi_mem",
870 "*tstsi", "*tstsi_cconly", "*tsthiCCT", "*tsthiCCT_cconly",
871 "*tsthi", "*tsthi_cconly", "*tstqiCCT", "*tstqiCCT_cconly",
872 "*tstqi", "*tstqi_cconly", "*cmpsi_ccs_sign", "*cmpsi_ccs",
6cf9ac28 873 "*cmpsi_ccu", "*cmphi_ccu", "*cmpqi_ccu", "*cli",
d3632d41
UW
874 "movti", "*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
875 "movqi", "*movstrictqi", "*movstricthi", "movstrictsi",
6cf9ac28 876 "*movdf_64", "*movdf_31", "*movsf",
d3632d41 877 "*load_multiple_si", "*store_multiple_di",
6cf9ac28
AJ
878 "*sethighqisi", "*sethighhisi", "*sethighqidi_31", "*extendhisi2",
879 "*la_64", "*la_31", "*la_31_and", "force_la_31",
d3632d41
UW
880 "*addsi3_carry1_cc", *addsi3_carry1_cconly",
881 "*addsi3_carry2_cc", *addsi3_carry2_cconly",
882 "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2",
6cf9ac28
AJ
883 "*addsi3_sign", "*addsi3_sub", "addsi3",
884 "*subsi3_borrow_cc", "*subsi3_borrow_cconly", "*subsi3_cc",
d3632d41
UW
885 "*subsi3_cconly", "*subsi3_sign", "*subsi3_sub", "subsi3",
886 "mulsi3"
887 "*andsi3_cc", "*andsi3_cconly", "andsi3",
888 "*andqi3_ss", "*andqi3_ss_inv",
889 "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
890 "*iorqi3_ss", "*iorqi3_ss_inv",
891 "*xorsi3_cc", "*xorsi3_cconly", "xorsi3",
892 "*xorqi3_ss", "*xorqi3_ss_inv",
893 "*tls_load_31"): Add alternatives for long-displacement instructions.
894
895 ("*cmpdf_ccs", "*cmpdf_ccs_ibm", "*cmpsf_ccs", "*cmpsf_ccs_ibm",
896 "*load_multiple_di", "*store_multiple_di",
6cf9ac28 897 "*sethighqidi_64", "*zero_extendhisi2_31",
d3632d41
UW
898 "truncdfsf2_ibm", "extendsfdf2_ieee", "extendsfdf2_ibm",
899 "adddf3", "*adddf3", "*adddf3_ibm",
900 "addsf3", "*addsf3", "*addsf3_ibm",
901 "subdf3", "*subdf3", "*subdf3_ibm",
902 "subsf3", "*subsf3", "*subsf3_ibm",
903 "mulsi_6432", "divmoddisi3",
904 "muldf3", "*muldf3", "*muldf3_ibm",
905 "mulsf3", "*mulsf3", "*mulsf3_ibm",
906 "divdf3", "*divdf3", "*divdf3_ibm",
907 "divsf3", "div*sf3", "*divsf3_ibm",
6cf9ac28 908 "sqrtdf2", "sqrtsf2",
d3632d41
UW
909 "*cjump_long", "*icjump_long", "indirect_jump", "casesi_jump",
910 "*doloop_si_long", "*doloop_di_long", "bas_64", "bas_31",
6cf9ac28
AJ
911 "bas_r_64", "bas_r_31", "bas_tls_31", "bas_tls_64"): Adapt memory
912 and address constraints for instructions that do not accept long
d3632d41
UW
913 displacements.
914
52609473 9152003-06-30 Hartmut Penner <hpenner@de.ibm.com>
3dce1408 916 Ulrich Weigand <uweigand@de.ibm.com>
52609473
HP
917
918 * config/s390/2084.md: New file.
919 * config/s390/s390.md: Include it.
920 * config/s390/s390.c (s390_adjust_priority): New function.
921 (TARGET_SCHED_ADJUST_PRIORITY): Define.
922 (s390_first_cycle_multipass_dfa_lookahead): New function.
923 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
924 (s390_sched_reorder2): New function.
925 (TARGET_SCHED_REORDER2): Define.
926 (s390_adjust_cost): Support PROCESSOR_2084_Z990 cpu type.
927 (s390_issue_rate): Likewise.
928
ed2df68b
JH
929Mon Jun 30 23:47:33 CEST 2003 Jan Hubicka <jh@suse.cz>
930
931 * Makefile.in (GTFILES): Add cgraph.h.
932 * cgraph.c (known_decls): Remove.
933 (cgraph_hash, cgraph_nodes, cgraph_nodes_queue,
934 cgraph_varpool_hash, cgraph_varpool_nodes_queue): GTYize.
935 (cgraph_node): Do not allocate known_decls; use polutate hashtable.
936 (cgraph_varpool_node): Likewise; add next pointer.
937 (cgraph_varpool_nodes): New static variable.
938 * cgraph.h (cgraph_local_info, cgraph_global_info, cgraph_rtl_info,
939 cgraph_node, cgraph_edge, cgraph_varpool_node, cgraph_nodes, cgraph_n_nodes,
940 cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): GTYize.
941 * gengtype.c (open_base_files): Include cgraph.h
942
f11c1f90
VR
9432003-06-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
944
945 * Changelog: Remove ">>>>>>>" from previous change.
946
109b748d
VR
9472003-06-30 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
948
949 * config/cris/cris.c: Fix spelling for "testcase".
950 * config/cris/cris.h: Likewise.
951 * config/cris/cris.md: Likewise.
952 * config/mmix/crti.asm: Likewise.
953 * config/mmix/mmix.h: Likewise.
954 * config/mmix/mmix.md: Likewise.
955
90b97100
KH
9562003-06-30 Kazu Hirata <kazu@cs.umass.edu>
957
958 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Make it always
959 1.
960
f13e0d4e
UW
9612003-06-30 Ulrich Weigand <uweigand@de.ibm.com>
962
963 * config.gcc [s390*-*-*]: Support --with-arch, --with-tune, and
964 --with-mode configure options.
965 * config/s390/s390.h (OPTION_DEFAULT_SPECS): Define.
966 (DRIVER_SELF_SPECS): Define.
967 * config/s390/linux.h (ASM_SPEC): Pass architecture mode and cpu
968 architecture to assembler.
969 (LINK_SPEC): Merge 31-bit and 64-bit variants.
970 (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC, EXTRA_SPECS): Remove.
6cf9ac28 971 * config/s390/s390.c (override_options): New default rules for
f13e0d4e
UW
972 architecture mode and cpu architecture selection.
973 * doc/invoke.texi (-mesa, -mzarch, -march, -mtune): Document
974 new default rules.
6cf9ac28 975
f13e0d4e
UW
976 * config/s390/s390.h (enum processor_type): Add PROCESSOR_2084_Z990.
977 * config/s390/s390.md (attr "cpu"): Add "z990" processor type.
6cf9ac28 978 * config/s390/s390.c (override_options): Add "z990" to
f13e0d4e
UW
979 processor_alias_table.
980 * doc/invoke.texi (-march): Document "z990" processor type.
981
982 * config/s390/s390.c (s390_tune_flags, s390_arch_flags): New variables.
983 * config/s390/s390.h (s390_tune_flags, s390_arch_flags): Declare.
984 (enum processor_flags, TARGET_CPU_IEEE_FLOAT, TARGET_CPU_ZARCH,
985 TARGET_CPU_LONG_DISPLACEMENT, TARGET_LONG_DISPLACEMENT): New.
6cf9ac28 986 * config/s390/s390.c (override_options): Replace enum pta_flags by
f13e0d4e
UW
987 enum processor_flags. Fill in s390_tune_flags and s390_arch_flags.
988
989 * config/s390/s390.c (s390_cpu): Rename to ...
990 (s390_tune): ... this.
991 * config/s390/s390.h (s390_cpu, s390_tune): Likewise.
992 * config/s390/s390.c (s390_issue_rate, override_options): Likewise.
993 * config/s390/s390.md (attr "cpu"): Likewise.
994
37fa72e9
NB
9952003-06-30 Neil Booth <neil@daikokuya.co.uk>
996
997 * c-common.c (enum c_language_kind, flag_objc): Remove.
998 (fix_string_type, check_case_value, c_common_nodes_and_builtins,
999 c_add_case_label, finish_label_addr_expr, boolean_increment):
1000 Use c_dialect_ macros.
1001 * c-common.h (enum c_language_kind): Extend.
1002 (c_dialect_cxx, c_dialect_objc): New.
1003 (flag_objc): Remove.
1004 (c_common_init_options): Update prototype.
1005 * c-cppbuiltin.c (define__GNUC__, c_cpp_builtins): Use c_dialect_
1006 macros.
1007 * c-decl.c (finsih_decl, grokfield, finish_struct): Use c_dialect_
1008 macros.
1009 * c-format.c (C_STD_VER, C_STD_NAME): Similarly.
1010 * c-lang.c (c_init_options): Remove.
1011 (c_language): Define.
1012 (LANG_HOOKS_INIT_OPTIONS): Use common hook.
1013 * c-lex.c (lex_charconst): Use c_dialect_ macros.
1014 * c-opts.c (lang_flags): Make function-local.
1015 (c_common_init_options): Use c_dialect_ macros. Handle
1016 C++ diagnostic requirements.
1017 (c_common_handle_option, c_common_post_options): Use flag_cxx.
1018 * c-parse.in (init_reswords): Use c_dialect_objc ().
1019 * c-pch.c (get_ident): Use c_language.
1020 * c-pretty-print.c (pp_c_bool_literal): Use c_dialect_ macros.
1021 * c-typeck.c (comptypes, build_c_cast): Similarly.
1022 * objc/objc-lang.c (c_language): Define.
1023 (LANG_HOOKS_INIT_OPTIONS): Use common hook.
1024 (objc_init_options): Remove.
1025
ec097612
KH
10262003-06-30 Kazu Hirata <kazu@cs.umass.edu>
1027
1028 * config/alpha/alpha.h (FUNCTION_ARG_PADDING): Remove.
1029 * config/alpha/unicosmk.h: Don't #undef FUNCTION_ARG_PADDING.
1030
b10d2c9d
WB
10312003-06-30 Wolfgang Bangerth <bangerth@dealii.org>
1032
1033 * doc/sourcebuild.texi: Don't reference gnats.html any more.
1034
81983b04
KH
10352003-06-30 Kazu Hirata <kazu@cs.umass.edu>
1036
1037 * config/h8300/h8300.c (compute_mov_length): Fix length of
1038 mov:SF on H8/300.
1039
1e0b938e
NC
10402003-06-30 Nick Clifton <nickc@redhat.com>
1041
1042 * config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Make defintion
1043 constant.
1044
a9bce3ab
JH
1045Mon Jun 30 15:36:29 CEST 2003 Jan Hubicka <jh@suse.cz>
1046
1047 (fyl2x_sfxf3, fyl2x_dfxf3, fscale_sfxf3, fscale_dfxf3): Fix condition.
1048
46c07df8
HP
10492003-06-30 Hartmut Penner <hpenner@de.ibm.com>
1050
3dce1408
ZW
1051 * config/rs6000/rs6000.c (rs6000_split_altivec_in_gprs): New function.
1052 (altivec_in_gprs_p): New function.
46c07df8 1053
6cf9ac28 1054 * config/rs6000/rs6000-protos (rs6000_split_altivec_in_gprs): New
46c07df8
HP
1055 prototype.
1056 (altivec_in_gprs_p): New prototype.
1057
1058 * config/rs6000/altivec.md (*movv4si_internal): Change
1059 multi-assembler alternative to '#'. Add postreload splitter to
1060 handle this cases.
1061 (*movv4hi_internal): Likewise.
1062 (*movv4qi_internal): Likewise.
1063 (*movv4sf_internal): Likewise.
1064
9d6bef95
JM
10652003-06-30 Jason Merrill <jason@redhat.com>
1066
1067 * defaults.h (PUSH_ARGS_REVERSED): Define default here.
1068 * calls.c: Not here.
1069
4e938719
BE
10702003-06-30 Ben Elliston <bje@wasabisystems.com>
1071
1072 * config/arm/arm.c (arm_rtx_costs): Remove #if 0 block.
1073 (bad_signed_byte_operand): Likewise.
1074 (arm_output_epilogue): Likewise.
1075 (arm_final_prescan_insn): Likewise.
1076
73383a81
RO
10772003-06-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1078
1079 * cfgrtl.c (mark_killed_regs): Cast HARD_REGNO_NREGS to int.
1080
2d583dcb
RO
10812003-06-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1082
1083 * c-pch.c (c_common_write_pch): Flush asm_out_file to allow for
1084 subsequent writes.
1085
3cf54412
JH
1086Mon Jun 30 10:03:02 CEST 2003 Jan Hubicka <jh@suse.cz>
1087
1088 * cfgrtl.c (verify_flow_info): Accept degenerated condjumps
1089 in cfglayout mode.
1090
1f48e56d
JH
1091Mon Jun 30 09:52:39 CEST 2003 Jan Hubicka <jh@suse.cz>
1092
1093 * i386.c (standard_80387_constant_p): Accept TFmode constants too.
1094 (init_ext_80387_constants): Likewise.
1095 (standard_80387_constant_rtx): Likewise.
1096 * i386.md (atanxf): Disable for TARGET_128BIT_LONG_LONG
1097 (atantf): Disable for !TARGET_128BIT_LONG_LONG
1098 (fyl2x_sfxf3, fyl2x_dfxf3): Accept TFmode operands.
1099 (fyl2x_xfxf3, fyl2x_tfxf3): Enable/disable as needed.
1100 (fscale_sfxf3, fscale_dfxf3): Accept TFmode operands.
1101 (fscale_xfxf3, fscale_tfxf3): Enable/disable as needed.
1102 (frndinttf2): New.
1103 (f2xm1tf2): New.
1104 (exp?f2): Use expsf2_tf when needed.
1105 (exp?f2_tf): New.
1106 (exptf): New.
1107
8f48afc1
US
11082003-06-29 Uwe Stieber <uwe@kaos-group.de>
1109
1110 * config.gcc (sh*-*-kaos*): Put tm_file setting in separate case
1111 statement from tmake_file set.
1112
bd235d86
JW
11132003-06-29 James E Wilson <wilson@tuliptree.org>
1114
1115 * reload.c (find_reloads): Change push_reloads to push_reload in
1116 comment.
1117 * reload1.c (eliminate_regs): Likewise.
1118 (dump_needs): Delete prototype for deleted function.
1119
280c1e0d
KG
11202003-06-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1121
1122 * builtin-attrs.def (gcc_diag, gcc_cdiag, gcc_cxxdiag): New
1123 format attributes.
1124 * c-format.c (enum format_type): Add gcc_diag_format_type,
1125 gcc_cdiag_format_type, and gcc_cxxdiag_format_type.
1126 (gcc_diag_length_specs, gcc_cdiag_length_specs,
1127 gcc_cxxdiag_length_specs, gcc_diag_flag_pairs,
1128 gcc_cdiag_flag_pairs, gcc_cxxdiag_flag_pairs, gcc_diag_flag_specs,
1129 gcc_cdiag_flag_specs, gcc_cxxdiag_flag_specs, gcc_diag_char_table,
1130 gcc_cdiag_char_table, gcc_cxxdiag_char_table): New.
1131 (format_types_orig): Add new data.
1132 (find_char_info_specifier_index, init_dynamic_diag_info): New
1133 functions.
1134 (handle_format_attribute): Update to handle new format attributes.
1135
29427b01
AL
11362003-06-29 Aaron W. LaFramboise <awlaframboise@aol.com>
1137
a22a0908 1138 * config/i386/gthr-win32.h (__GTHREAD_HIDE_WIN32API): Define to 1.
29427b01 1139
41ca24de
DH
11402003-06-29 Dara Hazeghi <dhazeghi@yahoo.com>
1141
1142 * doc/install.texi: Remove install documentation for obsoleted targets
1143 i?86-*-sco, i?86-*-sco3.2v4, powerpcle-*-pe, powerpcle-*-winnt,
1144 arm-*-aof.
1145 Update information about IA64 toolchain, AIX make requirements,
1146 and binutils for m68k-*-hpux and *-*-linuxaout targets.
1147
41b3243e
JH
1148Mon Jun 30 00:50:43 CEST 2003 Jan Hubicka <jh@suse.cz>
1149
1150 * regmove.c (regmove_optimize): Don't try to make src and dst match
1151 when they are in different modes.
1152
64e97443
JH
1153Sun Jun 29 23:06:32 CEST 2003 Jan Hubicka <jh@suse.cz>
1154
1155 * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2): Avoid
1156 busy work when builtin is not supported by the backend.
1157
51a7f205
ZD
11582003-06-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1159
1160 * loop.c (count_one_set): Fix detection of registers set in more
6cf9ac28 1161 than one basic block.
51a7f205 1162
4a023207
AJ
11632003-06-29 Andreas Jaeger <aj@suse.de>
1164
1165 * target-def.h: Remove usage of OBJECT_FORMAT_ROSE.
1166 * system.h: Poison OBJ_FORMAT_ROSE.
1167 * doc/tm.texi (Macros for Initialization): Remove documentatin of
1168 OBJECT_FORMAT_ROSE.
1169 * config/rs6000/lynx.h: Remove undef of OBJECT_FORMAT_ROSE.
1170 * collect2.c: Remove usage of OBJECT_FORMAT_ROSE.
5fad1c24
JDA
1171
11722003-06-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1173
3dce1408 1174 * pa.c (update_total_code_bytes): New function.
5fad1c24
JDA
1175 (last_address): Number of bytes output for a function and its
1176 associated thunks.
1177 (compute_frame_size): Use BITS_PER_UNIT.
1178 (pa_output_function_epilogue): Compute last_address. Use
1179 update_total_code_bytes.
1180 (output_lbranch): Handle long branch on portable runtime.
1181 (attr_length_millicode_call, attr_length_call,
1182 attr_length_indirect_call): Only use total_code_bytes for calls in
1183 the text section.
1184 (output_call): Only use an indirect call sequence when the target is
1185 not local.
1186 (pa_asm_output_mi_thunk): Handle updating of total_code_bytes. Improve
1187 test to determine when an IA-relative branch can be used. Add various
1188 long branch sequences. Avoid using an indirect branch on all ports
1189 except SOM.
1190
342e2b74
UW
11912003-06-29 Ulrich Weigand <uweigand@de.ibm.com>
1192
1193 * expr.c (clear_by_pieces): Fix prototype.
1194
7080f735
AJ
11952003-06-29 Andreas Jaeger <aj@suse.de>
1196
1197 * cse.c: Convert prototypes to ISO C90.
1198 * cselib.c: Likewise.
1199 * cselib.h: Likewise.
1200 * dbxout.c: Likewise.
1201 * debug.c: Likewise.
1202 * df.c: Likewise.
1203 * df.h: Likewise.
1204 * dojump.c: Likewise.
1205 * doloop.c: Likewise.
1206 * dominance.c: Likewise.
1207 * dwarf2asm.c: Likewise.
1208 * dwarf2out.c: Likewise.
1209 * dwarf2out.h: Likewise.
1210 * dwarfout.c: Likewise.
502b8322
AJ
1211 * except.c: Likewise.
1212 * except.h: Likewise.
1213 * emit-rtl.c: Likewise.
1214 * et-forest.c: Likewise.
1215 * et-forest.h: Likewise.
1216 * except.c: Likewise.
1217 * explow.c: Likewise.
1218 * expmed.c: Likewise.
1219 * expr.c: Likewise.
1220 * expr.h: Likewise.
7080f735 1221
f9da5064
KH
12222003-06-29 Kazu Hirata <kazu@cs.umass.edu>
1223
1224 * alloc-pool.c: Fix comment formatting.
1225 * bitmap.c: Likewise.
1226 * bitmap.h: Likewise.
1227 * bt-load.c: Likewise.
1228 * builtins.c: Likewise.
1229 * caller-save.c: Likewise.
1230 * cfganal.c: Likewise.
1231 * cfgrtl.c: Likewise.
1232 * collect2.c: Likewise.
1233 * cse.c: Likewise.
1234 * df.c: Likewise.
1235 * diagnostic.c: Likewise.
1236 * dwarf2out.c: Likewise.
1237 * dwarfout.c: Likewise.
1238 * expmed.c: Likewise.
1239 * final.c: Likewise.
1240 * flags.h: Likewise.
1241 * fold-const.c: Likewise.
1242 * gcc.c: Likewise.
1243 * gcov-io.h: Likewise.
1244 * gcov.c: Likewise.
1245 * genattrtab.c: Likewise.
1246 * genautomata.c: Likewise.
1247 * libgcov.c: Likewise.
1248 * mips-tfile.c: Likewise.
1249 * optabs.c: Likewise.
1250 * prefix.c: Likewise.
1251 * rtlanal.c: Likewise.
1252 * stmt.c: Likewise.
1253 * stor-layout.c: Likewise.
1254 * toplev.c: Likewise.
1255 * varasm.c: Likewise.
1256 * vmsdbgout.c: Likewise.
1257
329d586f
KH
12582003-06-29 Kazu Hirata <kazu@cs.umass.edu>
1259
1260 * expr.c (emit_single_push_insn): If padding is needed
1261 downward, adjust the stack pointer first, and then store the
1262 data into the stack location using an offset.
1263
159b3be1
AJ
12642003-06-29 Andreas Jaeger <aj@suse.de>
1265
1266 * collect2.h: Convert prototypes to ISO C90.
1267 * collect2.c: Likewise.
1268 * conflict.c: Likewise.
1269 * coverage.c: Likewise.
1270 * convert.h: Likewise.
1271 * convert.c: Likewise.
1272
4714db5a
NS
12732003-06-29 Nathan Sidwell <nathan@codesourcery.com>
1274
1275 * c-decl.c (c_init_decl_processing): Use a location_t. Set input
1276 filename to <internal>.
1277 * tree.c (make_node): Just copy the current location.
1278
df7fb8f9
EB
12792003-06-29 Eric Botcazou <ebotcazou@libertysurf.fr>
1280
1281 PR optimization/11210
1282 * fold-const (decode_field_reference): Revert 2003-06-26 patch.
1283
dfb82771
NB
12842003-06-29 Neil Booth <neil@daikokuya.co.uk>
1285
1286 * toplev.c (flag_dummy): Remove.
1287 (f_options): Restore flag pointers.
1288
7177e720
DE
12892003-06-29 David Edelsohn <edelsohn@gnu.org>
1290
1291 * config/rs6000/rs6000.c (processor_target_table): Add 970.
e601f149 1292 * config.gcc: Add 970.
7177e720 1293
485bad26
KH
12942003-06-29 Kazu Hirata <kazu@cs.umass.edu>
1295
1296 * dwarf2out.c (add_AT_string): Replace ggc_alloc_string (X,
1297 -1) with ggc_strdup.
1298 * stmt.c (expand_asm_operands): Likewise.
1299 * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
1300
b01258dd
KH
13012003-06-28 Kazu Hirata <kazu@cs.umass.edu>
1302
1303 * config/ip2k/ip2k.c (ip2k_reorg): Use INSN_P instead of its
1304 definition.
1305
d6553b54
FS
13062003-06-29 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
1307
1308 * opts.c: Include insn-attr.h.
1309 * Makefile.in (opts.o): Depend on INSN_ATTR_H.
1310
57856e4d
R
13112003-06-27 J"orn Rennecke <joern.rennecke@superh.com>
1312
1313 * flow.c (propagate_one_insn): Use proper test for a register
1314 being part of the return value.
1315
cef1ccd6
KH
13162003-06-28 Kazu Hirata <kazu@cs.umass.edu>
1317
1318 * config/avr/avr.c: Fix a comment typo.
1319
62e4d780
KH
13202003-06-28 Kazu Hirata <kazu@cs.umass.edu>
1321
1322 * config/avr/avr-protos.h: Replace avr_simplify_comparision_p
1323 with avr_simplify_comparison_p.
1324 * config/avr/avr.c: Likewise.
1325
1e417e6a
KH
13262003-06-28 Kazu Hirata <kazu@cs.umass.edu>
1327
1328 * builtins.c: Follow spelling conventions.
1329 * cgraph.c: Likewise.
1330 * cpplex.c: Likewise.
1331 * config/arm/arm.c: Likewise.
1332 * config/arm/iwmmxt.md: Likewise.
1333 * config/c4x/c4x-modes.def: Likewise.
1334 * config/c4x/c4x.c: Likewise.
1335 * config/c4x/c4x.h: Likewise.
1336 * config/c4x/c4x.md: Likewise.
1337 * config/i386/i386-interix.h: Likewise.
1338 * config/mips/mips.h: Likewise.
1339
d5512978
NB
13402003-06-28 Neil Booth <neil@daikokuya.co.uk>
1341
1342 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Predicate
1343 __mc68020__ on TARGET_68020.
1344
19cff4db
KH
13452003-06-28 Kazu Hirata <kazu@cs.umass.edu>
1346
1347 * config/h8300/h8300.c: Fix a comment typo.
1348
9a472a42
NS
13492003-06-28 Nathan Sidwell <nathan@codesourcery.com>
1350
cead95c2
NS
1351 * c-parse.in (yylexstring): Use a location_t.
1352
9a472a42
NS
1353 * diagnostic.h (diagnostic_set_info): Replace file and lineno
1354 parameters with a location_t.
1355 * diagnostic.c (diagnostic_set_info): Replace file and lineno
1356 parameters with a location_t.
1357 (inform, warning, pedwarn, error, sorry, fatal_error,
1358 internal_error, warning_with_decl, pedwarn_with_decl,
1359 error_with_decl): Adjust.
1360 * c-error.c (pedwarn_c99): Adjust.
1361 * c-format.c (status_warning): Adjust.
1362 * rtl-error.c (file_and_line_for_asm): Rename to ...
1363 (location_for_asm): Return a location_t.
1364 (diagnostic_for_asm): Adjust.
1365
debdeb5d
NB
13662003-06-28 Neil Booth <neil@daikokuya.co.uk>
1367
1368 * cpptrad.c (skip_macro_block_comment): New.
1369 (copy_comment): Use it if appropriate.
1370
735e8085
KH
13712003-06-28 Kazu Hirata <kazu@cs.umass.edu>
1372
1373 * gcse.c (compute_ld_motion_mems): Use INSN_P instead of its
1374 definition.
1375 (store_killed_in_insn): Likewise.
1376 * print-rtl.c (print_rtx): Likewise.
1377 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
1378 * config/m68hc11/m68hc11.c (dead_register_here): Likewise.
1379 (m68hc11_reassign_regs): Likewise.
1380 (m68hc11_reorg): Likewise.
1381
c707a408
GDR
13822003-06-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
1383
1384 * diagnostic.c (output_integer_with_precision): New macro.
1385 (output_format): Use it. Handle more format specifiers.
1386 (output_long_decimal): Remove.
1387 (output_unsigned_decimal): Likewise.
1388 (output_long_unsigned_decimal): Likewise.
1389 (output_octal): Likewise.
1390 (output_long_octal): Likewise.
1391 (output_hexadecimal): Likewise.
1392 (output_long_hexadecimal): Likewise.
1393 (output_long_long_decimal): Likewise.
1394
f9974026
AS
13952003-06-28 Andreas Schwab <schwab@suse.de>
1396
1397 * config/ia64/ia64.md: Follow recent emit_note API change.
1398
374a4e6c
NS
13992003-06-28 Nathan Sidwell <nathan@codesourcery.com>
1400
1401 * c-parse.in (%union): Replace filename & lineno with location.
1402 (save_filename, save_lineno): Remove.
1403 (save_location): New.
1404 (fndef, old_style_parm_decls_1, lineno_datadecl, lineno_decl,
1405 nested_function, notype_nested_function, if_prefix, lineno_stmt,
1406 lineno_label, label): Adjust.
1407
ae808627
JJ
14082003-06-28 Jakub Jelinek <jakub@redhat.com>
1409
1410 * builtins.c (c_strlen): Add only_value argument.
1411 Handle COND_EXPR and COMPOUND_EXPR.
1412 (expand_builtin_strlen): Optimize also strlen (i++ ? "foo" : "bar").
1413 Adjust c_strlen callers.
1414 (expand_builtin_strcpy, expand_builtin_strncpy,
1415 expand_builtin_strcmp, expand_builtin_strncmp,
1416 expand_builtin_fputs, expand_builtin_sprintf,
1417 fold_builtin): Adjust c_strlen callers.
1418
a487649c
JZ
14192003-06-28 Josef Zlomek <zlomekj@suse.cz>
1420
1421 * bb-reorder.c (find_traces_1_round): Do not send basic block
1422 to next round when we are in the last round.
1423
9756310a
NB
14242003-06-28 Neil Booth <neil@daikokuya.co.uk>
1425
1426 * Makefile.in: Update.
1427 * opts.c: Include tm_p.h.
1428 (handle_options): Make static.
1429 (decode_options): Copied from toplev.c.
1430 * opts.h (decode_options): New.
1431 * toplev.c (parse_options_and_default_flags): Move most to opts.c,
1432 some to...
1433 (general_init): ...here.
1434 (toplev_main): Use decode_options instead.
1435 * toplev.h (save_argc, save_argv): New.
1436
f7400894
KH
14372003-06-28 Kazu Hirata <kazu@cs.umass.edu>
1438
1439 * explow.c (find_next_ref): Remove.
1440 * rtl.h: Remove the prototype for find_next_ref.
1441
5591ef05
RS
14422003-06-27 Roger Sayle <roger@eyesopen.com>
1443
1444 * config/alpha/alpha.md (anonymous define_split): Adjust emit_note
1445 call to match recent API change.
1446
8ce33230
ZW
14472003-06-27 Zack Weinberg <zack@codesourcery.com>
1448
a6d682a0
ZW
1449 * dbxout.c (flag_debug_only_used_symbols): Delete redundant
1450 declaration.
1451
8ce33230
ZW
1452 * c-format.c (check_format_string, get_constant)
1453 * cfgrtl.c (rtl_split_edge):
1454 Mark the definition static, matching the forward declaration.
1455
396235c8
GN
14562003-06-27 Gunther Nikl <gni@gecko.de>
1457
1458 * unwind-c.c (PERSONALITY_FUNCTION): Delete duplicate define.
1459
1d6302b1
GN
1460 PR target/11014
1461 * config/m68k/m68k.c (m68k_output_mi_thunk): Use correct assembly
1462 syntax for MIT / MOTOROLA.
1463
b11e4747
GN
1464 PR other/10240
1465 * configure.in: Removed $(XCFLAGS) from BUILD_CFLAGS for build != host.
1466 * configure: Rebuilt.
1467
7a0ec607
CD
14682003-06-27 Chris Demetriou <cgd@broadcom.com>
1469
1470 * config/mips/mips.c (mips_build_va_list): Make padding in
1471 va_list structure explicit to avoid -Wpadded warnings.
1472
dc65c307
UW
14732003-06-27 Ulrich Weigand <uweigand@de.ibm.com>
1474
1475 * config/s390/s390.h (SECONDARY_OUTPUT_RELOAD_CLASS): Define.
1476 * config/s390/s390.c (s390_secondary_output_reload_class): New function.
8ce33230 1477 * config/s390/s390-protos.h (s390_secondary_output_reload_class):
dc65c307 1478 Declare it.
8ce33230 1479 * config/s390/s390.md ("reload_outti", "reload_outdi",
dc65c307
UW
1480 "reload_outdf"): New expanders.
1481
1482 * config/s390/s390.md ("movti" + splitters): Handle non-offsettable
1483 memory operands as source.
1484 ("movdi" + splitters): Likewise.
1485 ("movdf" + splitters): Likewise.
1486 * config/s390/s390.c (s390_split_ok_p): New function.
1487 * config/s390/s390-protos.h (s390_split_ok_p): Declare it.
1488
fa9ea255
KH
14892003-06-27 Kazu Hirata <kazu@cs.umass.edu>
1490
1491 * combine.c (force_to_mode): Replace the equality comparison
1492 of INTVALs with a pointer equality comparison.
1493 (simplify_comparison): Likewise.
1494
47c7b4d2
KH
14952003-06-27 Kazu Hirata <kazu@cs.umass.edu>
1496
1497 * jump.c (rtx_renumbered_equal_p): Replace an expression that
1498 is known to be 0 with 0.
1499
ebd7a7af
KH
15002003-06-27 Kazu Hirata <kazu@cs.umass.edu>
1501
1502 * gcse.c (expr_equiv_p): Replace expressions that are known to
1503 be 0 with 0.
1504
213d5fbc
KH
15052003-06-27 Kazu Hirata <kazu@cs.umass.edu>
1506
1507 * cse.c (fold_rtx): Replace the equality comparison of INTVALs
1508 with a pointer equality comparison.
1509
9df4f939
KH
15102003-06-27 Kazu Hirata <kazu@cs.umass.edu>
1511
1512 * rtlanal.c (reg_mentioned_p): Return 0 earlier if REG and IN
1513 are known to be not equivalent.
1514
7e4fb06a
RH
15152003-06-27 Richard Henderson <rth@redhat.com>
1516
1517 * config/alpha/alpha.c (function_arg): Don't pass small aggregates
1518 in floating point registers. Validate that we don't receive complex
1519 values here. Use #elif.
1520 (return_in_memory, function_value): New.
1521 (alpha_va_arg): Handle complex values as two arguments.
1522 * config/alpha/alpha.h (RETURN_IN_MEMORY): Use return_in_memory.
1523 (FUNCTION_VALUE, LIBCALL_VALUE): Use function_value.
1524 (SPLIT_COMPLEX_ARGS): New.
1525 * config/alpha/alpha-protos.h: Update.
1526
15272003-06-27 Ulrich Weigand <uweigand@de.ibm.com>
75d75435 1528
8ce33230
ZW
1529 * ggc-page.c (inverse_table): Change type of mult to size_t.
1530 (compute_inverse): Compute inverse using size_t, not unsigned int.
1531 Compute inverse also for sizes larger than half a machine page.
75d75435 1532
5c20c06c
JH
1533Fri Jun 27 18:36:12 CEST 2003 Jan Hubicka <jh@suse.cz>
1534
1535 * toplev.c (rest_of_decl_compilation): Only varpoolize argument
1536 when called before cgraph_optimize.
1537
720b7001
ZW
15382003-06-27 Zack Weinberg <zack@codesourcery.com>
1539
1540 * config/darwin.h, config/elfos.h, config/i960/i960-coff.h
1541 * config/m68k/coff.h: ASM_FILE_START_FILE_DIRECTIVE should
1542 be TARGET_ASM_FILE_START_FILE_DIRECTIVE.
1543
67f2899d
JH
1544Fri Jun 27 17:41:16 CEST 2003 Jan Hubicka <jh@suse.cz>
1545
1546 * cgraph.c (cgraph_node, cgraph_varpool_node): Avoid re-initializing
1547 of known_decls.
1548
37706dd1
HPN
15492003-06-27 Hans-Peter Nilsson <hp@axis.com>
1550
1551 * defaults.h (REGISTER_MOVE_COST): Define default here.
1552 * regclass.c: Don't define default REGISTER_MOVE_COST here.
1553 * reload.c, reload1.c: Ditto.
1554
45751525
RE
15552003-06-27 Richard Earnshaw <rearnsha@arm.com>
1556
1557 * flags.h: Really install previous change.
1558
2e040219
NS
15592003-06-27 Nathan Sidwell <nathan@codesourcery.com>
1560
1561 * rtl.h (emit_note): Remove FILE parameter.
1562 * emit-rtl.c (emit_line_note): Adjust emit_note call.
1563 (emit_note): Remove FILE parameter. Adjust.
1564 * builtins.c (expand_builtin_expect): Adjust emit_note call.
1565 * c-semantics.c (genrtl_scope_stmt): Likewise.
1566 (expand_stmt): Likewise.
1567 * cfglayout.c (reemit_insn_block_notes): Likewise.
1568 (duplicate_insn_chain): Likewise.
1569 * except.c (expand_eh_region_start, expand_eh_region_end,
1570 sjlj_emit_function_enter): Likewise.
1571 * explow.c (probe_stack_range): Likewise.
1572 * expr.c (emit_block_move_via_loop): Likewise.
1573 * function.c (init_function_start, expand_function_start,
1574 expand_function_end, thread_prologue_and_epilogue_insns): Likewise.
1575 * integrate.c (expand_inline_function, copy_insn_list): Likewise.
1576 * reg-stack.c (compensate_edge): Likewise.
1577 * reload1.c (reload): Likewise.
1578 * rtlanal.c (hoist_insn_to_edge): Likewise.
1579 * stmt.c (expand_fixup, expand_start_loop, expand_start_null_loop,
1580 expand_loop_continue_here, expand_end_loop, expand_continue_loop,
1581 expand_exit_loop_top_cond, expand_value_return,
1582 expand_start_bindings_and_block, expand_end_bindings,
1583 expand_decl_cleanup, expand_start_case): Likewise.
1584 * unroll.c (copy_loop_body
1585 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Likewise.
1586 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
1587 * config/rs6000/rs6000.c (rs6000_emit_eh_toc_restore,
1588 rs6000_emit_allocate_stack, rs6000_output_function_prologue,
1589 rs6000_output_function_epilogue, rs6000_output_mi_thunk): Likewise.
1590 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
1591 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
1592
bc4721b8
NS
15932003-06-27 Nathan Sidwell <nathan@codesourcery.com>
1594
1595 * c-tree.h (grokfield): Remove unused filename and line parameters.
1596 * c-decl.c (grokfield): Remove unused filename and line parameters.
1597 * c-parse.in (component_decl): Adjust field grokking rules, adjust
1598 grokfield calls.
1599 (component_declarator): Likewise.
1600 (component_notype_declarator): Likewise.
1601 * objc/objc-act.c (build_module_descriptor): Adjust grokfield
1602 calls.
1603 (build_protocol_template, build_method_prototype_list_template,
1604 build_method_prototype_template, build_category_template,
1605 build_selector_template, build_class_template,
1606 build_super_template, build_ivar_template,
1607 build_ivar_list_template, build_method_list_template,
1608 build_method_template, add_instance_variable): Likewise.
1609
d51d146f
KH
16102003-06-27 Kazu Hirata <kazu@cs.umass.edu>
1611
1612 * stmt.c (do_jump_if_equal): Return 0 earlier if OP1 and
1613 OP2 are known to be not equivalent.
1614
6a08f7b3
DP
16152003-06-26 Devang Patel <dpatel@apple.com>
1616
1617 * final.c (debug_flush_symbol_queue): New function.
1618 (debug_queue_symbol): New function.
1619 (debug_free_queue): New function.
1620 (debug_nesting): New variable.
1621 (symbol_queue): New variable.
1622 (symbol_queue_index): Same.
1623 (symbol_queue_size): Same.
1624 * debug.h (debug_flush_symbol_queue): New.
1625 (debug_queue_symbol): New.
1626 (debug_free_queue): New.
1627 (debug_nesting): New.
1628 (symbol_queue_index): New.
1629 * dbxout.c (DBXOUT_DECR_NESTING): New macro.
1630 (DBXOUT_DECR_NESTING_AND_RETURN): New macro.
1631 (dbxout_init): Delay symbol output.
45751525
RE
1632 (dbxout_global_decl): Save, set and reset TREE_USED bit around
1633 dbxout_symbol() call.
6a08f7b3
DP
1634 (dbxout_begin_function): Same.
1635 (dbxout_finish): Free symbol queue.
1636 (dbxout_type): Put appropriate symbols in queue.
45751525
RE
1637 (dbxout_symbol): Put info for symbol's type in queue.
1638 Decrement/Increment nesting counts flush symbol queue appropriately.
6a08f7b3
DP
1639 (dbxout_parms): Increment dbxout nesting.
1640 (dbxout_reg_parms): Same.
1641 * flags.h (flag_debug_only_used_symbols): New.
1642 * toplev.c (flag_debug_only_used_symbols): New variable.
45751525
RE
1643 (lang_independent_options): Add entries for new option
1644 -feliminate-unused-debug-symbols.
6a08f7b3
DP
1645 * common.opt: Add entry for -feliminate-unused-debug-symbols.
1646 * opts.c (common_handle_options): Same.
45751525
RE
1647 * config/rs6000/darwin.h (CC1_SPEC): Interpret -gused as
1648 -feliminate-unused-debug-symbols.
1649 * doc/invoke.texi (Debugging Options): Document
1650 -feliminate-unused-debug-symbols.
720b7001 1651
6ba701c8
RS
16522003-06-26 Roger Sayle <roger@eyesopen.com>
1653 Jakub Jelinek <jakub@redhat.com>
1654
1655 * builtins.c (expand_builtin_sprintf): Use c_getstr and strlen to
1656 obtain the format string instead of using TREE_STRING_POINTER and
1657 TREE_STRING_LENGTH. Only optimize sprintf(dst,"%s",src) when the
1658 return value is unused or the length of src is a known constant.
1659
49b83932
RH
16602003-06-26 Richard Henderson <rth@redhat.com>
1661
1662 * config/ia64/ia64.h (REGISTER_NAMES): R0 is really AP.
1663
4e14f1f9
RH
16642003-06-26 Richard Henderson <rth@redhat.com>
1665
1666 * config/ia64/ia64.c (ia64_expand_call): Don't add ar.pfs for sibcalls.
1667 (ia64_split_call): Only load descriptor for GP register inputs.
1668 (ia64_expand_epilogue): Check current_frame_info.mask not
1669 current_function_is_leaf to restore ar.pfs.
1670
f6a1f3f6 16712003-06-26 Richard Henderson <rth@redhat.com>
720b7001 1672
f6a1f3f6
RH
1673 * emit-rtl.c (try_split): Append to new CALL_INSN_FUNCTION_USAGE
1674 instead of replacing it.
720b7001 1675
d444b5e8
RH
16762003-06-26 Richard Henderson <rth@redhat.com>
1677
720b7001 1678 * flow.c (propagate_one_insn): Kill function return value
99af0d26
RH
1679 registers across tail calls.
1680
d444b5e8
RH
1681 * flow.c (propagate_one_insn): Preserve live-at-end registers
1682 across tail calls.
1683
35d6034b
R
16842003-06-26 J"orn Rennecke <joern.rennecke@superh.com>
1685
1686 * reload.c (can_reload_into): New function.
1687 (push_reload): Use it.
1688
343fd2c7
KH
16892003-06-26 Kazu Hirata <kazu@cs.umass.edu>
1690
1691 * config/h8300/h8300.c (compute_a_rotate_length): Fix the
1692 references to the amount of a rotation.
1693
10d6ea27
NN
16942003-06-26 Nathanael Nerode <neroden@gcc.gnu.org>
1695
1696 * config/sh/coff.h: Don't include dbxcoff.h.
1697 * config.gcc: List it here.
1698
b2948a2c
KH
16992003-06-26 Kazu Hirata <kazu@cs.umass.edu>
1700
1701 * postreload.c (reload_cse_simplify_set): Call cselib_lookup
1702 earlier. Don't check if SRC is a constant.
1703
15e35479
KH
17042003-06-26 Kazu Hirata <kazu@cs.umass.edu>
1705
1706 * Makefile.in (OBJS): Add postreload.o.
1707 Remove cselib.h from the dependency list for reload1.o.
1708 Add a dependency list for postreload.o.
1709 * reload.h: Change the comment for the prototype of
1710 reload_cse_regs.
1711 * reload1.c: Don't include cselib.h.
1712 (reload_cse_regs): Move to postreload.c
1713 (reload_cse_regs_1): Likewise.
1714 (reload_cse_noop_set_p): Likewise.
1715 (reload_cse_simplify_set): Likewise.
1716 (reload_cse_simplify_operands): Likewise.
1717 (RELOAD_COMBINE_MAX_USES): Likewise.
1718 (reload_combine_ruid): Likewise.
1719 (LABEL_LIVE): Likewise.
1720 (reload_combine): Likewise.
1721 (reload_combine_note_use): Likewise.
1722 (reload_combine_note_store): Likewise.
1723 (reg_set_luid): Likewise.
1724 (reg_offset): Likewise.
1725 (reg_base_reg): Likewise.
1726 (reg_mode): Likewise.
1727 (move2add_luid): Likewise.
1728 (move2add_last_label_luid): Likewise.
1729 (MODES_OK_FOR_MOVE2ADD): Likewise.
1730 (reload_cse_move2add): Likewise.
1731 (move2add_note_store): Likewise.
1732 (reload_cse_simplify): Likewise.
1733 * postreload.c: New.
1734
0e8a9ede
KH
17352003-06-26 Kazu Hirata <kazu@cs.umass.edu>
1736
1737 * config/avr/avr.c (final_prescan_insn): Remove support for
1738 -mrtl.
1739 * config/avr/avr.h (MASK_RTL_DUMP): Remove.
1740 (TARGET_RTL_DUMP): Likewise.
1741 (TARGET_SWITCHES): Remove -mrtl.
1742
caf7f21a
KH
17432003-06-26 Kazu Hirata <kazu@cs.umass.edu>
1744
1745 * config/h8300/h8300-protos.h: Change emit_a_rotate to
1746 output_a_rotate. Add a prototype for compute_a_rotate_length.
1747 * config/h8300/h8300.c (emit_a_rotate): Change to
1748 output_a_rotate.
1749 (compute_a_rotate_length): New.
1750 (h8300_adjust_insn_length): Remove.
1751 * config/h8300/h8300.h (ADJUST_INSN_LENGTH): Remove.
1752 * config/h8300/h8300.md (adjust_length): Remove.
1753 (*rotlqi3_1): Use output_a_rotate and compute_a_rotate_length.
1754 (*rotlhi3_1): Likewise.
1755 (*rotlsi3_1): Likewise.
1756
f5416098
RS
17572003-06-26 Roger Sayle <roger@eyesopen.com>
1758 Richard Henderson <rth@redhat.com>
1759
1760 * builtins.c (expand_builtin_mathfn): Always stabilize the argument
1761 list against re-evaluation. If expand_unop fails, call expand_call
1762 with the stabilized argument list rather than return NULL_RTX.
1763 (expand_builtin_mathfn2): Likewise, always stabilize the argument
1764 list, and call expand_call ourselves if expand_binop fails.
1765
6dc208a1
EB
17662003-06-26 Eric Botcazou <ebotcazou@libertysurf.fr>
1767
1768 PR optimization/11210
1769 * fold-const (decode_field_reference): Strip only NOPs that
1770 don't affect the sign.
1771
603ff6b5
DD
17722003-06-26 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1773
1774 * gcc/config/sh/sh.md (push_fpscr): Enable for TARGET_SH2E.
1775 (pop_fpscr, fpu_switch): Likewise.
1776
af166e5d
ZD
17772003-06-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1778
1779 * value-prof.c: New.
1780 * value-prof.h: New.
1781 * Makefile.in (value-prof.o): New.
1782 (LIBGCOV): Add _gcov_merge_single and _gcov_merge_delta
1783 (profile.o): Add value-prof.h and tree.h dependency.
1784 * flags.h (flag_profile_values): Declare.
1785 * gcov-io.h (GCOV_COUNTERS, GCOV_COUNTER_NAMES, GCOV_MERGE_FUNCTIONS):
1786 Add new counters.
1787 (GCOV_COUNTER_V_INTERVAL, GCOV_COUNTER_V_POW2, GCOV_COUNTER_V_SINGLE,
1788 GCOV_COUNTER_V_DELTA): New counter sections.
1789 (__gcov_merge_single, __gcov_merge_delta): Declare.
1790 * flow.c (mark_used_regs): Set subregs_of_mode only when the
1791 structure is initialized.
1792 * libgcov.c (__gcov_merge_single, __gcov_merge_delta): New functions.
1793 * profile.c: Include value-prof.h and tree.h.
1794 (gen_interval_profiler, gen_pow2_profiler, gen_one_value_profiler,
1795 gen_const_delta_profiler, instrument_values): New static functions.
1796 (get_exec_counts): Fix comment.
1797 (branch_prob): Invoke instrument_values.
1798 * toplev.c (flag_profile_values): New flag.
1799 * doc/invoke.texi (-fprofile-values): Document.
1800
18012003-06-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
ff25ef99
ZD
1802
1803 * Makefile.in (cfgrtl.o): Add expr.h dependency.
1804 * cfgrtl.c: Include expr.h.
1805 (mark_killed_regs, safe_insert_insn_on_edge): New
1806 functions.
1807 * config/i386/i386.h (AVOID_CCMODE_COPIES): Define.
1808 * basic-block.h (safe_insert_insn_on_edge): Declare.
1809
9eee5e72
NB
18102003-06-26 Neil Booth <neil@daikokuya.co.uk>
1811
1812 * c-opts.c (missing_arg): Make non-static.
1813 (c_common_handle_option): Don't check for missing arguments.
1814 * opts.c (handle_option): Check for missing arguments.
1815
09ec461d
DE
18162003-06-26 David Edelsohn <edelsohn@gnu.org>
1817
1818 * config/rs6000/power4.md (power4-veccomplex): Correct latency.
1819
beda3471
LR
18202003-06-25 Loren James Rittle <ljrittle@acm.org>
1821
1822 * configure.in (ld_vers): Portability [sed].
1823 * configure: Regenerate with autoconf213.
1824
22c7c85e
L
18252003-06-25 H.J. Lu <hongjiu.lu@intel.com>
1826
1827 * doc/extend.texi: Document new builtin functions for Intel
1828 Prescott New Intrunctions.
1829
1830 * doc/invoke.texi: Document new command-line options, -mpni and
1831 -mno-pni, for Intel Prescott New Intrunctions.
1832
1833 * config.gcc (extra_headers): Add pmmintrin.h for i[34567]86-*-*.
1834
1835 * config/i386/i386.c (override_options): Turn on MASK_SSE2
1836 for -mpni. Turn on MASK_SSE for -msse2.
1837 (bdesc_2arg): Add PNI builtins with 2 args.
1838 (bdesc_1arg): Add PNI builtins with 1 arg.
1839 (ix86_init_mmx_sse_builtins): Handle PNI builtins.
1840 (ix86_expand_builtin): Likewise.
1841
1842 * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A,
1843 MASK_128BIT_LONG_DOUBLE, MASK_64BIT, MASK_MS_BITFIELD_LAYOUT,
1844 MASK_TLS_DIRECT_SEG_REFS): Renumbered.
1845 (TARGET_PNI): New.
1846 (TARGET_SWITCHES): Don't enable MASK_SSE for -msse2 here. Add
1847 -mpni and -mno-pni.
1848 (TARGET_CPU_CPP_BUILTINS): Defined __PNI__ for PNI.
1849 (ix86_builtins): Add PNI builtins.
1850 (config/i386/i386.md): Add PNI patterns.
1851
1852 * config/i386/pmmintrin.h: New file.
1853
7f8b3eb0
KH
18542003-06-25 Kazu Hirata <kazu@cs.umass.edu>
1855
1856 * config/h8300/h8300.md (call): Fix the insn lengths.
1857 (call_value): Likewise.
1858
4d7d0451
JH
1859Thu Jun 26 00:13:35 CEST 2003 Jan Hubicka <jh@suse.cz>
1860
1861 * c-common.c (handle_used_attribute): Use mark_referenced.
1862 * varasm.c (mark_referenced): Break out from ...
1863 (assemble_name): ... here.
1864 * tree.h (mark_referenced): Declare.
1865
6322fdd8
WB
18662003-06-25 Wolfgang Bangerth <bangerth@dealii.org>
1867
1868 * gccbug.in: Add PCH to list of categories.
1869
48c4721e
MS
18702003-06-25 Martin Schaffner <schaffner@gmx.li>
1871
1872 * cppfiles.c: Clarify comments.
1873 * cpphash.h: Likewise.
1874 * cpplib.h: Likewise.
1875 * cppmacro.c: Likewise.
1876 * mkdeps.h: Likewise.
1877
f18754d6
NB
18782003-06-25 Neil Booth <neil@daikokuya.co.uk>
1879
1880 * c-opts.c (complain_wrong_lang, write_langs): Remove.
1881 (c_common_handle_option): Complaints about wrong language are
1882 handled in opts.c now.
1883 * opts.c (complain_wrong_lang, write_langs, handle_options): New.
1884 (find_opt): Fix thinko.
1885 (handle_option): Update prototype. Complain about switches for
1886 a different front end.
1887 * opts.h (lang_names, handle_options): New.
1888 (handle_option): Remove.
1889 * opts.sh: Write out language names array.
1890 * toplev.c (parse_options_and_default_flags): Use handle_options.
1891
37f22004
L
18922003-06-25 H.J. Lu <hongjiu.lu@intel.com>
1893
1894 * config/i386/i386.c (MASK_SSE1): Removed.
1895 (MASK_SSE164): Removed.
1896 (MASK_SSE264): Removed.
1897 (bdesc_2arg): Replace MASK_SSE1 with MASK_SSE. Replace
1898 MASK_SSE164 with MASK_SSE | MASK_64BIT. Replace MASK_SSE264
1899 with MASK_SSE2 | MASK_64BIT.
1900 (bdesc_1arg): Likewise.
1901 (ix86_init_mmx_sse_builtins): Likewise.
1902
1903 * config/i386/i386.h (TARGET_SSE): Remove MASK_SSE2.
1904 (TARGET_SWITCHES): Enable both MASK_SSE and MASK_SSE2 for
1905 -msse2.
1906
85f015e1
KG
19072003-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1908
1909 * hwint.h (HOST_WIDE_INT_PRINT, HOST_WIDE_INT_PRINT_C): New macros.
1910 (HOST_WIDE_INT_PRINT_DEC_SPACE,
1911 HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
1912 HOST_WIDEST_INT_PRINT_DEC_SPACE,
1913 HOST_WIDEST_INT_PRINT_UNSIGNED_SPACE): Delete.
1914 (HOST_WIDE_INT_PRINT_DEC, HOST_WIDE_INT_PRINT_DEC_C,
1915 HOST_WIDE_INT_PRINT_UNSIGNED, HOST_WIDE_INT_PRINT_HEX): Define in
1916 terms of HOST_WIDE_INT_PRINT and possibly HOST_WIDE_INT_PRINT_C.
1917
1918 * final.c (asm_fprintf): Use HOST_WIDE_INT_PRINT.
1919 * ra-debug.c (dump_static_insn_cost): Likewise.
1920
27847754
NC
19212003-06-26 Nick Clifton <nickc@redhat.com>
1922
1923 * config/arm/arm.h (BIGGEST_FIELD_ALIGNMENT): Define instead
1924 of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
720b7001 1925 Replace occurances of '???' with 'XXX' incase they are
27847754
NC
1926 mistaken for trigraphs.
1927 (THUMB_PRINT_OPERAND_ADDRESS): abort if a compound address
1928 does not have a register for the first operand.
720b7001 1929
b1dcf523
DD
19302003-06-25 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
1931
1932 * config/sh/sh.c (sh_register_move_cost):
1933 Add case for moving between MAC_REGS.
1934
2896d056
ZW
19352003-06-25 Zack Weinberg <zack@codesourcery.com>
1936
1937 PR 10178
1938 * langhooks.h (struct lang_hooks): Add no_body_blocks bool.
1939 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): New; default false.
1940 * c-lang.c, objc/objc-lang.c: Override LANG_HOOKS_NO_BODY_BLOCKS
1941 to true.
1942 * stmt.c (is_body_block): If lang_hooks.no_body_blocks, always
1943 return 0.
1944
8f7193b8
KG
19452003-06-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1946
1947 * Makefile.in (bt-load.o): Depend on $(TM_P_H).
1948 * bt-load.c: Include "tm_p.h".
1949
f5139cc5
KH
19502003-06-25 Kazu Hirata <kazu@cs.umass.edu>
1951
1952 * config/h8300/h8300.c (compute_mov_length): Adjust for the
1953 new optimization.
1954 * config/h8300/h8300.md (*movsi_h8300): Optimize the load of
1955 an SImode constant whose upper and lower are the same.
1956
380e1984
JH
1957Wed Jun 25 11:31:59 CEST 2003 Jan Hubicka <jh@suse.cz>
1958
1959 * varasm.c (assemble_name): Mark needed variables even when
1960 global info is ready.
1961
3f8b659d
JQ
19622003-06-24 Jerry Quinn <jlquinn@optonline.net>
1963
1964 PR other/11280
1965 * gcc/doc/invoke.texi (Optimization Options): Remove -Os from
1966 -freorder-functions description.
1967
a53efda2
JZ
19682003-06-25 Josef Zlomek <zlomekj@suse.cz>
1969
1970 * dwarf2out.c (gen_field_die): Return if type of decl is error mark.
1971
0bd95603
NB
19722003-06-25 Neil Booth <neil@daikokuya.co.uk>
1973
1974 * opts.c (common_handle_option): Add missing break;s.
1975
7948a9ea
KH
19762003-06-24 Kazu Hirata <kazu@cs.umass.edu>
1977
1978 * config/h8300/h8300-protos.h: Add a prototype for
1979 compute_mov_length.
1980 * config/h8300/h8300.c (compute_mov_length): New.
1981 * config/h8300/h8300.md (*movqi_h8300): Use it.
1982 (*movqi_h8300hs): Likewise.
1983 (movstrictqi): Likewise.
1984 (*movhi_h8300): Likewise.
1985 (*movhi_h8300hs): Likewise.
1986 (movstricthi): Likewise.
1987 (*movsi_h8300): Likewise.
1988 (*movsf_h8300): Likewise.
1989 (*movsi_h8300hs): Likewise.
1990 (*movsf_h8300hs): Likewise.
1991
e5b0e711
KH
19922003-06-24 Kazu Hirata <kazu@cs.umass.edu>
1993
1994 * jump.c (next_nondeleted_insn): Remove.
1995 * rtl.h: Remove the prototype for next_nondeleted_insn.
1996
b9ba01a1
RS
19972003-06-24 Roger Sayle <roger@eyesopen.com>
1998
1999 PR optimization/11311
2000 * builtins.c (powi_cost): Fix typo. The number of multiplications
2001 required is the number to reduce the argument, result, plus the
2002 cost of calculating the residual, val [not n, the original value].
2003
46512942
RS
20042003-06-24 Roger Sayle <roger@eyesopen.com>
2005
2006 * config/alpha/osf5.h (TARGET_C99_FUNCTIONS): Define.
2007
bfa0c519
RH
20082003-06-24 Richard Henderson <rth@redhat.com>
2009 (blame to: Loren James Rittle <ljrittle@acm.org>)
2010
2011 * real.h (ieee_extended_intel_96_round_53_format): New.
2012 * real.c (ieee_extended_intel_96_round_53_format): New.
2013 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Use it
2014 for XFmode and TFmode.
2015
61f33c67
KH
20162003-06-24 Kazu Hirata <kazu@cs.umass.edu>
2017
2018 * config/h8300/h8300.md (4 anonymous patterns): Give internal
2019 names.
2020 (movsi_h8300): Change the name to *movsi_h8300.
2021 (movsi_h8300hs): Change the name to *movsi_h8300hs.
2022 (movsf_h8300): Change the name to *movsf_h8300.
2023 (movsf_h8300hs): Change the name to *movsf_h8300hs.
2024
946137a0
JJ
20252003-06-24 Jakub Jelinek <jakub@redhat.com>
2026
2027 * builtins.c (expand_builtin_strcpy): Don't evaluate side-effects in
2028 src twice.
2029
6d1cb95f
R
20302003-06-24 J"orn Rennecke <joern.rennecke@superh.com>
2031
2032 Back out these patches:
2033 2003-06-02 J"orn Rennecke <joern.rennecke@superh.com>
2896d056
ZW
2034 * sh.h (OLD_ARG_MODE): New macro.
2035 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
2036 (FUNCTION_ARG_1): Break out of:
2037 (FUNCTION_ARG). Use OLD_ARG_MODE.
6d1cb95f 2038 2003-06-06 J"orn Rennecke <joern.rennecke@superh.com>
2896d056
ZW
2039 * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
2040 of the generated register.
6d1cb95f
R
2041
2042 * sh.h (FUNCTION_ARG_SCmode_WART): Define.
2043 (FUNCTION_ARG): Unless FUNCTION_ARG_SCmode_WART is defined and
2044 an even number of floating point regs are in use, use the same
2896d056 2045 sequence of argument passing registers for SCmode as would be
6d1cb95f
R
2046 used for two SFmode values.
2047 * sh.c (sh_va_arg): If FUNCTION_ARG_SCmode_WART is defined,
2048 swap real / imaginary parts in incoming SCmode values passed
2049 in registers.
2050
e7891c4b
FH
20512003-06-24 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
2052
2896d056
ZW
2053 PR target/11260
2054 * config/alpha/alpha.md (sqrtdf2): Fix operand substitution.
e7891c4b 2055
e69529cd
JH
2056Tue Jun 24 18:49:33 CEST 2003 Jan Hubicka <jh@suse.cz>
2057
2058 * Makefile.in (cgraph.o): Depend on output.h, not depend on
2059 tree-inline.h
2060 * cgraph.c: Do not include tree-inline.h; include output.h
2061 (known_fns): Rename to ...
2062 (known_decls): ... this one; update all uses.
2063 (cgraph_varpool_hash): New static variable.
2064 (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): New global
2065 variables.
2066 (cgraph_varpool_hash_node, eq_cgraph_varpool_node, cgraph_varpool_node,
2067 cgraph_varpool_node_for_identifier, cgraph_varpool_mark_needed_node,
2068 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
2069 New functions.
2070 * cgraph.h (cgraph_varpool_node): New structure.
2071 (cgraph_varpool_n_nodes, cgraph_varpool_nodes_queue): Declare.
2072 (cgraph_varpool_node, cgraph_varpool_node_for_identifier,
2073 cgraph_varpool_finalize_decl, cgraph_varpool_mark_needed_node,
2074 cgraph_varpool_asemble_pending_decls): Declare.
2075 * cgraphunit.c (record_call_1): Notice variable references.
2076 (cgraph_finalize_compilation_unit): Assemble pending variables.
2077 * toplev.c (wrapup_global_declarations): Use varpool.
2078 (compile_file): Assemble pending declarations.
2079 (rest_of_decl_compilation): Use varpool in unit-at-a-time mode.
2080 * varasm.c (assemble_name): Notice varpool references.
2081
d35543c0
JH
2082Tue Jun 24 13:52:11 CEST 2003 Jan Hubicka <jh@suse.cz>
2083
2084 * langhooks-def.h (LANG_HOOKS_PREPARE_ASSEMBLE_VARIABLE): New macro.
2085 * langhooks.h (lang_hooks_for_decls): Add prepare_assemble_variable.
2086 * varasm.c (assemble_variable): Call prepare_assemble_variable.
2087
2082e02f
RS
20882003-06-23 Roger Sayle <roger@eyesopen.com>
2089
2090 * builtins.c (expand_builtin): Use expand_builtin_pow to expand
2091 calls for pow, powf, powl and their __builtin_ variants.
2092 (expand_builtin_pow): If the second argument is a constant
2093 integer and compiling with -ffast-math, use expand_powi to
2094 generate RTL if powi_cost is less than POWI_MAX_MULTS.
2095 (powi_cost): New function to return the number of multiplications
2096 necessary to evaluate an Nth power, for integer constant N.
2097 (expand_powi): New function to expand the RTL for evaluating
2098 the Nth power of a floating point value, for integer constant N.
2099
2100 * doc/tm.texi (POWI_MAX_MULTS): Document new target macro.
2101
1668aabc
JH
2102Mon Jun 23 23:07:35 CEST 2003 Jan Hubicka <jh@suse.cz>
2103
2104 * cgraph.c (cgraph_nodes_queue): Declare.
2105 (eq_node): Take identifier as p2.
2106 (cgraph_node): Update htab_find_slot_with_hash call.
2107 (cgraph_node_for_identifier): New.
2108 (cgraph_mark_needed_node): Move here from cgraphunit.c.
2109 * cgraph.h (cgraph_nodes_queue): Declare.
2110 (cgraph_node_for_identifier): Declare.
2111 * cgraphunit.c (cgraph_finalize_function): Collect entry points here
2112 instead of in cgraph_finalize_compilation_unit; constructors and
2113 destructors are entry points.
2896d056 2114 (cgraph_finalize_compilation_unit): Reorganize debug outout;
1668aabc
JH
2115 examine nested functions after lowerng; call collect_functions hook.
2116 (cgraph_mark_local_functions): DECL_COMDAT functions are not local.
2117 (cgraph_finalize_compilation_unit): Do not collect entry points.
2118 * varasm.c: Include cgraph.h
2119 (assemble_name): Mark referenced identifier as needed.
2120
2121 * cgraphunit.c (record_call_1): Use get_callee_fndecl.
2122
89ce1c8f
JJ
21232003-06-23 Jakub Jelinek <jakub@redhat.com>
2124
2125 * config/i386/i386.c (x86_output_mi_thunk): Don't pass MEM to %P0,
2126 just SYMBOL_REF.
2127 * config/s390/s390.c (s390_output_mi_thunk): Avoid .plt in -m31
2128 mode, as it requires pic register loaded.
2129
2130 * varasm.c (resolve_unique_section): Remove prototype. No longer
2131 static.
2132 * tree.h (resolve_unique_section): New prototype.
2133
032cb602
AS
21342003-06-23 Andreas Schwab <schwab@suse.de>
2135
2136 PR debug/9905
2137 * dwarf2out.c (loc_descriptor_from_tree): Handle MODIFY_EXPR by
2138 recursing through first argument.
2139
b20b352b
KH
21402003-06-23 Kazu Hirata <kazu@cs.umass.edu>
2141
2142 * ChangeLog.1: Fix a typo.
2143 * cfgrtl.c: Fix comment typos.
2144 * dwarf2out.c: Likewise.
2145 * expmed.c: Likewise.
2146 * genrecog.c: Likewise.
2147 * jump.c: Likewise.
2148 * rtlanal.c: Likewise.
2149 * ssa-dce.c: Likewise.
2150 * toplev.c: Likewise.
2151
63519d23
KH
21522003-06-23 Kazu Hirata <kazu@cs.umass.edu>
2153
2154 * doc/extend.texi: Fix typos.
2155 * doc/md.texi: Likewise.
2156 * doc/tm.texi: Likewise.
2157
71c0e7fc
KH
21582003-06-23 Kazu Hirata <kazu@cs.umass.edu>
2159
2160 * basic-block.h: Fix comment formatting.
2161 * bt-load.c: Likewise.
2162 * builtins.c: Likewise.
2163 * c-common.c: Likewise.
2164 * c-common.h: Likewise.
2165 * c-format.c: Likewise.
2166 * coverage.c: Likewise.
2167 * cpplib.h: Likewise.
2168 * cpppch.c: Likewise.
2169 * dbxout.c: Likewise.
2170 * diagnostic.c: Likewise.
2171 * dwarf2out.c: Likewise.
2172 * expr.c: Likewise.
2173 * fold-const.c: Likewise.
2174 * function.c: Likewise.
2175 * gcc.c: Likewise.
2176 * gcov-io.c: Likewise.
2177 * gcov-io.h: Likewise.
2178 * gcov.c: Likewise.
2179 * profile.c: Likewise.
2180 * real.h: Likewise.
2181 * sched-deps.c: Likewise.
2182
164131ce 21832003-06-23 Roger Sayle <roger@eyesopen.com>
2896d056 2184 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
164131ce
GP
2185
2186 * doc/contrib.texi (Contributors): Add a note on testing and
2187 remove duplicates from testers list.
2188
a3c18e4f
NC
21892003-06-23 Nick Clifton <nickc@redhat.com>
2190
2191 * read-rtl.c (read_braced_string): Check for EOF. If
2192 encountered issue an error message.
2193
4319ef2a
KH
21942003-06-23 Kazu Hirata <kazu@cs.umass.edu>
2195
2196 * doc/invoke.texi: Document dump options, dT and dW.
2197
8116809c
KH
21982003-06-23 Kazu Hirata <kazu@cs.umass.edu>
2199
2200 * genrecog.c (pred_table): Remove the entry for
2201 mode_independent_operand.
2202 * recog.c (next_insns_test_no_inequality): Remove.
2203 (mode_independent_operand): Likewise.
2204 * recog.h: Remove the prototype for mode_independent_operand.
2205
802a9907
KH
22062003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2207
2208 * config/h8300/h8300.c (output_simode_bld): Use rotxl.l to
2209 store into bit 0.
2210 * config/h8300/h8300.md (*extzv_1_r_h8300hs): Change cc of the
2211 second alternative to set_znv.
2212 (*extzv_1_r_inv_h8300hs): Likewise.
2213
5408ac6c
HPN
22142003-06-23 Hans-Peter Nilsson <hp@bitrange.com>
2215
2216 * configure.in (in_tree_gas): Find out here whether GAS is ELF,
2217 set in_tree_gas_is_elf accordingly.
2218 (in_tree_ld): Find out whether LD emulation is ELF, set
2219 in_tree_ld_is_elf accordingly.
2220 (gcc_cv_as_subsections, gcc_cv_as_hidden, gcc_cv_as_leb128)
2221 (gcc_cv_as_eh_frame, gcc_cv_as_shf_merge)
2222 (gcc_cv_as_dwarf2_debug_line, gcc_cv_as_gdwarf2_flag)
2223 (gcc_cv_as_gstabs_flag): Use $in_tree_gas_is_elf instead of
2224 grepping gas/Makefile.
2225 (gcc_cv_ld_ro_rw_mix, gcc_cv_ld_eh_frame_hdr, gcc_cv_ld_pie): Use
2226 $in_tree_ld_is_elf instead of grepping ld/Makefile.
2227 * configure: Regenerate.
2228
8e0952f0
RS
22292003-06-22 Roger Sayle <roger@eyesopen.com>
2230
2231 * builtins.c (expand_builtin_mathfn_2): Use tree_cons to build
2232 up the stabilized argument list, not build_tree_list.
2233 (expand_builtin_strcpy): Construct new argument list manually
2234 instead of using chainon to modify the original argument list.
2235 (expand_builtin_stpcpy): Construct new argument list manually
2236 instead of using copy_list and chainon.
2237 (expand_builtin_sprintf): New function. Optimize calls to
2238 sprintf when the format is "%s" or doesn't contain a '%'.
2239 (expand_builtin): Expand BUILT_IN_SPRINTF using the new function
2240 expand_builtin_sprintf.
2241
4c4d143a
AS
22422003-06-22 Andreas Schwab <schwab@suse.de>
2243
2244 * function.c (set_insn_locators): Mark as unused.
2245
d302c9d6
NB
22462003-06-22 Neil Booth <neil@daikokuya.co.uk>
2247
2248 * common.opt: Add -finline-limit.
2249 * opts.c (common_handle_options): Handle it.
2250 * opts.sh: Temporary kludge for -finline-limit.
2251 * toplev.c (decode_f_option, independent_decode_option): Die.
2252 (parse_options_and_default_flags): No independent_decode_option.
2253
b0a31300
AJ
22542003-06-22 Andreas Jaeger <aj@suse.de>
2255
2256 * calls.c (emit_call_1): Readd lost ATTRIBUTE_UNUSED.
2257
34695841
KH
22582003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2259
2260 * doc/invoke.texi: Document dumps, .btl, .cfg, and .bypass.
2261
c359831b
AS
22622003-06-22 Andreas Schwab <schwab@suse.de>
2263
2264 * doc/invoke.texi: Remove leading `-' from options in index.
2265
cc0efd0b
KH
22662003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2267
2268 * bt-load.c: Follow spelling conventions.
2269
0e9cbd11
KH
22702003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2271
2272 * expr.c (emit_move_insn_1): Fix a comment typo.
2273
7fedea11
KH
22742003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2275
2276 * doc/invoke.texi: Alphabetize dump options.
2277
79250062
KH
22782003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2279
2280 * doc/invoke.texi: Remove a duplicate -dk.
2281
b55fe87e
KH
22822003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2283
2284 * doc/invoke.texi: Update dump file names.
2285
21299dbd
ZW
22862003-06-22 Zack Weinberg <zack@codesourcery.com>
2287
2288 * config/i370/i370.c, config/i370/i370.h: Use HOST_CHARSET_ASCII
2289 and HOST_CHARSET_EBCDIC, not HC_ASCII and HC_EBCDIC.
2290
3b9cd5c8
KH
22912003-06-22 Kazu Hirata <kazu@cs.umass.edu>
2292
2293 * doc/rtl.texi: Fix the @findex for pre_modify.
2294
d329e058
AJ
22952003-06-22 Andreas Jaeger <aj@suse.de>
2296
2297 * caller-save.c: Convert to ISO C90.
2298 * calls.c: Likewise.
2299 * cfg.c: Likewise.
2300 * cfganal.c: Likewise.
2301 * cfgbuild.c: Likewise.
2302 * cfgcleanup.c: Likewise.
2303 * cfghooks.c: Likewise.
2304 * cfglayout.c: Likewise.
2305 * cfglayout.h: Likewise.
2306 * cfgloop.c: Likewise.
2307 * cfgloop.h: Likewise.
2308 * cfgloopanal.c: Likewise.
2309 * cfgloopmainip.c: Likewise.
2310 * cfgrtl.c: Likewise.
2311
84edd42c
RE
23122003-06-22 Richard Earnshaw <rearnsha@arm.com>
2313
2314 * arm.h (BIGGEST_ALIGNMENT): Use TARGET_REALLY_IWMMXT for selecting
2315 64-bit alignment.
2316
24391720
RE
23172003-06-22 Richard Earnshaw <rearnsha@arm.com>
2318
2319 * arm.md (all call_value patterns): Remove register constraints on
2320 value operand.
2321
6ff3a151
NB
23222003-06-22 Neil Booth <neil@daikokuya.co.uk>
2323
2324 * common.opt: More -f switches.
2325 * opts.c (common_handle_options): Handle them.
2326 * toplev.c (time_report): Make extern.
2327 (f_options): USe flag_dummy.
2328 (decode_f_option): No need to use f_options now.
2329 * toplev.h (flag_cprop_registers, flag_ssa, flag_ssa_ccp,
2330 flag_ssa_dce, time_report, flag_new_regalloc): Make extern.
2331
3346b668
AJ
23322003-06-22 Andreas Jaeger <aj@suse.de>
2333
2f6e4e97
AJ
2334 * c-lex.c: Convert to ISO C90.
2335 * c-objc-common.c: Likewise.
2336 * c-opts.c: Likewise.
2337 * c-pch.c: Likewise.
2338 * c-ppoutput.c: Likewise.
2339 * c-pragma.h: Likewise.
2340 * c-pretty-print.c: Likewise.
2341 * c-pretty-print.h: Likewise.
2342 * c-semantics.c: Likewise.
2343 * c-tree.h: Likewise.
2344 * c-typeck.c: Likewise.
2345
3346b668
AJ
2346 * c-lang.c: Convert to ISO C90.
2347
9cd23ed2
NB
23482003-06-22 Neil Booth <neil@daikokuya.co.uk>
2349
2350 * opts.c (find_opt): Fix to always guarantee a find of a
2351 switch with joined parameter.
2352 * opts.h (struct cl_option): New member back_chain.
2353 * opts.sh: Update to calculate and add back_chain member.
2354
0e9e3a8b
GDR
23552003-06-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
2356
2357 * diagnostic.h (output_host_wide_integer): Declare.
2358 * diagnostic.c (output_long_long_decicaml): New function.
2359 (output_host_wide_integer): Likewise.
2360 (output_format): Use them. Handle "%ll" and "%w".
2361
ad667abe
JT
23622003-06-21 Jason Thorpe <thorpej@wasabisystems.com>
2363
2364 * config.gcc (*-*-netbsd*): Add t-libgcc-pic to tmake_file.
2365
7468e0b5
ZW
23662003-06-21 Zack Weinberg <zack@codesourcery.com>
2367
2368 * aclocal.m4 (gcc_AC_C_CHARSET): Delete.
2369 * configure.in: Don't use gcc_AC_C_CHARSET.
2370 * configure, config.in: Regenerate.
2371 * config/i370/i370.c, config/i370/i370.h: Use
2372 (HOST_CHARSET == HC_EBCDIC) or (HOST_CHARSET == HC_ASCII)
2373 instead of HOST_EBCDIC or !HOST_EBCDIC. Clarify comments a tad.
2374
de32c0cb
NB
23752003-06-21 Neil Booth <neil@daikokuya.co.uk>
2376
2377 * Makefile.in: Update.
2378 * common.opt: New switches.
2379 * opts.c: Include diagnostic.h.
2380 (common_handle_option): Handle new switches.
2381 * toplev.c (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
2382 flag_if_conversion2, flag_delete_null_pointer_checks,
2383 flag_rerun_cse_after_loop): Make extern.
2384 (flag_dummy): New.
2385 (f_options): Update to use flag_dummy for moved options.
2386 (decode_f_option): Some switches moved to opts.c.
2387 * toplev.h (flag_loop_optimize, flag_crossjumping, flag_if_conversion,
2388 flag_if_conversion2, flag_delete_null_pointer_checks,
2389 flag_rerun_cse_after_loop, flag_keep_static_consts, flag_peel_loops,
2390 flag_tracer, flag_thread_jumps, flag_unroll_loops,
2391 flag_unroll_all_loops, flag_unswitch_loops): New.
2392
70642ee3
JH
2393Sat Jun 21 13:41:00 CEST 2003 Jan Hubicka <jh@suse.cz>
2394
2395 * i386.c (ix86_va_arg): Fix allocation of temporary slot.
2396
02529902
KH
23972003-06-20 Kazu Hirata <kazu@cs.umass.edu>
2398
2399 * config/h8300/h8300-protos.h: Add a prototype for
2400 same_cmp_preceding_p.
2401 * config/h8300/h8300.c (same_cmp_preceding): New.
2402 * config/h8300/h8300.md: Extend peephole2's that transform
2403 compare:SI into shorter sequences so that they can deal with
2404 signed comparisons.
2405
164131ce 24062003-06-21 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
c18cd642
GP
2407
2408 * doc/contrib.texi (Contributors): Use Windows instead of Win32.
2409
2410 Update Andreas Jaeger's entry.
2411
2412 Merge the two entries of Kaveh Ghazi, David Edelsohn, and
2413 Loren J. Rittle.
2414
5e7537cf
NN
24152003-06-21 Nathanael Nerode <neroden@gcc.gnu.org>
2416
2417 * mkconfig.sh: Add multiple inclusion guards to generated headers.
2418
e01cc6dc
NB
24192003-06-20 Neil Booth <neil@daikokuya.co.uk>
2420
2421 * c-decl.c (store_parm_decls): Make saved_warn_shadow boolean.
2422 * common.opt: Add remaining -W options and -g.
2423 * diagnostic.c (warnings_are_errors): Remove.
2424 * flags.h: Make most warning flags boolean.
2425 * opts.c (common_handle_option): Handle remaining -W options, and -g.
2426 Move many warning flags from toplev.c, making them boolean.
2427 * toplev.c: Remove many warning flags.
2428 (decode_W_option): Remove.
2429 (decode_g_option): Make extern. Error on unknown switch.
2430 (lang_independent_W_options): Use warn_dummy.
2431 (independent_decode_option): Just handle -f switches now.
2432 * toplev.h (decode_g_option): New.
2433
1a3f10e2 24342003-06-20 Aldy Hernandez <aldyh@redhat.com>
7468e0b5 2435
1a3f10e2
AH
2436 PR/11092
2437 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Adjust for
2438 vectors.
2439
e819ee44
KC
24402003-06-20 Kelley Cook <kelleycook@wideopenwest.com>
2441
2442 * opts.sh: Tweak awk script for portability.
2443
ae4a7155
MM
24442003-06-20 Mark Mitchell <mark@codesourcery.com>
2445
2446 PR c++/10888
2447 * tree-inline.c (expand_call_inline): Do not warn about failing to
2448 inline functions declared in system headers.
2449 * doc/invoke.texi (-Winline): Expand on documentation.
2450
4739b00e
RH
24512003-06-20 Richard Henderson <rth@redhat.com>
2452
2453 * config/alpha/alpha.c (alpha_file_start): Disable
2454 file_start_file_directive for ELF and not MDEBUG.
2455
9218882a
R
24562003-06-20 J"orn Rennecke <joern.rennecke@superh.com>
2457
2458 * sh.h (ROUND_TYPE_ALIGN): Remove.
2459
a3424f5c
RH
24602003-06-20 Richard Henderson <rth@redhat.com>
2461
2462 * hooks.c (hook_int_void_no_regs): Rename from
2463 hook_reg_class_void_no_regs; change return type.
2464 * hooks.h: Update.
2465 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Update.
2466 * target.h (branch_target_register_class): Change return type to int.
2467 Add documentation.
2468 * config/sh/sh.c (sh_target_reg_class): Change return type.
2469 * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
2470
3a947669
AT
24712003-06-20 Andreas Tobler <toa@pop.agri.ch>
2472
2473 * c-format.c: Change _Bool to bool reverting part of the last
2474 patch.
2475
b5adda73
JDA
24762003-06-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2477
2478 * som.h (ASM_OUTPUT_SOURCE_LINE): Use targetm.strip_name_encoding to
2479 strip name encoding.
2480
807ca3d4
RO
24812003-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2482
2483 * configure.in (gcc_cv_as_gstabs_flag): Disable if assembler warns.
2484 * configure: Regenerate.
2485 Fixes PR driver/9362.
2486
cc550dce
RK
24872003-06-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2488
2489 * config/alpha/alpha.c (alpha_file_start): Fix typo.
2490
9e21232c
RO
24912003-06-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2492
2493 * config/mips/mips.h (PUT_SDB_FUNCTION_END): Pass 0 as third arg
2494 to ASM_OUTPUT_SOURCE_LINE.
2495
27a3e494 24962003-06-20 Daniel Egger <degger@fhm.edu>
7468e0b5 2497 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
27a3e494
DE
2498
2499 * doc/install.texi (Building): Correct and improve statement
2500 about parallel builds.
2501
a742c759
AJ
25022003-06-20 Andreas Jaeger <aj@suse.de>
2503
2504 * c-common.c: Change _Bool to bool reverting part of the last
2505 patch.
2506
1f9cc6db
NS
25072003-06-20 Nathan Sidwell <nathan@codesourcery.com>
2508
2509 * tree.h (expand_function_end): Remove all parameters.
2510 * function.c (expand_function_end): Remove all parameters.
2511 Use input_location. Never expand_end_bindings.
2512 * c-decl.c (c_expand_body_1): Adjust expand_function_end call.
2513 * coverage.c (create_coverage): Likewise.
2514
4bc73018
NC
25152003-06-20 Nick Clifton <nickc@redhat.com>
2516
2517 * doc/extend.texi (ARM Built-in Functions): New node. Document
2518 ARM builtin functions for iWMMXt support.
2519
8f2afc21
EB
25202003-06-20 Eric Botcazou <ebotcazou@libertysurf.fr>
2521
2522 * doc/install.texi (--with-gnu-as): Mention SPARC/Solaris and
2523 SPARC64/Solaris as platforms where --with-gnu-as makes a difference.
2524 (--with-as): Add @anchor.
2525 (--with-gnu-ld): Fix typo.
2526 (--with-ld): Add @uref to --with-as.
2527
a2c4f8e0
ZW
25282003-06-19 Zack Weinberg <zack@codesourcery.com>
2529
2530 * doc/tm.texi: Uniformly use @defmac for macros, rather than
2531 @table items. Minor formatting and editorial corrections.
2532
e2b9853b
NB
25332003-06-20 Neil Booth <neil@daikokuya.co.uk>
2534
2535 * line-map.c, line-map.h: Convert to ISO prototypes.
2536
bc083e18
ZD
25372003-06-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2538
2539 * gcse.c (store_killed_in_insn): Fix.
2540
1bc7c5b6
ZW
25412003-06-19 Zack Weinberg <zack@codesourcery.com>
2542
2543 * target.h (asm_out.file_start, file_start_app_off,
2544 file_start_file_directive): New hooks.
2545 * target-def.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
2546 TARGET_ASM_FILE_START_APP_OFF, TARGET_ASM_FILE_START):
2547 New hook-definition macros.
2548 * doc/tm.texi: Document new hooks; remove docs of ASM_FILE_START.
2549 * varasm.c (default_file_start): New.
2550 * output.h: Prototype it.
2551 * toplev.c (init_asm_output): Use targetm.asm_out.file_start.
2552 * system.h: Poison ASM_FILE_START.
2553
2554 * config/alpha/alpha.c (alpha_write_verstamp): Delete.
2555 (alpha_file_start): New, define if !TARGET_ABI_UNICOSMK.
2556 (unicosmk_asm_file_start): Rename unicosmk_file_start,
2557 make static, take no arguments.
2558 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END,
2559 TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set as appropriate.
2560 * config/alpha/unicosmk.h: Don't define ASM_FILE_START nor
2561 TARGET_ASM_FILE_END. Remove reference to ASM_FILE_START in
2562 comment.
2563 * config/arc/arc.c (arc_asm_file_start): Rename
2564 arc_file_start, take no arguments, make static.
2565 (TARGET_ASM_FILE_START): Set it.
2566 * config/arm/arm.c (aof_file_start): New static function.
2567 (TARGET_ASM_FILE_START): Set it, when appropriate.
2568 * config/arm/coff.h, config/arm/elf.h:
2569 Set TARGET_ASM_FILE_START_APP_OFF to true.
2570 * config/avr/avr.c (asm_file_start): Rename avr_file_start,
2571 take no arguments, make static.
2572 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
2573 Set them.
2574 * config/c4x/c4x.c (c4x_file_start): New static function.
2575 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE):
2576 Set them.
2577 * config/cris/cris.c (cris_file_start): New static function.
2578 (TARGET_ASM_FILE_START): Set it.
2579 * config/dsp16xx/dsp16xx.c (coff_dsp16xx_file_start): Rename
2580 dsp16xx_file_start, make static.
2581 (luxworks_dsp16xx_file_start): Delete.
2582 (TARGET_ASM_FILE_START): Set it.
2583 * config/h8300/h8300.c (asm_file_start): Rename
2584 h8300_file_start, make static, take no arguments.
2585 (TARGET_ASM_FILE_START): Set it.
2586 * config/i370/i370.c (i370_file_start): New static function.
2587 (TARGET_ASM_FILE_START): Set it.
2588 * config/i386/i386.c (x86_file_start): New static function.
2589 (TARGET_ASM_FILE_START): Set it.
2590 * config/i386/i386.h (X86_FILE_START_VERSION_DIRECTIVE,
2591 X86_FILE_START_FLTUSED): New macros, default to false.
2592 * config/i386/i386-interix.h: Override X86_FILE_START_FLTUSED to 1.
2593 * config/i386/sysv4.h, config/i386/sco5.h: Override
2594 X86_FILE_START_VERSION_DIRECTIVE to true.
2595 * config/ia64/ia64.c (ia64_file_start): New static function.
2596 (TARGET_ASM_FILE_START): Set it.
2597 (emit_safe_across_calls): Take no arguments.
2598 * config/ia64/ia64.md: Update to match.
2599 * config/m32r/m32r.c (m32r_asm_file_start): Rename
2600 m32r_file_start, make static, take no arguments.
2601 (TARGET_ASM_FILE_START): Set it.
2602 * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Rename
2603 m68hc11_file_start, make static, take no arguments.
2604 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2605 (print_options): Delete.
2606 * config/m68k/m68k.c (m68k_hp320_file_start): New static function.
2607 (TARGET_ASM_FILE_START_APP_OFF): Set.
2608 * config/m68k/hp320.h: Set TARGET_ASM_FILE_START to
2609 m68k_hp320_file_start.
2610 * config/mips/mips.c (iris6_asm_file_start, mips_asm_file_start):
2611 Make static, take no arguments.
2612 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2613 * config/mmix/mmix.c (mmix_asm_file_start): Rename
2614 mmix_file_start, make static, take no arguments.
2615 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2616 * config/mn10300/mn10300.c (asm_file_start): Rename
2617 mn10300_file_start, make static, take no arguments.
2618 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2619 * config/ns32k/ns32k.c (TARGET_ASM_FILE_START_APP_OFF): Set.
2620 * config/pa/pa.c (pa_file_start_level, pa_file_start_space,
2621 pa_file_start_file, pa_file_start_mcount, pa_elf_file_start,
2622 pa_som_file_start, pa_linux_file_start, pa_hpux64_gas_file_start,
2623 pa_hpux64_hpas_file_start): New static functions.
2624 * config/pa/elf.h: Set TARGET_ASM_FILE_START to pa_elf_file_start.
2625 * config/pa/pa-linux.h: Set TARGET_ASM_FILE_START to
2626 pa_linux_file_start.
2627 * config/pa/pa64-hpux.h: Set TARGET_ASM_FILE_START to
2628 pa_hpux64_gas_file_start or pa_hpux64_hpas_file_start, as
2629 appropriate.
2630 * config/pa/som.h: Set TARGET_ASM_FILE_START to pa_som_file_start.
2631 * config/rs6000/rs6000.c: Include xcoffout.h when TARGET_XCOFF.
2632 (rs6000_file_start): Make static, take no arguments. Reset
2633 default_cpu under certain conditions.
2634 (rs6000_xcoff_file_start): New function.
2635 * config/rs6000/rs6000.h (TARGET_ASM_FILE_START): Set.
2636 * config/rs6000/xcoff.h (TARGET_ASM_FILE_START,
2637 TARGET_ASM_FILE_START_FILE_DIRECTIVE): Override.
2638 * config/sh/sh.c (output_file_start): Rename
2639 sh_file_start, make static, take no arguments. Merge in old
2640 code from sh/elf.h's ASM_FILE_START, conditioned on TARGET_ELF.
2641 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2642 * config/sh/sh.c (TARGET_ELF): Define to 0.
2643 * config/sh/elf.h (TARGET_ELF): Redefine to 1.
2644 * config/v850/v850.c (asm_file_start): Delete.
2645 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Set.
2646 * config/vax/vax.c (vax_file_start): New static function.
2647 (TARGET_ASM_FILE_START, TARGET_ASM_FILE_START_APP_OFF): Set.
2648
2649 * config/darwin.h: Override ASM_FILE_START_FILE_DIRECTIVE to false.
2650 * config/elfos.h, config/svr3.h, config/arm/elf.h, config/arm/pe.h
2651 * config/i386/att.h, config/i386/gas.h, config/i386/linux.h
2652 * config/i386/sysv4.h, config/i386/sco5.h, config/i960/i960-coff.h
2653 * config/m68k/coff.h, config/m68k/hp320.h, config/mcore/mcore-pe.h
2654 * config/vax/vaxv.h: Set ASM_FILE_START_FILE_DIRECTIVE to true.
2655
2656 * config/darwin.h, config/elfos.h, config/alpha/elf.h
2657 * config/alpha/openbsd.h, config/alpha/osf.h, config/alpha/vms.h
2658 * config/arc/arc.h, config/arm/aof.h, config/arm/aout.h
2659 * config/arm/coff.h, config/arm/elf.h, config/arm/pe.h
2660 * config/avr/avr.h, config/c4x/c4x.h, config/cris/cris.h
2661 * config/dsp16xx/dsp16xx.h, config/h8300/elf.h, config/h8300/h8300.h
2662 * config/i370/i370.h, config/i386/att.h, config/i386/gas.h
2663 * config/i386/i386-interix.h, config/i386/linux.h, config/i386/sysv4.h
2664 * config/i386/sco5.h, config/i960/i960-coff.h, config/i960/i960.h
2665 * config/ia64/ia64.h, config/ia64/sysv4.h, config/m32r/m32r.h
2666 * config/m68hc11/m68hc11.h, config/m68k/coff.h, config/m68k/m68k.h
2667 * config/mcore/mcore-pe.h, config/mips/iris6.h, config/mips/mips.h
2668 * config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h
2669 * config/pa/elf.h, config/pa/pa-linux.h, config/pa/pa64-hpux.h
2670 * config/pa/som.h, config/pdp11/pdp11.h, config/rs6000/linux64.h
2671 * config/rs6000/lynx.h, config/rs6000/xcoff.h, config/sh/elf.h
2672 * config/sh/sh.h, config/sparc/sparc.h, config/v850/v850.h
2673 * config/vax/vax.h, config/vax/vaxv.h: Don't (re)define ASM_FILE_START.
2674
2675 * config/alpha/alpha-protos.h, config/arc/arc-protos.h
2676 * config/avr/avr-protos.h, config/dsp16xx/dsp16xx-protos.h
2677 * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
2678 * config/m32r/m32r-protos.h, config/m68hc11/m68hc11-protos.h
2679 * config/mips/mips-protos.h, config/mmix/mmix-protos.h
2680 * config/mn10300/mn10300-protos.h, config/rs6000/rs6000-protos.h
2681 * config/sh/sh-protos.h, config/v850/v850-protos.h: Update.
2682
2683 * xcoffout.h, config/rs6000/aix.h, config/rs6000/xcoff.h:
2684 Remove reference to ASM_FILE_START in comment.
2685 * config/arm/aof.h, config/arm/aout.h, config/arm/freebsd.h
2686 * config/arm/linux-gas.h, config/arm/netbsd-elf.h
2687 * config/arm/netbsd.h: Delete definition of ARM_OS_NAME.
2688
e7f13528
GP
26892003-06-19 Graeme Peterson <gp@qnx.com>
2690
2691 * gcc.c (target_sysroot_suffix, target_sysroot_hdrs_suffix,
2692 SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC, sysroot_suffix_spec,
2693 sysroot_hdrs_suffix_spec): New.
2694 (static_specs): Initialize new variables.
2695 (add_sysroot_suffix_prefix, do_spec_1, main): Use new variables.
2696 * doc/tm.texi (SYSROOT_SUFFIX_SPEC, SYSROOT_HEADERS_SUFFIX_SPEC):
2697 New macros.
2698
35b1a6fa
AJ
26992003-06-19 Andreas Jaeger <aj@suse.de>
2700
d3ea6201 2701 * c-aux-info.c: Convert to ISO C90.
35b1a6fa
AJ
2702 * c-pragma.c: Likewise.
2703 * c-common.c: Likewise.
2704 * c-common.h: Likewise.
2705 * c-convert.c: Likewise.
2706 * c-cppbuiltin.c: Likewise.
2707 * c-dump.c: Likewise.
2708 * c-decl.c: Likewise
2709 * c-format.c: Likewise.
2710 * c-incpath.c: Likewise.
2711 * c-incpath.h: Likewise.
2712
6dab8d4c
RS
27132003-06-19 Roger Sayle <roger@eyesopen.com>
2714
2715 * builtins.c (expand_errno_check): Assume that flag_errno_math
2716 and HONOR_NANS have been tested before calling here. Only try
2717 to set errno ourselves if the decl can't throw an exception.
2718 (expand_builtin_mathfn): Move the code to stabilize the arg
2719 after the main switch, so that that its only done when needed.
2720 BUILT_IN_SQRT{,F,L} doesn't set errno if its arg is nonnegative.
2721 Don't modify the original expr when stabilizing the argument.
2722 (expand_builtin_mathfn_2): Likewise, move the code to stabilize
2723 the args after the main switch, and don't modify the orginal exp.
2724
5f6c070d 27252003-06-19 Aldy Hernandez <aldyh@redhat.com>
35b1a6fa 2726
1bc7c5b6
ZW
2727 * expr.c (const_vector_from_tree): Initialize remaining elements
2728 to 0.
5f6c070d 2729
e7a9b208
AH
27302003-06-19 Aldy Hernandez <aldyh@redhat.com>
2731
2732 * config/rs6000/spe.md ("spe_evfscfsi"): Change operand types.
2733 Change "fix" to "float".
2734
1681bed6
AJ
27352003-06-19 Andreas Jaeger <aj@suse.de>
2736
e295f317
AJ
2737 * c-tree.h: Remove declaration of poplevel.
2738
2739 * tree.h: Remove declaration of approx_sqrt.
2740
2741 * c-lex.c: Remove redundant declaration of asm_out_file.
2742
2743 * flags.h: Remove declaration of warn_unknown_pragma and
2744 main_input_filename.
2745
2746 * rtl.h: Remove functions from fold-const.c since they're already
2747 declared in tree.h.
2748
2749 * regs.h: Remove redundant declaration of reg_names.
2750
551dc360
AJ
2751 * bt-load.c (migrate_btr_defs): Correct printf arguments.
2752
1681bed6
AJ
2753 * protoize.c: Fix breakage from last patch.
2754
676fceeb
R
27552003-06-19 J"orn Rennecke <joern.rennecke@superh.com>
2756
2757 * hooks.h (hook_reg_class_void_no_regs): Only declare if tm.h
2758 has been included.
2759
85009435
JM
27602003-06-18 James A Morrison <ja2morri@student.math.uwaterloo.ca>
2761
2762 * config/sparc/sparc.c: Update copyright year.
2763
ddcc8263
DE
27642003-06-19 David Edelsohn <edelsohn@gnu.org>
2765
2766 * config/rs6000/rs6000.c (init_cumulative_args): Limit CALL_LIBCALL
2767 to ABI_V4.
2768
f37ceab9
JM
27692003-06-18 Joseph S. Myers <jsm@polyomino.org.uk>
2770
2771 PR bootstrap/4068
2772 * config/i386/liunx.h: Don't include sys/ucontext.h for glibc 2.0.
2773
6e014ef3
KH
27742003-06-19 Kazu Hirata <kazu@cs.umass.edu>
2775
2776 * config/h8300/h8300.c (TARGET_INITIALIZER and friends): Move
2777 to the end of the file. Remove unnecessary prototypes.
2778
5a9384dd
HPN
27792003-06-19 Hans-Peter Nilsson <hp@axis.com>
2780
2781 * bt-load.c (migrate_btr_def) [INSN_SCHEDULING]: Conditionalize
2782 calls to insn_default_latency and result_ready_cost. Initialize
2783 def_latency to 1.
2784
61193e7b
RH
27852003-06-18 Richard Henderson <rth@redhat.com>
2786
1bc7c5b6
ZW
2787 * config/ia64/unwind-ia64.c (_Unwind_GetCFA): New.
2788 (_Unwind_FindEnclosingFunction): Implement.
61193e7b 2789
a2f8629a
KH
27902003-06-18 Kazu Hirata <kazu@cs.umass.edu>
2791
2792 * toplev.c (rest_of_handle_sched): Hide the entire function if
2793 INSN_SCHEDULING is not defined.
2794 (rest_of_compilation): Call rest_of_handle_sched() only when
2795 INSN_SCHEDULING is defined.
2796
fe3ad572 27972003-06-18 Stephen Clarke <stephen.clarke@superh.com>
1bc7c5b6 2798 J"orn Rennecke <joern.rennecke@superh.com>
fe3ad572
SC
2799
2800 * bt-load.c: New file.
2801 * Makefile.in (OBJS): Include bt-load.o
2802 (bt-load.o): Add dependencies.
2803 * flags.h (flag_branch_target_load_optimize): Declare.
2804 (flag_branch_target_load_optimize2): Likewise.
2805 * hooks.c (hook_reg_class_void_no_regs): New function.
2806 (hook_bool_bool_false): Likewise.
2807 * hooks.h (hook_reg_class_void_no_regs, hook_bool_bool_false): Declare.
2808 * rtl.h (branch_target_load_optimize): Declare.
2809 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define.
2810 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
2811 (TARGET_INITIALIZER): Include these.
2812 * target.h (struct gcc_target): Add branch_target_register_class
2813 and branch_target_register_callee_saved members.
2814 * toplev.c (enum dump_file_index): Add DFI_branch_target_load
2815 (dump_file) Add "tars" entry.
2816 (flag_branch_target_load_optimize): New variable.
2817 (flag_branch_target_load_optimize2): Likewise.
2818 (lang_independent_options): Add entries for new options.
2819 (rest_of_compilation): Call branch_target_load_optimize.
2820 * doc/tm.texi (TARGET_BRANCH_TARGET_REGISTER_CLASS): Document.
2821 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
2822 * doc/invoke.texi: Document -fbranch-target-load-optimize and
2823 -fbranch-target-load-optimize2.
2824 * rtl.h (epilogue_completed): Declare.
2825 * recog.c (epilogue_completed): New variable.
2826 * toplev.c (rest_of_compilation): Set it.
2827 * flow.c (mark_regs_live_at_end): Use it.
2828 * config/ia64/ia64.c (ia64_output_mi_thunk): Set it.
2829 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
2830 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
2831 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
2832
2833 * sh.c (shmedia_space_reserved_for_target_registers): New variable.
2834 (sh_target_reg_class): New function.
2835 (sh_optimize_target_register_callee_saved): Likwise.
2836 (shmedia_target_regs_stack_space): Likewise.
2837 (shmedia_reserve_space_for_target_registers_p): Likewise.
2838 (shmedia_target_regs_stack_adjust): Likewise.
2839 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Override.
2840 (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
2841 (calc_live_regs): If flag_branch_target_load_optimize2 and
2842 TARGET_SAVE_ALL_TARGET_REGS is enabled, and we have space reserved
2843 for target registers, make sure that we save all target registers.
2844 (sh_expand_prologue, sh_expand_epilogue): Take target register
2845 optimizations into account. Collapse stack adjustments if that
2846 is beneficial.
2847 (initial_elimination_offset): Reserve space for target registers
2848 if necessary.
2849 * sh.h (SAVE_ALL_TR_BIT, TARGET_SAVE_ALL_TARGET_REGS): Define.
2850 (OPTIMIZATION_OPTIONS): Enable flag_branch_target_load_optimize.
2851
5a9335ef
NC
28522003-06-18 Nick Clifton <nickc@redhat.com>
2853
2854 * config.gcc: Add an extra_header for ARM targets.
1bc7c5b6 2855 Support configuring with --with-cpu=iwmmxt.
5a9335ef 2856 * doc/invoke.texi: Document new value for -mcpu= ARM switch.
1bc7c5b6 2857 * config/arm/aof.h (REGISTER_NAMES): Add iwmmxt register
35b1a6fa 2858 names. Fix formatting.
1bc7c5b6 2859 * config/arm/aout.h (REGISTER_NAMES): Add iwmmxt register
5a9335ef 2860 names.
1bc7c5b6 2861 * config/arm/arm-protos.h (arm_emit_vector_const): New
5a9335ef
NC
2862 prototype.
2863 (arm_output_load_gr): New prototype.
2864 * config/arm/arm.c (extra_reg_names1): Delete.
1bc7c5b6 2865 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN, FL_IWMMXT,
5a9335ef
NC
2866 * arch_is_iwmmxt): Define.
2867 (all_cores, all_architecture): Add entry for iwmmxt.
2868 (arm_override_options): Add support for iwmmxt.
2869 (use_return_insn, arm_function_arg, arm_legitimate_index_p,
2870 arm_print_value, arm_rtx_costs_1, output_move_double,
2871 arm_compute_save_reg_mask, arm_output_epilogue,
2872 arm_get_frame_size, arm_expand_prologue, arm_print_operand,
2873 arm_assemble_integer, arm_hard_regno_ok, arm_regno_class):
2874 Likewise.
2875 (arm_init_cumulative_args): Count iwmmxt registers.
2876 (arm_function_ok_for_sibcall): Return false of sibcall_blocked
2877 has been set.
2878 (struct minipool_node): Add fix_size field.
2879 (add_minipool_forward_ref): Add support for 8-byte aligning of
2880 the pool.
2881 (add_minipool_backward_ref, add_minipool_offsets,
2882 dump_minipool, push_minipool_fix): Likewise.
2883 (struct builtin_description): New struct.
1bc7c5b6
ZW
2884 (builtin_description): New array of iwmmxt builtin functions.
2885 (arm_init_iwmmxt_builtins): New function.
2886 (arm_init_builtins): New function.
2887 (safe_vector_operand): New function.
2888 (arm_expand_binop_builtin): New function.
2889 (arm_expand_unop_builtin): New function.
2890 (arm_expand_builtin): New function.
2891 (arm_emit_vector_const): New function.
2892 (arm_output_load_gr): New function.
2893 * config/arm/arm.h (TARGET_CPU_iwmmxt, TARGET_IWMMXT,
5a9335ef
NC
2894 TARGET_REALLY_IWMMXT, arm_arch_iwmmxt, IWMMXT_ALIGNMENT,
2895 TYPE_NEEDS_IWMMXT_ALIGNMENT, ADJUST_FIELD_ALIGN,
2896 DATA_ALIGNMENT, LOCAL_ALIGNMENT, VECTOR_MODE_SUPPORTED_P): Define.
1bc7c5b6
ZW
2897 (BIGGEST_ALIGNMENT): Set to 64 if ATPCS support is enabled.
2898 (CPP_CPU_ARCH_SPEC): Add entries for iwmmxt.
2899 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
5a9335ef
NC
2900 reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
2901 REG_CLASS_FOR_LETTER): Add iwmmxt registers.
1bc7c5b6 2902 (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Disable iwmmxt
5a9335ef 2903 registers unless the iwmmxt target is selected.
1bc7c5b6 2904 (FIRST_IWMMXT_GR_REGNUM, LAST_IWMMXT_GR_REGNUM,
5a9335ef
NC
2905 FIRST_IWMMXT_REGNUM, LAST_IWMMXT_REGNUM, IS_IWMMXT_REGNUM,
2906 IS_IWMMXT_GR_REGNUM): Define.
1bc7c5b6
ZW
2907 (FIRST_PSEUDO_REGISTER): Bump to 63.
2908 (struct machine_function): Add sibcall_blocked field.
2909 (Struct CUMULATIVE_ARGS): Add iwmmxt_nregs, named_count and
5a9335ef 2910 nargs fields.
1bc7c5b6
ZW
2911 (enum arm_builtins): New enum list.
2912 * config/arm/arm.md (UNSPEC_WSHUFH, UNSPEC_WACC,
5a9335ef
NC
2913 UNSPEC_TMOVMSK, UNSPEC_WSAD, UNSPEC_WSADZ, UNSPEC_WMACS,
2914 UNSPEC_WMACU, UNSPEC_WMACSZ, UNSPEC_WMACUZ, UNSPEC_CLRDI,
2915 UNSPEC_WMADDS, UNSPEC_WMADDU): New unspecs.
2916 (VUNSPEC_TMRC, VUNSPEC_TMCR, VUNSPEC_ALIGN8, VUNSPEC_WCMP_EQ,
2917 VUNSPEC_WCMP_GTU, VUNSPEC_WCMP_GT): New vunspecs.
1bc7c5b6
ZW
2918 (movv2si, movv4hi, movv8qi): New expands for vector moves.
2919 Include iwmmxt.md.
5a9335ef
NC
2920 * config/arm/t-xscale-elf (MULTILIB_OPITONS): Add iwmmxt
2921 multilib.
1bc7c5b6
ZW
2922 (MULTILIB_DIRNAMES, MULTILIB_REDUNDANT_DIRS): Likewise.
2923 * config/arm/mmintrin.h: New ARM specific header file.
2924 * config/arm/iwmmx.md: New iWMMXt specific machine patterns.
5a9335ef 2925
fe651b1d
R
29262003-06-18 J"orn Rennecke <joern.rennecke@superh.com>
2927
2928 * toplev.c (Remaining -d letters summary): Update.
2929
b9599e46
FS
29302003-06-18 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2931
2932 * config/rs6000/rs6000.c (init_cumulative_args): Add and handle LIBCALL
2933 argument.
2934 (function_arg): Handle CALL_LIBCALL flag.
2935 * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
2936 prototype.
2937 * config/rs6000/rs6000.h (CALL_LIBCALL): New macro.
2938 (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
2939 (INIT_CUMULATIVE_ARGS): Add LIBCALL argument.
2940 (INIT_CUMULATIVE_INCOMING_ARGS): Likewise.
2941
903caebf
NB
29422003-06-18 Neil Booth <neil@daikokuya.co.uk>
2943
2944 * Makefile.in: Update.
2945 * common.opt: New options.
2946 * opts.c (maybe_warn_unused_parameter, set_Wextra, handle_param,
2947 set_Wunused): New.
2948 (common_handle_option): Handle new options.
2949 * toplev.c (set_target_switch): Export.
2950 (set_Wextra, set_Wunused, maybe_warn_unused_parameter): Move to opts.c.
2951 (decode_W_option): -Wunused and -Wextra handled in opts.c now.
2952 (independent_decode_option): More options handled in opts.c now.
2953 Change prototype.
2954 * toplev.h (set_target_switch): New.
2955
f3f735eb
RA
29562003-06-17 Robert Abeles <rabeles@archaelogic.com>
2957
2958 PR debug/4252
2959 * c-opts.c (c_common_handle_option): Pass -fdump argument suffix
2960 to dump_switch_p().
2961 * tree-dump.c (dump_switch_p): Remove redundant 'dump-' prefix
2962 from static strings in dump_files.
2963
b0c231bb
KG
29642003-06-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2965
2966 * system.h (ANSI_PROTOTYPES, PTR_CONST, LONG_DOUBLE, VPARAMS,
2967 VA_OPEN, VA_FIXEDARG, VA_CLOSE, VA_START): undef and poison these
2968 libiberty macros.
2969
9da32fe1
JM
29702003-06-17 Jason Merrill <jason@redhat.com>
2971
2972 PR c++/10929
2973 * tree-inline.c (expand_call_inline): Don't warn about failing to
2974 inline a function which was made inline by -finline-functions.
2975
cb713a8d
KH
29762003-06-17 Kazu Hirata <kazu@cs.umass.edu>
2977
2978 * config/h8300/h8300-protos.h: Update to ISO C.
2979 * config/h8300/h8300.c: Likewise.
2980 * config/h8300/h8300.h: Likewise.
2981 * config/h8300/h8300.md: Likewise.
2982
eaf9f3b2
NN
29832003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
2984
2985 * configure.in: Replace BUILD_CC references with CC_FOR_BUILD.
2986 * configure: Regenerate.
2987 * Makefile.in: Replace BUILD_CC references with CC_FOR_BUILD.
2988
688d8b84
RM
29892003-06-17 Ranjit Mathew <rmathew@hotmail.com>
2990
2991 * install.texi (Testing): Add information on how to run Java
2992 runtime tests separately.
2993
1f11df32
RO
29942003-06-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2995
94b2a23b
RO
2996 * config/mips/mips.md (trap): Use break 0 when !TARGET_GAS.
2997
1f11df32
RO
2998 * config/mips/iris6-o32.h (MIPS_ISA_DEFAULT): Remove.
2999 (MIPS_CPU_STRING_DEFAULT): Redefine to mips2.
3000
11344b85
CF
30012003-06-17 Christopher Faylor <cgf@redhat.com>
3002
3003 * doc/install.texi: Add msvc rebuild caveat.
3004
c8f0269d
KH
30052003-06-17 Kazu Hirata <kazu@cs.umass.edu>
3006
3007 * config/sh/coff.h: Replace Hitachi with Renesas.
3008 * config/sh/elf.h: Likewise.
3009 * config/sh/embed-elf.h: Likewise.
3010 * config/sh/lib1funcs.asm: Likewise.
3011 * config/sh/sh-protos.h: Likewise.
3012 * config/sh/sh.c: Likewise.
3013 * config/sh/sh.h: Likewise.
3014 * config/sh/sh.md: Likewise.
3015
67f63f32
KH
30162003-06-17 Kazu Hirata <kazu@cs.umass.edu>
3017
3018 * ChangeLog.3: Fix comment typos.
3019 * ChangeLog.6: Likewise.
3020 * config/d30v/d30v.c: Likewise.
3021 * config/h8300/h8300.md: Likewise.
3022 * config/m32r/m32r.md: Likewise.
3023 * config/mips/mips.c: Likewise.
3024 * config/mips/mips.md: Likewise.
3025 * config/ns32k/NOTES: Likewise.
3026
0d5c606b 30272003-06-17 Ranjit Mathew <rmathew@hotmail.com>
1bc7c5b6 3028 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
35b1a6fa 3029
0d5c606b
RM
3030 * doc/sourcebuild.texi (libgcj Tests): Simplify instructions on how
3031 to run Java runtime tests separately.
3032
d32fad64
KH
30332003-06-17 Kazu Hirata <kazu@cs.umass.edu>
3034
3035 * config/h8300/h8300-protos.h: Update a comment.
3036
1bf93c14
R
30372003-06-17 J"orn Rennecke <joern.rennecke@superh.com>
3038
3039 * sh.h (ROUND_TYPE_ALIGN, LOCAL_ALIGNMENT): Complex modes
3040 are aligned like integral modes.
3041 (SH5_WOULD_BE_PARTIAL_NREGS): Also test for CDImode and DCmode.
3042
3043 * sh.h (EXTRA_CONSTRAINT_Csy): Allow PIC_DIRECT_ADDR_P.
3044 (LEGITIMATE_PIC_OPERAND_P): Allow LABEL_REF.
3045 * sh.md (*pt): Remove.
3046
3047 * sh.h (REG_ALLOC_ORDER): Avoid squandering call-saved registers.
3048
3049 * sh.md (return_media_rte): New pattern.
3050 (return_media): Use it.
3051
71c6b994
KH
30522003-06-17 Kazu Hirata <kazu@cs.umass.edu>
3053
3054 * doc/contrib.texi: Replace Hitachi with Renesas.
3055 * doc/install.texi: Likewise.
3056 * doc/invoke.texi: Likewise.
3057
fdc88a4d
R
30582003-06-17 J"orn Rennecke <joern.rennecke@superh.com>
3059
3060 * sh.h (CONST_OK_FOR_J16): Fix HOST_BITS_PER_WIDE_INT >= 64
3061 behaviour.
3062
7cf6c927
FS
30632003-06-17 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
3064
8207b189
FS
3065 * doc/tm.texi (MD_FALLBACK_FRAME_STATE_FOR): Mention MAKE_THROW_FRAME.
3066
7cf6c927
FS
3067 * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Partly revert
3068 2003-01-23 patch. Corrected to handle kernels with changed ucontext.
3069
3070 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Error on invalid
3071 -msdata=eabi usages.
3072
3073 * gcc/config/rs6000/sysv4.h (USE_LIBC_1): Delete all uses.
3074
a54928c9
KG
30752003-06-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3076
3077 * alloc-pool.c: Don't check HAVE_LONG_DOUBLE.
3078 * fixinc/gnu-regex.c: Don't define `volatile'.
3079 * ggc-page.c: Don't check HAVE_LONG_DOUBLE.
3080 * ggc-simple.c: Likewise.
3081 * system.h: Don't define `volatile'.
3082
3083 * aclocal.m4 (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Delete.
3084 * configure.in (gcc_AC_C_VOLATILE, gcc_AC_C_LONG_DOUBLE): Don't
3085 call these macros.
3086 * config.in, configure: Regenerated.
3087
8419b675
RK
30882003-06-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3089
3090 * config/ia64/ia64.c (ia64_expand_builtin, case IA64_BUILTIN_BSP):
3091 Handle POINTERS_EXTEND_UNSIGNED.
3092
c1e5104d
RO
30932003-06-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3094
3095 * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
3096 !TARGET_IRIX6]: Define as NULL.
3097
97587cfa
EB
30982003-06-17 Eric Botcazou <ebotcazou@libertysurf.fr>
3099
3100 * config/sparc/sparc.c (sparc_va_arg): Don't align 16-byte+ structures.
3101
a8d0467e
EB
31022003-06-17 Eric Botcazou <ebotcazou@libertysurf.fr>
3103
3104 * dbxout.c (dbxout_source_line_counter): New global variable.
3105 Mark it with GTY(()).
3106 (dbxout_source_line): Increment dbxout_source_line_counter
3107 and pass it to ASM_OUTPUT_SOURCE_LINE.
3108 * sdbout.c (sdbout_source_line_counter): New global variable.
3109 Mark it with GTY(()).
3110 (unnamed_struct_number): Mark it with GTY(()).
3111 (sdbout_source_line): Increment sdbout_source_line_counter
3112 and pass it to ASM_OUTPUT_SOURCE_LINE.
3113 * xcoffout.c (ASM_OUTPUT_SOURCE_LINE): Add third parameter
3114 (xcoffout_source_line): Pass 0 as third argument to
3115 ASM_OUTPUT_SOURCE_LINE.
3116 (xcoffout_begin_prologue): Likewise.
3117 * config/dbxout.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3118 Use it instead of 'sym_lineno' but without incrementing it.
3119 * config/dbxelf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3120 * config/lynx.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3121 * config/ptx4.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3122 * config/alpha/alpha.c (alpha_start_function): Pass 0 as third
3123 argument to ASM_OUTPUT_SOURCE_LINE.
3124 * config/alpha/alpha.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3125 * config/arm/aout.h: Remove useless comment.
3126 * config/avr/avr.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3127 * config/i960/i960.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3128 * config/m32r/m32r.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3129 Use it instead of 'sym_lineno' but without incrementing it.
3130 * config/m68k/hp320.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3131 * config/mcore/mcore-pe.h (ASM_OUTPUT_SOURCE_LINE): Add third
3132 parameter. Use it instead of 'sym_lineno' but without incrementing it.
3133 * config/mips/mips.c (mips_output_function_prologue): Pass 0 as third
3134 argument to ASM_OUTPUT_SOURCE_LINE.
3135 * config/mips/mips.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3136 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3137 * config/pa/som.h (ASM_OUTPUT_SOURCE_LINE): Add third parameter.
3138 Use it instead of 'sym_lineno' but without incrementing it.
3139 * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3140 * config/sh/elf.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3141 * config/sparc/aout.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3142 * config/sparc/pbd.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
3143 * doc/tm.texi (ASM_OUTPUT_SOURCE_LINE): Document third parameter.
3144
730cf822
RS
31452003-06-17 Richard Sandiford <rsandifo@redhat.com>
3146
3147 * config/mips/mips-protos.h (mips_expand_block_move): Declare.
3148 (expand_block_move, output_block_move): Remove.
3149 * config/mips/mips.h (enum block_move_type): Remove.
3150 * config/mips/mips.c (block_move_call, output_block_move): Remove.
3151 (mips_block_move_straight, mips_adjust_block_mem): New function.
3152 (mips_block_move_loop): Renamed and reworked from block_move_loop.
3153 (mips_expand_block_move): Likewise expand_block_move. Return false
3154 to fall back on the target-independent code.
3155 * config/mips/mips.md (movstrsi): Use mips_expand_block_move.
3156 (movstrsi_internal*): Remove.
3157
6cf87ca4
ZW
31582003-06-16 Zack Weinberg <zack@codesourcery.com>
3159
3160 * cpplib.h, cpphash.h, cppcharset.c, cpperror.c, cppexp.c
3161 * cppfiles.c, cpphash.c, cppinit.c, cpplex.c, cpplib.c
3162 * cppmacro.c, cpppch.c, cpptrad.c, cppspec.c: Convert to
3163 ISO C: new-style function declarations, no need for PARAMS,
3164 no special punctuation on indirect function calls, use string
3165 constant concatenation where convenient.
3166
5b0e2409
AJ
31672003-06-17 Andreas Jaeger <aj@suse.de>
3168
3169 * rtl.h: Remove declarations from coverage.h.
3170 * toplev.c: Include coverage.h.
3171 * Makefile.in (toplev.o): Depend on coverage.h.
3172
3173 * toplev.h: Remove extra declaration of print_time.
3174
3175 * gengtype.c (close_output_files): Remove duplicated declaration.
3176
77094862
NN
31772003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
3178
cc0651d2
NN
3179 * config/sparc/sysv4.h: Remove target-independent comment;
3180 replace "GNU CC" with "GCC".
b06c827c 3181 * config/vxworks.h: Replace "GNU compiler" with "GCC".
de0a398e
NN
3182 * config/sparc/aout.h, config/sparc/biarch64.h, config/sparc/elf.h,
3183 config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
3184 config/sparc/lite.h, config/sparc/litecoff.h, config/sparc/liteelf.h,
6cf87ca4 3185 config/sparc/netbsd-elf.h, config/sparc/openbsd.h,
de0a398e
NN
3186 config/sparc/rtemself.h, config/sparc/sol2-64.h,
3187 config/sparc/sol2-bi.h, config/sparc/sol2-gas-bi.h,
3188 config/sparc/sol2-gld-bi.h, config/sparc/sol2-gld.h,
6cf87ca4 3189 config/sparc/sol2.h, config/sparc/sp64-aout.h,
de0a398e
NN
3190 config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h,
3191 config/sparc/sparc-protos.h, config/sparc/sysv4-only.h: Replace
3192 "GNU compiler", "GNU CC" with "GCC".
4d8af13f
NN
3193 * config/sparc/cypress.md, config/sparc/hypersparc.md,
3194 config/sparc/sparc-modes.def, config/sparc/sparc.c,
3195 config/sparc/sparc.md, config/sparc/sparclet.md,
3196 config/sparc/supersparc.md, config/sparc/ultra1_2.md,
3197 config/sparc/ultra3.md: Replace "GNU CC", "GNU Compiler", and
3198 "GNU C Compiler" with "GCC".
77094862
NN
3199 * config/ip2k/ip2k.h: Replace "GNU CC" and "GNU compiler" with "GCC".
3200
0a84d874
AH
32012003-06-16 Aldy Hernandez <aldyh@redhat.com>
3202
3203 * simplify-rtx.c (simplify_subreg): Do not over-extend vector
3204 constants.
3205
3206 * testsuite/gcc.c-torture/execute/simd-4.c: New.
3207
9cd598aa
NN
32082003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
3209
c24851de
NN
3210 * config/ip2k/ip2k.h: Remove target-independent comments.
3211
9cd598aa
NN
3212 * config.gcc: Explicitly mention elfos.h in ip2k entry.
3213 * config/ip2k/ip2k.h: Don't #include it here.
3214
4ff58371
KG
32152003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3216
fad205ff
KG
3217 * bitmap.c, builtins.c, c-incpath.c, cgraph.c, config/frv/frv.c,
3218 config/mips/mips.c, cppfiles.c, cpphash.c, cppinit.c, cpplib.c,
3219 dwarf2out.c, dwarfout.c, except.c, expr.c, expr.h, fold-const.c,
3220 function.c, gcc.c, genoutput.c, gensupport.c, global.c,
3221 haifa-sched.c, hashtable.c, ifcvt.c, integrate.c, local-alloc.c,
3222 loop.c, mips-tdump.c, mips-tfile.c, mkdeps.c, protoize.c,
3223 read-rtl.c, recog.h, reload1.c, sbitmap.c, ssa-dce.c,
3224 stringpool.c, tlink.c, tree.c, varasm.c, varray.c: Don't use
3225 the PTR macro.
3226
4ff58371
KG
3227 * gengtype.c: Don't use UNION_INIT_ZERO.
3228 * system.h (UNION_INIT_ZERO): Delete.
3229
799ab2c7
RH
32302003-06-16 Richard Henderson <rth@redhat.com>
3231
3232 * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE instead of
3233 GET_MODE_UNIT_SIZE when simplifying constant vectors.
3234
33b0d00f
AJ
32352003-06-16 Andreas Jaeger <aj@suse.de>
3236
3237 * timevar.c (get_run_time): Remove function provided also by
3238 libiberty.
3239 * timevar.h: Remove get_run_time declaration.
3240
3391875b
KH
32412003-06-16 Kazu Hirata <kazu@cs.umass.edu>
3242
3243 * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): Remove
3244 unreachable code.
3245
9a238586
KG
32462003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3247
3248 * builtin-attrs.def, builtin-attrs.def, builtins.c, cpplex.c,
3249 cpplib.c, gencheck.c, gengenrtl.c, machmode.def, protoize.c: Don't
3250 use macros from "symcat.h", instead rely on ISO C.
6cf87ca4 3251
9a238586
KG
3252 * system.h: Don't include "symcat.h".
3253 * configure.in (AC_C_STRINGIZE): Delete.
3254 * config.in, configure: Regenerate.
3255
7f42b6d7
RK
32562003-06-16 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3257
f0c4fac7
RK
3258 * Makefile.in (install-mkheaders): Use INSTALL_SCRIPT for scripts.
3259
7f42b6d7
RK
3260 * tree.h (STMT_CHECK): New macro.
3261 Also upper-case argument names on all checking macros and
3262 fix some whitespace problems; assume CODE argument does not
3263 have side-effects.
3264
89d09f83
KG
32652003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3266
2a0621b9
KG
3267 * scan.h: Convert to ISO C.
3268 * system.h: Likewise.
3269
89d09f83
KG
3270 * c-format.c (dynamic_format_types): New pointer for dynamic data.
3271 (find_length_info_modifier_index, init_dynamic_asm_fprintf_info):
3272 New functions split out of...
3273 (handle_format_attribute): ...here.
3274
735cb76e
R
32752003-06-16 J"orn Rennecke <joern.rennecke@superh.com>
3276
3277 * sh.h (REG_CLASS_FROM_LETTER): Change to:
3278 (REG_CLASS_FROM_CONSTRAINT).
3279 (CONST_OK_FOR_I): Rename to:
3280 (CONST_OK_FOR_I08). Changed all users.
3281 (CONST_OK_FOR_J): Rename to:
3282 (CONST_OK_FOR_I16). Changed all users.
3283 (CONST_OK_FOR_K): Rename to:
3284 (CONST_OK_FOR_P27). Changed all users.
3285 (CONST_OK_FOR_L): Rename to:
3286 (CONST_OK_FOR_K08). Changed all users.
3287 (CONST_OK_FOR_O): Rename to:
3288 (CONST_OK_FOR_I06). Changed all users.
3289 (CONST_OK_FOR_P): Rename to:
3290 (CONST_OK_FOR_I10). Changed all users.
3291 (CONSTRAINT_LEN, CONST_OK_FOR_I, CONST_OK_FOR_J16): Define.
3292 (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_P): Likewise.
3293 (EXTRA_CONSTRAINT_A, EXTRA_CONSTRAINT_Bsc): Likewise.
3294 (EXTRA_CONSTRAINT_B, PIC_OFFSET_P, PIC_DIRECT_ADDR_P): Likewise.
3295 (EXTRA_CONSTRAINT_Cpg, EXTRA_CONSTRAINT_C): Likewise.
3296 (EXTRA_MEMORY_CONSTRAINT,(EXTRA_CONSTRAINT_Sr0): Likewise.
3297 (CONST_OK_FOR_LETTER_P): Replace with
3298 (CONST_OK_FOR_CONSTRAINT_P).
3299 (EXTRA_CONSTRAINT_S): Rename to:
3300 (EXTRA_CONSTRAINT_C16). Changed all users.
3301 (MOVI_SHORI_BASE_OPERAND_P): Don't allow direct addresses.
3302 (EXTRA_CONSTRAINT_T): Rename to:
3303 (EXTRA_CONSTRAINT_Csy). Changed all users.
3304 (EXTRA_CONSTRAINT_Z): Remove.
3305 (EXTRA_CONSTRAINT): Replace with:
3306 (EXTRA_CONSTRAINT_STR).
3307 (EXTRA_CONSTRAINT_U): Rename to:
3308 (EXTRA_CONSTRAINT_Z). Changed all users.
3309 * sh.c (and_operand): Use CONST_OK_FOR_J16.
3310 * sh.md (cmpeqsi_t-1, cmpeqsi_t, adddi3_media): Use new constraints.
3311 (addsi3_media, addsi3_compact, andsi3_compact, anddi3): Likewise.
3312 (iorsi3, iordi3, xorsi3, xordi3, ashlsi3_std, ashlhi3_k): Likewise.
3313 (lshrsi3_k, movsi_i, movsi_ie, movsi_i_lowpart, movsi_media): Likewise.
3314 (movsi_media_nofpu, movqi_media, movhi_i, movhi_media): Likewise.
3315 (*movdi_i, movdi_media, movdi_media_nofpu, shori_media): Likewise.
3316 (movdf_media, movdf_media_nofpu, movv2sf_i, movv4sf_i): Likewise.
3317 (movsf_media, movsf_media_nofpu, movsi_y, beq_media): Likewise.
3318 (beq_media_i, bne_media, pt, ptb, movv8qi_i, movv2hi_i): Likewise.
3319 (movv4hi_i, movv2si_i, negcmpeqv8qi, negcmpeqv2si): Likewise.
3320 (negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si, negcmpgtv4hi): Likewise.
3321 (mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub, mextr_rl, mextr_lr): Likewise.
3322 (mextr1, mextr2, mextr3, mextr4, mextr5, mextr6, mextr7): Likewise.
3323 (mperm_w, mperm_w_little, mperm_w_big, msad_ubq_i): Likewise.
3324 (mshards_q, mshfhi_b, mshflo_b, mshf4_b, mshf0_b, mshfhi_l): Likewise.
3325 (mshflo_l, mshf4_l, mshf0_l, mshfhi_w, mshflo_w, mshf4_w): Likewise.
3326 (mshf0_w, mshflo_w_x, mshfhi_l_di, mshfhi_l_di_rev): Likewise.
3327 (mshflo_l_di_rev, mshflo_l_di_x, concat_v2sf): Likewise.
3328 (mshflo_l_di_x_rev, subv2si3, subv4hi3, sssubv2si3): Likewise.
3329 (sssubv4hi3): Likewise.
3330 (movsf_i): Change I[08]/r to G/r.
3331 (movsf_ie): Change f/{G,H}/c/X to f/{G,H}/c/Bsc.
3332
3333 * sh.c (sh_output_mi_thunk): Use CONST_OK_FOR_ADD.
3334
bce75972
VM
33352003-06-16 Vladimir Makarov <vmakarov@redhat.com>
3336
3337 * config/i386/i386.c (ix86_memory_move_cost): Fix typo.
3338
ebf0d392
AJ
33392003-06-16 Andreas Jaeger <aj@suse.de>
3340
9286d5a8
AJ
3341 * basic-block.h: Remove duplicate prototype of
3342 note_prediction_to_br_prob.
3343
ebf0d392
AJ
3344 * tree.h: Remove duplicate prototype of strip_float_extensions.
3345
0eff02cd
KG
33462003-06-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3347
3348 * config/c4x/c4x.c: Don't include "c-tree.h".
3349 * config/pa/pa.c: Likewise.
3350 * langhooks.c: Likewise.
3351 * tree.h (poplevel): Declare.
3352
08dca707
KH
33532003-06-16 Kazu Hirata <kazu@cs.umass.edu>
3354
3355 * config/h8300/h8300.c (const_costs): Move this to ...
3356 (h8300_rtx_costs): ... here.
3357
82d397c7
RS
33582003-06-16 Roger Sayle <roger@eyesopen.com>
3359
3360 * optabs.h (enum optab_index): Add new OTI_tan and OTI_atan.
3361 (tan_optab, atan_optab): Define corresponding macros.
3362 * optabs.c (init_optabs): Initialize tan_optab and atan_optab.
3363 * genopinit.c (optabs): Implement tan_optab and atan_optab
3364 using tan?f2 and atan?f2 patterns.
3365 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_TAN{,F,L}
3366 using tan_optab, and BUILT_IN_ATAN{,F,L} using atan_optab.
3367 Change the default value of errno_set to false.
3368 (expand_builtin): Expand BUILT_IN_TAN{,F,L} and BUILT_IN_ATAN{,F,L}
3369 using expand_builtin_mathfn.
3370
3371 * config/i386/i386.md (atansf2, atandf2, atanxf2, atantf2): New
3372 expander patterns implemented using existing atan2?f3 patterns.
3373
c6547c92
RS
33742003-06-16 Roger Sayle <roger@eyesopen.com>
3375
3376 * expr.c (expand_expr <PLUS_EXPR>): If operand_equal_p considers
3377 both operands of the addition equal, reuse the expanded RTL.
3378 (expand_expr <MULT_EXPR>): Likewise for multiplication.
3379
21c43754
RS
33802003-06-16 Roger Sayle <roger@eyesopen.com>
3381 Jeff Law <law@redhat.com>
3382
3383 * fold-const.c (operand_equal_p): Consider two calls to "const"
3384 functions with identical non-volatile arguments to be equal.
3385 Consider the FUNCTION_DECL for the "__builtin_foo" form of a
3386 built-in function to be equal to the "foo" form.
3387
93ffe49c
NN
33882003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
3389
3390 * config/rs6000/sysv4le.h: Remove target-independent comment.
3391 Replace "GNU compiler" with "GCC" in comment.
3392
baaa1222
AJ
33932003-06-16 Andreas Jaeger <aj@suse.de>
3394
1a9962c2 3395 * tracer.c: Remove duplicate declaration.
baaa1222
AJ
3396
3397 * toplev.c: Remove extra declaration of decode_d_option.
3398
3399 * ssa.c: Remove duplicate declaration.
3400
3401 * sreal.c: Remove extra declaration of dump_sreal.
3402
3403 * reload1.c: Remove duplicate declarations.
3404
3405 * integrate.c: Remove extra declaration of
3406 set_decl_abstract_flags.
3407
3408 * flow.c: Remove extra declaration of dump_flow_info.
3409
3410 * alias.c: Remove extra declaration of get_addr.
3411
5e6908ea
NN
34122003-06-16 Nathanael Nerode <neroden@gcc.gnu.org>
3413
814499a4
NN
3414 * config/rtems.h, config/sol2.h, config/svr4.h, config/usegas.h,
3415 config/vxworks.h: GNU CC -> GCC.
3416
5e6908ea
NN
3417 * convert.c, dwarf2out.c, dwarfout.c, emit-rtl.c, function.c,
3418 lists.c, print-rtl.c, print-tree.c, read-rtl.c, rtl-error.c,
3419 stmt.c, toplev.c, integrate.h, loop.h, machmode.h, rtl.h,
3420 ssa.h, tree.def: Replace overly specific references to "GNU C"
3421 and "GNU C Compiler" with references to "GCC".
3422
3ff5ef1b
R
34232003-06-16 J"orn Rennecke <joern.rennecke@superh.com>
3424
266a2732
R
3425 * sh.c (prepare_move_operand): Check if operand 0 is an invalid
3426 memory reference. Fix test that checks if operand 1 is using r0.
3427 * sh.md (movhi_i): Don't allow st.w r0,@(rX,rY) .
3428
3429 * defaults.h (REG_CLASS_FROM_CONSTRAINT): Only define if not already
3430 defined.
3ff5ef1b 3431
fd3acbb3
NS
34322003-06-15 Nathan Sidwell <nathan@codesourcery.com>
3433
3434 * function.h (struct emit_status): Remove x_last_linenum,
3435 x_last_filename. Add x_last_location.
3436 * rtl.h: #include "input.h".
3437 (NOTE_DATA): New.
3438 * cfglayout.c (duplicate_insn_chain): Use emit_line_note for line
3439 number notes.
3440 * emit-rtl.c (last_linenum, last_filename): Remove.
3441 (last_location): New.
3442 (emit_line_note_after): LINE must always be >= 0.
3443 (emit_line_note): Likewise. Check not duplicate here...
3444 (emit_note): ... rather than here.
3445 (emit_line_note_force, force_next_line_note, init_emit): Adjust.
3446 * integrate.c (expand_inline_function): Use emit_line_note for
3447 line number notes.
3448 (copy_insn_list): Likewise.
3449 * unroll.c (copy_loop_body): Likewise.
3450 * Makefile.in (RTL_H): Add input.h.
3451
695a94b3
RS
34522003-06-16 Richard Sandiford <rsandifo@redhat.com>
3453
3454 * optabs.c (emit_libcall_block): Don't hoist insns past a label.
3455
a5c24926
RH
34562003-06-16 Richard Henderson <rth@redhat.com>
3457
3458 * config/alpha/alpha-protos.h, config/alpha/elf.h,
3459 config/alpha/osf.h, config/alpha/unicosmk.h, config/alpha/vms.h,
3460 config/alpha/vms-cc.c, config/alpha/vms-ld.c: Update to ISO C.
3461 * config/alpha/alpha.c: Likewise. Move targetm init to end of file.
3462 Remove unneeded static function decls.
3463
7b086b11
NB
34642003-06-16 Neil Booth <neil@daikokuya.co.uk>
3465
3466 * c-opts.c (c_common_handle_option): s/on/value/.
3467 (OPT_fabi_version_, OPT_ftabstop_, OPT_ftemplate_depth_): Use value
3468 directly rather than converting the argument.
3469 * c.opt: Update docs. Use UInteger where appropriate.
3470 * common.opt: Use UInteger where appropriate.
3471 * opts.c (integral_argument): New.
3472 (handle_argument): Handle integral arguments, and optional
3473 joined arguments.
3474 (common_handle_option): Update.
3475 * opts.h (CL_MISSING_OK, CL_UINTEGER): New.
3476 * opts.sh: Handle JoinedOrMissing and UInteger flags.
3477
89aa997a
NB
34782003-06-16 Neil Booth <neil@daikokuya.co.uk>
3479
3480 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Remove
3481 unnecessary extern declaration.
3482
612aeba5
NN
34832003-06-15 Nathanael Nerode <neroden@gcc.gnu.org>
3484
9286d5a8
AJ
3485 * config/gofast.h, config/interix.h, config/interix3.h,
3486 config/libgloss.h, config/linux-aout.h, config/linux.h,
2a71dcad
NN
3487 config/lynx-ng.h, config/lynx.h: GNU CC -> GCC.
3488 * config/kaos.h: "GNU compiler" -> GCC.
3489 * config/linux-aout.h, config/lynx.h: Clarify comment describing file.
3490
0743f00d
NN
3491 * config/ip2k/crt0.S, config/ip2k/ip2k-protos.h,
3492 config/ip2k/ip2k.c, config/ip2k/ip2k.md, config/ip2k/libgcc.S:
3493 GNU CC -> GCC.
3494
9286d5a8 3495 * config/svr3.h: Remove #if 0 code, misleading comments.
612aeba5
NN
3496 GNU CC -> GCC.
3497
64c1652c
ZW
34982003-06-15 Zack Weinberg <zack@codesourcery.com>
3499
3500 * vmsdbgout.c (vmsdbgout_finish): Rename parameter to
3501 main_input_filename to avoid conflict with input_filename macro.
3502
8f95bd52
NB
35032003-06-15 Neil Booth <neil@daikokuya.co.uk>
3504
3505 * config/mips/mips.h (asm_file_name, g_switch_set,
3506 g_switch_value): Remove.
3507 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
3508 unnecessary extern declarations.
3509
a352c71f
NB
35102003-06-15 Neil Booth <neil@daikokuya.co.uk>
3511
3512 * config/frv/frv.h: Remove declaration of g_switch_value.
3513 * config/m32r/m32r.h: Remove declaration of g_switch_value.
3514 * config/m68hc11/m68hc11.c: Remove declaration of asm_file_name.
3515
5641d622
NB
35162003-06-15 Neil Booth <neil@daikokuya.co.uk>
3517
3518 * opts.sh: Quote '+' in regex.
3519
117dca74
AP
35202003-06-15 Andrew Pinski <pinskia@physics.uc.edu>
3521
3522 * config/rs6000/t-rs6000: Add dependence of cfglayout.h to rs6000.o.
3523 * config/rs6000/rs6000.c: Include cfglayout.h.
3524 * config/alpha/alpha.c: Likewise.
3525 * config/ia64/ia64.c: Likewise.
3526 * config/sparc/sparc.c: Likewise.
3527 * config/sh/sh.c: Likewise.
3528
3ec76475
NB
35292003-06-15 Neil Booth <neil@daikokuya.co.uk>
3530
3531 * opts.sh: Quote '+' in regex.
3532
be43ab4e
NB
35332003-06-15 Neil Booth <neil@daikokuya.co.uk>
3534
3535 * c-opts.c (lang_flags): Update for new spelling of flags.
3536 (write_langs): Similarly.
3537 * c.opt: Specify languages.
3538 * opts.h: Remove languages.
3539 * opts.sh: Recognise front-end defined languages.
fd3acbb3 3540 * doc/sourcebuild.texi: Update.
be43ab4e 3541
4682ae04
AJ
35422003-06-15 Andreas Jaeger <aj@suse.de>
3543
3544 * alloc-pool.c: Convert to ISO C90 prototypes.
3545 * alloc-pool.h: Likewise.
3546 * alias.c: Likewise.
3547 * attribs.c: Likewise.
3548 * bb-reorder.c: Likewise.
3549 * bitmap.h: Likewise.
3550 * bitmap.c: Likewise.
3551 * builtins.c: Likewise.
3552
3553 * tree.h: Convert prototypes of attribs.c to ISO C90.
3554 * basic-block.h: Convert prototypes of bb-reorder.c to ISO C90.
3555 * rtl.h: Convert prototypes of alias.c and builtins.c to ISO C90.
3556 * expr.h: Convert prototypes of builtins.c to ISO C90.
3557
9d5b9dae
RS
35582003-06-15 Roger Sayle <roger@eyesopen.com>
3559
3560 * config/i386/i386.md (expsf2, expdf2, expxf2): New patterns to
3561 implement exp, expf and expl built-ins as inline x87 intrinsics.
3562 (UNSPEC_FSCALE, UNSPEC_FRNDINT, UNSPEC_F2XM1): New unspecs to
3563 represent x87's fscale, frndint and f2xm1 insns respectively.
3564 (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): New insn patterns
3565 to encode x87's "fscale" instruction followed by a pop.
3566 (*frndintxf2): New insn pattern for "frndint".
3567 (*f2xm1xf2): New insn pattern for "f2xm1".
3568
3569 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FRNDINT and
3570 UNSPEC_F2XM1 like UNSPEC_{SIN,COS} and handle UNSPEC_FSCALE like
3571 UNSPEC_FPATAN.
3572
84fb2019
RK
35732003-06-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3574
cbdb4ba2
RK
3575 * gencheck.c (main): Avoid generating duplicate macros.
3576
84fb2019
RK
3577 * Makefile.in (stagefeedback-start): Use $(SUBDIRS) instead of
3578 knowing names of language subdirectories.
3579
d185d268
NB
35802003-06-15 Neil Booth <neil@daikokuya.co.uk>
3581
3582 * c-pch.c (asm_file_name): Remove.
3583 * common.opt: Add more switches.
3584 * flags.h (g_switch_set): Boolify.
3585 * opts.c (g_switch_value, g_switch_set, exit_after_options,
3586 version_flag): Move from toplev.c.
3587 (common_handle_option): Handle more switches from toplev.c.
3588 * toplev.c (display_help, display_target_options, decode_d_option,
3589 print_version): Make non-static, remove prototypes.
3590 (aux_base_name, asm_file_name, aux_info_file_name): Constify.
3591 (version_flag, g_switch_value, g_switch_set, exit_after_options):
3592 Remove.
3593 (independent_decode_option): Move some handlers to opts.c.
3594 * toplev.h (aux_info_file_name, aux_base_name, asm_file_name,
3595 exit_after_options, version_flag, display_help, display_target_options,
3596 print_version, decode_d_option): New.
3597
72ac76be
KH
35982003-06-15 Kazu Hirata <kazu@cs.umass.edu>
3599
3600 * config/alpha/alpha.md: Follow spelling conventions.
3601 * config/arm/arm.c: Likewise.
3602 * config/arm/arm.h: Likewise.
3603 * config/arm/arm.md: Likewise.
3604 * config/arm/crtn.asm: Likewise.
3605 * config/m32r/m32r.c: Likewise.
3606 * config/m32r/m32r.md: Likewise.
3607 * config/rs6000/rs6000.c: Likewise.
3608
a2855205
RH
36092003-06-15 Richard Henderson <rth@redhat.com>
3610
3611 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
3612 insn_locators_initialize.
3613 * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
3614 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
3615 * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
3616 * config/sh/sh.c (sh_output_mi_thunk): Do it later.
3617
51fbbb30
KH
36182003-06-15 Kazu Hirata <kazu@cs.umass.edu>
3619
3620 * builtins.c (expand_builtin_expect_jump): Remove redundant
3621 tests that are also in any_condjump_p().
3622
e87b9d8b
KG
36232003-06-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3624
3625 * libgcc2.c: Delete sysV68 L_trampoline section.
3626 * config/m68k/mot3300-crt0.S: Delete file.
3627 * config/m68k/mot3300Mcrt0.S: Likewise.
3628
ad9b8af6
NN
36292003-06-15 Nathanael Nerode <neroden@gcc.gnu.org>
3630
3631 * config/aoutos.h: Remove.
3632 * config.gcc: Remove reference to aoutos.h.
3633 * config/m68k/m68k-aout.h: Remove reference to aoutos.h.
3634
0b4be7de
KH
36352003-06-14 Kazu Hirata <kazu@cs.umass.edu>
3636
3637 * doc/install.texi: Follow spelling conventions.
3638 * doc/tm.texi: Likewise.
3639 * config/fp-bit.c: Likewise.
3640 * config/arm/arm.c: Likewise.
3641 * config/frv/frv.c: Likewise.
3642 * config/ns32k/NOTES: Likewise.
3643 * config/ns32k/STATUS: Likewise.
3644
06f31100
RS
36452003-06-14 Roger Sayle <roger@eyesopen.com>
3646 Zack Weinberg <zack@codesourcery.com>
3647
3648 * rtl.h (STORE_FLAG_VALUE): Remove default definition from here.
3649 * defaults.h (STORE_FLAG_VALUE): Move default definition to here.
3650 * doc/tm.texi (STORE_FLAG_VALUE): Document the default value.
3651
3652 * config/alpha/alpha.h (STORE_FLAG_VALUE): Remove definition.
3653 * config/arc/arc.h (STORE_FLAG_VALUE): Likewise.
3654 * config/arm/arm.h (STORE_FLAG_VALUE): Likewise.
3655 * config/cris/cris.h (STORE_FLAG_VALUE): Likewise.
3656 * config/i370/i370.h (STORE_FLAG_VALUE): Likewise.
3657 * config/i386/i386.h (STORE_FLAG_VALUE): Likewise.
3658 * config/i960/i960.h (STORE_FLAG_VALUE): Likewise.
3659 * config/ia64/ia64.h (STORE_FLAG_VALUE): Likewise.
3660 * config/ip2k/ip2k.h (STORE_FLAG_VALUE): Likewise.
3661 * config/m32r/m32r.h (STORE_FLAG_VALUE): Likewise.
3662 * config/mcore/mcore.h (STORE_FLAG_VALUE): Likewise.
3663 * config/mips/mips.h (STORE_FLAG_VALUE): Likewise.
3664 * config/mmix/mmix.h (STORE_FLAG_VALUE): Likewise.
3665 * config/ns32k/ns32k.h (STORE_FLAG_VALUE): Likewise.
3666 * config/pa/pa.h (STORE_FLAG_VALUE): Likewise.
3667 * config/pdp11/pdp11.h (STORE_FLAG_VALUE): Likewise.
3668 * config/sh/sh.h (STORE_FLAG_VALUE): Likewise.
3669 * config/sparc/sparc.h (STORE_FLAG_VALUE): Likewise.
3670 * config/v850/v850.h (STORE_FLAG_VALUE): Likewise.
3671 * config/xtensa/xtensa.h (STORE_FLAG_VALUE): Likewise.
3672
ee6b0296
NS
36732003-06-14 Nathan Sidwell <nathan@codesourcery.com>
3674
b7a70588
NS
3675 * opts.sh (POSIXLY_CORRECT): Unset it.
3676
ee6b0296
NS
3677 * tree.h (init_function_start): Remove filename and line paramters.
3678 * function.c (init_function_start): Remove filename and line
3679 parameters. Use DECL_SOURCE_LOCATION.
3680 * c-decl.c (store_parm_decls): Adjust init_function_start call.
3681 (c_expand_body_1): Likewise.
3682 * coverage.c (create_coverage): Likewise.
3683 * objc/objc-act.c (build_tmp_function_decl): Set line number to
3684 zero.
3685 (hack_method_prototype): Adjust init_function_start call.
3686
2fbe6bc2
RE
36872003-06-14 Richard Earnshaw <rearnsha@arm.com>
3688
3689 PR target/3724
3690 * arm/linux-elf.h (PROFILE_HOOK): Define.
3691
75d2580c
RE
36922003-06-14 Richard Earnshaw <rearnsha@arm.com>
3693
3694 PR target/11183
3695 * arm.h (CANNOT_CHANGE_MODE_CLASS): Define.
3696
3708da2a
RS
36972003-06-14 Roger Sayle <roger@eyesopen.com>
3698
3699 * opts.sh: Work around a mysterious feature in cygwin's gawk
3700 where specifying the input files explicitly has a different
3701 behavior to piping them via stdin.
3702
9756074d
NB
37032003-06-14 Neil Booth <neil@daikokuya.co.uk>
3704
3705 * doc/sourcebuild.texi: Update.
3706
a4a37b30
RE
37072003-06-14 Richard Earnshaw <rearnsha@arm.com>
3708
3709 PR target/11183
3710 * arm.c (output_move_double): Pass SImode to adjust_address.
3711
d7b42618
NB
37122003-06-14 Neil Booth <neil@daikokuya.co.uk>
3713
3714 * Makefile.in: Update to use common.opt and lang_opt_files.
3715 (c-options.c, c-options.h): Remove.
3716 (options.c, options.h): Add.
3717 * c-opts.c: Include options.h not c-options.h.
3718 * common.opt: New file.
3719 * configure, configure.in: Add lang_opt_files.
3720 * opts.c: Include flags.h and diagnostic.h.
3721 (common_handle_option): New.
3722 (handle_option): Update to recognize common options and all
3723 language-dependent options.
3724 * opts.h (CL_F77, CL_JAVA, CL_ADA, CL_COMMON, CL_TREELANG): New.
3725 (struct cl_option): Make flags of type int.
3726 * opts.h: Flag option with front ends to which it applies.
3727 Handle duplicate options.
3728 * toplev.c (filename): Remove.
3729 (independent_decode_option): Don't handle filenames and -quiet.
3730 (process_options, do_compile): Update.
3731
34e8290f
NC
37322003-06-14 Nick Clifton <nickc@redhat.com>
3733
3734 * doc/install.texi (Specific): Add description of different
3735 ARM supported file format targets.
3736
281ac604
JH
3737Sat Jun 14 11:12:04 CEST 2003 Jan Hubicka <jh@suse.cz>
3738
3739 * reorg.c (emit_delay_sequence, dbr_schedule): Clear insn locators
3740 inside delay slots.
3741
333991cf
MK
37422003-06-13 Matt Kraai <kraai@alumni.cmu.edu>
3743
3744 * unwind-c.c: Define NO_SIZE_OF_ENCODED_VALUE.
3745 * unwind-pe.h (size_of_encoded_value): Do not define if
3746 NO_SIZE_OF_ENCODED_VALUE is defined.
3747
9ad58e09
RS
37482003-06-13 Roger Sayle <roger@eyesopen.com>
3749
3750 * expr.c (expand_expr <COMPLEX_CST>): Handle the case of
3751 expanding a complex constant into a CONCAT target.
3752
ed70c245
ZW
37532003-06-13 Zack Weinberg <zack@codesourcery.com>
3754
3755 * config/svr3.h (ASM_FILE_START): Don't use ASM_FILE_START_1.
3756 (ASM_FILE_START_1): Delete.
3757 * config/i386/att.h, config/i386/sco5.h,
3758 config/i386/sysv3.h
3759 (ASM_FILE_START_1): Delete.
3760
1f2cd130
KC
37612003-06-13 Kelley Cook <kelleycook@wideopenwest.com>
3762
3763 * config/i386/bsd.h: Remove ASM_FILE_START.
3764 * config/i386/djgpp.h: Likewise.
ed70c245 3765 * config/i386/gas.h (ASM_FILE_START): Output .file before .intel_syntax.
1f2cd130
KC
3766
3767 * config/i386/djgpp.h: Move included unix.h, bsd.h, gas.h to ...
3768 * config.gcc (i[34567]86-pc-msdosdjgpp): ... here.
3769
880efc46
VM
37702003-06-13 Vladimir Makarov <vmakarov@redhat.com>
3771
3772 PR bootstrap/10835
3773 * haifa-sched.c (max_lookahead_tries,
ed70c245
ZW
3774 cached_first_cycle_multipass_dfa_lookahead,
3775 cached_issue_rate): New variables.
880efc46
VM
3776 (max_issue): Check the number of tries.
3777 (choose_ready): Calculate max_lookahead_tries.
3778 (sched_init): Check cached_issue_rate.
3779
792bb204
RH
37802003-06-13 Richard Henderson <rth@redhat.com>
3781
3782 * cfgbuild.c (make_edges): Set ABNORMAL with SIBCALL.
3783 * cfgrtl.c (purge_dead_edges): Expect it too.
3784
54c2fc72 37852003-06-13 Jim Wilson <wilson@tuliptree.org>
ed70c245 3786 Eric Botcazou <ebotcazou@libertysurf.fr>
54c2fc72
JW
3787
3788 PR bootstrap/10983
3789 * combine.c (make_extraction): Use gen_lowpart_for_combine
3790 when extracting from a REG and not in the destination of a SET.
3791
7e7de68b
DE
37922003-06-13 Doug Evans <dje@sebabeach.org>
3793
3794 * tsystem.h (abort): Declare in inhibit_libc case to remove build
3795 warnings for addvsi3, et.al.
3796
9f629a21
AH
37972003-06-13 Aldy Hernandez <aldyh@redhat.com>
3798
ed70c245 3799 * c-common.c (handle_mode_attribute): Use VECTOR_MODE_P macro.
9f629a21 3800
ed70c245 3801 * simplify-rtx.c (simplify_subreg): Same.
9f629a21 3802
ed70c245 3803 * emit-rtl.c (gen_lowpart_common): Same.
9f629a21 3804
e15bb5c6
KH
38052003-06-13 Kazu Hirata <kazu@cs.umass.edu>
3806
3807 * builtins.c: Fix comment typos.
3808 * fold-const.c: Likewise.
3809
d88e80e6
DE
38102003-06-13 Doug Evans <dje@sebabeach.org>
3811 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3812
3813 * config/m32r/m32r-protos.h (m32r_pass_by_reference): Declare.
3814 * config/m32r/m32r.c (m32r_pass_by_reference): New fn.
3815 (m32r_va_arg): Use it.
3816 * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Ditto.
3817 (RETURN_IN_MEMORY): Ditto.
3818
dc125bdf
NN
38192003-06-13 Nathanael Nerode <neroden@gcc.gnu.org>
3820
4581c678
NN
3821 * c-typeck.c: Remove #if 0 clauses.
3822
dc125bdf
NN
3823 PR other/1494
3824 * config/alpha/openbsd.h, config/i386/openbsd.h,
3825 config/m68k/openbsd.h, config/sparc/openbsd.h: Remove
3826 residual reference to EGCS.
3827
6ab5da80
RE
38282003-06-13 Richard Earnshaw <rearnsha@arm.com>
3829
3830 * arm.c (output_call_mem): If the address references the link-register
3831 use an instruction sequence that avoids early-clobbering IP.
3832 (eliminate_lr2ip): Delete.
3833
3af0187c
KG
38342003-06-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3835
3836 * c-format.c (format_types_orig): Disallow '*' width/precision in
3837 asm_fprintf format checks.
3838
c873e11f
UW
38392003-06-13 Ulrich Weigand <uweigand@de.ibm.com>
3840
ed70c245 3841 * config/s390/s390.c (s390_va_arg): Fix alignment when retrieving
c873e11f
UW
3842 non-integral types from integer register save area slots.
3843
16ae108b
NN
38442003-06-13 Nathanael Nerode <neroden@gcc.gnu.org>
3845
3846 * config/i386/svr3dbx.h: GNU CC -> GCC; Intel 385 -> Intel 386.
3847
ebd6b6a1
FW
38482003-06-13 Florian Weimer <fw@deneb.enyo.de>
3849
3850 * doc/invoke.texi (SPARC Options): Document ``-mimpure-text''.
3851
43c73004
KK
38522003-06-13 Kaz Kojima <kkojima@gcc.gnu.org>
3853
3854 * config/sh/linux.h (TARGET_ASM_FILE_END): Set TARGET_ASM_FILE_END
3855 to file_end_indicate_exec_stack.
3856
ee4336ea
RH
38572003-06-12 Richard Henderson <rth@redhat.com>
3858
3859 PR target/11089
3860 * config/i386/i386.md (sse_movaps): Use an expander to force
3861 one operand to be a register.
3862 (sse_movups): Likewise.
3863
2ac29877
DE
38642003-06-13 Doug Evans <dje@sebabeach.org>
3865
3866 Remove some build warnings.
dc9ed76a 3867 * config/m32r/initfini.c (__CTOR_LIST__,__DTOR_LIST__): Attribute used.
2ac29877
DE
3868 (__do_global_ctors,__do_global_dtors): Ditto.
3869
c63f3a34
RH
38702003-06-12 Richard Henderson <rth@redhat.com>
3871
3872 PR middle-end/10557
3873 * rtlanal.c (subreg_offset_representable_p): Relax subreg check.
3874
0d370a05
KH
38752003-06-13 Kazu Hirata <kazu@cs.umass.edu>
3876
3877 * config/m32r/m32r.md: Fix a comment typo.
3878
48028e21 38792003-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
ed70c245 3880 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
48028e21
EB
3881
3882 PR target/10142
3883 * config/sparc/sparc.c (function_arg_record_value_parms): Add
3884 new 'stack' field.
3885 (function_arg_record_value_1): Set 'stack' to 1 if we run out of
3886 integer slots for an integer field.
3887 (function_arg_record_value_3): Shift vector index.
3888 (function_arg_record_value_2): Likewise.
3889 (function_arg_record_value): Initialize 'stack' to 0.
3890 Set 'stack' to 1 if we run out of integer slots for an integer field.
3891 Generate (parallel [(expr_list (nil) ...) ...]) if 'stack' is set to 1.
3892
5adf448c
EB
38932003-06-13 Eric Botcazou <ebotcazou@libertysurf.fr>
3894
3895 PR optimization/10955
3896 * unroll.c (unroll_loop): Fix off-by-one bug.
3897
55c8af0b
AH
38982003-06-12 Aldy Hernandez <aldyh@redhat.com>
3899
ed70c245 3900 * config/rs6000/rs6000.c (function_arg): Remove typo.
55c8af0b 3901
cb0e3e3f
RH
39022003-06-12 Richard Henderson <rth@redhat.com>
3903
3904 * config/i386/i386.c (legitimate_constant_p): Handle UNSPEC_NTPOFF
3905 and UNSPEC_DTPOFF.
3906
8433f113
RH
39072003-06-12 Richard Henderson <rth@redhat.com>
3908
ed70c245
ZW
3909 PR middle-end/10475
3910 * expmed.c (emit_store_flag): Use simplify_gen_subreg directly
3911 for extracting sub-words.
8433f113 3912
7b687728
RH
39132003-06-12 Richard Henderson <rth@redhat.com>
3914
ed70c245
ZW
3915 PR target/7594
3916 * config/m68k/m68k.md (zero_extendhisi2): Use gen_lowpart_SUBREG.
3917 (zero_extendqihi2, zero_extendqisi2): Likewise.
7b687728 3918
a6c9bed4
AH
39192003-06-12 Aldy Hernandez <aldyh@redhat.com>
3920
3921 * config/rs6000/rs6000.c (function_arg): Always split vectors for
3922 e500 if it's a stdarg function.
3923 (function_arg_advance): Advance 2 registers for vectors in a
3924 stdarg function.
3925 (init_cumulative_args): Initialize stdarg.
3926 (rs6000_spe_function_arg): New.
3927
3928 * config/rs6000/rs6000.h (rs6000_args): Add stdarg.
3929
4dcc01f3
AH
39302003-06-12 Aldy Hernandez <aldyh@redhat.com>
3931
ed70c245 3932 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Add SPE vectors.
4dcc01f3 3933
96f26e41
RS
39342003-06-12 Roger Sayle <roger@eyesopen.com>
3935
3936 PR middle-end/168
3937 * fold-const.c (tree_expr_nonnegative_p): Handle addition
3938 and multiplication of zero extensions, floating point division,
3939 and integer<->fp, fp<->fp and zero extension conversions.
3940 The built-in ceil and floor functions preserve signedness.
3941
6356f892
KH
39422003-06-12 Kazu Hirata <kazu@cs.umass.edu>
3943
3944 * ChangeLog: Follow spelling conventions.
3945 * ChangeLog.2: Likewise.
3946 * c-decl.c: Likewise.
3947 * cfgloop.h: Likewise.
3948 * cgraph.c: Likewise.
3949 * coverage.c: Likewise.
3950 * cppcharset.c: Likewise.
3951 * cpphash.h: Likewise.
3952 * cpplex.c: Likewise.
3953 * cpplib.c: Likewise.
3954 * dbxout.c: Likewise.
3955 * df.c: Likewise.
3956 * dwarf2out.c: Likewise.
3957 * dwarfout.c: Likewise.
3958 * emit-rtl.c: Likewise.
3959 * explow.c: Likewise.
3960 * gcov-io.c: Likewise.
3961 * gcov-io.h: Likewise.
3962 * gcov.c: Likewise.
3963 * gengtype.c: Likewise.
3964 * ggc.h: Likewise.
3965 * opts.c: Likewise.
3966 * real.c: Likewise.
3967 * reload.c: Likewise.
3968 * stmt.c: Likewise.
3969
25f47a4c
JJ
39702003-06-12 Janis Johnson <janis187@us.ibm.com>
3971
3972 * doc/install.texi (m32r-*-elf): Change company to Renesas.
3973
f0fda11c
JH
3974Thu Jun 12 20:00:55 CEST 2003 Jan Hubicka <jh@suse.cz>
3975
3976 * basic-block.h (flow_delete_block_noexpunge): Kill.
3977 * cfgrtl.c (flow_delete_block_noexpunge): Merge to
3978 rtl_delete_block.
3979
d6fc0492
RH
39802003-06-10 Richard Henderson <rth@redhat.com>
3981
ed70c245
ZW
3982 PR inline-asm/4823
3983 * reg-stack.c (any_malformed_asm): New.
3984 (check_asm_stack_operands): Set it.
3985 (convert_regs_1): Check it before aborting.
d6fc0492 3986
54da776f
AH
39872003-06-12 Aldy Hernandez <aldyh@redhat.com>
3988
ed70c245 3989 * config/rs6000/spe.md: Change all clobbers of the accumulator to sets.
54da776f 3990
c47d8f82
JJ
39912003-06-12 Jakub Jelinek <jakub@redhat.com>
3992
3993 * c-opts.c (complain_wrong_lang): Add on argument.
3994 Print no- switch if on is false.
3995 (c_common_decode_option): Adjust caller.
3996
109480b1
UW
39972003-06-12 Ulrich Weigand <uweigand@de.ibm.com>
3998
3999 * config/s390/s390.c (s390_emit_prologue): Use LA instead of AR
4000 to initialize GOT register.
4001
f7df23be
RS
40022003-06-12 Roger Sayle <roger@eyesopen.com>
4003
4004 * fold-const.c (tree_expr_nonnegative_p): Add support for
4005 floating point constants, addition and multiplication.
4006
38b3ef8b
R
40072003-06-12 J"orn Rennecke <joern.rennecke@superh.com>
4008
4009 * sh.md (adddi3_compact, subdi3_compact): Add earlyclobber
4010 constraint modifier for operand 0.
4011
78b8811a
HPN
40122003-06-12 Hans-Peter Nilsson <hp@axis.com>
4013
4014 Don't warn on dollars in builtin macro definitions,
4015 e.g. __REGISTER_PREFIX__.
4016 * cpphash.h (struct cpp_reader): Move member warn_dollars...
4017 * cpplib.h (struct cpp_options): ...to here. Change type to
4018 unsigned char.
4019 * cppinit.c (cpp_create_reader): Set it to 1 here.
4020 (post_options): Don't set it here.
4021 * c-opts.c (c_common_init_options): Reset it to 0 here.
4022 (finish_options): Set it here.
4023 * cpplex.c (forms_identifier_p): Tweak for new location of
4024 warn_dollars.
4025
2853bc5a
HPN
4026 * configure.in (assembler dwarf2 debug_line support): Define insn
4027 for cris-*-* and mmix-*-*.
4028 * configure: Regenerate.
4029
6b3a0b34
US
40302003-06-11 Uwe Stieber <uwe@kaos-group.de>
4031
4032 * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
4033 powerpcle-*-kaos*, strongarm-*-kaos*): New targets.
4034 (sh-*-elf*): Add sh*-*-kaos* support.
4035 * config/kaos.h, config/arm/kaos-strongarm.h, config/arm/kaos-arm.h,
4036 config/i386/kaos-i386.h, config/rs6000/kaos-ppc.h,
4037 config/sh/kaos-sh.h: New files.
4038
2fa4a849
KH
40392003-06-12 Kazu Hirata <kazu@cs.umass.edu>
4040
4041 * gcse.c (fis_get_condition): Make it a global function.
4042 * reload1.c (reload_cse_move2add): Detect implicit sets.
4043 * rtl.h: Add a prototype for fis_get_condition.
4044
d50ad6af
RH
40452003-06-11 Richard Henderson <rth@redhat.com>
4046
4047 * stmt.c (expand_asm_operands): Don't warn for memories with
4048 queued addresses.
4049
04953ac9
KK
40502003-06-11 Kaz Kojima <kkojima@gcc.gnu.org>
4051
4052 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC): Rewrite without
4053 brackets.
4054
7fb26bb0
NB
40552003-06-11 Neil Booth <neil@daikokuya.co.uk>
4056
4057 * hooks.c (hook_int_size_t_constcharptr_int_0): New.
4058 * hooks.h (hook_int_size_t_constcharptr_int_0): New.
4059 * langhooks-def.h (lhd_decode_option, LANG_HOOKS_DECODE_OPTION): Die.
4060 (LANG_HOOKS_HANDLE_OPTION, LANG_HOOKS_INITIALIZER): Update.
4061 * langhooks.c (lhd_decode_option): Remove.
4062 * langhooks.h (struct lang_hooks): Remove decode_option.
4063 * opts.c (handle_option): No longer use decode_option.
4064
7e53cfb2
ZD
40652003-06-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4066
4067 * cfgloopanal.c (variable_initial_value): Update the set of altered
4068 registers correctly.
4069
5f9b0711
RS
40702003-06-11 Roger Sayle <roger@eyesopen.com>
4071 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4072
4073 * config/d30v/d30v.h: Delete reference to ASM_FINAL_SPEC.
4074 * config/i386/netbsd-elf.h: Likewise.
4075 * config/m32r/m32r.h: Likewise.
4076 * config/mn10300/mn10300.h: Likewise.
4077 * config/stormy16/stormy16.h: Likewise.
4078 * config/v850/v850.h: Likewise.
4079 * config/vax/netbsd-elf.h: Likewise.
4080 * config/xtensa/elf.h: Likewise.
4081 * config/xtensa/linux.h: Likewise.
4082
655b7166
RO
40832003-06-11 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4084
4085 * config/mips/iris5gas.h (MDEBUG_ASM_SPEC): Override to match
4086 DWARF 2 default.
4087
4088 * config/mips/dbxmdebug.h: New file.
4089 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it with
4090 gas and --with-stabs.
4091
658cf52f
UW
40922003-06-11 Ulrich Weigand <uweigand@de.ibm.com>
4093
4094 * expr.c (can_move_by_pieces): align argument may be unused.
4095
06765df1
R
40962003-06-11 J"orn Rennecke <joern.rennecke@superh.com>
4097
4098 * expr.c (convert_move): Handle moves between two CONCATs.
4099
cf874806
KH
41002003-06-11 Kazu Hirata <kazu@cs.umass.edu>
4101
4102 * config/h8300/h8300.h (RETURN_IN_MEMORY): Accept DImode if
4103 !TARGET_H8300.
4104
ca9d6cca
KH
41052003-06-11 Kazu Hirata <kazu@cs.umass.edu>
4106
4107 * config/h8300/h8300.c (final_prescan_insn): Don't dump rtl.
4108 * config/h8300/h8300.h (MASK_RTL_DUMP): Remove.
4109 (TARGET_RTL_DUMP): Likewise.
4110 (TARGET_SWITHCES): Remove -mrtl-dump.
4111
0310c414
RH
41122003-06-10 Richard Henderson <rth@redhat.com>
4113
4114 * optabs.c (gen_cond_trap): Fix prepare_operand typo.
4115
15d11f13
RH
41162003-06-10 Richard Henderson <rth@redhat.com>
4117
4118 * config/ia64/ia64.md (call_gp): Fix memory mode.
4119
f58d8c95
JW
41202003-06-10 James E Wilson <wilson@tuliptree.org>
4121
4122 PR target/8812
4123 * reload1.c (choose_reload_regs): For equiv reg, add loop over all
4124 hard regs for reload_reg_used_at_all and reg_class_contents checks.
4125
5abfd1af
KH
41262003-06-10 Kazu Hirata <kazu@cs.umass.edu>
4127
4128 * config/h8300/h8300.c (print_operand): Remove support for
4129 operand character 'b'.
4130 Add the AND case to operand character 'c'.
4131 * config/h8300/h8300.md (two anonymous patterns): Replace
4132 operand character 'b' with 'c'.
4133
ca895f7d
KH
41342003-06-10 Kazu Hirata <kazu@cs.umass.edu>
4135
4136 * config/h8300/h8300.c (print_operand): Remove support for
4137 operand character 'u'.
4138
3b1b059c
NN
41392003-06-10 Nathanael Nerode <neroden@gcc.gnu.org>
4140
4141 * configure.in: Fix typo.
4142 * configure: Regenerate.
4143
e85f3dc8
LR
41442003-06-10 Loren James Rittle <ljrittle@acm.org>
4145
4146 * config/alpha/alpha.c (unicosmk_file_end): Add conditional
4147 compilation guard.
4148
90534361
R
41492003-06-10 J"orn Rennecke <joern.rennecke@superh.com>
4150
4151 * sh-protos.h (function_symbol): Declare.
4152 * sh.c (expand_block_move, expand_ashiftrt): Use it.
4153 (sh_expand_prologue, sh_expand_epilogue): Likewise.
4154 (sh_initialize_trampoline): Likewise.
4155 (function_symbol): New function.
4156 * sh.md (udivsi3, divsi3, mulsi3, ic_invalidate_line): Use it.
4157 (initialize_trampoline, call, call_pop, call_value, sibcall): Likewise.
4158 (call_value_pop, shcompact_return_tramp): Likewise.
4159
4160 * sh.h (OVERRIDE_OPTIONS): Don't suppress --profile-arc-flag.
4161
4162 * sh.md (GOTaddr2picreg): Use gen_lowpart to get lowpart of
4163 target register.
4164
e2ce66a9
DD
41652003-06-10 DJ Delorie <dj@redhat.com>
4166
4167 * doc/md.texi (Machine Constraints): Document stormy's Z
4168 constraint.
4169
21c157b4
GK
41702003-06-10 Geoffrey Keating <geoffk@apple.com>
4171
4172 * except.c (call_site_base): Mark with GTY.
4173
e32bac5b
RE
41742003-06-10 Richard Earnshaw <rearnsha@arm.com>
4175
4176 * arm-proto.h: Convert to ISO C90 prototypes.
4177 * arm.c: Likewise.
4178
4db8f48a
R
41792003-06-10 J"orn Rennecke <joern.rennecke@superh.com>
4180
4181 * sh.c (sh_output_mi_thunk): Call insn_locators_initialize.
4182
f80f73e1
SE
41832003-06-10 Steve Ellcey <sje@cup.hp.com>
4184
4185 * calls.c (expand_call): Convert structure_value_addr to Pmode if
4186 necessary.
4187
e076f71a
AH
41882003-06-10 Andrew Haley <aph@redhat.com>
4189
4190 * langhooks-def.h (LANG_HOOKS_DECL_OK_FOR_SIBCALL): New.
4191 (LANG_HOOKS_DECLS): Add LANG_HOOKS_DECL_OK_FOR_SIBCALL.
4192 (lhd_decl_ok_for_sibcall): New.
4193 * langhooks.c (lhd_decl_ok_for_sibcall): New.
4194 * langhooks.h (lang_hooks_for_decls.ok_for_sibcall): New field.
4195 * calls.c (expand_call): Check lang_hook before generating a
4196 sibcall.
4197
e7e09ad8
DD
41982003-06-10 DJ Delorie <dj@redhat.com>
4199
4200 * config/stormy16/stormy16.c (xstormy16_extra_constraint_p): Add Z,
4201 which matches (const_int 0) for addhi3.
4202 * config/stormy16/stormy16.md: Document known constraints.
4203 (addhi3): Handle adding zero.
4204
a398a822
KI
42052003-06-10 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
4206
4207 * config/m32r/m32r.h (HARD_REGNO_RENAME_OK): New.
4208 * config/m32r/m32r.c (m32r_hard_regno_rename_ok): New.
4209 * config/m32r/m32r-protos.h: Prototype it.
4210
bb8f5288
JJ
42112003-06-10 Janis Johnson <janis187@us.ibm.com>
4212
4213 * config/rs6000/eabi.h (TARGET_OS_CPP_BUILTINS): Define builtins
4214 common to rs6000 sysv targets.
4215 * config/rs6000/eabisim.h (TARGET_OS_CPP_BUILTINS): Ditto.
4216 * config/rs6000/rtems.h (TARGET_OS_CPP_BUILTINS): Ditto.
4217
52f97a3b
NC
42182003-06-10 Nick Clifton <nickc@redhat.com>
4219
4220 * config.gcc: Add arm-wince-pe target.
4221 * config/arm/pe.h (MULTILIB_DEFAULTS): Define.
ed70c245 4222 Add comment about default apcs26 support.
52f97a3b
NC
4223 * config/arm/t-pe (MULTILIB_OPTIONS): Add an -mapcs-32
4224 multilib.
ed70c245 4225 (MULTILIB_DIRNAMES): Add 'apcs32'.
52f97a3b
NC
4226 * config/arm/t-wince-pe: New makefile fragment.
4227 * config/arm/wince-pe.h: New file. Overrides a few definitions
4228 in arm/pe.h
4229
9f0a7f9d
RS
42302003-06-10 Roger Sayle <roger@eyesopen.com>
4231
4232 * builtins.c (fold_builtin): Optimize cos(-x) as cos(x).
4233 * fold-const.c (fold <NEGATE_EXPR>): Convert -f(x) into f(-x)
4234 when x is easily negated and f is sin, tan or atan.
4235 (fold <MULT_EXPR>): Optimize tan(x)*cos(x) and cos(x)*tan(x) as
4236 sin(x) with flag_unsafe_math_optimizations.
4237 (fold <RDIV_EXPR>): With flag_unsafe_math_optimizations fold
4238 sin(x)/cos(x) as tan(x) and cos(x)/sin(x) as 1.0/tan(x).
4239
8936c82f
RS
42402003-06-10 Roger Sayle <roger@eyesopen.com>
4241
4242 * fold-const.c (fold <EQ_EXPR>): Don't fold x == x only if x
4243 is a floating point type *and* we currently honor NaNs.
4244 (fold <NE_EXPR>): Likewise.
4245
d58b7c2d
MM
42462003-06-10 Mark Mitchell <mark@codesourcery.com>
4247
4248 PR c++/11131
4249 * tree-inline.c (inlinable_function_p): Call the language-specific
4250 hook early.
4251
c566f9bd
DT
42522003-06-09 David Taylor <dtaylor@emc.com>
4253
4254 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_va_arg): Skip over
4255 the f_res field.
4256
4665e56c
NN
42572003-06-09 Nathanael Nerode <neroden@gcc.gnu.org>
4258
619833ad
NN
4259 * configure.in: Remove references to host_truncate_target.
4260 * configure: Regenerate.
4261 * config.gcc: Remove references to truncate_target,
4262 host_truncate_target.
4263
4665e56c
NN
4264 * Makefile.in, configure.in, config/m68hc11/t-m68hc11-gas:
4265 Replace "build_canonical" with build, "host_canonical" with host.
4266 * configure.in: Use GCC_TOPLEV_SUBDIRS.
4267 * aclocal.m4: Include ../config/acx.m4.
4268 * configure: Regenerate.
4269
42702003-06-09 David Taylor <dtaylor@emc.com>
64c2816f
DT
4271
4272 * config/rs6000/rs6000.c (rs6000_build_va_list): Give the two
4273 bytes of padding in the __va_list_tag structure a name (reserved).
4274
1bfedcc8
JM
42752003-06-09 Jason Merrill <jason@redhat.com>
4276
4277 * fold-const.c (operand_equal_p): Handle ADDR_EXPR and TRUTH_NOT_EXPR.
4278
4665e56c 42792003-06-09 Osku Salerma <osku@iki.fi>
75b2a93c
OS
4280
4281 * c-format.c (check_format_string, get_constant): New.
4282 (handle_format_attribute, handle_format_arg_attribute,
4283 decode_format_attr): Change to use above functions.
4284
71ed1fdb
RH
42852003-06-09 Richard Henderson <rth@redhat.com>
4286
ed70c245 4287 * stmt.c (expand_asm_operands): Re-word warning.
71ed1fdb 4288
528b8487
AP
42892003-06-08 Andrew Pinski <pinskia@physics.uc.edu>
4290
4291 PR target/8787
4292 * config/i386/djgpp.h (ASM_FILE_START): emit `.intel_syntax'
4293 if -masm=intel.
4294
00051260
JW
42952003-06-09 James E Wilson <wilson@tuliptree.org>
4296
4297 * config/frv/cmovc.c, config/frv/cmovh.c, config/frv/cmovw.c,
4298 config/frv/frvbegin.c, config/frv/frvend.c, config/frv/lib1funcs.asm:
4299 Add libgcc exception.
4300
8e8238f1
DE
43012003-06-09 David Edelsohn <edelsohn@gnu.org>
4302 Ayal Zaks <gcchaifa@us.ibm.com>
4303
4304 * config/rs6000/rs6000.md (define_attr "type"): Add insert_word.
4305 (insvsi*): Add insert_word attribute.
4306 * config/rs6000/rs6000.c (rs6000_variable_issue): Add TYPE_INSERT_WORD.
4307 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
4308 power4.md,rios1.md,rios2.md,rs64.md}: Add insert_word.
4309
2859471c
KH
43102003-06-09 Kazu Hirata <kazu@cs.umass.edu>
4311
4312 * fold-const.c (fold): Fix a comment typo.
4313
36f04556
NS
43142003-06-09 Nathan Sidwell <nathan@codesourcery.com>
4315
4316 * tree-inline.c (expand_call_inline): DECL_SOURCE_LINE_FIRST is
4317 removed.
4318
86143cb4
R
43192003-06-09 J"orn Rennecke <joern.rennecke@superh.com>
4320
4321 * sh.c (gen_block_redirect): Use locators.
4322
659bdc68
RE
43232003-06-09 Richard Earnshaw <rearnsha@arm.com>
4324
4325 * arm.h (THUMB_PRINT_OPERAND_ADDRESS): Use %wd in format and remove
4326 cast to int.
4327
4dd03b27
RS
43282003-06-09 Richard Sandiford <rsandifo@redhat.com>
4329
4330 * configure.in: Assume gas 2.14 and above can handle MIPS relocation
4331 operators.
4332 * configure: Regenerated.
4333
f833ffd4
RS
43342003-06-09 Richard Sandiford <rsandifo@redhat.com>
4335 Alexandre Oliva <aoliva@redhat.com>
4336
4337 * config/mips/mips.h (GLOBAL_POINTER_REGNUM): New macro.
4338 (PIC_OFFSET_TABLE_REGNUM): Look at pic_offset_table_rtx after reload.
4339 (STARTING_FRAME_OFFSET): Don't allocate a cprestore slot for
4340 n32/64 PIC.
4341 (MUST_SAVE_REGISTERS): Delete.
4342 * config/mips/mips.c (mips_frame_info): Remove extra_size field.
4343 (machine_function): Add global_pointer field.
4344 (mips_classify_constant): Check for (const $gp) using pointer equality
4345 with pic_offset_table_rtx.
4346 (mips_classify_constant): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
4347 (mips_restore_gp): Use current_function_outgoing_args_size.
4348 (print_operand): Use PIC_OFFSET_TABLE_REGNUM instead of
4349 GP_REG_FIRST + 28. Handle relocation strings that have
4350 more than one '('.
4351 (mips_reloc_string): Handle RELOC_LOADGP_HI and RELOC_LOADGP_LO.
4352 (mips_global_pointer): New function.
4353 (mips_save_reg_p): New function, mostly split out from...
4354 (compute_frame_size): ...here. Remove handling of extra_size.
4355 Reclaim args_size if no variables depend on it. Don't treat gp
4356 as a special case: handle it in the main GPR loop.
4357 (mips_initial_elimination_offset): Fix comment.
4358 (save_restore_insns): Save every register in the GPR mask,
4359 removing distinction between mask and real_mask.
4360 (mips_output_function_prologue): Update .frame psuedo-op after
4361 the removal of extra_size. Move the SVR4 PIC stack allocation
4362 and cprestore instructions to mips_expand_prologue.
4363 (mips_gp_insn): New function.
4364 (mips_expand_prologue): Set REGNO (pic_offset_table_rtx) to
4365 the chosen global pointer. Handle SVR4 PIC stack allocation
4366 in the same way as other ABIs. Adjust varargs code accordingly.
4367 Emit a cprestore insn after allocating the stack. Use mips_gp_insn
4368 to emit the loadgp sequence. Follow it with a loadgp_blockage
4369 if not using explicit relocs.
4370 (mips_output_function_epilogue): Reinstate the default gp register.
4371 (mips16_gp_pseudo_reg): Use pic_offset_table_rtx.
4372 (mips16_optimize_gp): Likewise.
4373 * config/mips/mips.md (UNSPEC_LOADGP): Remove.
4374 (UNSPEC_SETJMP, UNSPEC_LONGJMP): Remove.
4375 (UNSPEC_CPRESTORE, RELOC_LOADGP_HI, RELOC_LOADGP_LO): New.
4376 (loadgp): Remove.
4377 (loadgp_blockage, cprestore): New instructions.
4378 (builtin_setjmp_setup): Implement using emit_move_insn. Use
4379 pic_offset_table_rtx.
4380 (builtin_setjmp_setup_32, builtin_setjmp_setup_64): Remove.
4381 (builtin_longjmp): Use gen_raw_REG to force use of $28.
4382
32ad6a47
RS
43832003-06-09 Richard Sandiford <rsandifo@redhat.com>
4384
4385 * config/mips/mips-protos.h (mips_output_division): Declare.
4386 * config/mips/mips.h (MASK_CHECK_RANGE_DIV): Remove.
4387 (MASK_BRANCHLIKELY): Use MASK_CHECK_RANGE_DIV's old number.
4388 (TARGET_NO_CHECK_ZERO_DIV, TARGET_CHECK_RANGE_DIV): Remove.
4389 (TARGET_CHECK_ZERO_DIV): New macro.
4390 (TARGET_SWITCHES): Remove -mcheck-range-div & -mno-check-range-div.
4391 * config/mips/mips.c (mips_output_division): New function.
4392 * config/mips/mips.md (length): Take TARGET_CHECK_ZERO_DIV into
4393 account when calculating the default length of a division.
4394 (divmodsi4, divmoddi4, udivmodsi4, udivmoddi4): Turn into define_insns.
4395 Enable regardless of optimization level. Use mips_output_division.
4396 (divmodsi4_internal, divmoddi4_internal, udivmodsi4_internal,
4397 udivmoddi4_internal, div_trap, div_trap_normal, div_trap_mips16,
4398 divsi3, divsi3_internal, divdi3, divdi3_internal, modsi3,
4399 modsi3_internal, moddi3, moddi3_internal, udivsi3, udivsi3_internal,
4400 udivdi3, udivdi3_internal, umodsi3, umodsi3_internal, umoddi3,
4401 umoddi3_internal): Remove.
4402
d334c3c1
RS
44032003-06-09 Richard Sandiford <rsandifo@redhat.com>
4404
4405 * config/mips/mips.c (mips_reg_names): Change hilo entry to "".
4406 (mips_sw_reg_names): Likewise.
4407 (mips_regno_to_class): Change hilo entry to NO_REGS.
4408 (hilo_operand): Use MD_REG_P.
4409 (extend_operator): New predicate.
4410 (override_options): Remove 'a' constraint.
4411 (mips_secondary_reload_class): Remove hilo handling. Also remove
4412 handling of (plus sp reg) reloads for mips16.
4413 (mips_register_move_cost): Remove hilo handling.
4414 * config/mips/mips.h (FIXED_REGISTERS): Make hilo entry fixed.
4415 (MD_REG_LAST): Remove hilo from range.
4416 (HILO_REGNUM): Delete.
4417 (reg_class): Remove HILO_REG and HILO_AND_GR_REGS.
4418 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
4419 (PREDICATE_CODES): Add entry for extend_operator.
4420 (DEBUG_REGISTER_NAMES): Change hilo entry to "".
4421 * config/mips/mips.md: Remove hilo clobbers wherever they occur.
4422 Remove constraints from multiplication define_expands. Remove
4423 clobbers from "decorative" define_expand patterns.
4424 (UNSPEC_HILO_DELAY): Delete.
4425 (*mul_acc_si, *mul_sub_si): Add early-clobber to operand 6.
4426 (mulsidi3, umulsidi3): Change pattern to match the TARGET_64BIT case.
4427 Adjust C code to just emit insns for !TARGET_64BIT.
4428 (mulsidi3_internal): Rename to mulsidi3_32bit.
4429 (mulsidi3_64bit): Use a "d" constraint for the destination.
4430 Use extend_operator so that the pattern can handle umulsidi3 as well.
4431 Split the instruction after reload.
4432 (*mulsidi3_64bit_parts): New pattern, generated by mulsidi3_64bit.
4433 (umulsidi3_internal): Rename to umulsidi3_32bit.
4434 (umulsidi3_64bit): Remove.
4435 (*smsac_di, *umsac_di): Line-wrap fixes.
4436 (udivsi3_internal): Don't allow operand 2 to be constant.
4437 (udivdi3_internal, umodsi3_internal, umoddi3_internal): Likewise.
4438 (movdi_internal2, movsi_internal): Remove hilo alternatives.
4439 (reload_in[sd]i, reload_out[sd]i, hilo_delay): Remove.
4440
20db0e3c
RS
44412003-06-09 Richard Sandiford <rsandifo@redhat.com>
4442
4443 PR target/10913
4444 * config/mips/mips.h (TARGET_FILE_SWITCHING, NO_DBX_FUNCTION_END,
4445 PUT_SDB_SCL, PUT_SDB_INT_VAL, PUT_SDB_VAL, PUT_SDB_ENDEF,
4446 PUT_SDB_TYPE, PUT_SDB_SIZE, PUT_SDB_DIM, PUT_SDB_START_DIM,
4447 PUT_SDB_NEXT_DIM, PUT_SDB_LAST_DIM, PUT_SDB_TAG, PUT_SDB_SRC_FILE,
4448 SDB_GENERATE_FAKE, TEXT_SECTION): Delete.
4449 (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF, PUT_SDB_BLOCK_START,
4450 PUT_SDB_BLOCK_END, PUT_SDB_FUNCTION_END): Replace use of
4451 asm_out_text_file with asm_out_file.
4452 * config/mips/iris5gas.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Likewise.
4453 * config/mips/elf.h (TEXT_SECTION): Undefine.
4454 * config/mips/elf64.h (TEXT_SECION): Undefine.
4455 * config/mips/openbsd.h (TEXT_SECION): Undefine.
4456 * config/mips/mips.c (asm_out_text_file, asm_out_data_file): Delete.
4457 (override_options): Disable small-data optimizations unless using
4458 gas or explicit relocations.
4459 (mips_asm_file_start, mips_asm_file_end, mips_output_function_epilogue,
4460 iris6_asm_named_section, iris6_asm_file_start): Remove code for
4461 handling TARGET_FILE_SWITCHING.
4462 (copy_file_data): Move into TARGET_IRIX6 block.
4463
017e1b43
RH
44642003-06-08 Richard Henderson <rth@redhat.com>
4465
4466 * expr.h (EXPAND_MEMORY): New.
4467 * expr.c (expand_expr): Check it.
4468 * stmt.c (expand_asm_operands): Provide it when the constraint
4469 requires a memory. Warn for memory input constraints without
4470 a memory operand.
4471
f8950e17
KG
44722003-06-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4473
4474 * varasm.c: Don't include c-tree.h.
4475
51d2dfa6
AJ
44762003-06-08 Andreas Jaeger <aj@suse.de>
4477
4478 * predict.h: Convert to ISO C90 prototypes.
4479 * predict.c: Likewise.
4480 * tree-dump.h: Likewise.
4481 * tree-dump.c: Likewise.
4482 * diagnostic.h: Likewise.
4483 * diagnostic.c: Likewise.
4484 * combine.c: Likewise.
4485
4486 * rtl.h: Convert prototypes of combine.c to ISO C90.
4487
0435312e
JH
4488Sun Jun 8 21:27:41 CEST 2003 Jan Hubicka <jh@suse.cz>
4489
4490 * cfglayout.c (insn_scope): New static function
4491 (block_locators_*, line_locators*, file_locators*): New static varrays.
4492 (scope_to_insns_initialize): Use them.
4493 (insn_line, insn_file): New functions.
4494 (scope_to_insns_finalize): Use insn_scope.
4495 (prologue_locator, epilogue_locator): New global variables.
4496 * emit-rt.c (try_split, make_insn_raw, make_jump_insn_raw,
4497 make_call_insn_raw, emit_copy_of_insn_after): Use locators.
4498 (emit_insn_after_scope, emit_insn_before_scope
4499 emit_jump_insn_after_scope, emit_jump_insn_before_scope
4500 emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
4501 (emit_insn_after_setloc, emit_insn_before_setloc
4502 emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
4503 emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
4504 use locators.
4505 * final.c (notice_source_line): Use locators.
4506 (final_start_function): Set initial source file and line.
4507 (final_scan_insn): Use locators.
4508 * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4509 noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove,
4510 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
4511 noce_process_if_block, find_cond_trap): Likewise.
4512 * integrate.c (copy_insn_list): Likewise.
4513 * jump.c (duplicate_loop_exit_test): LIkewise.
4514 * print-rtl.c (print_rtx): Print locators.
4515 * recog.c (peephole2_optimize): Likewise.
4516 * rtl.h (INSN_SCOPE): Remove.
4517 (emit_insn_after_scope, emit_insn_before_scope
4518 emit_jump_insn_after_scope, emit_jump_insn_before_scope
4519 emit_call_insn_after_scope, emit_call_insn_before_scope): Rename to...
4520 (emit_insn_after_setloc, emit_insn_before_setloc
4521 emit_jump_insn_after_setloc, emit_jump_insn_before_setloc
4522 emit_call_insn_after_setloc, emit_call_insn_before_setloc): ... these;
4523 (insn_file, insn_line, prologue_locator, epilogue_locator): Declare.
4524 * unroll.c (copy_loop_body): Use locators.
4525 * function.c (set_insn_locators): New function.
4526 (thread_prologue_and_epilogue_insns): Set the locators accordingly.
4527
5d39821d
KH
45282003-06-08 Kazu Hirata <kazu@cs.umass.edu>
4529
4530 * config/h8300/h8300.h (LONG_LONG_TYPE_SIZE): Set to 64.
4531 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _floatdisf
4532 _fixsfdi _fixunssfdi.
4533 (LIB2FUNCS_EXTRA): Add entries for clzhi2, ctzhi2, parityhi2,
4534 popcounthi2.
4535 (TARGET_LIBGCC2_CFLAGS): Remove -DDI=SI.
4536 * config/h8300/clzhi2.c: New.
4537 * config/h8300/ctzhi2.c: Likewise.
4538 * config/h8300/parityhi2.c: Likewise.
4539 * config/h8300/popcounthi2.c: Likewise.
4540
10e9fecc
JH
4541Sun Jun 8 15:52:17 CEST 2003 Jan Hubicka <jh@suse.cz>
4542
4543 * i386.md (subsi_3_zext, sse2_nandv2di3): Fix predicates.
4544 * i386.c (k8_avoid_jump_misspredicts): Fix debug output.
4545
4546 * cfg.c (verify_flow_info): Move IL independent checks from cfgrtl here.
4547 (dump_bb): New based on old dump_bb in cfgrtl.c
4548 (debug_bb, debug_bb_n): Move the functions from cfgrtl.c here.
4549 * cfghooks.h (cfgh_verify_flow_info): Return status.
4550 * cfglayout.c (cfg_layout_finalize): Verify CFG correctness.
4551 * cfgrtl.c (debug_bb, debug_bb_n): Move to cfg.c
4552 (dump_bb): Remove generic parts.
4553 (rtl_verify_flow_info_1): Break out from rtl_verify_flow_info.
4554 (rtl_verify_flow_info): Only check things dependeing on linearized RTL.
4555
35399bdc
NB
45562003-06-08 Neil Booth <neil@daikokuya.co.uk>
4557
4558 * Makefile.in: Rename options.c and options.h to c-options.c and
4559 c-options.h.
4560 (OBJS): Remove options.o.
4561 * c-opts.c: Don'tInclude c-options.h instead of options.h.
4562 * opts.c: Don't include options.h.
4563 (find_opt): Can't use enum opt_code or N_OPTS.
4564 * opts.h (struct cl_option, cl_options, cl_options_count): Move from...
4565 * opts.sh: ... here.
4566
56f0c0d8 45672003-06-07 Eric Botcazou <ebotcazou@libertysurf.fr>
528b8487 4568 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8eb6a092
EB
4569
4570 PR pch/9830
4571 * ggc-common.c (HAVE_MMAP_FILE): Include sys/types.h
4572 if HAVE_MINCORE is defined.
4573 (MAP_FAILED): Define if not defined.
4574 (gt_pch_save): Test against MAP_FAILED.
4575 (gt_pch_restore): If HAVE_MINCORE, use MAP_FIXED to force
4576 the mapping address to the preferred base after checking it
4577 is possible to do so. Test against MAP_FAILED.
4578 * configure.in: Test for the presence of mincore in libc.
4579 * config.in: Regenerate.
4580 * configure: Regenerate.
4581
797c8a92
RH
45822003-06-07 Richard Henderson <rth@redhat.com>
4583
4584 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Fix
4585 conditional compilation guard.
4586
77173bbe
KH
45872003-06-08 Kazu Hirata <kazu@cs.umass.edu>
4588
4589 * optabs.c (expand_abs): Set result_unsignedp to 1 if
4590 flag_trav is zero.
4591
2288bdbb
RH
45922003-06-07 Richard Henderson <rth@redhat.com>
4593
528b8487 4594 * c-cppbuiltin.c (c_cpp_builtins): Define __EXCEPTIONS for C also.
2288bdbb 4595
1722c2c8
RH
45962003-06-07 Richard Henderson <rth@redhat.com>
4597
4598 * basic-block.h (EDGE_SIBCALL): New.
4599 (EDGE_ALL_FLAGS): Update.
4600 * cfg.c (dump_edge_info): Add sibcall name.
4601 * cfgbuild.c (make_edges): Use EDGE_SIBCALL.
4602 * cfgrtl.c (purge_dead_edges): Handle sibcalls.
4603
44de936e
AJ
46042003-06-07 Andreas Jaeger <aj@suse.de>
4605
5145a02e
AJ
4606 * mklibgcc.in (lib2funcs): Remove _exit.
4607 * libgcc2.c: Remove L_exit.
4608 * gbl-ctors.h: Remove declarations dependend on NEED_ATEXIT.
4609
4610 * system.h: Poison NEED_ATEXIT, ON_EXIT, EXIT_BODY.
4611
4612 * doc/tm.texi (Misc): Remove NEED_ATEXIT, ON_EXIT, EXIT_BODY.
4613
20c1dc5e
AJ
4614 * ggc.h: Convert to ISO C90 prototypes.
4615 * ggc-none.c: Likewise.
4616 * ggc-common.c: Likewise.
4617 * ggc-page.c: Likewise.
4618 * ggc-simple.c: Likewise.
4619
44de936e
AJ
4620 * crtstuff.c: Remove undefined usage of INIT_SECTION_PREAMBLE.
4621
4622 * system.h: Poison INIT_SECTION_PREAMBLE.
4623
a5fe455b
ZW
46242003-06-07 Zack Weinberg <zack@codesourcery.com>
4625
4626 * config.gcc (with_cpu handling): Translate sparc64 in
4627 $machine to --with-cpu=v9.
4628 * config/alpha/alpha.c
4629 (TARGET_ASM_GLOBALIZE_LABEL [TARGET_ABI_UNICOSMK]): Correct definition.
4630 (alpha_setup_incoming_varargs): #ifdef out when TARGET_ABI_UNICOSMK.
4631
4632 * target.h: New hook asm_out.file_end.
4633 * target.h: Update to match. New hook macro TARGET_ASM_FILE_END.
ed446835 4634 * toplev.c (compile_file): Use targetm.asm_out.file_end.
a5fe455b
ZW
4635 * system.h: Poison ASM_FILE_END.
4636 * varasm.c (file_end_indicate_exec_stack): New.
4637 * output.h: Prototype it.
4638 * doc/tm.texi: Document TARGET_ASM_FILE_END and
4639 file_end_indicate_exec_stack. Delete references to attasm.h.
4640
4641 * config/darwin.h (TARGET_ASM_FILE_END): Reset to darwin_file_end.
4642 (ASM_FILE_END): Delete; move code...
4643 * config/darwin.c (darwin_file_end): Here; new function.
4644 * config/darwin-protos.h: Prototype it.
4645 * config/alpha/alpha.c (unicosmk_asm_file_end): Make static,
4646 rename unicosmk_file_end.
4647 * config/arm/aof.h (ASM_FILE_END): Delete; move code...
4648 * config/arm/arm.c (aof_file_end): ... here; new static function.
4649 Set TARGET_ASM_FILE_END to aof_file_end if AOF_ASSEMBLER.
4650 Make aof_dump_imports and aof_dump_pic_table static.
4651 * config/avr/avr.c (asm_file_end): Rename avr_file_end, make static.
4652 Set TARGET_ASM_FILE_END to avr_file_end.
4653 * config/c4x/c4x.c (c4x_file_end): Make static. Take no arguments.
4654 Set TARGET_ASM_FILE_END to c4x_file_end.
4655 * config/h8300/h8300.c (asm_file_end): Rename h8300_file_end,
4656 make static. Take no arguments. Set TARGET_ASM_FILE_END to
4657 h8300_file_end.
4658 * config/i370/i370.h (ASM_FILE_END): Delete; move code...
4659 * config/i370/i370.c (i370_file_end): ... here; new static function.
4660 Set TARGET_ASM_FILE_END to i370_file_end.
4661 * config/i386/i386.c (ix86_asm_file_end): Rename ix86_file_end.
4662 Take no arguments. Call file_end_indicate_exec_stack if
4663 NEED_INDICATE_EXEC_STACK; don't use SUBTARGET_FILE_END.
4664 * config/i386/i386.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
4665 Define NEED_INDICATE_EXEC_STACK to 0.
4666 * config/i386/linux.h, config/i386/linux64.h: Redefine
4667 NEED_INDICATE_EXEC_STACK to 1 instead of setting SUBTARGET_FILE_END.
4668 * config/i386/winnt.c (i386_pe_asm_file_end): Rename to
4669 i386_pe_file_end. Take no arguments. Use ix86_file_end.
4670 * config/ia64/ia64.c (ia64_hpux_asm_file_end): Rename to
4671 ia64_hpux_file_end, make static. Take no arguments.
4672 * config/ip2k/ip2k.c (asm_file_start, asm_file_end,
4673 commands_in_prologues, commands_in_epilogues): Delete.
4674 (function_epilogue): Update to match.
4675 * config/mips/mips.c (mips_asm_file_end): Rename mips_file_end,
4676 make static. Take no arguments.
4677 (iris6_asm_file_end): Rename iris6_file_end, make static, use
4678 mips_file_end, take no arguments.
4679 Set TARGET_ASM_FILE_END to iris6_file_end or mips_file_end as
4680 appropriate.
4681 * config/mmix/mmix.c (mmix_asm_file_end): Rename mmix_file_end,
4682 make static, take no arguments. Set TARGET_ASM_FILE_END to
4683 mmix_file_end.
4684 * config/pa/pa.c (output_deferred_plabels): Make static, take
4685 no arguments. Set TARGET_ASM_FILE_END to output_deferred_plabels.
4686 * config/rs6000/xcoff.h (TARGET_ASM_FILE_END): Set it.
4687 (ASM_FILE_END): Delete; move code...
4688 * config/rs6000/rs6000.c (rs6000_xcoff_file_end): ... here;
4689 new static function.
4690
4691 * config/avr/avr.h, config/cris/cris.h, config/h8300/h8300.h
4692 * config/mmix/mmix.h, config/mips/iris6.h, config/mips/mips.h:
4693 Don't set ASM_FILE_END.
4694 * config/alpha/linux-elf.h, config/m68k/linux.h, config/rs6000/linux.h
4695 * config/rs6000/linux64.h, config/s390/linux.h, config/sparc/linux.h
4696 * config/sparc/linux64.h: Set TARGET_ASM_FILE_END to
4697 file_end_indicate_exec_stack; don't set ASM_FILE_END.
4698 * config/alpha/unicosmk.h, config/i386/cygming.h
4699 * config/ia64/hpux.h: Set TARGET_ASM_FILE_END, not ASM_FILE_END.
4700 * config/arm/arm-protos.h, config/alpha/alpha-protos.h
4701 * config/avr/avr-protos.h, config/c4x/c4x-protos.h
4702 * config/h8300/h8300-protos.h, config/ia64/ia64-protos.h
4703 * config/ip2k/ip2k-protos.h, config/mips/mips-protos.h
4704 * config/mmix/mmix-protos.h, config/pa/pa-protos.h: Update.
4705
da2d4c01
JH
4706Sat Jun 7 18:32:13 CEST 2003 Jan Hubicka <jh@suse.cz>
4707
4708 * i386.h (OPTION_DEFAULT_SPECS): Avoid -mcpu default when -march is
4709 specified.
4710
8c560c80
JH
4711Sat Jun 7 15:20:01 CEST 2003 Jan Hubicka <jh@suse.cz>
4712
4713 * Makefile.in (stageprofile_build): Kill redundant target.
4714 * i386.c (mdep_reorg): Don't pad jumps for Athlon.
4715
e62b6ea1
AJ
47162003-06-07 Andreas Jaeger <aj@suse.de>
4717
4718 * doc/tm.texi (Costs): Remove DONT_REDUCE_ADDR documentation.
4719
4720 * config/avr/avr.h: Remove comment regarding DONT_REDUCE_ADDR.
4721 * config/dsp16xx/dsp16xx.h: Likewise.
4722 * config/i386/i386.h: Likewise.
4723 * config/ip2k/ip2k.h: Likewise.
4724
2772ef3e
NB
47252003-06-07 Neil Booth <neil@daikokuya.co.uk>
4726
4727 * Makefile.in (OJBS, c-opts.o): Update.
4728 (c-options.c, c-options.h): Rename options.h and options.c.
4729 (options.h): Rename options_.h.
4730 (opts.o): New.
4731 * c-common.h (c_common_handle_option): Replace c_common_decode_option.
4732 (c_common_init_options): Update prototype.
4733 * c-lang.c (c_init_options): Update prototype.
4734 (LANG_HOOKS_HANDLE_OPTION): Override.
4735 (LANG_HOOKS_DECODE_OPTION): Drop.
4736 * c-opts.c: Include opts.h and options.h instead of c-options.h
4737 and c-options.c.
4738 (lang_flags): Move to file scope.
4739 (find_opt, c_common_decode_option): Remove.
4740 (CL_C, CL_OBJC, CL_CXX, CL_OBJCXX, CL_JOINED, CL_SEPARATE,
4741 CL_REJECT_NEGATIVE): Move to opts.h.
4742 (missing_arg): Update prototype.
4743 (c_common_init_options): Update for new prototype.
4744 (c_common_handle_options): Filenames are passed as N_OPTS.
4745 * hooks.c (hook_int_void_0): New.
4746 * hooks.h (hook_int_void_0): New.
4747 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): New default.
4748 (LANG_HOOKS_HANDLE_OPTION): Default to NULL for now.
4749 (LANG_HOOKS_INITIALIZER): Update.
4750 * langhooks.h (init_options): Update.
4751 (handle_option): New.
4752 * opts.c, opts.h: New files.
4753 * opts.sh: Update c file to include opts.h and options.h.
4754 * toplev.c: Include opts.h; change options.h to options_.h.
4755 (parse_options_and_default_flags): Get lang_mask, use
4756 handle_option for language-specific handling.
4757 * objc/objc-lang.c (LANG_HOOKS_DECODE_OPTON): Drop.
4758 (LANG_HOOKS_HANDLE_OPTION): Override.
4759 (objc_init_options): Update.
4760
3743ea05
MK
47612003-06-07 Magnus Kreth <magnus.kreth@gmx.de>
4762 Thibaud Gaillard <thibaud.gaillard@nto.atmel.com>
4763
f6749ed8 4764 PR other/7031
3743ea05
MK
4765 * Makefile.in (install-common): Remove GCOV_INSTALL_NAME instead of
4766 gcov.
4767
90e145da
KC
47682003-06-07 Kelley Cook <kelleycook@wideopenwest.com>
4769
4770 * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Remove quotes in
4771 section names.
4772 * configure: Regenerate.
4773
ffbc65c3
AM
47742003-06-07 Alan Modra <amodra@bigpond.net.au>
4775
4776 * config/rs6000/linux64.h (CRT_CALL_STATIC_FUNCTION): Define.
4777
8a5db2b4
JW
47782003-06-06 James E Wilson <wilson@tuliptree.org>
4779
4780 PR inline-asm/10890
4781 * reload1.c (merge_assigned_reloads): Abort only if two reloads have
4782 different in fields.
4783
6a1b7268
NN
47842003-06-06 Nathanael Nerode <neroden@gcc.gnu.org>
4785
4786 * configure.in: Make $(target_subdir) correspond with top level usage.
4787 * Makefile.in: Likewise.
4788 * configure: Regenerate.
4789
78cabff8
JDA
47902003-06-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4791
4792 * pa.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_COMMON,
4793 ASM_OUTPUT_ALIGNED_LOCAL): Cast `SIZE' and `ALIGNED' parameters to
4794 unsigned HOST_WIDE_INT.
4795 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMOM, ASM_OUTPUT_ALIGNED_LOCAL):
4796 Likewise.
4797 * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL):
4798 Likewise.
4799
67b1fbb9
KG
48002003-06-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4801
4802 * doc/install.texi (Prerequisites): New section documenting
4803 tools and packages necessary prior to building and/or
4804 modifying GCC.
4805 * doc/install.texi2html: Also generate prerequisites.html.
4806
3a11ec8b
RE
48072003-06-06 Richard Earnshaw <rearnsha@arm.com>
4808
4809 PR target/11052
4810 * ifcvt.c (noce_process_if_block): Fail if the destination has
4811 side-effects.
4812
7dc8b126
JM
48132003-06-06 Jason Merrill <jason@redhat.com>
4814
4815 * stmt.c (resolve_asm_operand_names): Rename from
4816 resolve_operand_names. No longer static. Avoid needless copying.
4817 Don't build array of constraints.
4818 (expand_asm_operands): Build it here.
4819 * tree.h: Declare resolve_asm_operand_names.
4820
4821 * stmt.c (expand_decl): Put artificial vars into registers even
4822 when not optimizing, and don't mark the regs as user vars.
4823
1c20913c
R
48242003-06-06 J"orn Rennecke <joern.rennecke@superh.com>
4825
4826 * sh.h (FUNCTION_ARG_1): Consistently use NEW_MODE for the mode
4827 of the generated register.
4828
09c36669
DJ
48292003-06-06 Daniel Jacobowitz <drow@mvista.com>
4830
4831 * config.gcc: Add a missing sparc64 case.
4832
744f6f09
JJ
48332003-06-06 Jakub Jelinek <jakub@redhat.com>
4834
4835 * mklibgcc.in: Propagate .note.GNU-stack section if needed into
4836 the .hidden assembly stubs.
4837
30fb3231
L
48382003-06-06 H.J. Lu <hongjiu.lu@intel.com>
4839
4840 * config.gcc (extra_headers): Add emmintrin.h for i[34567]86-*-*
4841 and x86_64-*-*.
4842
4843 * config/i386/mmintrin.h: Update version and add alternate
4844 intrinsic names.
4845 * config/i386/xmmintrin.h: Likewise.
4846
4847 * config/i386/xmmintrin.h: Include <emmintrin.h>. Move SSE2
4848 intrinsics to ...
4849 * config/i386/emmintrin.h: Here. New file.
4850
07bae5ad
RS
48512003-06-06 Roger Sayle <roger@eyesopen.com>
4852
4853 * fold-const.c (fold <ABS_EXPR>): Re-fold the result of folding
4854 fabs(-x) into fabs(x). Use tree_expr_nonnegative_p to determine
4855 when the ABS_EXPR (fabs or abs) is not required.
e62b6ea1 4856 (tree_expr_nonnegative_p): Move the logic that sqrt and exp are
07bae5ad
RS
4857 always nonnegative from fold to here. Additionally, cabs and fabs
4858 are always non-negative, and pow and atan are non-negative if
4859 their first argument is non-negative.
4860
4861 * builtins.c (fold_builtin_cabs): New function to fold cabs{,f,l}.
4862 Evaluate cabs of a constant at compile-time. Convert cabs of a
4863 non-complex argument into fabs. Convert cabs(z) into
4864 sqrt(z.r*z.r + z.i*z.i) at the tree-level with -ffast-math or
4865 -funsafe-math-optimizations or -ffast-math.
4866 (fold_builtin): Convert BUILT_IN_FABS{,F,L} into an ABS_EXPR.
4867 Fold BUILT_IN_CABS{,F,L} using fold_builtin_cabs.
4868
295e823c
JH
4869Thu Jun 5 20:51:09 CEST 2003 Jan Hubicka <jh@suse.cz>
4870
4871 * sourcebuild.texi (Front End Directory): Document new hooks.
4872
9ee634e3
JH
4873Fri Jun 6 11:02:35 CEST 2003 Jan Hubicka <jh@suse.cz>
4874
4875 * function.c (FLOOR_ROUND, CEIL_ROUND): Fix.
07bae5ad
RS
4876 * i386.md (gen_pro_epilogue_adjust_stack): Deal with gigantic
4877 stack frames.
9ee634e3
JH
4878 (pro_epilogue_adjust_stack_rex64_2): New pattern
4879
4880Fri Jun 6 11:03:14 CEST 2003 Jan Hubicka <jh@suse.cz>
4881 Pop Sebastian
4882 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4883
4884 * cfghooks.h, cfghooks.c: New files.
4885 * Makefile.in (BASIC_BLOCK_H): Depends on cfghooks.h.
4886 (OBJS): Add cfghooks.o.
4887 (cfghooks.o): New rule.
4888 * basic-block.h (split_edge): Rename to rtl_split_edge.
4889 (verify_flow_info): Rename to rtl_verify_flow_info.
4890 (cfghooks.h): Included here.
4891 * cfgrtl.c (split_edge): Renamed rtl_split_edge.
4892 (verify_flow_info): Renamed rtl_verify_flow_info.
4893 * toplev.c (rest_of_compilation): Call rtl_register_cfg_hooks.
4894
4895 * basic-block.h (split_block, split_edge, flow_delete_block,
4896 redirect_edge_and_branch, redirect_edge_and_branch_force): Delete.
4897 (flow_delete_block_noexpunge): Return void.
4898 * cfg.c (verify_flow_info): New function.
4899 * cfgcleanup.c (try_simplify_condjump, outgoing_edges_match,
4900 try_crossjump_to_edge, try_optimize_cfg, delete_unreachable_blocks):
4901 Use delete_block.
4902 * cfglayout.c (function_footer): Rename to...
4903 (cfg_layout_function_footer): ... this variable
4904 (unlink_insn_chain): Make global.
4905 (fixup_reorder_chain, record_effective_endpoints): Update.
4906 (cleanup_unconditional_jumps): Use delete_block.
4907 (cfg_layout_redirect_edge, cfg_layout_split_block): Move to cfgrtl.c
4908 (cfg_layout_duplicate_bb): Use redirect_edge_and_branch_force.
4909 (cfg_layout_initialize, cfg_layout_finalize): Update hooks.
4910 * cfglayout.h (cfg_layout_redirect_edge, cfg_layout_split_block): Delete.
4911 (cfg_layout_function_footer): Declare.
4912 * cfgloopmanip (split_loop_bb): Do not update RBI.
4913 (remove_bbs): Use delete_block.
4914 (loop_reidrect_edge, loop_delete_branch_edge): Use
4915 redirect_edge_and_branch.
4916 (create_preheader): Use split_block and redirect_edge_and_branch_force.
4917 (split_edge_with): Likewise.
4918 * cfgrtl.c: Include cfglayout.h
4919 (split_edge): Rename to ...
4920 (rtl_split_edge) ... this one; make local.
4921 (redirect_edge_and_branch): Rename to ...
4922 (rtl_redirect_edge_and_branch) ... this one; make local.
4923 (redirect_edge_and_branch_force): Rename to ...
4924 (rtl_redirect_edge_and_branch_force) ... this one; make local.
4925 (cfg_layout_delete_block, cfg_layout_delete_edge_and_branch_force): New.
4926 (cfg_layout_redirect_edge_and_branch, cfg_layout_split_block): Move here from
4927 cfglayout.c; update to directly call RTL counterparts.
4928 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): New functions.
4929 * ifcvt.c (find_cond_trap): Use delete_block.
4930 (find_if_case_1): Use delete_block.
4931 (find_if_case_2): Use delete_block.
4932 * rtl.h (unlink_insn_chain): Declare.
4933 * toplev.c (rtl_reigster_cfg_hooks): New.
4934
7654db1b
RH
49352003-06-05 Richard Henderson <rth@redhat.com>
4936
4937 * recog.c (peephole2_optimize): Revert last change.
4938
c1dbd774
RH
49392003-06-05 Richard Henderson <rth@redhat.com>
4940
4941 * recog.c (peephole2_optimize): Don't split block unless
4942 can_throw_internal.
4943
a35abc3c
KH
49442003-06-06 Kazu Hirata <kazu@cs.umass.edu>
4945
c1dbd774
RH
4946 * config/h8300/h8300.c (get_shift_alg): Correct the syntax of rotxl.
4947 * config/h8300/h8300.md (*addsi3_lshiftrt_16_zexthi): Likewise.
a35abc3c 4948
a5f3dd66
KC
49492003-06-05 Kelley Cook <kelleycook@wideopenwest.com>
4950
4951 PR optimization/4490
4952 * config/i386/i386.md: Don't use XFMode if TARGET_128BIT_LONG_DOUBLE.
4953 * doc/invoke.texi (m96bit-long-double, m128bit-long-double): Reword
4954 documentation to accurately reflect what these options do.
4955
25119b21
KK
49562003-06-06 Kaz Kojima <kkojima@gcc.gnu.org>
4957
4958 * config/sh/linux.h (STARTFILE_SPEC): Handle -pie. Simplify.
4959 (ENDFILE_SPEC): Redefine to handle -pie.
4960
3d818632
PE
49612003-06-05 Phil Edwards <phil@jaj.com>
4962
4963 * Makefile.in (qmtest-g++): Use target_alias, not target.
4964
640da953
PB
49652003-06-05 Per Bothner <pbothner@apple.com>
4966
4967 * toplev.c (push_srcloc): Simplify behavior to save current location
4968 and set current location to parameters.
4969 (pop_srcloc): Simplify semantics.
4970 (lang_dependent_init): Remove now-useless initial push_srcloc.
4971
7d445f15
RH
49722003-05-06 Richard Henderson <rth@redhat.com>
4973
e62b6ea1 4974 * dwarf2out.c (loc_descriptor_from_tree): Return 0 for
7d445f15
RH
4975 language-specific tree codes.
4976
eebfb2aa
JDA
49772003-06-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4978
4979 PR middle-end/9986
4980 * pa.c (pa_init_builtins): Also set implicit_built_in_decls for
4981 BUILT_IN_FPUTC_UNLOCKED to NULL_TREE.
4982
8f231b5d
JH
4983Thu Jun 5 18:32:46 CEST 2003 Jan Hubicka <jh@suse.cz>
4984
4985 * install.tex: Document profiledbootstrap.
4986
295e823c
JH
4987 * configure.in: Add support for lang.stageprofile and
4988 lang.stagefeedback
8f231b5d
JH
4989 * Makefile.in (clean, distclean): Kill new stages
4990 (POSTSTAGE1_FLAGS_TO_PASS): Break from ...
4991 (STAGE2_FLAGS_TO_PASS): ... this one.
4992 (STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS): New.
4993 (stage[2-4]_build): Add POSTSTAGE1_FLAGS_TO_PASS.
4994 (stageprofile_build, stageprofile_copy, stagefeedback_build,
4995 stagefeedback_copy): New.
e62b6ea1 4996 (restageprofile, restagefeedback, stageprofile-start,
8f231b5d
JH
4997 stageprofile, stagefeedback-start): Likewise.
4998
842a431a
DM
49992003-06-05 David Miller <davem@redhat.com>
5000 Richard Henderson <rth@redhat.com>
5001
5002 * optabs.c (HAVE_conditional_trap): Provide default.
5003 (gen_conditional_trap): Likewise.
5004 (init_optabs): Merge init_traps.
5005 (gen_cond_trap): Use prepare_operand. Restructure and avoid ifdef.
5006
83588a9d
JH
5007Thu Jun 5 14:59:44 CEST 2003 Jan Hubicka <jh@suse.cz>
5008
5009 * combine.c (simplify_if_then_else): (IF_THEN_ELSE (NE REG 0) (0) (8))
e62b6ea1 5010 is REG for nonzero_bits (REG) == 8.
83588a9d 5011
6262f66a
JH
5012Thu Jun 5 13:23:51 CEST 2003 Jan Hubicka <jh@suse.cz>
5013
5014 * i386.md (align): Fix warning; clarify what to do when no p2align
5015 is available.
5016
3a30516d
NC
50172003-06-05 Nick Clifton <nickc@redhat.com>
5018
5019 * config.gcc (m32r-elf): Revert previous delta.
a5fe455b
ZW
5020 * config/m32r/t-m32r (crtinit.o): Fix rule to work with
5021 multilibs. Remove m32rx specific version.
5022 (crtfini.o): Likewise.
5023 (EXTRA_MULTILIB_PARTS): Define.
e62b6ea1 5024
53e5f173
EB
50252003-06-05 Eric Botcazou <ebotcazou@libertysurf.fr>
5026
5027 * doc/md.texi (Machine Constraints): Correct the meaning of
5028 constraints related to floating-point registers on SPARC.
5029
c6cc7e13 50302003-06-05 Eric Botcazou <ebotcazou@libertysurf.fr>
a5fe455b 5031 Paolo Bonzini <bonzini@gnu.org>
c6cc7e13
EB
5032
5033 PR target/10663
5034 * configure.in (HAVE_LD_RO_RW_SECTION_MIXING): Redirect
5035 assembler and linker output to /dev/null.
5036 Use a 'sed' construct instead of 'grep -A1'.
5037 * configure: Regenerate.
5038
74dc3e94
RH
50392003-06-04 Richard Henderson <rth@redhat.com>
5040
5041 * config/i386/i386.c (struct ix86_address): Add seg.
5042 (no_seg_address_operand): New.
5043 (ix86_decompose_address): Restructure PLUS loop. Accept one
5044 UNSPEC_TP if TARGET_TLS_DIRECT_SEG_REFS. Adjust ESP swap test
5045 to test for a regnum, not stack_pointer_rtx.
5046 (ix86_address_cost): Reduce cost if non-default segment.
5047 (legitimate_address_p): Remove UNSPEC_TP check.
5048 (get_thread_pointer): Add to_reg argument. Don't represent
5049 the thread pointer as a memory load.
5050 (legitimize_tls_address): Split out of ...
5051 (legitimize_address): ... here.
5052 (print_operand_address): Handle parts.seg.
5053 (ix86_expand_move): Use legitimize_tls_address.
5054 (ix86_rtx_costs): Handle UNSPEC_TP.
5055 * config/i386/i386.h (MASK_TLS_DIRECT_SEG_REFS): New.
5056 (TARGET_TLS_DIRECT_SEG_REFS): New.
5057 (TARGET_SWITCHES): Add tls-direct-seg-refs.
5058 (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): Default.
5059 (PREDICATE_CODES): Add no_seg_address_operand.
5060 * config/i386/i386.md (lea_1): Use it.
5061 (lea_1_rex64, lea_1_zext, lea_2_rex64): Likewise.
5062 (load_tp_si, add_tp_si, load_tp_di, add_tp_di): New.
5063 * config/i386/linux.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
5064 * config/i386/linux64.h (TARGET_TLS_DIRECT_SEG_REFS_DEFAULT): New.
5065 * doc/invoke.texi: Add -mtls-direct-seg-refs.
5066
d7068b3d
MM
50672003-06-04 Mark Mitchell <mark@codesourcery.com>
5068
5069 * Makefile.in (QMTESTRUNFLAGS): Set for DejaGNU emulation.
5070 (QMTEST_GPP_TESTS): Use "g++" by default.
5071 (stamp-qmtest): Tweak database creation.
5072 (QMTEST_DIR/context): Update context file format.
5073 (qmtest-g++): Tweak command-line.
5074
6b6600bd
KG
50752003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5076
5077 * Makefile.in (varasm.o): Don't set -Wno-error.
5078 * rs6000/t-rs6000 (varasm.o, out_object_file): Don't clear.
5079
1072ec3f
ZW
50802003-06-04 Zack Weinberg <zack@codesourcery.com>
5081
5082 PR bootstrap/3163
5083 * aclocal.m4 (AC_FUNC_MMAP_ANYWHERE, AC_FUNC_MMAP_FILE): Delete.
5084 (gcc_AC_FUNC_MMAP_BLACKLIST): New.
5085 * configure.in: Check for sys/mman.h and mmap in AC_CHECK_HEADERS
5086 and AC_CHECK_FUNCS lists, respectively. Use
5087 gcc_AC_FUNC_MMAP_BLACKLIST, not AC_FUNC_MMAP_ANYWHERE nor
5088 AC_FUNC_MMAP_FILE.
5089 * configure, config.in: Regenerate.
5090
c53dddc2
KG
50912003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5092
5093 * arm/aout.h (ASM_OUTPUT_SKIP): Fix cast for format specifier warning.
5094 * arm.c (arm_output_function_prologue): Fix format specifiers.
5095 * arm.h (ARM_PRINT_OPERAND_ADDRESS): Likewise.
5096 * m68k.c (m68k_output_mi_thunk): Use more readable %wd instead of
5097 HOST_WIDE_INT_PRINT_DEC.
5098 * vax.c (vax_output_function_prologue): Fix format specifiers.
5099
7b9c108f
RH
51002003-06-04 Richard Henderson <rth@redhat.com>
5101
1072ec3f
ZW
5102 * cse.c (find_best_addr): Consider binary operators even if second
5103 argument is not CONST_INT.
7b9c108f 5104
c48ec590
ZD
51052003-06-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5106
5107 * doc/invoke.texi (max-cse-path-length): Document.
5108
9ccf9681
RH
51092003-06-04 Richard Henderson <rth@redhat.com>
5110
5111 * config/i386/i386.md (align): Use ASM_OUTPUT_*ALIGN macros.
5112
9dce39a4
AP
51132003-06-04 Andrew Pinski <pinskia@physics.uc.edu>
5114
5115 * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME):
5116 Remove semi-colon at the end of the expression.
5117
ad929cd5
KG
51182003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5119
1072ec3f 5120 * i370.c (mvs_function_name_length): Fix signed/unsigned warnings.
ad929cd5
KG
5121 * i370.h (mvs_function_name_length): Likewise.
5122 * i960.h (CONSTANT_ALIGNMENT): Likewise.
5123 * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
5124 * pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5125 * pa.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5126 * rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Delete unused
5127 variable.
5128
7816bea0
DJ
51292003-06-04 Daniel Jacobowitz <drow@mvista.com>
5130
5131 * config.gcc: Reorganize --with-cpu logic. Set
5132 configure_default_options according to the default CPU, --with-cpu,
5133 --with-arch, --with-tune, --with-schedule, --with-abi, and
5134 --with-float. Check for legal values of various options.
5135 * configure.in: Define configure_default_options in configargs.h.
5136 * configure: Regenerated.
5137 * config/mips/mips.h (TARGET_DEFAULT_ARCH_P)
5138 (TARGET_DEFAULT_FLOAT_P): New macros.
5139 * gcc.c (do_option_spec): New function.
5140 (struct default_spec, option_default_specs): New.
5141 (main): Call do_option_spec.
5142 * config/alpha/alpha.h, config/arm/arm.h, config/i386/i386.h,
5143 config/mips/mips.h, config/pa/pa.h, config/rs6000/rs6000.h,
5144 config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Define.
5145
5146 * doc/install.texi: Update --with-cpu documentation. Mention
5147 --with-arch, --with-schedule, --with-tune, --with-abi, and
5148 --with-float.
5149 * doc/tm.texi (Driver): Document OPTION_DEFAULT_SPECS.
5150
83079d89
DJ
51512003-06-04 Daniel Jacobowitz <drow@mvista.com>
5152
5153 * config.gcc: Only process --with-cpu logic in the third pass.
5154
73f09c99
DJ
51552003-06-04 Daniel Jacobowitz <drow@mvista.com>
5156
5157 * config.gcc: Reorganize --with-cpu section. Remove an
5158 obsolete comment about the default CPU for x86-64. Fix
5159 a typo for the ep9312. Update the list of supported PowerPC
5160 CPUs. Support a limited set of new --with-cpu options
5161 for i386.
5162
165848da
AH
51632003-06-04 Aldy Hernandez <aldyh@redhat.com>
5164
1072ec3f
ZW
5165 * config/rs6000/rs6000.c (rs6000_complex_function_value): Unpack
5166 complex numbers <= 32 bits into two registers.
165848da 5167
74eda121
KG
51682003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5169
5170 * alpha.c (print_operand_address): Fix format specifier warnings.
5171 * alpha/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5172 * alpha/vms.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5173 * arm/aof.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
5174 * arm/pe.h (ASM_OUTPUT_COMMON): Likewise.
5175 * avr.h (ASM_OUTPUT_COMMON, ASM_GENERATE_INTERNAL_LABEL,
1072ec3f 5176 ASM_OUTPUT_SKIP): Likewise.
74eda121
KG
5177 * c4x.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5178 * dsp16xx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5179 * h8300.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_COMMON):
5180 Likewise.
5181 * i370.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5182 * i386/cygming.h (ASM_OUTPUT_COMMON): Likewise.
5183 * i386/darwin.h (ASM_OUTPUT_COMMON): Likewise.
5184 * i960.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5185 * m68k/hp320.h (PRINT_OPERAND_ADDRESS): Likewise.
5186 * mcore.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5187 * pdp11.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5188 * ptx4.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
5189 * sparc/freebsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5190 * svr3.h (ASM_OUTPUT_COMMON): Likewise.
5191
e3091a5f
R
51922003-06-04 J"orn Rennecke <joern.rennecke@superh.com>
5193
5194 * c-decl.c (c_init_decl_processing): Clear input_file_name
5195 while building common nodes.
5196 * dwarf2out.c (gen_compile_unit_die, dwarf2out_finish):
5197 Don't add working directory for strings like <built-in> .
5198
f0483418
DE
51992003-06-04 David Edelsohn <edelsohn@gnu.org>
5200
5201 * doc/install.texi (*-ibm-aix*): Native as and ld required
5202 to bootstrap on AIX 5L.
5203
0bfa5f65
RH
52042003-06-04 Richard Henderson <rth@redhat.com>
5205
1072ec3f
ZW
5206 * c-common.c (handle_cleanup_attribute): New.
5207 (c_common_attributes): Add it.
5208 * c-decl.c (finish_decl): Honor the cleanup attribute.
5209 * doc/extend.texi (Variable Attributes): Document it.
0bfa5f65 5210
1072ec3f
ZW
5211 * unwind-c.c: New file.
5212 * Makefile.in (LIB2ADDEH): Add it.
5213 * config/t-darwin, config/t-linux, config/t-linux-gnulibc1,
5214 config/ia64/t-ia64: Likewise.
0bfa5f65 5215
3edc56a9
JJ
52162003-06-04 Jakub Jelinek <jakub@redhat.com>
5217
5218 * function.c (trampolines_created): New variable.
5219 (expand_function_end): Set it when doing INITIALIZE_TRAMPOLINE.
5220 * function.h (trampolines_created): Add.
5221 * config/s390/linux.h (ASM_FILE_END): Define.
5222 * config/alpha/linux-elf.h (ASM_FILE_END): Define.
5223 * config/m68k/linux.h (ASM_FILE_END): Define.
5224 * config/rs6000/linux.h (ASM_FILE_END): Define.
5225 * config/rs6000/linux64.h (ASM_FILE_END): Define.
5226 * config/rs6000/ppc-asm.h: Add .note.GNU-stack on powerpc-linux.
5227 * config/sparc/linux.h (ASM_FILE_END): Define.
5228 * config/sparc/linux64.h (ASM_FILE_END): Define.
5229 * config/i386/i386.c (ix86_asm_file_end): Use SUBTARGET_FILE_END.
5230 * config/i386/linux.h (SUBTARGET_FILE_END): Define.
5231 * config/i386/linux64.h (SUBTARGET_FILE_END): Define.
5232
d2c49530
JH
5233Wed Jun 4 18:39:33 CEST 2003 Jan Hubicka <jh@suse.cz>
5234
5235 * i386.c (min_insn_size, k8_avoid_jump_misspredicts): New functions
5236 (ix86_reorg): Use it.
5237 * i386.md (align): New insn pattern.
5238
05a0e2af
KG
52392003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5240
5241 * toplev.c (rest_of_type_compilation): Fix typo.
5242
9739c90c
JJ
52432003-06-04 Jakub Jelinek <jakub@redhat.com>
5244 Alan Modra <amodra@bigpond.net.au>
5245
5246 * config/i386/linux.h (NO_PROFILE_COUNTERS): Define to 1.
5247 * config/i386/freebsd.h (NO_PROFILE_COUNTERS): Likewise.
5248 * config/i386/netbsd-elf.h (NO_PROFILE_COUNTERS): Likewise.
5249 * config/xtensa/xtensa.h (NO_PROFILE_COUTNERS): Likewise.
5250 * config/darwin.h (NO_PROFILE_COUNTERS): Likewise.
5251 * final.c (NO_PROFILE_COUNTERS): Define to 0 if not defined.
5252 (profile_function): Allow NO_PROFILE_COUNTERS to be non-constant.
5253 * config/rs6000/rs6000.c (output_profile_hook): Likewise.
5254
5255 * configure.in (powerpc*-*, s390*-*): Set tls_as_opt.
5256 Pass it to $gcc_cv_as.
5257 * configure: Rebuilt.
5258
5259 * config/rs6000/rs6000.c (rs6000_abi_name): Remove initializer.
5260 (print_operand): Allow TARGET_AIX to be non-constant.
5261 (rs6000_aix_emit_builtin_unwind_init, rs6000_emit_eh_toc_restore):
5262 Define unconditionally.
5263 (rs6000_elf_declare_function_name): New function.
5264 * config/rs6000/rs6000.md (eh_return): Allow TARGET_AIX to be
5265 non-constant.
5266 * config/rs6000/linux64.h [!RS6000_BI_ARCH] (TARGET_64BIT): Define
5267 to 1.
5268 (DEFAULT_ARCH64_P, RS6000_BI_ARCH_P): Define.
5269 [IN_LIBGCC2] (TARGET_64BIT): Define based on whether __powerpc64__
5270 is defined.
5271 (TARGET_AIX): Define to 1 if TARGET_64BIT.
5272 (PROCESSOR_DEFAULT): Remove.
5273 (TARGET_RELOCATABLE, RS6000_ABI_NAME, INVALID_64BIT,
5274 INVALID_32BIT, SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
5275 [RS6000_BI_ARCH] (OVERRIDE_OPTIONS, ASM_FILE_START): Define.
5276 (ASM_DEFAULT_SPEC, ASM_SPEC, LINK_OS_LINUX_SPEC): Define for both
5277 -m32 and -m64.
5278 (MULTILIB_DEFAULTS): Define.
5279 (SUBSUBTARGET_EXTRA_SPECS): Define.
5280 (ASM_SPEC32, ASM_SPEC64, ASM_SPEC_COMMON): Define.
5281 (TARGET_TOC): Define only if !RS6000_BI_ARCH.
5282 (TARGET_NO_TOC): Remove.
5283 [!RS6000_BI_ARCH] (TARGET_RELOCATABLE, TARGET_EABI,
5284 TARGET_PROTOTYPE): Define to 0.
5285 (NO_PROFILE_COUNTERS): Define to TARGET_64BIT.
5286 (PROFILE_HOOK): Only call output_profile_hook if TARGET_64BIT.
5287 (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Adjust to work properly
5288 if !TARGET_64BIT.
5289 (USER_LABEL_PREFIX): Remove.
5290 (JUMP_TABLES_IN_TEXT_SECTION): Define to TARGET_64BIT.
5291 (SETUP_FRAME_ADDRESSES): Only call rs6000_aix_emit_builtin_unwind_init
5292 if TARGET_64BIT.
5293 (TARGET_OS_CPP_BUILTINS): Handle both -m32 and -m64.
5294 (LINK_OS_LINUX_SPEC32, LINK_OS_LINUX_SPEC64): Define.
5295 (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Remove.
5296 (TOC_SECTION_ASM_OP): Define depending on TARGET_64BIT.
5297 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
5298 (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE): Define depending on
5299 TARGET_64BIT.
5300 (RS6000_CALL_GLUE): Likewise.
5301 (SAVE_FP_PREFIX, SAVE_FP_SUFFIX, RESTORE_FP_PREFIX,
5302 RESTORE_FP_SUFFIX): Likewise.
5303 (ASM_DECLARE_FUNCTION_NAME): Remove.
5304 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_SOURCE_LINE,
5305 DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Only output dot before function
5306 name if TARGET_64BIT.
5307 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Handle both TARGET_64BIT and
5308 !TARGET_64BIT.
5309 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Remove undefs.
5310 (ASM_PREFERRED_EH_DATA_FORMAT): Take TARGET_64BIT into account.
5311 (DRAFT_V4_STRUCT_RET): Define.
5312 (SIGNAL_FRAMESIZE): New enum value.
5313 (MD_FALLBACK_FRAME_STATE_FOR): Define.
5314 * config/rs6000/default64.h: New file.
5315 * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -m32 and -m64
5316 options.
5317 (SUBTARGET_OVERRIDE_OPTIONS): If rs6000_abi_name is NULL, set it
5318 to RS6000_ABI_NAME. Only disallow mixing of -fPIC with -mcall-aixdesc
5319 if !TARGET_64BIT.
5320 [!RS6000_BI_ARCH] (SUBSUBTARGET_OVERRIDE_OPTIONS): Define.
5321 (ASM_DECLARE_FUNCTION_NAME): Use rs6000_elf_declare_function_name
5322 function.
5323 (TARGET_OS_SYSV_CPP_BUILTINS): Define.
5324 (TARGET_OS_CPP_BUILTINS): Use it.
5325 (CPP_SYSV_SPEC): Remove.
5326 (CPP_SPEC): Remove cpp_sysv.
5327 (SUBTARGET_EXTRA_SPECS): Remove cpp_sysv.
5328 Add SUBSUBTARGET_EXTRA_SPECS.
5329 (SUBSUBTARGET_EXTRA_SPECS): Define.
5330 * config/rs6000/biarch64.h: New file.
5331 * config/rs6000/rs6000-protos.h (rs6000_elf_declare_function_name):
5332 New prototype.
5333 * config/rs6000/x-linux64: New file.
5334 * config/rs6000/t-linux64: Build -m64, -m32 and -m32 -msoft-float
5335 multilibs.
5336 * config/rs6000/eabi-ci.asm: Protect with #ifndef __powerpc64__.
5337 * config/rs6000/eabi-cn.asm: Likewise.
5338 * config/rs6000/tramp.asm: Likewise.
5339 * config/rs6000/sol-ci.asm: Likewise.
5340 * config/rs6000/sol-cn.asm: Likewise.
5341 * config/rs6000/linux.h (TARGET_64BIT): Define to 0.
5342 (TARGET_OS_CPP_BUILTINS): Use TARGET_OS_SYSV_CPP_BUILTINS.
5343 * config/rs6000/ppc-asm.h: Move __powerpc64__ section before
5344 _CALL_AIXDESC section.
5345 * config.gcc (powerpc64-*-linux*): Configure a bi-arch compiler,
5346 defaulting to -m64 unless --with-cpu= is one of the 32-bit CPUs
5347 or default32.
5348
150b72ed
DJ
53492003-06-04 Daniel Jacobowitz <drow@mvista.com>
5350
5351 * config.gcc: Revert accidentally committed ARM changes.
5352
385a9348
RS
53532003-06-04 Roger Sayle <roger@eyesopen.com>
5354
5355 * builtins.c (dconstpi, dconste): New mathematical constants.
5356 (init_builtin_dconsts): New function to initialize dconstpi
5357 and dconste.
5358 (fold_builtin): Optimize exp(1.0) = e. Evaluate exp(x) at
5359 compile time with -ffast-math when x is an integer constant.
5360 Optimize tan(0.0) = 0.0. Optimize atan(0.0) = 0.0,
5361 atan(1.0) = pi/4 and tan(atan(x)) = x with -ffast-math.
5362
8c6a8269
RS
53632003-06-04 Roger Sayle <roger@eyesopen.com>
5364
5365 * calls.c (expand_call): Avoid calling pure or const functions
5366 when the result is ignored (or void) and none of the arguments
5367 are volatile. Move warning diagnostic earlier in function.
5368
e2d8bb29
AJ
53692003-06-04 Andreas Jaeger <aj@suse.de>
5370
5371 * system.h: Do not poison TDESC_SECTION_ASM_OP,
5372 RDATA_SECTION_ASM_OP and SUBTARGET_PROLOGUE.
5373
b1721339
KG
53742003-06-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5375
5376 * final.c (asm_fprintf): Update comments, accept "-+ #0" flags,
5377 optimize '%' case, handle %c, don't accept %p, %e, %f or %g,
5378 handle %ll, optimize regular character case.
5379
9bf8cfbf
ZD
53802003-06-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5381
5382 * Makefile.in (cse.o): Add params.h dependency.
5383 * cse.c: Include params.h.
5384 (PATHLENGTH): Removed.
5385 (struct cse_basic_block_data): Make path array dynamic.
8c6a8269
RS
5386 (cse_end_of_basic_block): Use PARAM_MAX_CSE_PATH_LENGTH instead
5387 of PATHLENGTH.
9bf8cfbf
ZD
5388 (cse_main, cse_basic_block): Allocate path array.
5389 * params.def (PARAM_MAX_CSE_PATH_LENGTH): New.
5390
253c7a00
JH
5391Wed Jun 4 09:49:21 CEST 2003 Jan Hubicka <jh@suse.cz>
5392
5393 * i386.c (ix86_reorg): Replace the jump instead of adding nop.
5394 * i386.md (UNSPEC_REP): New constant.
5395 (return_internal_long): New pattern.
5396
01d3224a
EB
53972003-06-04 Eric Botcazou <ebotcazou@libertysurf.fr>
5398
5399 PR optimization/11018
5400 * config/sparc/sparc.c (sparc_v8plus_shift): Use which_alternative
5401 consistently to decide whether the scratch register is really
5402 required.
5403
ef0139b1
EB
54042003-06-04 Eric Botcazou <ebotcazou@libertysurf.fr>
5405
5406 PR optimization/10876
5407 * config/sparc/sparc.h (CONST_OK_FOR_LETTER): Add
5408 new 'O' constraint for constant 4096.
5409 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
5410 * config/sparc/sparc.md (adddi3 expander): Canonicalize pattern.
5411 Do not transform into MINUS insn for constant 4096.
5412 (*adddi3_sp64 insn): Canonicalize pattern. Add new alternative
5413 for constant 4096 as third operand.
5414 (addsi3 expander): Remove.
5415 (*addsi3 insn): Rename into 'addsi3'. Canonicalize pattern. Add
5416 new alternative for constant 4096 as third operand.
5417 (subdi3 expander): Do not transform into PLUS insn for constant 4096.
5418 (*subdi3_sp64 insn): Add new alternative for constant 4096 as third
5419 operand.
5420 (subsi3 expander): Remove.
5421 (*subsi3 insn): Rename into 'subsi3'. Add new alternative for
5422 constant 4096 as third operand.
5423 * doc/md.texi (Machine Constraints): Document new 'O' constraint for
5424 the SPARC port.
5425
18de8a98
CD
54262003-06-03 Chris Demetriou <cgd@broadcom.com>
5427
5428 * config/mips/t-linux64 (CRTSTUFF_T_CFLAGS_S): Define.
5429
a816c981
AJ
54302003-06-04 Andreas Jaeger <aj@suse.de>
5431
f691dc3b
AJ
5432 * config/i386/uwin.h: Remove SUBTARGET_PROLOGUE.
5433
5434 * config/i386/i386.c (ix86_expand_prologue): Do not use
5435 SUBTARGET_PROLOGUE.
5436
5437 * system.h: Poision SUBTARGET_PROLOGUE.
5438
5439 * config/arm/arm-protos.h: Remove unused rdate_section prototype.
5440
5441 * output.h: Remove TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP
5442 dependend code.
5443
5444 * system.h: Poison TDESC_SECTION_ASM_OP and RDATA_SECTION_ASM_OP.
5445
5446 * system.h: Poison INSN_CACHE_DEPTH, INSN_CACHE_SIZE and
5447 INSN_CACHE_LINE_WIDTH.
5448
5449 * libgcc2.c (INSN_CACHE_PLANE_SIZE): Removed.
5450 (__clear_cache): Remove code dependend on INSN_CACHE_DEPTH,
5451 INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
5452
5453 * doc/tm.texi (Trampolines): Remove INSN_CACHE_DEPTH,
5454 INSN_CACHE_SIZE and INSN_CACHE_LINE_WIDTH.
1072ec3f 5455
f691dc3b
AJ
5456 * dbxout.c (dbxout_type): Remove usage of DBX_OUTPUT_ENUM.
5457 (dbxout_symbol): Remove usage of DBX_OUTPUT_CONSTANT_SYMBOL.
5458 (dbxout_block): Remove usage of DBX_OUTPUT_CATCH.
5459 (dbxout_block): Remove usage of DBX_LBRAC_FIRST.
5460 (dbxout_source_file): Remove usage of DBX_OUTPUT_SOURCE_FILENAME.
5461 (dbxout_init): Remove test for DBX_WORKING_DIRECTORY.
5462
5463 * doc/tm.texi (DBX Options): Do not document DBX_LBRAC_FIRST,
5464 DBX_OUTPUT_SOURCE_FILENAME and DBX_OUTPUT_ENUM and
5465 DBX_WORKING_DIRECTORY.
5466
5467 * system.h: Poison DBX_LBRAC_FIRST, DBX_OUTPUT_ENUM,
5468 DBX_OUTPUT_SOURCE_FILENAME and DBX_WORKING_DIRECTORY.
5469
5470 * config/frv/frv-protos.h: Remove unused const_section
5471 declaration.
5472 * config/vax/vax-protos.h: Likewise.
5473
5474 * output.h: Remove CONST_SECTION_ASM_OP usage.
5475
5476 * system.h: Poison CONST_SECTION_ASM_OP.
5477
74764b84
AJ
5478 * crtstuff.c (__do_global_dtors_aux): Remove usage of
5479 CRT_GET_RFIB_TEXT.
f691dc3b
AJ
5480 (frame_dummy): Likewise.
5481 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Likewise.
5482 * system.h: Poison CRT_GET_RFIB_TEXT.
1072ec3f 5483
6d3a8e3c
AJ
5484 * collect2.c (is_ctor_dtor): Remove CFRONT_LOSSAGE dependend code.
5485
a816c981
AJ
5486 * fix-header.c: Remove ADD_MISSING_EXTERN_C dependend variables.
5487 (write_lbrac): Remove ADD_MISSING_EXTERN_C dependend code.
5488 (recognized_function): Likewise.
5489 (read_scan_file): Likewise.
5490
df8ca70e
RS
54912003-06-03 Roger Sayle <roger@eyesopen.com>
5492
5493 * optabs.c (expand_binop): Optimize complex multiplication for
5494 the case of squaring a complex argument.
5495
894207cf
RS
54962003-06-03 Roger Sayle <roger@eyesopen.com>
5497
5498 * optabs.c (expand_binop): Attempt to reuse pseudos for duplicate
5499 non-volatile operands of binary operations.
5500 (prepare_cmp_insn): Likewise.
5501
1063147c
RS
55022003-06-03 Roger Sayle <roger@eyesopen.com>
5503
5504 * varasm.c (force_const_mem): Handle alignment of constants not
5505 representable as a type in the front-end language.
5506
a7a7d7ac
KH
55072003-06-03 Kazu Hirata <kazu@cs.umass.edu>
5508
5509 * flow.c (initialize_uninitialized_subregs): Use
5510 emit_move_insn instead of emitting a hardcoded move.
5511
2ef0a555
RH
55122003-06-03 Richard Henderson <rth@redhat.com>
5513
5514 * optabs.c (expand_abs_nojump): Split out from ...
5515 (expand_abs): ... here.
5516 * optabs.h (expand_abs_nojump): Declare.
5517 * ifcvt.c: (noce_try_abs): Use expand_abs_nojump.
5518 * Makefile.in (ifcvt.o): Depend on optabs.h.
5519
b0c242c0
AM
55202003-06-03 Alan Modra <amodra@bigpond.net.au>
5521
5522 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Heed flag_merge_constants.
5523
2121a768
JT
55242003-06-03 Jason Thorpe <thorpej@wasabisystems.com>
5525
5526 * config.gcc (default_use_cxa_atexit): New variable, defaults to no.
5527 (*-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*): Set default_use_cxa_atexit
5528 to yes.
5529 * configure.in: Allow default_use_cxa_atexit to determine the
5530 value of DEFAULT_USE_CXA_ATEXIT if not explicitly enabled or
5531 disabled.
5532 * configure: Regenerate.
5533
6f6a3861
DR
55342003-06-03 Douglas B Rupp <rupp@gnat.com>
5535
ccb36e10
DR
5536 * Makefile.in (TEXI_GCC_FILES): Remove vms.texi entry.
5537 * doc/gcc.texi: Remove vms.texi section.
5538 * doc/vms.texi: Remove obsolete file.
6f6a3861 5539
dc06db20
R
55402003-05-23 J"orn Rennecke <joern.rennecke@superh.com>
5541
5542 * configure.in (inhibit_libc): Don't define when configuring
5543 with --with-newlib --with-headers.
5544 * configure: Regenerate.
5545
5546 * t-sh: Remove LIB2FUNCS_EXTRA and embed-bb.c rules.
5547
6d07784a
RO
55482003-06-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5549
5550 * configure.in (gcc_cv_as_hidden): Disable .hidden completely on
5551 IRIX 6 without GNU ld.
5552 * configure: Regenerate.
5553
a79b3dc7
RS
55542003-06-03 Roger Sayle <roger@eyesopen.com>
5555
5556 * expr.c (emit_move_insn_1): Use emit_move_insn to move the parts
5557 of a complex number rather than invoke mov_optab directly.
5558
8d6b2775
KH
55592003-06-03 Kazu Hirata <kazu@cs.umass.edu>
5560
5561 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
5562 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
5563
48ff03c7
NN
55642003-06-03 Nathanael Nerode <neroden@gcc.gnu.org>
5565
5566 * config/i386/x86-64.h: Remove two target-independent comments;
5567 replace "GNU CC" with "GCC".
5568
b09d2739
AG
55692003-06-03 Anthony Green <green@redhat.com>
5570
5571 * config/frv/t-frv (EXTRA_HEADERS): Remove media.h
5572
075ec276
RS
55732003-06-03 Roger Sayle <roger@eyesopen.com>
5574
5575 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
5576 New builtins representing ISO C99's cabs, cabsf and cabsl.
5577 * builtins.c (expand_builtin_fabs): New function.
5578 (expand_builtin_cabs): New function.
5579 (expand_builtin): Expand BUILT_IN_FABS{,F,L} and BUILT_IN_CABS{,F,L}
5580 using expand_builtin_fabs and expand_builtin_cabs respectively.
5581
5582 * doc/extend.texi: Document new cabs, cabsf and cabsl builtins.
5583
ded9bf77
AH
55842003-06-03 Aldy Hernandez <aldyh@redhat.com>
5585
1072ec3f 5586 * function.c (assign_parms): Split complex arguments.
ded9bf77 5587
1072ec3f 5588 * doc/tm.texi (SPLIT_COMPLEX_ARGS): Document.
ded9bf77 5589
1072ec3f
ZW
5590 * expr.h (SPLIT_COMPLEX_ARGS): Define.
5591 (split_complex_types): Protoize.
5592 (split_complex_values): Protoize.
ded9bf77 5593
1072ec3f
ZW
5594 * calls.c (expand_call): Split complex arguments on architectures
5595 that require it.
5596 (split_complex_values): New.
5597 (split_complex_types): New.
ded9bf77 5598
1072ec3f
ZW
5599 * config/rs6000/rs6000.c (rs6000_libcall_value): New.
5600 (rs6000_function_value): Handle complex values on AIX.
5601 (rs6000_complex_function_value): New.
ded9bf77 5602
1072ec3f 5603 * config/rs6000/rs6000-protos.h (rs6000_libcall_value): Protoize.
ded9bf77 5604
1072ec3f
ZW
5605 * config/rs6000/rs6000.h (LIBCALL_VALUE): Call function.
5606 (SPLIT_COMPLEX_ARGS): New.
ded9bf77 5607
24a4dd31
JJ
56082003-06-03 Jakub Jelinek <jakub@redhat.com>
5609
5610 * configure.in (HAVE_LD_PIE): Check for ld -pie.
5611 * config.in: Rebuilt.
5612 * configure: Rebuilt.
5613 * toplev.c (flag_pie, flag_shlib): New variables.
5614 (f_options): Add -fpie and -fPIE.
5615 (parse_options_and_default_flags): Set flag_pic if -fpie/-fPIE.
5616 Set flag_shlib if flag_pic and not -fpie/-fPIE.
5617 * flags.h (flag_pic, flag_shlib): Add.
5618 * varasm.c (default_binds_local_p): Use flag_shlib instead of
5619 flag_pic.
5620 * gcc.c (LINK_PIE_SPEC): Define.
5621 (LINK_COMMAND_SPEC): Use LINK_PIE_SPEC.
5622 (option_map): Add --pie -> -pie mapping.
5623 * config/sol2.h (ASM_SPEC): Handle -fpie the same way as -fpic
5624 and -fPIE the same way as -fPIC.
5625 * config/openbsd.h (ASM_SPEC): Likewise.
5626 * config/frv/frv.h (ASM_SPEC): Likewise.
5627 * config/arm/linux-gas.h (SUBTARGET_CPP_SPEC): Likewise.
5628 * config/arm/semi.h (ASM_SPEC): Likewise.
5629 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
5630 * config/freebsd-spec.h (FBSD_CPP_SPEC): Likewise.
5631 * config/i386/beos-elf.h (CC1_SPEC): Likewise.
5632 * config/i386/freebsd-aout.h (ASM_SPEC): Likewise.
5633 * config/m68k/linux.h (CPP_SPEC): Likewise.
5634 * config/m68k/netbsd.h (ASM_SPEC): Likewise.
5635 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
5636 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
5637 * config/mips/linux.h (SUBTARGET_CPP_SPEC): Likewise.
5638 * config/mips/openbsd.h (SUBTARGET_ASM_SPEC): Likewise.
5639 * config/pa/pa-linux.h (CPP_SPEC): Likewise.
5640 * config/netbsd-aout.h (ASM_SPEC): Likewise.
5641 * config/rs6000/sysv4.h (ASM_SPEC, CPP_SYSV_SPEC): Likewise.
5642 * config/rs6000/vxworks.h (CPP_SPEC): Likewise.
5643 * config/sparc/linux.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
5644 * config/sparc/linux64.h (CPP_SUBTARGET_SPEC, ASM_SPEC): Likewise.
5645 * config/sparc/sparc.h (ASM_SPEC): Likewise.
5646 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
5647 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
5648 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
5649 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
5650 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
5651 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Handle -pie.
5652 Simplify.
5653 * config/alpha/elf.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5654 * config/i386/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5655 * config/ia64/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5656 * config/rs6000/sysv4.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5657 * config/rs6000/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5658 * config/sparc/linux.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5659 * config/sparc/linux64.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5660 * doc/invoke.texi: Document -pie, -fpie and -fPIE options.
5661
8fd3cf4e
JJ
56622003-06-03 Jakub Jelinek <jakub@redhat.com>
5663
5664 * builtins.c (expand_builtin_memcpy): Remove endp argument and endp
5665 != 0 handling. Pass 0 to store_by_pieces.
5666 (expand_builtin_mempcpy): Add endp argument. Don't call
5667 expand_builtin_memcpy, call store_by_pieces resp. move_by_pieces
5668 directly. If ignoring result, only do expand_call.
5669 (expand_builtin_stpcpy): Likewise. Call expand_builtin_mempcpy
5670 otherwise.
5671 (expand_builtin_strncpy, expand_builtin_memset): Adjust
5672 store_by_pices callers.
5673 (expand_builtin): Adjust expand_builtin_memcpy and
5674 expand_builtin_mempcpy callers.
5675 * expr.c (can_move_by_pieces): New function.
5676 (move_by_pieces): Add endp argument, return to resp. memory at end
5677 or one byte earlier depending on endp.
5678 (store_by_pieces): Likewise.
5679 (emit_block_move): Adjust call to move_by_pieces.
5680 (emit_push_insn): Adjust move_by_pieces caller.
5681 * expr.h (can_move_by_pieces): New prototype.
5682 (store_by_pieces): Adjust prototypes.
5683 * rtl.h (move_by_pieces): Adjust prototype.
5684 * config/mips/mips.c (expand_block_move): Adjust move_by_pieces
5685 caller.
5686
cc6a602b
BE
56872003-06-03 Ben Elliston <bje@wasabisystems.com>
5688
5689 * doc/md.texi (Processor pipeline description): Improve wording.
5690
f75d3e11
NB
56912003-06-03 Neil Booth <neil@daikokuya.co.uk>
5692
5693 * c-opts.c (c_common_handle_option): New, pulled out of
5694 c_common_decode_option. Substitute uses of argv.
5695 (c_common_decode_option): Broken into two.
5696
4c2da7f2
RS
56972003-06-02 Roger Sayle <roger@eyesopen.com>
5698 Zack Weinberg <zack@codesourcery.com>
5699
5700 * emit-rtl.c (gen_complex_constant_part): Remove unnecessary
5701 test of TREE_CONSTANT_POOL_ADDRESS_P.
5702
e91e4f6c
KG
57032003-06-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5704
5705 * mips.c: Don't include output.h twice.
5706 * stormy16.c: Likewise.
5707 * xtensa.c: Likewise.
5708 * output.h: Protect against multiple inclusion.
5709
b38a5244
R
57102003-06-02 J"orn Rennecke <joern.rennecke@superh.com>
5711
5712 * sh.h (OLD_ARG_MODE): New macro.
5713 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
5714 (FUNCTION_ARG_1): Break out of:
5715 (FUNCTION_ARG). Use OLD_ARG_MODE.
5716
cc6a602b 57172003-06-02 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
250315f7 5718
1072ec3f 5719 * gcc/config.gcc Add support multilib parts for m32rx processor.
250315f7 5720
e7aba4cd
KG
57212003-06-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5722
5723 * Makefile.in (c-options.c): Pass in $(AWK) to opts.sh.
5724 (mostlyclean): Delete c-options.c and c-options.h.
5725
c83857ff
NB
57262003-06-02 Neil Booth <neil@daikokuya.co.uk>
5727
5728 * c-opts.c (CL_REJECT_NEGATIVE): New.
5729 (c_common_decode_option): Update to use it.
5730 * c.opt: Update documentation; use RejectNegative.
5731 * opts.sh: Handle RejectNegative.
5732
c770ac2b
ZW
57332003-06-01 Zack Weinberg <zack@codesourcery.com>
5734
5735 * ggc-page.c (init_ggc): Give better diagnostics on failure to
5736 open /dev/zero.
5737 * toplev.c (crash_signal): Reset handling for received signal
5738 to SIG_DFL.
5739
103fc15d
BE
57402003-06-02 Ben Elliston <bje@wasabisystems.com>
5741
5742 * config/arm/arm.c (arm_use_dfa_pipeline_interface): Declare.
d48b7f2a 5743 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define if not already.
103fc15d
BE
5744 (arm_use_dfa_pipeline_interface): Implement.
5745 * config/arm/arm.md (arm): New automaton.
5746 (write_buf): Remove function units; new cpu unit.
5747 (write_blockage): Remove function units; new cpu unit.
5748 (core): Remove function units; new cpu unit.
5749 (r_mem_f_wbuf): New instruction reservation.
5750 (store1_wbuf, store2_wbuf, store3_wbuf, store4_wbuf): Likewise.
5751 (store1_ldsched, store2, store3, store4): Likewise.
5752 (load_ldsched, load_ldsched_xscale, load_or_store): Likewise.
5753 (mult, mult_ldsched, mult_ldsched_strongarm): Likewise.
5754 (multi_cycle, single_cycle): Likewise.
5755 * config/arm/fpa.md (armfp): New automaton.
5756 (fpa): Remove function units; new cpu unit.
5757 (fpa_mem): Remove function unit; new cpu unit.
5758 (fdivx, fdivd, fdivs, fmul, ffmul, farith, ffarith): New reservations.
5759 (r_2_f, f_2_r, f_load, f_store, r_mem_f, f_mem_r): Likewise.
5760
3ae1d4c2
KG
57612003-06-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5762
5763 * builtin-attrs.def (ATTR_ASM_FPRINTF): New.
5764 * c-format.c (enum format_type): Add asm_fprintf_format_type.
5765 (NOARGUMENTS, asm_fprintf_length_specs, asm_fprintf_flag_specs,
5766 asm_fprintf_flag_pairs, asm_fprintf_char_table): New.
5767 (format_types_orig): Renamed from format_types. Add new data.
5768 (format_types): Declare as pointer.
5769 (handle_format_attribute): Move later in file so we have all
5770 necessary declarations. Add section to capture HOST_WIDE_INT.
5771 * output.h (ATTRIBUTE_ASM_FPRINTF, __gcc_host_wide_int__): New.
5772 (asm_fprintf): Mark with ATTRIBUTE_ASM_FPRINTF.
5773
fd66c4e3
AJ
57742003-06-01 Andreas Jaeger <aj@suse.de>
5775
8842a5e5
AJ
5776 * doc/tm.texi (Storage Layout): Remove ROUND_TYPE_SIZE and
5777 ROUND_TYPE_SIZE_UNIT.
5778
5779 * stor-layout.c (finalize_record_size): Remove usages of
5780 ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
5781 (finalize_type_size): Likewise.
5782 (layout_type): Likewise.
5783
5784 * system.h: Poison ROUND_TYPE_SIZE and ROUND_TYPE_SIZE_UNIT.
5785
e0945432
AJ
5786 * loop.c (check_insn_for_givs): Remove DONT_REDUCE_ADDR macro.
5787
fd66c4e3
AJ
5788 * config/d30v/d30v.h: Remove text copied from the manual.
5789
14ca333d
RS
57902003-06-01 Roger Sayle <roger@eyesopen.com>
5791 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5792 Geoffrey Keating <geoffk@apple.com>
5793
5794 * emit-rtl.c (gen_lowpart_common): Handle interpreting integer
5795 constants as condition code values.
5796
0cc261bc 57972003-06-01 DJ Delorie <dj@redhat.com>
a7f36da3
DD
5798
5799 * cppmacro.c (warn_of_redefinition): Handle cases where the two
5800 definitions have different numbers of tokens.
5801
8e2b6930
AJ
58022003-06-01 Andreas Jaeger <aj@suse.de>
5803
5804 * gen-protos.c (main): Readd unused attribute for argc.
5805
e11a4ae5
NB
58062003-06-01 Neil Booth <neil@daikokuya.co.uk>
5807
5808 * Makefile.in (c-options.c, c-options.h): Parallel make safe.
5809 * c.opt: End in blank line.
5810 * opts.sh: Take AWK from environment if available; use C locale.
5811
6fc9e67e
AS
58122003-06-01 Andreas Schwab <schwab@suse.de>
5813
5814 * config/m68k/linux.h: Remove code protected by USE_GNULIBC_1.
5815
fa10d367
AJ
58162003-06-01 Andreas Jaeger <aj@suse.de>
5817
5818 * gen-protos.c (main): Revert patch to check for argument.
5819
a3033f34
EB
58202003-06-01 Eric Botcazou <ebotcazou@libertysurf.fr>
5821
5822 PR target/11044
5823 * config/i386/i386.md (length attribute): Set length to 4
5824 for instructions of type "fcmp".
5825
cef2bd3e
AJ
58262003-06-01 Andreas Jaeger <aj@suse.de>
5827
c770ac2b 5828 * toplev.c: Use ISO C90 prototypes.
e25a75e6 5829
c770ac2b 5830 * toplev.h: Use ISO C90 prototypes.
e25a75e6 5831
3d7aafde
AJ
5832 * genrecog.c: Use ISO C90 prototypes.
5833 (nodes_identical): Correct declaration to match prototype.
5834 (maybe_both_true): Likewise.
5835 (merge_trees): Likewise.
5836
5837 * genpeep.c (gen_peephole): Remove #if 0 code.
5838 Use ISO C90 prototypes.
5839
5840 * genattrtab.c (copy_rtx_unchanging): Remove #if 0'ed code.
5841 Remove #if 0'ed function simplify_by_alternatives.
5842 (optimize_attrs): Remove #if 0'ed code.
5843 Remove ^L.
5844 Use ISO C90 prototypes.
5845 (make_canonical): Remove #if 0'ed code.
5846 (convert_const_symbol_ref): Remove #if 0'ed function.
5847
5848 * gen-protos.c (main): Check for argument.
5849
5850 * rtl.h: Use ISO C90 prototypes for functions from lists.c.
5851
5852 * params.h: Use ISO C90 prototypes.
5853 * params.c: Likewise.
5854 * intl.c: Likewise.
5855 * intl.h: Likewise.
5856 * lists.c: Likewise.
5857 * errors.c: Likewise.
5858 * errors.h: Likewise.
5859 * gencodes.c: Likewise.
5860 * genpreds.c: Likewise.
5861 * genattr.c: Likewise.
5862 * gen-protos.c: Likewise.
5863 * genflags.c: Likewise
5864 * genconditions.c: Likewise.
5865 * genautomata.c: Likewise.
5866 * gencheck.c: Likewise.
5867 * genconfig.c: Likewise.
5868 * genconstants.c: Likewise.
5869 * genemit.c: Likewise.
5870 * genextract.c: Likewise.
5871 * gengenrtl.c: Likewise.
5872 * gengtype.c: Likewise.
5873 * gengtype.h: Likewise.
5874 * genopinit.c: Likewise.
5875 * genoutput.c: Likewise.
5876 * gensupport.c: Likewise.
5877 * gensupport.h: Likewise.
5878
cef2bd3e
AJ
5879 * sdbout.h: Use ISO C90 prototypes.
5880
5881 * sdbout.c (CONTIN): Removed empty macro.
5882 (sdbout_one_type): Remove CONTIN usages.
5883 Remove ^Ls.
5884 (tag_of_ru_type): Remove #if 0'ed function.
5885 (sdbout_symbol): Remove #if 0'ed code.
5886 (sdbout_one_type): Remove a #if 1.
5887 (sdbout_one_type): Remove #if 0'ed code.
5888 (sdbout_init): Remove RMS_QUICK_HACK_1 code.
5889 Remove PARAMS, use ISO C90 prototypes for all functions.
5890
43194145
JZ
58912003-06-01 Josef Zlomek <zlomekj@suse.cz>
5892
5893 * rtl.def (CONST_DOUBLE): Update comment.
5894
cea8d816
NB
58952003-06-01 Neil Booth <neil@daikokuya.co.uk>
5896
5897 * opts.sh: Remove path from sort.
5898
28636c6e
AH
58992003-06-01 Aldy Hernandez <aldyh@redhat.com>
5900
965f3913 5901 PR/9680
c770ac2b
ZW
5902 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Require
5903 TARGET_SPE for SPE_VECTOR_MODE.
28636c6e 5904
ddc9542b
AH
59052003-05-31 Aldy Hernandez <aldyh@redhat.com>
5906
c770ac2b
ZW
5907 * toplev.c (botch): Remove.
5908 (do_abort): Remove.
5909 (set_Wunused): Comment.
5910 (set_Wextra): Comment.
5911 Remove ^L's.
5912 (rest_of_compilation): Factor out common code into functions.
5913 (rest_of_handle_inlining): New.
5914 (rest_of_handle_ssa): New.
5915 (rest_of_handle_cse): New.
5916 (rest_of_handle_gcse): New.
5917 (rest_of_handle_loop_optimize): New.
5918 (rest_of_handle_jump_bypass): New.
5919 (rest_of_handle_sibling_calls): New.
5920 (rest_of_handle_null_pointer): New.
5921 (rest_of_handle_addresof): New.
5922 (rest_of_handle_flow): New.
5923 (rest_of_handle_branch_prob): New.
5924 (rest_of_handle_if_conversion): New.
5925 (rest_of_handle_tracer): New.
5926 (rest_of_handle_loop2): New.
5927 (rest_of_handle_cse2): New.
5928 (rest_of_handle_life): New.
5929 (rest_of_handle_combine): New.
5930 (rest_of_handle_if_after_combine): New.
5931 (rest_of_handle_regmove): New.
5932 (rest_of_handle_sched): New.
5933 (rest_of_handle_old_regalloc): New.
5934 (rest_of_handle_new_regalloc): New.
5935 (rest_of_handle_regrename): New.
5936 (rest_of_handle_reorder_blocks): New.
5937 (rest_of_handle_sched2): New.
5938 (rest_of_handle_new_regalloc): New.
5939 (rest_of_handle_old_regalloc): New.
5940 (rest_of_handle_regrename): New.
5941 (rest_of_handle_reorder_blocks): New.
5942 (rest_of_handle_stack_regs): New.
5943 (rest_of_handle_machine_reorg): New.
5944 (rest_of_handle_delay_slots): New.
5945 (rest_of_handle_final): New.
5946
5947 * toplev.h (botch): Remove prototype.
5948 (do_abort): Same.
ddc9542b 5949
fef3106c
NB
59502003-05-31 Neil Booth <neil@daikokuya.co.uk>
5951
5952 * Makefile.in (c-opts.o, c-options.h): Update dependencies.
5953 * c-opts.c: Include c-options.h and c-options.c.
5954 (CL_C_ONLY, CL_OBJC_ONLY, CL_CXX_ONLY, CL_OBJCXX_ONLY):
5955 Rename CL_C, CL_OBJC, CL_CXX, CL_OBJCXX.
5956 (CL_ARG, CL_ALL, COMMAND_LINE_OPTIONS, struct cl_option,
5957 OPT, opt_comp): Remove.
5958 (missing_arg, c_common_init_options, c_common_decode_option,
5959 write_langs): Update for macro redefinitions and enumeration
5960 name changes.
5961 * c.opt, opts.sh: New files.
5962 * doc/passes.texi: Update.
5963
0d569849
AJ
59642003-05-31 Andreas Jaeger <aj@suse.de>
5965
5966 * function.c (trampoline_address): Remove ALLOCATE_TRAMPOLINE
5967 usage.
5968
5969 * doc/tm.texi (Trampolines): Remove ALLOCATE_TRAMPOLINE.
5970
5971 * config/d30v/d30v.h: Remove traces of ALLOCATE_TRAMPOLINE.
5972
5973 * system.h: Poison ALLOCATE_TRAMPOLINE.
5974
5975 * doc/tm.texi (Misc): Remove HANDLE_PRAGMA.
5976 * system.h: Poison HANDLE_PRAGMA.
5977
e0ce2ed2
KH
59782003-05-31 Kazu Hirata <kazu@cs.umass.edu>
5979
5980 * doc/invoke.texi: Update dump file names.
5981
2ec29bbf
KG
59822003-05-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5983
5984 * c-format.c (format_length_info, format_char_info,
5985 format_flag_spec, format_flag_pair, format_kind_info):
5986 De-const-ify structure members.
5987
4fa26a60
RS
59882003-05-31 Roger Sayle <roger@eyesopen.com>
5989
5990 * flags.h (flag_wrapv): New flag controlling overflow semantics.
5991 * toplev.c (flag_wrapv): Declare the variable with default false.
5992 (lang_independent_options): New option "-fwrapv" to set the above.
5993
0d569849 5994 * fold-const.c (extract_muldiv_1): Disable optimization of (2*x)/2
4fa26a60
RS
5995 as x, when signed arithmetic overflow wraps around.
5996 (fold): Optimize "-A - B" as "-B - A" if overflow wraps around.
5997 * loop.c (basic_induction_var): Ignore BIVs that rely on undefined
5998 overflow when flag_wrapv is true.
5999
6000 * doc/invoke.texi: Document new -fwrapv command line option.
6001 * doc/c-tree.texi: Mention that the overflow semantics of
6002 NEGATE_EXPR, PLUS_EXPR, MINUS_EXPR and MULT_EXPR is dependent
6003 upon both flag_wrapv and flag_trapv.
6004
5fb57097
EB
60052003-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
6006
6007 * doc/install.texi (mips-sgi-irix5): Add missing
6008 HTML <hr> marker.
6009
8a69f99f
EB
60102003-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
6011
6012 * doc/md.texi (Machine Constraints): Document
6013 missing SPARC constraints.
6014
68e4d4c5
EB
60152003-05-31 Eric Botcazou <ebotcazou@libertysurf.fr>
6016
6017 * doc/md.texi (Automaton pipeline description): Use
6018 "type" instead of "cpu" as the attribute in the examples.
6019
e5bcbd89
SS
60202003-05-30 Stan Shebs <shebs@apple.com>
6021
6022 * system.h: Poison OBJC_PROLOGUE.
6023
b1d673be
RS
60242003-05-30 Roger Sayle <roger@eyesopen.com>
6025
6026 * emit-rtl.c (gen_complex_constant_part): New function for getting
6027 the constant real or imaginary part of a complex constant.
6028 (gen_realpart): Use it.
6029 (gen_imagpart): Likewise.
6030
65d2d764
KH
60312003-05-30 Kazu Hirata <kazu@cs.umass.edu>
6032
6033 * doc/invoke.texi: Fix typos.
6034 * doc/rtl.texi: Likewise.
6035
5c29d24c
DD
60362003-05-30 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
6037
6038 * config/h8300/crti.asm: Use .h8300hn and .h8300sn for normal
6039 mode.
6040 * config/h8300/crtn.asm: Likewise.
6041 * config/h8300/lib1funcs.asm: Likewise.
6042 * config/h8300/h8300.c (asm_file_start): Likewise.
6043 * config/h8300/elf.h (LINK_SPEC): Use h8300hnelf and
6044 h8300snelf emulations for normal mode.
6045 * config/h8300/h8300.h (LINK_SPEC): Use h8300hn and h8300sn
6046 emulations for normal mode.
6047
6d7d3112
DD
60482003-05-30 Dhananjay Deshpande <dhananjayd@kpitcummins.com>
6049
6050 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Return
6051 true if TARGET_NORMAL_MODE.
6052
0c19a26f
RS
60532003-05-30 Roger Sayle <roger@eyesopen.com>
6054
6055 * cse.c (cse_insn): Simplify REG_EQUAL note on libcalls when
6056 making a substitution.
6057 (dead_libcall_p): If directly replacing a libcall with a
6058 constant value produces an invalid instruction, also try forcing
6059 the constant into the constant pool.
6060 * expr.c (emit_move_insn): Add a REG_EQUAL note when it is not
6061 obvious that the source is a constant.
6062 (compress_float_constant): Use set_unique_reg_note to place
6063 REG_EQUAL notes on instructions.
6064
9a38893a
EC
60652003-05-30 Eric Christopher <echristo@redhat.com>
6066
6067 * config/mips/mips.c (extern_list): Add GTY marker.
6068 (extern_head): Separate out definition. Add marker.
6069 (mips_output_external): Use ggc_alloc for extern_list
6070 allocation.
6071 (mips_output_external_libcall): Ditto.
6072
3e98a119
FW
60732003-05-30 Florian Weimer <fw@deneb.enyo.de>
6074
6075 * doc/install.texi: Ada-enabled bootstrap requires GNAT 3.14 or
6076 later.
6077
ace49484
KG
60782003-05-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6079
6080 * vax.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
6081 warnings.
6082 (PRINT_OPERAND): Likewise.
6083
3bd4f460
RO
60842003-05-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6085
6086 * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Move
6087 -mdebug/-no-mdebug switches ...
6088 (MDEBUG_ASM_SPEC): ... here.
6089 Use only with gas.
6090 (EXTRA_SPECS): Initialize mdebug_asm_spec.
6091
8fdf7668
MK
60922003-05-29 Matt Kraai <kraai@alumni.cmu.edu>
6093
6094 * gthr-gnat.c: Remove #undef UNUSED.
6095 (__gnat_default_lock, __gnat_default_unlock): Prototype.
6096 (__gnat_task_lock, __gnat_task_unlock): Make declarations
6097 prototypes.
6098 (__gnat_install_locks): Convert declaration to ISO C90, make
6099 parameter declarations prototypes, and remove blank line.
6100 * gthr-gnat.h (__gnat_install_locks): Make parameter
6101 declarations prototypes.
6102
a7db751a
JM
61032003-05-29 Jason Merrill <jason@redhat.com>
6104
6105 * Makefile.in (unstrap): Remove stage_last after make unstage1.
6106
af7387ca
RS
61072003-05-29 Roger Sayle <roger@eyesopen.com>
6108
6109 * mips-tfile.c (PAGE_SIZE): Increase page size to 32K.
6110
d90f9882
RS
61112003-05-29 Roger Sayle <roger@eyesopen.com>
6112 Kaveh Ghazi <ghazi@caip.rutgers.edu>
6113
6114 PR bootstrap/10169
6115 * mips-tfile.c (main): Use getopt_long instead of getopt.
6116 Add new command line option --version to display version.
6117 Treat --verbose like -v to report a single line version.
6118 (options): New global variable for getopt_long.
6119 * mips-tdump.c (main): Use getopt_long instead of getopt.
6120 New command line options -v, --version and -verbose to display
6121 the program version number (to match mips-tfile's behavior).
6122 (options): New global variable for getopt_long.
6123
6124 * gcov.c (options): Zero-terminate getopt_long array.
6125 * gcov-dump.c (options): Likewise.
6126
6127 * Makefile.in (mips-tdump.o): Add dependency on version.h.
6128
1c36b2f9
SS
61292003-05-29 Stan Shebs <shebs@apple.com>
6130
6131 Remove OBJC_PROLOGUE everywhere.
6132 * objc/objc-act.c (finish_objc): Remove use of OBJC_PROLOGUE.
6133 * config/avr/avr.h: Remove no-op ref to OBJC_PROLOGUE.
6134 * config/d30v/d30v.h: Similarly.
6135 * config/ip2k/ip2k.h: Similarly.
6136 * doc/tm.texi: Remove doc of OBJC_PROLOGUE.
6137
0b82d59c
RS
61382003-05-29 Roger Sayle <roger@eyesopen.com>
6139
6140 * c-semantics.c (genrtl_do_stmt_1): New function split out from...
6141 (gen_rtl_do_stmt): ... here. Call genrtl_do_stmt_1.
6142 (expand_unreachable_stmt): Expand unreachable while statements
6143 using genrtl_do_stmt_1.
6144
c8520e56
RS
61452003-05-29 Richard Sandiford <rsandifo@redhat.com>
6146
6147 * config/mips/mips-protos.h (mips_output_load_label): Declare.
6148 * config/mips/mips.c (mips_output_load_label): New function.
6149 (mips_output_conditional_branch): Use it.
6150 * config/mips/mips.md (jump): And here.
6151
633e4eb4
BW
61522003-05-28 Bob Wilson <bob.wilson@acm.org>
6153
6154 * config/xtensa/xtensa-protos.h (smalloffset_double_mem_p): Delete.
6155 (xtensa_split_operand_pair): New proto.
6156 * config/xtensa/xtensa.c (move_operand): Handle DFmode and DImode.
6157 (smalloffset_double_mem_p): Delete.
6158 (gen_float_relational, printx, print_operand, xtensa_va_arg):
6159 Fix whitespace.
6160 (xtensa_split_operand_pair): New.
6161 (xtensa_dbx_register_number): Fix formatting.
6162 * config/xtensa/xtensa.h (EXTRA_CONSTRAINT): Remove 'S' constraint.
6163 * config/xtensa/xtensa.md (movdi, movdf): Force constants to memory
6164 instead of splitting them into single-word moves. Remove unnecessary
6165 checks for reload_in_progress and reload_completed.
6166 (movdi_internal, movdf_internal): Change to post-reload split patterns.
6167 Add constraints to allow constant operands.
6168 (movsf_internal): Allow CONST_INT operands.
6169
02c67fd1
DS
61702003-05-27 Danny Smith <dannysmith@users.sourceforge.net>
6171
358bdeee
DS
6172 * config.gcc (i[34567]86-*-mingw32*): Add host makefile
6173 fragment i386/x-mingw32.
02c67fd1
DS
6174 * config/i386/x-mingw32: New file. Make local_includedir
6175 relative to EXEC_PREFIX.
6176
0bcbfabb
AL
61772003-05-27 Aaron W. LaFramboise <awlaframboise@aol.com>
6178
6179 * config/i386/mingw32.h (STANDARD_INCLUDE_DIR): Update.
6180 (MD_STARTFILE_PREFIX): Define.
6181
291aac59
DC
61822003-05-27 Denis Chertykov <denisc@overta.ru>
6183
6184 * cselib.c (cselib_invalidate_regno): Abort if hardreg have a
6185 VOIDmode.
6186 * cselib.c (cselib_process_insn): Pass reg_raw_mode for hardreg in
6187 call of cselib_invalidate_regno.
6188
0d2a303e
DJ
61892003-05-28 Daniel Jacobowitz <drow@mvista.com>
6190
6191 * config/mips/linux.h (LIB_SPEC): Add missing -lc and correct
6192 -lthread to -lpthread.
6193
6bf1ffe1 61942003-05-28 Eric Botcazou <ebotcazou@libertysurf.fr>
c770ac2b
ZW
6195 Bruce Korb <bkorb@gnu.org>
6196 Arno Klaassen <arno@heho.snv.jussieu.fr>
6bf1ffe1
EB
6197
6198 * fixinc/inclhack.def: Add missing declaration of getpagesize()
6199 to unistd.h on Solaris 2.5.1.
6200 Fix prototype of recv() and send() in sys/socket.h on
6201 Solaris 2.5.1 and 2.6.
6202 * fixinc/tests/base/unistd.h: Add solaris_unistd fix test.
6203 * fixinc/tests/base/sys/socket.h: Add solaris_socket test.
6204 * fixinc/check.tpl: Use 'diff -c', not 'diff -u'.
6205 * fixinc/fixincl.x: Regenerate.
6206
066f50a9
JM
62072003-05-27 Jason Merrill <jason@redhat.com>
6208
6209 * tree.c (expr_first, expr_length): New fns.
6210 * tree.h: Declare them.
6211
6212 * tree.c (iterative_hash_expr): Hash commutative expressions
6213 consistently.
6214
6bf1ffe1 62152003-05-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7a6cdb44
RK
6216
6217 * tree.h (contains_placeholder_p): Now returns bool.
6218 (CONTAINS_PLACEHOLDER_P): New macro.
6219 (type_contains_placeholder_p): New function.
6220 * tree.c (save_expr): Remove code avoiding folding COMPONENT_REF.
6221 (contains_placeholder_p): Now returns bool.
6222 Rework to use CONTAINS_PLACEHOLDER_P macro.
6223 (type_contains_placeholder_p): New function.
6224 * fold-const.c (fold, case COMPONENT_REF): Don't fold if
6225 type_contains_placeholder_p.
9a38893a 6226 (fold_range_test, fold_mathfn_compare, fold_inf_compare, fold):
7a6cdb44
RK
6227 Use CONTAINS_PLACEHOLDER_P macro.
6228 * builtins.c (fold_builtin): Likewise.
6229 * calls.c (initialize_argument_information): Likewise.
6230 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
6231 * explow.c (expr_size): Likewise.
6232 * expr.c (store_constructor, get_inner_reference): Likewise.
6233 * function.c (assign_parms): Likewise.
6234 * stor-layout.c (variable_size): Likewise.
6235
d576d043
GDR
62362003-05-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
6237
6238 * diagnostic.h (output_verbatim, verbatim): Remove printf
9a38893a 6239 attribute.
d576d043 6240
65878937
GP
62412003-05-25 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
6242
6243 * doc/contrib.texi (Contributors): Update Kean Johnston.
6244
e033a023
DE
62452003-05-24 David Edelsohn <edelsohn@gnu.org>
6246
6247 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add length attribute.
6248
4dedfc09
NN
62492003-05-24 Nathanael Nerode <neroden@gcc.gnu.org>
6250
6251 * config/rs6000/440.md, config/stormy16/stormy16protos.h,
6252 config/stormy16/stormy16.c, config/stormy16/stormy16.md:
6253 Replace "GNU CC" with "GCC".
6254
9589325f
MK
62552003-05-24 Matt Kraai <kraai@alumni.cmu.edu>
6256
6257 * builtins.c (expand_builtin_memcpy): Use mode of dest_addr for
6258 intermediate computation.
6259
5299653d
EC
62602003-05-23 Eric Christopher <echristo@redhat.com>
6261
6262 * config/mips/mips.md (clzsi, clzdi): New patterns.
6263
0de12fcc
GK
62642003-05-23 Geoffrey Keating <geoffk@apple.com>
6265
6266 * gcc.c (default_compilers): Use -o to specify preprocessor's output
6267 file. Make -no-integrated-cpp work when building PCH files.
6268 * objc/lang-specs.h: Likewise.
6269
6e6a1681
NN
62702003-05-23 Nathanael Nerode <neroden@gcc.gnu.org>
6271
6272 * fixinc/Makefile.in: Correct description.
5299653d 6273 * fixinc/Makefile.in, fixinc/fixfixes.c, fixinc/fixincl.c,
6e6a1681
NN
6274 fixinc/fixlib.c, fixinc/fixlib.h, fixinc/fixtests.c,
6275 fixinc/genfixes: Replace "GNU CC" with "GCC".
6276
29f523be
RS
62772003-05-23 Roger Sayle <roger@eyesopen.com>
6278
65f48a0a 6279 * builtins.def: Define atan, atanf, atanl, tan, tanf and tanl
29f523be
RS
6280 builtin functions (and their __builtin_* variants).
6281 * builtins.c (mathfn_built_in): Handle tan{,f,l} and atan{,f,l}.
6282 (expand_builtin): Don't expand tan{,f,l} or atan{,f,l} when not
6283 optimizing.
6284
6285 * doc/extend.texi: Document new tan and atan builtins, and
6286 their float and long double variants.
6287
27a701c2
JT
62882003-05-23 Jason Thorpe <thorpej@wasabisystems.com>
6289
6290 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
6291 __sparcv9 in the TARGET_ARCH64 case.
6292
25f57a0e
JH
6293Fri May 23 22:17:32 CEST 2003 Jan Hubicka <jh@suse.cz>
6294
6295 * i386.c (ix86_reorg): Calls are also jumps.
6296
839844be
R
62972003-05-23 J"orn Rennecke <joern.rennecke@superh.com>
6298
6299 * cse.c (count_reg_usage): When processing an INSNs REG_EQUAL
6300 note containing an EXPR_LIST, process all the arguments.
6301
97242ddc
JH
6302Fri May 23 21:19:31 CEST 2003 Jan Hubicka <jh@suse.cz>
6303 Andreas Jaeger <aj@suse.de>
6304
6305 * i386.h (TARGET_CPU_CPP_BUILTINS): Define __amd64 and __amd64__;
6306 do not use assertion.
6307
973a43f6
MS
63082003-05-23 Mike Stump <mrs@apple.com>
6309
6310 * tlink.c (scan_linker_output): Add support for darwin linker, as it
6311 emits unresolved symbols one per line, consuming the entire line.
6312
a27b2b71
LH
63132003-05-23 Larin Hennessy <larin@science.oregonstate.edu>
6314 Zack Weinberg <zack@codesourcery.com>
6315
6316 * explow.c (allocate_dynamic_stack_space): Remove call to gen_probe.
6317 * config/m68k/m68k.c (m68k_output_function_prologue):
6318 Remove code under #if NEED_PROBE.
6319 * config/m68k/m68k.h: Don't define NEED_PROBE.
6320 * config/m68k/m68k.md: Remove "probe" insn.
6321 * doc/md.texi: Remove documentation of "probe" pattern.
6322
d3971161
DN
63232003-05-23 Dorit Naishlos <gcchaifa@il.ibm.com>
6324
6325 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Add branch attribute.
6326
0dc7ee3c
EB
63272003-05-23 Eric Botcazou <ebotcazou@libertysurf.fr>
6328
6329 * doc/install.texi: Remove sparc64-*-*. Add sparc64-*-solaris2*.
6330 Document sparcv9-*-solaris2* as a synonym for sparc64-*-solaris2*.
6331
18c2511c
RS
63322003-05-22 Roger Sayle <roger@eyesopen.com>
6333
6334 * real.c (real_maxval): New function to return the largest finite
6335 value representable in a given mode (i.e. FLT_MAX and DBL_MAX).
6336 * real.h (real_maxval): Prototype here.
6337 * fold-const.c (fold_inf_compare): Transform comparisons against
6338 +-Infinity into comparisons against DBL_MAX (or equivalent).
6339
5f875c8f
MS
63402003-05-22 Mike Stump <mrs@apple.com>
6341
6342 * config.gcc (*-*-darwin*): Remove use_collect2=no, as it is the
6343 default.
6344
d892f288
DD
63452003-05-22 DJ Delorie <dj@redhat.com>
6346
6347 * calls.c (expand_call): If the arg block is going to grow
6348 downward, we need argblock to point to the top of the block,
6349 not the bottom.
6350
29495994
RK
63512003-05-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6352
6353 * c-decl.c (duplicate_decls): Test DECL for ERROR_MARK.
6354
f59700f9
RK
6355 * expr.c (expand_expr, case CONSTRUCTOR): Put into memory if
6356 constant and EXPAND_CONST_ADDRESS, not just EXPAND_INITIALIZER.
6357
1f85a612
KG
63582003-05-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6359
6360 * m68hc11.c: Don't use the `0' flag for asm_fprintf specifiers.
6361 * m68k.c: Likewise.
6362 * m68k.h: Likewise.
6363
5ded58d0
ZW
63642003-05-22 Zack Weinberg <zack@codesourcery.com>
6365
6366 PR other/2873
6367 * fixinc/inclhack.def (avoid_wchar_t_type): Add bypass
6368 expressions to prevent triggering on recent curses.h,
6369 linux/nls.h, or X11/Xlib.h.
6370 (stdio_va_list): Add _G_va_list to bypass pattern.
6371 (strict_ansi_not): Add bypass pattern for __SCO_VERSION__.
6372 * fixinc/fixincl.x: Regenerate.
6373
04213688
RB
63742003-05-22 Rekha Bhintade <rekhad@kpitcummins.com>
6375
6376 * gcc/config/sh/sh.h (TARGET_SWITCHES): Display all the target
5ded58d0 6377 switches when --target-help option is specified.
04213688 6378
fdbf04c8
EB
63792003-05-22 Eric Botcazou <ebotcazou@libertysurf.fr>
6380
6381 PR bootstrap/10805
6382 * doc/install.texi (sparc-sun-solaris2.7): Document bootstrap
6383 failure with Sun assembler 5.0 Alpha 03/27/98.
6384
d3d2e8f0 63852003-05-21 Loren James Rittle <ljrittle@acm.org>
d45d08f7
LR
6386
6387 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Add -D__sparcv9
1490fbc1 6388 to match system compiler convention.
d45d08f7 6389
81888fcd
DS
63902003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
6391
6356f892 6392 * gthr-win32.h (__GTHREAD_HIDE_WIN32API): Test for nonzero
81888fcd
DS
6393 value, not just if defined.
6394 Update copyright year.
6395
f48758e4
JDA
63962003-05-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6397
6398 PR target/6428
6399 * pa-hpux10.h (LINK_SPEC, LIB_SPEC): Move -L options for profiling
6400 directories from LIB_SPEC to LINK_SPEC. Emit warning if `-p' or `-pg'
6401 option is used without `-static'.
6402 * pa-hpux11.h (LINK_SPEC, LIB_SPEC): Likewise.
6403 * pa64-hpux.h (LINK_SPEC, LIB_SPEC): Likewise.
6404
7a29f483
BW
64052003-05-21 Bob Wilson <bob.wilson@acm.org>
6406
6407 * config/xtensa/xtensa.h (MASK_SERIALIZE_VOLATILE,
6408 TARGET_SERIALIZE_VOLATILE): Delete.
6409 (MASK_CONST16, MASK_ABS, MASK_ADDX): Renumber flag bits.
6410 (TARGET_DEFAULT): Remove MASK_SERIALIZE_VOLATILE.
6411 (TARGET_SWITCHES): Remove "-mserialize-volatile" and
6412 "-mno-serialize-volatile".
6413 * config/xtensa/xtensa.c (print_operand): Remove checks of
6414 TARGET_SERIALIZE_VOLATILE.
6415 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
6416 * doc/invoke.texi (Option Summary, Xtensa Options): Remove
6417 "-mserialize-volatile" and "-mno-serialize-volatile" options.
6418
b190f239
NS
64192003-05-21 Nathan Sidwell <nathan@codesourcery.com>
6420
6421 * c-parse.in (fndef): Set DECL_SOURCE_LINE and FILE earlier.
6422 (nested_function): Likewise.
6423 (notype_nested_function): Likewise.
6424
278566a2
NC
64252003-05-21 Nick Clifton <nickc@redhat.com>
6426
6427 * config/stormy16/stormy-abi: Update overflow type for
6428 R_XSTORMY16_16 reloc.
6429
66804d9e
NS
64302003-05-21 Nathan Sidwell <nathan@codesourcery.com>
6431
6432 * c-common.h (enum rid): Remove RID_BOUNDED, RID_UNBOUNDED.
6433 * c-parse.in (reswords): Remove __bounded__ and __unbounded__.
6434 (rid_to_yy): Remove RID_BOUNDED, RID_UNBOUNDED slots.
6435 * print-tree.c (print_node): Remove ambient-boundedness.
6436 * tree.h (tree_common): Remove bounded_flag.
6437 (BOUNDED_INDIRECT_YPE_P, BOUNDED_POINTER_TYPE_P,
6438 BOUNDED_REFERENCE_TYPE_P, MAYBE_BOUNDED_INDIRECT_TYPE_P,
6439 MAYBE_BOUNDED_POINTER_TYPE_P, MAYBE_BOUNDED_REFERENCE_TYPE_P,
6440 TREE_BOUNDED, TYPE_MAIN_VARIANTS_PHYSICALLY_EQUAL_P,
6441 TYPE_MAIN_PHYSICAL_VARIANT, TYPE_BOUNDED, TYPE_QUAL_BOUNDED):
6442 Remove.
6443 (TYPE_QUALS): Remove BOUNDED.
6444 (TREE_EXPR_QUALS, TREE_FUNC_QUALS): Remove.
6445 (TYPE_BOUNDED_VALUE, TYPE_BOUNDED_BASE, TYPE_BOUNDED_EXTENT,
6446 TYPE_BOUNDED_SUBTYPE, TYPE_UNBOUNDED_VARIANT, TYPE_POINTER_DEPTH,
6447 TYPE_AMBIENT_BOUNDEDNESS, MAX_POINTER_DEPT,
6448 VA_LIST_POINTER_DEPTH): Remove.
6449 (struct tree_type): Remove pointer_depth.
6450
58228df6
KG
64512003-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6452
6453 * c-pretty-print.c (pp_c_integer_literal): Use
6454 HOST_WIDE_INT_PRINT_DOUBLE_HEX.
6455
bc6688b4
RS
64562003-05-20 Roger Sayle <roger@eyesopen.com>
6457 Kazu Hirata <kazu@cs.umass.edu>
6458 Joern Rennecke <joern.rennecke@superh.com>
6459
6460 * gcse.c (cprop_jump): Make use of REG_EQUAL notes on both
6461 setcc and jump, if they exist. If substituted instruction
6462 fails to validate, store current effort in a REG_EQUAL note.
6463 (cprop_insn): Don't attempt further substitutions if the
6464 current instruction has been deleted.
6465 (local_cprop_pass): Likewise.
6466
6467 * jump.c (redirect_jump): Also update REG_EQUAL note, if
6468 one is attached to the jump instruction.
6469 (invert_jump): Delete REG_EQUAL note on jump, if one exists.
6470
16e31964
DS
64712003-05-21 Danny Smith <dannysmith@users.sourceforge.net>
6472
6473 PR c++/9738
6474 * config/i386/winnt.c (i386_pe_encode_section_info): Enable
6475 even if not first.
6476
1e29b8d7
KG
64772003-05-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6478
6479 * genautomata.c (output_description, output_automaton_units,
6480 output_state_arcs): Add missing specifiers.
6481
6c2e8d1c
BW
64822003-05-20 Bob Wilson <bob.wilson@acm.org>
6483
6484 * config/xtensa/lib1funcs.asm: Avoid use of .Lfe* in .size directives.
6485 (do_abs, do_addx2, do_addx4, do_addx8): New assembler macros.
6486 (__mulsi3): Use do_addx* instead of ADDX* instructions. Formatting.
6487 (nsau): Rename to do_nsau. Provide alternate version for use when
6488 the NSAU instruction is available.
6489 (__udivsi3, __divsi3, __umodsi3, __modsi3): Use do_nsau macro.
6490 (__divsi3, __modsi3): Use do_abs macro instead of ABS instruction.
6491 * config/xtensa/xtensa-config.h: Update comments to match binutils.
6492 (XCHAL_HAVE_ABS, XCHAL_HAVE_ADDX): Define.
6493 * config/xtensa/xtensa.h (MASK_ABS, MASK_ADDX): Define.
6494 (TARGET_ABS, TARGET_ADDX): Define.
6495 (TARGET_DEFAULT): Conditionally add MASK_ABS and MASK_ADDX.
6496 (TARGET_SWITCHES): Add "abs", "no-abs", "addx", and "no-addx".
6497 * config/xtensa/xtensa.md (*addx2, *addx4, *addx8, *subx2, *subx4,
6498 *subx8): Set predicate condition to TARGET_ADDX.
6499 (abssi2): Set predicate condition to TARGET_ABS.
6500 * doc/invoke.texi (Option Summary): Document new "-mabs", "-mno-abs",
6501 "-maddx", and "-mno-addx" options.
6502 (Xtensa Options): Likewise. Also tag some opcode names with @code.
6503
5d34c8e9
KR
65042003-05-20 Kevin Ryde <user42@zip.com.au>
6505 Wolfgang Bangerth <bangerth@dealii.org>
6506
6507 PR/10355
6508 * doc/extend.texi: Put a warning into the documentation
6509 of attribute regparm.
6510
1cd69e2b
JM
65112003-05-20 Jason Merrill <jason@redhat.com>
6512
6513 * tree.c (expr_last): New fn.
6514 * tree.h: Declare it.
6515 * objc/objc-act (expr_last): Rename to objc_expr_last.
6516
a60a9553
R
65172003-05-20 J"orn Rennecke <joern.rennecke@superh.com>
6518
6519 * sh.c (sh_register_move_cost): Add clase for moving between
6520 FP registers and MAC registers.
6521
12df72e8
JDA
65222003-05-19 John David Anglin <dave.anglin@nrc-gnrc.gc.ca>
6523
6524 * pa/milli64.S ($$mulI): Fix typo.
6525
07b7c979
MK
65262003-05-19 Matt Kraai <kraai@alumni.cmu.edu>
6527
6528 * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p)
6529 (nonlocal_set_p): Remove initial blank line.
6530 * dwarf2out.c (simple_type_size_in_bits): Likewise.
6531 * et-forest.c (et_forest_create): Likewise.
6532 * explow.c (stabilize): Likewise.
6533 * fix-header.c (write_lbrac): Likewise.
6534 * graph.c (start_fct, node_data): Likewise.
6535 * jump.c (only_sets_cc0_p, sets_cc0_p): Likewise.
6536 * rtlanal.c (global_reg_mentioned_p): Likewise.
6537 * tree.c (bit_position): Likewise.
6538
fb9fc9f9
AO
65392003-05-19 Alexandre Oliva <aoliva@redhat.com>
6540
6541 * config/mips/linux64.h (LIB_SPEC): Add missing -lc and correct
6542 -lthread to -lpthread.
6543
42ad6c9e
NB
65442003-05-19 Neil Booth <neil@daikokuya.co.uk>
6545
6546 * c-opts.c (c_common_decode_option): Don't accept dollars
6547 as identifier characters in assembly.
6548 * doc/cpp.texi: Document this.
6549
4b6fe6b6
SA
65502003-05-19 Seth Arnold <sarnold@wirex.com>
6551 Aldy Hernandez <aldyh@redhat.com>
6552
5ded58d0
ZW
6553 * config/rs6000/rs6000.c (rs6000_stack_info): Do not add
6554 vrsave_size twice.
4b6fe6b6 6555
ce376beb
AH
65562003-05-19 Aldy Hernandez <aldyh@redhat.com>
6557
5ded58d0 6558 * doc/tm.texi (function_arg): Fix typo.
ce376beb 6559
a01fff59
MA
65602003-05-19 Matt Austern <austern@apple.com>
6561
6562 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-offsetof option.
6563 * c-common.h (warn_invalid_offsetof): Declare.
6564 * c-common.c (warn_invalid_offsetof): Define.
6565 * doc/invoke.texi: Document -Winvalid-offsetof.
6566 * testsuite/g++.dg/other/offsetof3.C: New.
6567 * testsuite/g++.dg/other/offsetof4.C: New.
5ded58d0 6568
025d9908 65692003-05-19 Kevin B. Hendricks <kevin.hendricks@sympatico.ca>
5ded58d0 6570 David Edelsohn <edelsohn@gnu.org>
025d9908
KH
6571
6572 * config/rs6000/rs6000.c (rs6000_alignment_string,
6573 rs6000_alignment_flags): New variables.
6574 (rs6000_parse_alignment_option): New function.
6575 (rs6000_override_options): Call it.
6576 * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -malign-XXX option.
6577 (MASK_ALIGN_POWER, MASK_ALIGN_NATURAL, TARGET_ALIGN_NATURAL): New
6578 macros.
6579 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Always use COMPUTED
6580 natural alignment if TARGET_NATURAL_ALIGNMENT
6581 (ROUND_TYPE_ALIGN): Always use default record alignment if
6582 TAGET_NATURAL_ALIGNMENT.
6583 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Same
6584 (ROUND_TYPE_ALIGN): Same.
6585 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Same
6586 (ROUND_TYPE_ALIGN): Same.
6184e8a4
KH
6587 * doc/invoke.texi (Option Summary, PowerPC Options): Document
6588 new options.
025d9908 6589
52a8b7b8
R
65902003-05-19 J"orn Rennecke <joern.rennecke@superh.com>
6591
6592 * c-decl.c (finish_decl): When setting the DECL_ASSEMBLER_NAME
6593 of a function using ASMSPEC, prepend a star.
6594
68594ce7
JM
65952003-05-19 Jason Merrill <jason@redhat.com>
6596
6597 * tree-inline.c (copy_body_r): Avoid generating &* during inline
6598 substitution.
6599
6208b55d
AM
66002003-05-19 Andrew Macleod <amacleod@redhat.com>
6601
6602 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Do
6603 not mark assignments to the hard frame pointer as being stack
6604 frame related.
6605 (xstormy16_expand_epilogue): Mark adjustments to the stack
6606 pointer as being stack frame related.
6607
21c9500d
RS
66082003-05-19 Richard Sandiford <rsandifo@redhat.com>
6609
6610 * config/mips/mips.h (ISA_HAS_LOAD_DELAY, ISA_HAS_XFER_DELAY,
6611 ISA_HAS_FCMP_DELAY, ISA_HAS_HILO_INTERLOCKS): New macros.
6612 (PREDICATE_CODES): Add hilo_operand.
6613 * config/mips/mips.c (hilo_operand): New predicate.
6614 (mips_adjust_insn_length): Account for the number nops that might
6615 be needed to avoid hardware hazards.
6616 * config/mips/mips.md (dslot): Remove attribute.
6617 (hazard): New attribute.
6618 (can_delay): Use it. Check for calls, branches & jumps.
6619 (muldi3): Use the standard dmult pattern for mips16 code.
6620 (muldi3_internal, muldi3_internal2): Adjust conditions accordingly.
6621
f29d1b66
RS
66222003-05-19 Richard Sandiford <rsandifo@redhat.com>
6623
6624 * config/mips/mips-protos.h (final_prescan_insn,
6625 mips_count_memory_refs, mips_fill_delay_slot): Remove.
6626 * config/mips/mips.h (delay_type, dslots_load_total,
6627 dslots_load_filled, dslots_jump_total, dslots_jump_filled,
6628 dslots_number_nops, num_refs, mips_load_reg, mips_load_reg2,
6629 mips_load_reg3, mips_load_reg4): Remove.
6630 (MASK_STATS): Remove.
6631 (MASK_EXPLICIT_RELOCS): Reuse its value.
6632 (TARGET_STATS): Remove.
6633 (TARGET_SWITCHES): Turn -mstats and -mno-stats into no-ops.
6634 Warn that -mstats is now ignored.
6635 (FINAL_PRESCAN_INSN): Undefine.
6636 (DBR_OUTPUT_SEQEND): Remove handling of dslot statistics.
6637 (ASM_OUTPUT_REG_POP): Likewise.
6638 * config/mips/mips.c (dslots_load_total, dslots_load_filled,
6639 dslots_jump_total, dslots_jump_filled, dslots_number_nops, num_refs,
6640 mips_load_reg, mips_load_reg2, mips_load_reg3, mips_load_reg4,
6641 mips_fill_delay_slot, mips_count_memory_refs,
6642 final_prescan_insn): Remove.
6643 (output_block_move): Remove calls to mips_count_memory_refs.
6644 (print_operand): Remove printing of #nop for TARGET_STATS.
6645 (mips_output_function_epilogue): Remove TARGET_STATS code.
6646 Reorganize setting of fnnmae.
6647 * config/mips/mips.md: Remove handling of dslot statistics
6648 throughout file. Change all fcmp patterns into normal asm
6649 templates, removing calls to mips_fill_delay_slot.
6650 * doc/invoke.texi: Remove documentation of -mstats.
6651
30a38382
RS
66522003-05-19 Richard Sandiford <rsandifo@redhat.com>
6653
6654 * config/mips/mips.c (mips_class_max_nregs): Return the number of
6655 words in the mode.
6656
beb14bd5
RS
66572003-05-19 Richard Sandiford <rsandifo@redhat.com>
6658
6659 * config/mips/mips.c (override_options): Disable explicit
6660 relocs for old ABIs unless using gas.
6661
1c745a02
EC
66622003-05-18 Eric Christopher <echristo@redhat.com>
6663
6664 * config/mips/mips.h: Remove definition of g_switch_value.
6665
307b599c
MK
66662003-05-18 Matt Kraai <kraai@alumni.cmu.edu>
6667
6668 * flags.h (g_switch_value): Change to an unsigned
6669 HOST_WIDE_INT.
6670 * toplev.c (g_switch_value): Likewise.
6671
6672 * config/alpha/alpha.c (small_symbolic_operand): Remove
1c745a02 6673 g_switch_value cast.
307b599c
MK
6674 (alpha_in_small_data_p): Cast size to an unsigned
6675 HOST_WIDE_INT.
6676
6677 * config/frv/frv.c (frv_in_small_data_p): Cast size to an
6678 unsigned HOST_WIDE_INT.
6679 * config/frv/frv.h (g_switch_value, g_switch_set): Remove.
6680 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Declare g_switch_set.
6681
6682 * config/m32r/m32r.c (m32r_in_small_data_p): Cast size to an
6683 unsigned HOST_WIDE_INT.
6684 (m32r_asm_file_start): Use HOST_WIDE_INT_PRINT_UNSIGNED.
6685 * config/m32r/m32r.h (g_switch_value, g_switch_set): Remove.
6686 (ASM_OUTPUT_ALIGNED_COMMON): Declare g_switch_value.
6687
6688 * config/rs6000/rs6000.c (rs6000_file_start): Use
6689 HOST_WIDE_INT_PRINT_UNSIGNED.
6690 (small_data_operand): Cast summand to unsigned HOST_WIDE_INT.
6691 (rs6000_elf_in_small_data_p): Cast size to unsigned
6692 HOST_WIDE_INT.
6693 * config/rs6000/sysv4.h (g_switch_value, g_switch_set):
6694 Remove.
6695 (SUBTARGET_OVERRIDE_OPTIONS): Declare g_switch_value and
6696 g_switch_set.
6697 (ASM_OUTPUT_ALIGNED_LOCAL): Declare g_switch_value and remove
6698 g_switch_value cast.
6699
731ae8dd
RS
67002003-05-18 Roger Sayle <roger@eyesopen.com>
6701 Zack Weinberg <zack@codesourcery.com>
6702
6703 PR middle-end/10472
6704 * builtins.c (expand_builtin_memcpy): Call force_operand on
6705 expressions and use simplify_gen_binary to create the addition.
6706
d1b3178b
AS
67072003-05-18 Andreas Schwab <schwab@suse.de>
6708
6709 * config/m68k/m68k.md: Use define_constants for unspec numbers.
6710
094a51ff
NB
67112003-05-18 Neil Booth <neil@daikokuya.co.uk>
6712
6713 * config/sparc/sparc.h: Define sparc for now.
300e89a2 6714
7d4f6041
NN
67152003-05-18 Nathanael Nerode <neroden@gcc.gnu.org>
6716
6a38414a
NN
6717 * config.gcc: Clear xm_file, md_file at the beginning of each pass.
6718
1c745a02 6719 * config/stormy16/stormy16.h: Remove about 3000 lines of
595cac16
NN
6720 target-independent comments. Update copyright notice.
6721
7d4f6041
NN
6722 * doc/collect2.texi: GNU CC -> GCC.
6723 * doc/headerdirs.texi: GNU CC -> GCC.
6724
5e0c54e5
GDR
67252003-05-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
6726
6727 * hashtable.h (struct ht_identifier): Add data member "hash_value".
1c745a02 6728 * hashtable.c (ht_lookup): Use it when searching, remember.
5e0c54e5
GDR
6729 (ht_expand): Do not recompute.
6730 * tree.h (IDENTIFIER_HASH_VALUE): New macro.
6731
dc1f1d7f
NS
67322003-05-18 Nathan Sidwell <nathan@codesourcery.com>
6733
6734 * gcov-io.c (gcov_read_bytes): Fix fread thinko.
6735
4e2e315f
NB
67362003-05-18 Neil Booth <neil@daikokuya.co.uk>
6737
6738 * c-cppbuiltin.c (TARGET_OS_CPP_BUILTINS, TARGET_OBJFMT_CPP_BUILTINS):
6739 Default here.
6740 (c_cpp_builtins): Invoke TARGET_OBJFMT_CPP_BUILTINS().
6741 * defaults.h: Don't default TARGET_OS_CPP_BUILTINS here.
6742 * config/elfos.h (TARGET_OBJFMT_CPP_BUILTINS): Define __ELF__.
6743 * config/freebsd-spec.h, config/netbsd-elf.h, config/alpha/gnu.h,
6744 config/arm/linux-elf.h, config/arm/rtems-elf.h,
6745 config/arm/unknown-elf.h, config/cris/cris.h, config/cris/linux.h,
6746 config/h8300/elf.h, config/i370/linux.h, config/i386/beos-elf.h,
6747 config/i386/gnu.h, config/i386/linux.h, config/i386/linux64.h,
6748 config/i386/moss.h, config/i386/rtemself.h, config/ia64/ia64.h,
6749 config/m68k/rtemself.h, config/mcore/mcore-elf.h, config/mips/linux.h,
6750 config/pa/pa-linux.h, config/rs6000/linux.h, config/rs6000/linux64.h,
6751 config/rs6000/sysv4.h, config/rs6000/vxworks.h, config/s390/linux.h,
6752 config/sh/coff.h, config/sh/elf.h, config/sh/rtemself.h,
6753 config/sh/sh.h, config/sparc/linux.h, config/sparc/linux64.h,
6754 config/sparc/openbsd64.h, config/sparc/sp64-elf.h,
6755 config/sparc/sp86x-elf.h, config/xtensa/elf.h, config/xtensa/linux.h:
6756 Don't define __ELF__.
6757 * config/alpha.h, config/m68k/linux.h (TARGET_OBJFMT_CPP_BUILTINS):
6758 Define __ELF__.
6759 * doc/cpp.texi: Document __ELF__.
1c745a02 6760 * doc/tm.texi: Document TARGET_OBJFMT_CPP_BUILTINS. *
4e2e315f 6761
e34d07f2
KG
67622003-05-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6763
6764 * builtins.c (validate_arglist): Eliminate libiberty VA_ macros,
6765 always use stdarg.
6766 * c-errors.c (pedwarn_c99): Likewise.
6767 * c-format.c (status_warning): Likewise.
6768 * c-semantics.c (build_stmt): Likewise.
6769 * calls.c (emit_library_call, emit_library_call_value): Likewise.
6770 * collect2.c (notice, fatal_perror, fatal, error): Likewise.
6771 * cpperror.c (cpp_error, cpp_error_with_line): Likewise.
6772 * diagnostic.c (build_message_string, output_printf,
6773 output_verbatim, verbatim, inform, warning, pedwarn, error, sorry,
6774 fatal_error, internal_error, warning_with_decl, pedwarn_with_decl,
6775 error_with_decl, fnotice): Likewise.
6776 * dwarf2asm.c (dw2_asm_output_data, dw2_asm_output_delta,
6777 dw2_asm_output_offset, dw2_asm_output_pcrel, dw2_asm_output_addr,
6778 dw2_asm_output_addr_rtx, dw2_asm_output_nstring,
6779 dw2_asm_output_data_uleb128, dw2_asm_output_data_sleb128,
6780 dw2_asm_output_delta_uleb128, dw2_asm_output_delta_sleb128,
6781 dw2_asm_output_encoded_addr_rtx): Likewise.
6782 * emit-rtl.c (gen_rtx, gen_rtvec): Likewise.
6783 * errors.c (warning, error, fatal, internal_error): Likewise.
6784 * final.c (output_operand_lossage, asm_fprintf): Likewise.
6785 * fix-header.c (fatal): Likewise.
6786 * gcc.c (fatal, error, notice): Likewise.
6787 * gcov.c (fnotice): Likewise.
6788 * genattrtab.c (attr_rtx, attr_printf): Likewise.
6789 * gengtype.c (error_at_line, xasprintf, oprintf): Likewise.
6790 * gensupport.c (message_with_line): Likewise.
6791 * mips-tfile.c (fatal, error): Likewise.
6792 * protoize.c (notice): Likewise.
6793 * ra-debug.c (ra_debug_msg): Likewise.
6794 * read-rtl.c (fatal_with_file_and_line): Likewise.
6795 * rtl-error.c (error_for_asm, warning_for_asm): Likewise.
6796 * tree.c (build, build_nt, build_function_type_list): Likewise.
6797
c08f71aa
NB
67982003-05-17 Neil Booth <neil@daikokuya.co.uk>
6799
6800 * defaults.h (TARGET_CPU_CPP_BUILTINS, CPP_PREDEFINES): Remove.
6801 * gcc.c (cpp_predefines): Remove.
6802 (cpp_unique_options, do_spec_1): Remove handling of CPP_PREDEFINES.
6803 (static_specs): Remove predefines.
6804 * system.h: Poison CPP_PREDEFINES.
6805 * config/freebsd.h, config/openbsd.h, config/ptx4.h, config/svr3.h,
6806 config/svr4.h, doc/tm.texi: Remove references to CPP_PREDEFINES.
6807
a7fbe404
NB
68082003-05-17 Neil Booth <neil@daikokuya.co.uk>
6809
6810 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68k-none.h,
6811 config/m68k/m68k.h, config/m68k/m68kemb.h, config/m68k/m68kv4.h,
6812 config/m68k/openbsd.h, config/m68k/rtemself.h: Remove CPP_PREDEFINES,
6813 use TARGET_OS_CPP_BUILTINS and TARGET_CPU_CPP_BUILTINS instead.
6814
b1822ccc
NB
68152003-05-17 Neil Booth <neil@daikokuya.co.uk>
6816
3af15d58 6817 PR c/9209
b1822ccc
NB
6818 * c-common.c, c-common.h (dollars_in_ident): Remove.
6819 * c-opts.c (DOLLARS_IN_IDENTIFIERS): Default to true.
6820 (c_common_init_options, c_common_decode_option): Set dollars_in_ident.
6821 * cpphash.h (warned_dollar): Rename warn_dollars.
6822 * cppinit.c (struct lang_flags, lang_defaults, cpp_set_lang)
6823 Permit dollars regardless of -std=.
6824 (post_options): Set warn_dollars.
6825 * cpplex.c (forms_identifier_p): Use warn_dollars.
6826 * config/darwin.h, config/alpha/vms.h, config/m68hc11/m68hc11.h:
6827 Remove redundant definitions of DOLLARS_IN_IDENTIFIERS.
6828 * doc/cpp.texi, doc/cppopts.texi, doc/invoke.texi, doc/tm.texi:
6829 Update documentation.
6830
a69e127b
AS
68312003-05-17 Andreas Schwab <schwab@suse.de>
6832
6833 * config/m68k/m68k.c (m68k_output_function_prologue): Use
6834 HOST_WIDE_INT_PRINT_DEC for fprintf and %wd for asm_fprintf when
6835 formatting a HOST_WIDE_INT.
6836 (m68k_output_function_epilogue): Likewise.
6837
2aea0b53
ZW
68382003-05-17 Zack Weinberg <zack@codesourcery.com>
6839
6840 * doc/install.texi: Remove information about desupported targets.
6841
1a8965c4
AS
68422003-05-17 Andreas Schwab <schwab@suse.de>
6843
6844 * config/m68k/coff.h: Remove support for Sun FPA and Sun SKY board.
6845 * config/m68k/linux.h: Likewise.
6846 * config/m68k/m68k-none.h: Likewise.
6847 * config/m68k/netbsd-elf.h: Likewise.
6848 * config/m68k/sgs.h: Likewise.
6849 * config/m68k/m68k.h: Likewise.
6850 * config/m68k/m68k.md: Likewise.
6851 * config/m68k/m68k.c: Likewise.
6852 * doc/md.texi (Machine Constraints): Remove Sun FPA specific
6853 constraints.
6854 * doc/invoke.texi (Option Summary): Remove -mfpa.
6855 (M680x0 Options): Likewise.
6856
2a8fa26c
DE
68572003-05-17 David Edelsohn <edelsohn@gnu.org>
6858
6859 * rs6000.c (rs6000_function_value): Simplify REAL_TYPE logic.
6860
6508bdd5
NB
68612003-05-17 Neil Booth <neil@daikokuya.co.uk>
6862
6863 * config/sol2.h: Add TARGET_SUB_OS_CPP_BUILTINS.
6864 * config/sparc/liteelf.h, config/sparc/openbsd64.h,
6865 config/sparc/rtemself.h, config/sparc/sol2-64.h,
6866 config/sparc/sp64-elf.h, config/sparc/sp86x-elf.h:
6867 Update for use of TARGET_SUB_OS_CPP_BUILTINS.
6868
8d55c164
NB
68692003-05-17 Neil Booth <neil@daikokuya.co.uk>
6870
6871 * i960/i960.h, i960/rtems.h: Use TARGET_OS_CPP_BUILTINS and
6872 TARGET_CPU_CPP_BUILTINS in preference to CPP_PREDEFINES.
6873
9b8466f4
NB
68742003-05-17 Neil Booth <neil@daikokuya.co.uk>
6875
6876 * config.gcc (sparc-*-sysv4*): Add sparc/sysv4-only.h.
6877 * sparc/aout.h, sparc/elf.h, sparc/freebsd.h, sparc/linux.h,
6878 sparc/linux64.h, sparc/lite.h, sparc/litecoff.h, sparc/liteelf.h,
6879 sparc/netbsd-elf.h, sparc/openbsd.h, sparc/openbsd64.h,
6880 sparc/pbd.h, sparc/rtemself.h, sparc/sol2-64.h, sparc/sol2-bi.h,
6881 sparc/sol2.h, sparc/sp64-elf.h, sparc/sp86-elf.h, sparc/sparc.h,
6882 sparc/sysv4.h,
6883 * sparc/sysv4-only.h: New.
6884
5c07bd7a
AM
68852003-05-17 Alan Modra <amodra@bigpond.net.au>
6886
6887 * function.c (assign_parms): Check for zero size args.
6888
7e53359d
KG
68892003-05-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6890
90ff44cf
KG
6891 * cfgloopanal.c (test_for_iteration): Use string concatentation on
6892 HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
6893 function calls into one.
6894 * dbxout.c (dbxout_symbol): Likewise.
6895 * defaults.h (ASM_OUTPUT_SIZE_DIRECTIVE): Likewise.
6896 * dwarf2asm.c (dw2_asm_output_data_uleb128,
6897 dw2_asm_output_data_sleb128): Likewise.
6898 * genrecog.c (debug_decision_2): Likewise.
6899 * loop.c (emit_prefetch_instructions): Likewise.
6900 * print-rtl.c (print_rtx): Likewise.
6901 * print-tree.c (print_node_brief, print_node): Likewise.
6902 * ra-debug.c (dump_igraph, dump_graph_cost,
6903 dump_static_insn_cost): Likewise.
6904 * ra-rewrite.c (dump_cost): Likewise.
6905 * sdbout.c (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
6906 * sreal.c (dump_sreal): Likewise.
6907 * unroll.c (unroll_loop, precondition_loop_p): Likewise.
6908 * varasm.c (assemble_vtable_entry): Likewise.
6909
7e53359d
KG
6910 * avr.c (avr_output_function_prologue,
6911 avr_output_function_epilogue, print_operand): Fix format specifier
6912 warnings.
6913 (init_cumulative_args): Mark parameter with ATTRIBUTE_UNUSED.
6914 * avr.h (FUNCTION_VALUE_REGNO_P): Fix signed/unsigned warnings.
6915
79406520
GK
69162003-05-16 Geoffrey Keating <geoffk@apple.com>
6917
cabfd258
GK
6918 * config/rs6000/rs6000.c (expand_block_move): Unify the TARGET_STRING
6919 and ! TARGET_STRING cases.
6920
79406520
GK
6921 * doc/cppopts.texi (-undef): Fix texinfo warning.
6922
6923 * doc/cppopts.texi (-H): Document that -H works for PCH files too.
6924 * cppfiles.c (validate_pch): When -H is used, print some information
6925 about PCH files found.
6926
190162de
RK
69272003-05-16 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6928
6929 * config/mips/t-elf: Remove obsolete rules adding dependencies on tm.h.
6930 * config/mips/t-isa3264, config/mips/t-r3900: Likewise.
6931 * config/mips/t-sr71k: Likewise.
6932
69487202
KG
69332003-05-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6934
15a5dddc
KG
6935 * arc.c (arc_output_function_prologue,
6936 arc_output_function_epilogue): Fix format specifier warnings.
2aea0b53 6937 * arc.h (LARGE_INT): Fix signed/unsigned warnings.
15a5dddc 6938
e0b3adcb
KG
6939 * v850.c (print_operand): Fix format specifier warnings.
6940
8745765a 6941 * ns32k.c (ADJSP, ns32k_output_function_prologue): Fix format
2aea0b53 6942 specifier warnings.
8745765a 6943
fd7b8952
KG
6944 * mcore.c (mcore_print_operand_address, mcore_print_operand): Fix
6945 format specifier warnings.
6946
f5a1c99c
KG
6947 * ip2k.c (function_prologue, function_epilogue, print_operand):
6948 Fix format specifier warnings.
6949 * ip2k.md: Likewise.
6950
0c6b830b
KG
6951 * i960.c (i960_output_function_prologue, i960_print_operand,
6952 i960_print_operand_addr): Fix format specifier warnings.
6953
94c5db54
KG
6954 * i370.c (ascebc, ebcasc): Wrap in macros controlling usage.
6955 (i370_output_function_prologue): Fix format specifier warnings.
6956 * i370.h (PRINT_OPERAND): Likewise.
6957
1bdfacf6
KG
6958 * fr30.c (fr30_print_operand): Fix format specifier warnings.
6959
5f1ed3b2
KG
6960 * dsp16xx.c (print_operand_address): Fix format specifier warning.
6961 * dsp16xx.h (INCLUDE_DEFAULTS): Add missing initializers.
6962
13a8b496
KG
6963 * c4x.c (c4x_print_operand, c4x_print_operand_address): Fix format
6964 specifier warnings.
6965
4a0a75dd
KG
6966 * alpha.c (print_operand_address, alpha_start_function,
6967 unicosmk_output_ssib): Use string concatentation on
6968 HOST_WIDE_INT_PRINT_* format specifier to collapse multiple
6969 function calls into one.
6970 * arm.c (arm_print_operand): Likewise.
6971 * cris.c (cris_asm_output_mi_thunk): Likewise.
6972 * frv.c (frv_asm_output_mi_thunk): Likewise.
6973 * ia64.c (ia64_print_operand, process_set): Likewise.
6974 * m68k.c (m68k_output_function_epilogue, m68k_output_mi_thunk):
6975 Likewise.
6976 * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
6977 * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
6978 * pa.c (output_div_insn, pa_asm_output_mi_thunk): Likewise.
6979 * pa.h (PRINT_OPERAND_ADDRESS): Likewise.
6980 * rs6000.c (rs6000_va_start, print_operand_address): Likewise.
6981 * s390.c (s390_assemble_integer): Likewise.
6982 * sparc.c (sparc_flat_function_prologue,
2aea0b53 6983 sparc_flat_function_epilogue): Likewise.
4a0a75dd
KG
6984 * stormy16.c (xstormy16_print_operand_address, xstormy16_print_operand): Likewise.
6985 * vax.c (vax_output_mi_thunk): Likewise.
6986
6f562bc6
KG
6987 * frv.c (frv_print_operand_memory_reference): Fix format specifier
6988 warning.
6989 (frv_rtx_costs): Mark parameter with ATTRIBUTE_UNUSED.
6990
c8f4b20f
KG
6991 * m68k.c (m68k_output_function_epilogue): Fix format specifier
6992 warnings.
6993
804a0655
KG
6994 * stormy16-protos.h (xs_hi_general_operand,
6995 xs_hi_nonmemory_operand): Prototype.
6996 * stormy16.c (xstormy16_output_shift): Fix format specifier
6997 warnings.
6998
69487202
KG
6999 * cris.c: Fix format specifier warnings.
7000
ba2f4247
NC
70012003-05-16 Nick Clifton <nickc@redhat.com>
7002
7003 * config/arm/lib1funcs.asm: Fix typo: LSM instead of LSYM.
7004
674e9baa
WB
70052003-05-16 Wolfgang Bangerth <bangerth@dealii.org>
7006
7007 * doc/bugreport.texi: Remove most of the of the preface of the
7008 bugs section.
7009
b80c0987
JJ
70102003-05-16 Jakub Jelinek <jakub@redhat.com>
7011
7012 * config/ia64/unwind-ia64.c (uw_update_reg_address): Handle
7013 .save XX, r0.
7014
ad14dc5c
RS
70152003-05-15 Roger Sayle <roger@eyesopen.com>
7016
7017 * config/alpha/alpha.h (ASM_OUTPUT_SKIP): Fix typo.
7018
10d6c0d0
EC
70192003-05-15 Eric Christopher <echristo@redhat.com>
7020
7021 * cfgcleanup.c (merge_blocks): Fix return value.
7022
3dcd7d45
EC
70232003-05-15 Eric Christopher <echristo@redhat.com>
7024
2aea0b53
ZW
7025 * combine.c (expand_compound_operation): Make sure
7026 that zero_extend operation is profitable.
3dcd7d45 7027
36b9c271
RH
70282003-05-15 Richard Henderson <rth@redhat.com>
7029
7030 * config/alpha/linux.h, config/alpha/linux-elf.h: Remove
7031 code protected by USE_GNULIBC_1.
7032
7c942e17
ZW
70332003-05-15 Zack Weinberg <zack@codesourcery.com>
7034
7035 * config.gcc: Purge all targets obsoleted in GCC 3.3. Also
7036 remove hppa*-*-mpeix* which could not be built, and prune
7037 files from tmake_file= or tm_file= lists that don't exist.
7038
7039 * config/alpha/alpha-interix.h, config/alpha/alpha32.h
7040 * config/alpha/t-interix, config/arm/conix-elf.h
7041 * config/arm/t-arm-aout, config/arm/t-strongarm-coff
7042 * config/arm/unknown-elf-oabi.h, config/i386/win32.h
7043 * config/m68k/3b1.h, config/m68k/3b1g.h, config/m68k/amix.h
7044 * config/m68k/atari.h, config/m68k/ccur-GAS.h, config/m68k/crds.h
7045 * config/m68k/hp2bsd.h, config/m68k/hp3bsd.h
7046 * config/m68k/hp3bsd44.h, config/m68k/linux-aout.h
7047 * config/m68k/m68k-psos.h, config/m68k/mot3300.h
7048 * config/m68k/pbb.h, config/m68k/plexus.h, config/m68k/sun2.h
7049 * config/m68k/sun2o4.h, config/m68k/sun3.h, config/m68k/sun3mach.h
7050 * config/m68k/sun3n.h, config/m68k/sun3n3.h, config/m68k/sun3o3.h
7051 * config/m68k/t-mot3300, config/m68k/t-mot3300-gald
7052 * config/m68k/t-mot3300-gas, config/m68k/t-mot3300-gld
7053 * config/m68k/tower-as.h, config/m68k/tower.h
7054 * config/m88k/aout-dbx.h, config/m88k/m88k-aout.h
7055 * config/m88k/m88k-modes.def, config/m88k/m88k-move.sh
7056 * config/m88k/m88k-protos.h, config/m88k/m88k.c
7057 * config/m88k/m88k.h, config/m88k/m88k.md, config/m88k/openbsd.h
7058 * config/m88k/sysv4.h, config/m88k/t-luna, config/m88k/t-luna-gas
7059 * config/m88k/t-m88k, config/m88k/t-sysv4, config/mcore/gfloat.h
7060 * config/mips/rtems64.h, config/mips/sni-gas.h
7061 * config/mips/sni-svr4.h, config/mips/t-ecoff
7062 * config/mn10200/lib1funcs.asm, config/mn10200/mn10200-protos.h
7063 * config/mn10200/mn10200.c, config/mn10200/mn10200.h
7064 * config/mn10200/mn10200.md, config/mn10200/t-mn10200
7065 * config/pa/pa-hiux.h, config/pa/pa-hpux7.h, config/pa/pa-hpux9.h
7066 * config/pa/pa-oldas.h, config/pa/t-mpeix, config/psos.h
7067 * config/romp/romp-protos.h, config/romp/romp.c
7068 * config/romp/romp.h, config/romp/romp.md, config/rs6000/aix31.h
7069 * config/rs6000/aix3newas.h, config/rs6000/mach.h
7070 * config/sparc/bsd.h, config/sparc/hal.h
7071 * config/sparc/linux-aout.h, config/sparc/lynx-ng.h
7072 * config/sparc/lynx.h, config/sparc/netbsd.h
7073 * config/sparc/sp86x-aout.h, config/sparc/splet.h
7074 * config/sparc/sun4gas.h, config/sparc/sun4o3.h
7075 * config/sparc/sunos4.h, config/sparc/t-chorus-elf
7076 * config/sparc/t-halos, config/sparc/t-sparcbare
7077 * config/sparc/t-splet, config/sparc/t-sunos41
7078 * config/v850/rtems.h: Delete file.
7079
a6ebc39a
AH
70802003-05-15 Aldy Hernandez <aldyh@redhat.com>
7081
7c942e17 7082 * config/rs6000/rs6000-protos.h (function_value): Protoize.
a6ebc39a 7083
7c942e17 7084 * config/rs6000/rs6000.h (FUNCTION_VALUE): Call function.
a6ebc39a 7085
7c942e17 7086 * config/rs6000/rs6000.c (rs6000_function_value): New.
a6ebc39a 7087
4b3c2e48
PB
70882003-05-15 Philip Blundell <philb@gnu.org>
7089
7090 * config/arm/arm.c (arm_is_xscale): Rename to arm_arch_xscale.
7091 All uses updated.
7092 (arm_tune_xscale): New variable.
7093 (arm_override_options): Set it.
7094 (arm_adjust_cost): Use it in place of arm_arch_xscale.
7095 (arm_gen_load_multiple): Likewise.
7096 (arm_gen_store_multiple): Likewise.
7097 * config/arm/arm.md (is_xscale): Likewise.
7098 * config/arm/arm.h (arm_tune_xscale): Declare.
7099
c75a3ddc
PB
71002003-05-15 Philip Blundell <philb@gnu.org>
7101
7102 PR target/10730
7103 * config/arm/arm.c (adjacent_mem_locations): Reject offsets
7104 involving invalid constants.
7105
411f7850
JDA
71062003-05-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7107
7108 * pa.c (hppa_expand_prologue): Remove blockage.
7109
486772b1
WB
71102003-05-15 Wolfgang Bangerth <bangerth@dealii.org>
7111
7112 * doc/bugreport.texi: Remove most of the bug reporting
7113 instructions and merge them into bugs.html.
7114
c1fefa09
MK
71152003-05-14 Matt Kraai <kraai@alumni.cmu.edu>
7116
7117 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
7118 g_switch_value to unsigned HOST_WIDE_INT.
7119
72531479
EC
71202003-05-14 Eric Christopher <echristo@redhat.com>
7121
7122 * combine.c: Fix header comments.
7123 (distribute_notes): Remove usage of elim_i1, elim_i2. Propagate
7124 to all calls and prototype.
7125
e43736ad
RS
71262003-05-14 Roger Sayle <roger@eyesopen.com>
7127
7128 PR optimization/10764
72531479 7129 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
e43736ad
RS
7130 Add an explicit clobber to show that UNSPEC_FPATAN clobbers st(1).
7131 (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): Likewise,
7132 add an explicit clobber to show that UNSPEC_FYL2X clobbers st(1).
7133 (logsf2, logdf2, logxf2, logtf2): Update expander patterns to match
7134 the corresponding *fyl2x_?fxf3 instructions.
7135
49e57ab0
BW
71362003-05-14 Bob Wilson <bob.wilson@acm.org>
7137
7138 * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Change from 49 to 59.
7139 * config/xtensa/xtensa-config.h (XCHAL_HAVE_CONST16,
7140 XCHAL_HAVE_L32R): New.
7141 * config/xtensa/xtensa-protos.h (non_const_move_operand,
7142 xtensa_load_constant, xtensa_function_prologue,
7143 xtensa_function_epilogue): Delete prototypes.
7144 (xtensa_expand_prologue): New.
7145 * config/xtensa/xtensa.c (frame_size_const,
7146 TARGET_ASM_FUNCTION_PROLOGUE, TARGET_MACHINE_DEPENDENT_REORG,
7147 non_const_move_operand, xtensa_load_constant, xtensa_reorg,
7148 xtensa_function_prologue): Delete.
7149 (add_operand, xtensa_mem_offset): Formatting.
7150 (move_operand): If the const16 option is available, allow any SFmode
7151 and SImode constants.
7152 (xtensa_emit_move_sequence): Inline the former contents of
7153 xtensa_load_constant with modifications to handle the const16 option.
7154 (override_options): Add xtensa_char_to_class['W'] and set it to
7155 the general register class only if the const16 option is enabled.
7156 Fix formatting. Disallow PIC when using the const16 option.
7157 (print_operand): Reorganize to switch on "letter" instead of the
7158 RTL code. Add output_operand_lossage calls for invalid cases.
7159 Add support for 't' and 'b' letters.
7160 (xtensa_expand_prologue): New function to replace
7161 xtensa_function_prologue and xtensa_reorg.
7162 (xtensa_function_epilogue): Declare this as static. Delete code
7163 to print the retw.n or retw instruction.
7164 (xtensa_return_addr): Use A0_REG instead of 0.
7165 (xtensa_rtx_costs): Add costs for using the const16 option.
7166 * config/xtensa/xtensa.h (MASK_CONST16, TARGET_CONST16): New.
7167 (TARGET_DEFAULT): Add CONST16 if L32R instructions not available.
7168 (TARGET_SWITCHES): Add "const16" and "no-const16".
7169 (REG_CLASS_FROM_LETTER): Add comment about new 'W' letter.
7170 (EXTRA_CONSTRAINT): Change 'T' constraint to only apply when not
7171 using the const16 option.
7172 (TRAMPOLINE_TEMPLATE): Rewrite to avoid hardwired use of l32r insn.
7173 (TRAMPOLINE_SIZE): Change from 49 to 59.
7174 (INITIALIZE_TRAMPOLINE): Adjust offsets to match new trampoline.
7175 (GO_IF_LEGITIMATE_ADDRESS): Do not allow constant pool addresses
7176 when using the const16 option.
7177 (PREDICATE_CODES): Delete non_const_move_operand.
7178 * config/xtensa/xtensa.md (define_constants): Add A1_REG, A8_REG, and
7179 UNSPECV_ENTRY.
7180 (movdi, movdf): If the source is a constant, always expand to a
7181 sequence of movsi insns.
7182 (movdi_internal, movdf_internal): Remove alternative using l32r insns.
7183 (movsi_internal, movsf_internal): Add alternative using const16 insns.
7184 (movsf): Add const16 support.
7185 (entry, prologue, epilogue): New.
7186 (set_frame_ptr): Add missing mode for unspec_volatile operation.
7187 Likewise for subsequent split pattern.
7188 * doc/invoke.texi (Option Summary, Xtensa Options): Document new
7189 "-mconst16" and "-mno-const16" options.
7190
ae49d6e5
RH
71912003-05-14 Richard Henderson <rth@redhat.com>
7192
7193 * config/ia64/ia64.c (ia64_expand_load_address): Force destination
7194 to be DImode register. Merge load_symptr.
7195 * config/ia64/ia64.md (load_symptr): Remove.
7196
2adb9af1
RH
71972003-05-14 Richard Henderson <rth@redhat.com>
7198
7199 * rtl.h (TREE_CONSTANT_POOL_ADDRESS_P): Rename from
7200 DEFERRED_CONSTANT_P.
7201 * integrate.c (copy_rtx_and_substitute): Update use.
7202 * varasm.c (build_constant_desc): Set SYMBOL_REF_DECL
7203 to the copy generated.
7204 (maybe_output_constant_def_contents): Examine TREE_ASM_WRITTEN
7205 of the constant to see if we should emit.
7206 (mark_constant): Similarly.
7207 (output_constant_def_contents): Set TREE_ASM_WRITTEN.
7208
bb84cb12
DE
72092003-05-14 David Edelsohn <edelsohn@gnu.org>
7210
7211 * config/rs6000/rs6000.md (movsi_internal2): Use compare for self
7212 move record condition.
7213 (movdi_internal2): Same.
7214
3ec6c6ee
NS
72152003-05-14 Nathan Sidwell <nathan@codesourcery.com>
7216
7d63a2fa
NS
7217 * gcov-io.h (gcov_write_bytes, gcov_read_bytes): Remove here.
7218 (GCOV_TAG_*) Force type to gcov_unsigned_t.
7219 (GCOV_CHECK, GCOV_CHECK_READING, GCOV_CHECK_WRITING): New.
7220 (struct gcov_var): Remove modified. Add start, length, offset,
7221 overread. Have buffer array for libgcov.
7222 (gcov_sync, gcov_seek): Definitions moved to gcov-io.c.
7223 (gcov_position, gcov_rewrite, gcov_is_eof): Adjust.
7224 * gcov-io.c (gcov_open): Set mode, do not read anything.
7225 (gcov_close): Write final block.
7226 (gcov_write_block, gcov_allocate): New.
7227 (gcov_write_bytes): Make static. Write or allocate buffer.
7228 (gcov_write_unsigned, gcov_write_counter): Buffer can never be
7229 null.
7230 (gcov_write_string): Adjust.
7231 (gcov_write_tag)
7232 (gcov_write_length): Adjust. Flush the block.
7233 (gcov_write_tag_length): Buffer can never be null.
7234 (gcov_read_bytes): Make static. Read in block.
7235 (gcov_sync): Moved here. Adjust.
7236 (gcov_seek): Moved here. Adjust.
7237 * coverage.c (read_counts_file): Adjust.
7238 * gcov-dump.c (print_prefix): Add position parameter.
7239 (flag_dump_positions): New flag.
7240 (options, main, print_usage): Add it.
7241 (dump_file, tag_blocks, tag_arcs, tag_lines, tag_counters,
7242 tag_summary): Adjust.
7243 * gcov.c (read_graph_file, read_count_file): Adjust.
7244 * libgcov.c (gcov_exit): Adjust.
7245
990f4800
NS
7246 * Makefile.in (LIBGCC_DEPS): Use $(srcdir) on gcov files
7247 (libgcov.a): Depend on libgcc.a.
7248 (gcov.o, gcov-dump.o): Add gcov-io.c.
7249 * mklibgcc.in (libgcov_c_dep): Use $(srcdir).
72531479 7250
3ec6c6ee
NS
7251 * loop.c (check_dbra_loop): Factor common test.
7252
c62347f0
BE
72532003-05-14 Ben Elliston <bje@wasabisystems.com>
7254
7255 * doc/md.texi (Automaton pipeline description): Grammar fixes.
7256
18dbd950
RS
72572003-05-14 Richard Sandiford <rsandifo@redhat.com>
7258
7259 * target-def.h (TARGET_MACHINE_DEPENDENT_REORG): Define.
7260 (TARGET_INITIALIZER): Include it.
7261 * target.h (struct gcc_target): Add machine_dependent_reorg field.
7262 * toplev.c (rest_of_compilation): Use targetm.machine_dependent_reorg.
2f9bb7c5 7263 * system.h: Poison MACHINE_DEPENDENT_REORG.
18dbd950
RS
7264
7265 * config/alpha/alpha-protos.h (alpha_reorg): Remove declaration.
7266 * config/alpha/alpha.h (MACHINE_DEPENDENT_REORG): Remove.
7267 * config/alpha/alpha.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7268 (alpha_handle_trap_shadows): Remove "first insn" parameter.
7269 (alpha_align_insns): Likewise.
7270 (alpha_reorg): Likewise. Make static. Update calls to above
7271 functions.
7272
7273 * config/arm/arm-protos.h (arm_reorg): Remove declaration.
7274 * config/arm/arm.h (MACHINE_DEPENDENT_REORG): Remove.
7275 * config/arm/arm.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7276 (arm_reorg): Remove parameter. Make static.
7277
7278 * config/avr/avr-protos.h (machine_dependent_reorg): Remove.
7279 * config/avr/avr.h (MACHINE_DEPENDENT_REORG): Remove.
7280 * config/avr/avr.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7281 (avr_reorg): Renamed from machine_dependent_reorg. Make static.
7282 Remove parameter.
7283
7284 * config/c4x/c4x-protos.h (c4x_process_after_reload): Remove.
7285 * config/c4x/c4x.h (MACHINE_DEPENDENT_REORG): Remove.
7286 * config/c4x/c4x.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7287 (c4x_reorg): Renamed from c4x_process_after_reload. Make static.
7288 Remove parameter.
7289
7290 * config/d30v/d30v-protos.h (d30v_machine_dependent_reorg): Remove.
7291 * config/d30v/d30v.h (MACHINE_DEPENDENT_REORG): Remove.
7292 * config/d30v/d30v.c (d30v_machine_dependent_reorg): Remove.
7293
7294 * config/frv/frv-protos.h (frv_machine_dependent_reorg): Remove.
7295 * config/frv/frv.c: Remove orphaned comment.
7296
7297 * config/i386/i386-protos.h (x86_machine_dependent_reorg): Remove.
7298 * config/i386/i386.h (MACHINE_DEPENDENT_REORG): Remove.
7299 * config/i386/i386.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7300 (ix86_reorg): Renamed from x86_machine_dependent_reorg. Make static.
7301 Remove parameter.
7302
7303 * config/ia64/ia64-protos.h (ia64_reorg): Remove declaration.
7304 * config/ia64/ia64.h (MACHINE_DEPENDENT_REORG): Remove.
7305 * config/ia64/ia64.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7306 (emit_insn_group_barriers): Remove "first insn" parameter.
7307 (emit_all_insn_group_barriers): Likewise.
7308 (ia64_reorg): Likewise. Make static. Update calls to above functions.
7309 (ia64_output_mi_thunk): Update call to emit_all_insn_group_barriers.
7310
7311 * config/ip2k/ip2k-protos.h (machine_dependent_reorg): Remove.
7312 * config/ip2k/ip2k.h (MACHINE_DEPENDENT_REORG): Remove.
7313 * config/ip2k/ip2k.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7314 (ip2k_reorg): Renamed from machine_dependent_reorg. Make static.
7315 Remove parameter.
7316
7317 * config/m68hc11/m68hc11-protos.h (m68hc11_reorg): Remove declaration.
7318 * config/m68hc11/m68hc11.h (MACHINE_DEPENDENT_REORG): Remove.
7319 * config/m68hc11/m68hc11.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7320 (m68hc11_reorg): Make static. Remove parameter.
7321
7322 * config/mcore/mcore-protos.h (mcore_dependent_reorg): Remove.
7323 * config/mcore/mcore.h (MACHINE_DEPENDENT_REORG): Remove.
7324 * config/mcore/mcore.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7325 (conditionalize_optimization): Remove parameter.
7326 (mcore_reorg): Renamed from mcore_dependent_reorg. Remove parameter.
7327 Make static. Update call to conditionalize_optimization.
7328
7329 * config/mips/mips-protos.h (machine_dependent_reorg): Remove.
7330 * config/mips/mips.h (MACHINE_DEPENDENT_REORG): Remove.
7331 * config/mips/mips.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7332 (mips_reorg): Renamed from machine_dependent_reorg. Remove parameter.
7333 Make static.
7334
7335 * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg): Remove.
7336 * config/mmix/mmix.h (MACHINE_DEPENDENT_REORG): Remove.
7337 * config/mmix/mmix.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7338 (mmix_reorg): Renamed from mmix_machine_dependent_reorg. Make static.
7339 Remove parameter.
7340
7341 * config/pa/pa-protos.h (pa_reorg): Remove declaration.
7342 * config/pa/pa.h (MACHINE_DEPENDENT_REORG): Remove.
7343 * config/pa/pa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7344 (pa_combine_instructions): Remove "first insn" parameter.
7345 (remove_useless_addtr_insns): Likewise.
7346 (pa_reorg): Likewise. Make static. Update calls to above functions.
7347
7348 * config/rs6000/rs6000.h (MACHINE_DEPENDENT_REORG): Remove
7349 commented-out definition.
7350
7351 * config/s390/s390-protos.h (s390_machine_dependent_reorg): Remove.
7352 * config/s390/s390.h (MACHINE_DEPENDENT_REORG): Remove.
7353 * config/s390/s390.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7354 (s390_reorg): Renamed from s390_machine_dependent_reorg. Make static.
7355 Remove parameter.
7356
7357 * config/sh/sh-protos.h (machine_dependent_reorg): Remove.
7358 * config/sh/sh.h (MACHINE_DEPENDENT_REORG): Remove.
7359 * config/sh/sh.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7360 (sh_reorg): Renamed from machine_dependent_reorg. Make static.
7361 Remove parameter.
7362 (sh_output_mi_thunk): Call sh_reorg directly.
7363 * config/sh/sh.md: Update comment.
7364
7365 * config/stormy16/stormy16.h (MACHINE_DEPENDENT_REORG): Remove
7366 commented-out definition.
7367
7368 * config/v850/v850-protos.h (v850_reorg): Remove declaration.
7369 * config/v850/v850.h (MACHINE_DEPENDENT_REORG): Remove.
7370 * config/v850/v850.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7371 (v850_reorg): Make static. Remove parameter.
7372
7373 * config/xtensa/xtensa-protos.h (xtensa_reorg): Remove declaration.
7374 * config/xtensa/xtensa.h (MACHINE_DEPENDENT_REORG): Remove.
7375 * config/xtensa/xtensa.c (TARGET_MACHINE_DEPENDENT_REORG): Define.
7376 (xtensa_reorg): Make static. Remove parameter.
7377
7378 * doc/tm.texi (MACHINE_DEPENDENT_REORG): Remove.
7379 (TARGET_MACHINE_DEPENDENT_REORG): Document.
7380
2306d91c
RH
73812003-05-13 Richard Henderson <rth@redhat.com>
7382
7383 * c-decl.c (duplicate_decls): Re-invoke make_decl_rtl if
7384 the old decl had instantiated DECL_RTL.
7385
c2d635bc
MS
73862003-05-13 Mike Stump <mrs@apple.com>
7387
7388 * doc/invoke.texi (Option Summary): Kill off documentation for -$.
7389
7aabff18
JJ
73902003-05-13 Janis Johnson <janis187@us.ibm.com>
7391
7392 * config/rs6000/sysv4.h (OUTPUT_ASM_ALIGNED_LOCAL): Expect
7393 HOST_WIDE_INT argument.
7394
03307888
JM
73952003-05-13 Jason Merrill <jason@redhat.com>
7396
7397 * tree.h (STRIP_MAIN_TYPE_NOPS): New macro.
7398
7399 * tree.c (iterative_hash_expr): New fn.
7400
7401 * c-semantics.c (emit_local_var): Don't mess with temp slots if
7402 there's no initializer.
7403
d660cefe
RS
74042003-05-13 Richard Sandiford <rsandifo@redhat.com>
7405
7406 * final.c (final_scan_insn): Apply the effects of frame-related
7407 delay slot insns before emitting a delayed branch.
7408
c1f1978f
NC
74092003-05-13 Nick Clifton <nickc@redhat.com>
7410
7411 * config/mcore/mcore.md (jump): Use emit_jump_insn.
7412
7641be90
UW
74132003-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7414
7415 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Second
7416 parameter of ASM_OUTPUT_SKIP must have type unsigned HOST_WIDE_INT.
7417
f26aca6d
DD
74182003-05-12 DJ Delorie <dj@redhat.com>
7419
7420 * expr.c (move_by_pieces): Honor the alignment of TO and FROM.
7421 (emit_push_insn): Don't use push when the source alignment is less
7422 than the stack's push rounding.
7423
fa6ef813
ZW
74242003-05-13 Zack Weinberg <zack@codesourcery.com>
7425
7426 * diagnostic.c (output_format): Add support for %m.
7427 (output_printf, output_verbatim, diagnostic_set_info,
7428 verbatim): Set err_no field of the text_info structure being
7429 initialized.
7430 (fatal_io_error): Delete function.
7431 * diagnostic.h (text_info): Add err_no field.
7432 * toplev.h (fatal_io_error): Delete prototype.
7433
7434 * c-opts.c, c-pch.c, dwarfout.c, ggc-common.c, ggc-page.c, graph.c
7435 * toplev.c, config/mips/mips.c, config/rs6000/host-darwin.c
7436 * objc/objc-act.c: Replace all calls to fatal_io_error with
7437 calls to fatal_error; add ": %m" to the end of all the affected
7438 error messages.
7439
a2a6a79b
ZW
74402003-05-13 Zack Weinberg <zack@codesourcery.com>
7441
7442 * varasm.c (notice_rtl_inlining_of_deferred_constant): New function.
7443 * rtl.h: Prototype it.
7444 * integrate.c (copy_rtx_and_substitute <SYMBOL_REF>): Call it
7445 when appropriate.
7446
c707d0b0
UW
74472003-05-13 Ulrich Weigand <uweigand@de.ibm.com>
7448
7449 * config/s390/s390.md ("*iordi3_oi"): Do not mark commutative.
7450 ("*iorsi3_oi"): Likewise.
7451
9af66e58
RE
74522003-05-13 Richard Earnshaw <rearnsha@arm.com>
7453
7454 * arm.md (compare_scc): Use shorter sequence for EQ case.
7455 (ior_scc_scc_cmp, and_scc_scc_cmp): New insn-and-split patterns.
7456 (and_scc_scc): Ensure split only applies when there is a dominance
7457 of the comparisons.
7458 (and_scc_scc_nodom): New insn-and-split pattern.
7459
7f68692f
RS
74602003-05-13 Richard Sandiford <rsandifo@redhat.com>
7461
7462 * unwind-dw2.c (uw_init_context_1): Don't pass &outer_cfa directly
7463 to _Unwind_SetGRPtr().
7464
88e80294
ME
74652003-05-13 Michael Eager <eager@mvista.com>
7466
7467 * Makefile.in: Initialize program_transform_cross_name from
7468 @program_transform_name@ instead of target_alias.
7469
c4501e62
JJ
74702003-05-12 Janis Johnson <janis187@us.ibm.com>
7471 Alan Modra <amodra@bigpond.net.au>
7472 Jakub Jelinek <jakub@redhat.com>
7473
7474 * configure.in (HAVE_AS_TLS): Add powerpc and powerpc64 tests.
7475 * configure: Rebuild.
7476 * config/rs6000/rs6000-protos.h: Update.
7477 * config/rs6000/rs6000.c (rs6000_tls_size): New.
7478 (rs6000_tls_size_string): New.
7479 (rs6000_parse_tls_size_option): New.
7480 (rs6000_legitimize_tls_address): New.
7481 (rs6000_tls_get_addr): New.
7482 (rs6000_got_sym): New.
7483 (rs6000_tls_symbol_ref): New.
7484 (rs6000_tls_symbol_ref_1): New.
7485 (rs6000_get_some_local_dynamic_name): New.
7486 (rs6000_get_some_local_dynamic_name_1): New.
7487 (TARGET_HAVE_TLS): New.
7488 (TARGET_CANNOT_FORCE_CONST_MEM): New.
7489 (rs6000_override_options): Handle -mtls-size option.
7490 (constant_pool_expr_1): Handle TLS symbols.
7491 (rs6000_legitimize_address): Handle TLS symbols.
7492 (rs6000_tls_referenced_p): New.
7493 (rs6000_legitimate_address): Handle TLS symbols.
7494 (rs6000_emit_move): Handle TLS symbols.
7495 (print_operand): Handle TLS symbols.
7496 (uses_TOC): Handle TLS symbols.
7497 (rs6000_emit_prologue): Use symbol for unspec constant.
7498 * config/rs6000/rs6000.h (HAVE_AS_TLS): New.
7499 (some_ld_name): New.
7500 (LEGITIMATE_CONSTANT_P): Handle TLS symbols.
7501 (PRINT_OPERAND_PUNCT_VALID_P): Handle TLS symbols.
7502 (PREDICATE_CODES): Add rs6000_tls_symbol_ref.
7503 * config/rs6000/rs6000.md (load_toc_v4_PIC_1, load_toc_v4_PIC_1b):
7504 Support TLS.
7505 (tls_gd_32, tls_gd_64, tls_ld_32, tls_ld_64, tls_dtprel_32,
7506 tls_dtprel_64, tls_dtprel_ha_32, tls_dtprel_ha_64, tls_dtprel_lo_32,
7507 tls_dtprel_lo_64, tls_got_dtprel_32, tls_got_dtprel_64, tls_tprel_32,
7508 tls_tprel_64, tls_tprel_ha_32, tls_tprel_ha_64, tls_tprel_lo_32,
7509 tls_tprel_lo_64, tls_got_tprel_32, tls_got_tprel_64, tls_tls_32,
7510 tls_tls_64): New.
7511 * config/rs6000/sysv4.h (SUBTARGET_OPTIONS): Add tls_size.
7512
6cfae22a
NB
75132003-05-12 Neil Booth <neil@cat.daikokuya.co.uk>
7514
7515 * Makefile.in (stage2_build, stage3_build, stage4_build):
7516 Set BUILD_CC to the same as CC.
7517
517958ba
NB
75182003-05-12 Neil Booth <neil@daikokuya.co.uk>
7519
7520 * alloc-pool.c (last_id): Put in ENABLE_CHECKING guards.
7521
74601584
AS
75222003-05-12 Andreas Schwab <schwab@suse.de>
7523
7524 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Mark 'exp'
7525 as unused.
7526 (bundling): Initialize 'pos'.
7527 (ia64_expand_builtin): Initialize 'rmode'.
7528
f08b4d88
DE
75292003-05-12 David Edelsohn <edelsohn@gnu.org>
7530
7531 * config/rs6000/xcoff.h (ASM_OUTPUT_SKIP): Accept HOST_WIDE_INT.
7532 (ASM_OUTPUT_ALIGNED_COMMON): Same.
7533 (ASM_OUTPUT_LOCAL): Same.
7534
d3e0dffb
JH
7535Mon May 12 21:53:29 CEST 2003 Jan Hubicka <jh@suse.cz>
7536
7537 * varasm.c (output_constant): Fix underflow.
7538
96ef4bdc
MM
75392003-05-12 Mark Mitchell <mark@codesourcery.com>
7540
7541 PR other/10745
7542 * configure.in: Correct detection of GNU ld version number.
7543 * configure: Regenerated.
7544
9804f5fb
ZW
75452003-05-12 Zack Weinberg <zack@codesourcery.com>
7546
7547 * diagnostic.c (diagnostic_for_decl): Take a
7548 diagnostic_context argument. Restructure to be consistent
7549 with diagnostic_report_diagnostic.
7550 (diagnostic_count_diagnostic): Now static. Take a
7551 diagnostic_info argument, not just a diagnostic_t. Some code
7552 moved here from internal_error. Move a case label for
7553 clarity.
7554 (diagnostic_action_after_output): New function. Code moved
7555 here from internal_error and fatal_error.
7556 (bug_report_request): New #define so that this text appears in
7557 only one place.
7558 (diagnostic_report_diagnostic): Update to match changes to
7559 diagnostic_count_diagnostic. Call diagnostic_action_after_output.
7560 (diagnostic_set_info): Call gettext here.
7561
7562 (pedwarn): Update comment. Don't call gettext here.
7563 (sorry): Use report_diagnostic. Don't call gettext here.
7564 (fatal_error): Remove final fnotice and exit, but call
7565 real_abort to prevent warnings about noreturn function returning.
7566 (internal_error): Likewise. Don't do ICE suppression here nor
7567 call context->internal_error.
7568 (warning_with_decl): Suppress for decls in system headers.
7569 Adjust call to diagnostic_for_decl.
7570 (pedwarn_with_decl): Likewise.
7571 (error_with_decl): Adjust call to diagnostic_for_decl.
7572 (error_recursion): Use bug_report_request.
7573
7574 * diagnostic.h: Remove prototype of diagnostic_count_diagnostic.
7575 * objc/objc-act.c (error_with_ivar, warn_with_method): Don't call
7576 diagnostic_count_diagnostic.
7577
f64f0687
JDA
75782003-05-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7579
7580 * pa64-hpux.h (ASM_OUTPUT_ALIGNED_COMMON): Correct last patch.
7581
c394cdb7
JH
7582Mon May 12 15:57:54 CEST 2003 Jan Hubicka <jh@suse.cz>
7583
212e2065 7584 * rs6000/darwin.h (ASM_OUTPUT_COMMON): Accept HOST_WIDE_INT
c394cdb7
JH
7585 * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Fix warning.
7586 * mips/mips.h (ASM_OUTPUT_SKIP): Fix typo in the previous patch.
7587
70498da3
RS
75882003-05-12 Roger Sayle <roger@eyesopen.com>
7589
7590 * doc/rtl.texi: Document zero_extract as a valid destination
7591 of a set insn.
7592
ce250a20
RE
75932003-05-12 Richard Earnshaw <rearnsha@arm.com>
7594
7595 * arm/lib1funcs.asm (LSYM): Define -- on ELF prefix a local symbol with
7596 '.'. Change all local symbol definitions and references to use LSYM.
7597
58e15542
JH
7598Mon May 12 11:32:53 CEST 2003 Jan Hubicka <jh@suse.cz>
7599
7600 * expr.h (assemble_static_space): Update prototype.
7601 * output.h (assemble_zeros, output_constant): Likewise.
7602 * elfos.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): Make it 64bit clean
7603 * alpha.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASK_OUTPUT_LOCAL): Make
7604 it 64bit clean.
7605 * elf.h (ASM_OTUPUT_SKIP): Likewise.
7606 * unicosmk.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMM): Likewise.
7607 * arm.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7608 Expect HOST_WIDE_INT operand.
7609 * aout.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7610 Expect HOST_WIDE_INT operand.
7611 * unknown-elf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7612 Expect HOST_WIDE_INT operand.
7613 * avr.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP): Expect
7614 HOST_WIDE_INT operand.
7615 * c4x.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP,
7616 ASM_OUTPUT_BSS): Expect HOST_WIDE_INT operand.
7617 * aout.h (ASM_OTUPUT_SKIP): Likewise.
7618 * cris.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
7619 * darwin.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON): Likewise.
7620 * dsp16xx.h (ASM_OTUPUT_SKIP): Likewise.
7621 * frv.h (ASM_OTUPUT_SKIP): Likewise.
7622 * h8300.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_LOCAL): Likewise.
7623 * 370.h (ASM_OTUPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
7624 Make it 64bit
7625 clean.
7626 * att.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand.
7627 * bsd.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
7628 Make it 64bit clean.
7629 * darwin.h (ASM_OUTPUT_SKIP): Make it 64bit clean..
7630 * sco5.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Expect
7631 HOST_WIDE_INT operand
7632 * svr3gas.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
7633 Expect HOST_WIDE_INT operand
7634 * sysv3.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT operand
7635 * i960.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON,
7636 ASM_OUTPUT_ALIGNED_LOCAL): Expect HOST_WIDE_INT operand
7637 * ip2k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7638 Likewise.
7639 * m32r.h (ASM_OUTPUT_COMMON): Likewise.
7640 * 3b1.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7641 Likewise.
7642 * amix.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
7643 * crds.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
7644 * hp320.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
7645 ASM_OUTPUT_SKIP): Likewise.
7646 * m68k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP):
7647 Likewise.
7648 * m68kelf.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
7649 ASM_OUTPUT_SKIP): Likewise.
7650 * m68kv4.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
7651 ASM_OUTPUT_SKIP): Likewise.
7652 * mot3300.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
7653 * netbsd-elf.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
7654 ASM_OUTPUT_SKIP): Likewise.
7655 * sgs.h (ASM_OUTPUT_SKIP): Likewise.
7656 * tower-as.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON,
7657 ASM_OUTPUT_SKIP): Likewise.
7658 * m88k.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON, ASM_OUTPUT_SKIP):
7659 Likewise.
7660 * mcore.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_BSS, ASM_OUTPUT_SKIP): Likewise.
7661 * iris.h (ASM_OUTPUT_LOCAL): Likewise.
7662 * mips.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_SKIP): Likewise.
7663 * ns32k.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL,
7664 ASM_OUTPUT_SKIP): Make it 64bit clean.
7665 * pa-pro-end.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL):
7666 Make it 64bit clean.
7667 * pa.h (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL,
7668 ASM_OUTPUT_SKIP): Make it 64bit clean.
7669 * hpux.h (ASM_OUTPUT_LOCAL, ASM_OUTPUT_ALIGNED_LOCAL): Make it
7670 64bit clean.
7671 * romp.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
7672 HOST_WIDE_INT argument
7673 * s390.h (ASM_OUTPUT_SKIP): Expect HOST_WIDE_INT argument.
7674 * sh.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_LOCAL, ASM_OUTPUT_COMMON): Expect
7675 HOST_WIDE_INT argument
7676 * sol2.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
7677 * sparc.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON): HOST_WIDE_INT argument
7678 * svr3.h (ASM_OUTPUT_SKIP): HOST_WIDE_INT argument
7679 * vax.h (ASM_OUTPUT_SKIP, ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL):
7680 HOST_WIDE_INT argument
7681 * vaxv.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
7682 * xtensa.h (ASM_OUTPUT_LOCAL): HOST_WIDE_INT argument
7683 * varasm.c (asm_output_bss, asm_output_aligned_bss,
7684 asm_emit_uninitialized, assemble_zeros, assemble_static_space):
7685 HOST_WIDE_INT argument
7686
9804f5fb 76872003-05-10 Steven Bosscher <steven@gcc.gnu.org>
7660e67e
SB
7688
7689 * cgraphunit.c (cgraph_create_edges): Drop walk_tree in
7690 favor of walk_tree_without_duplicates. Add comments.
7691
76abd4c6
JZ
76922003-05-12 Josef Zlomek <zlomekj@suse.cz>
7693
7694 * alloc-pool.h (ALLOC_POOL_ID_TYPE): New type.
9804f5fb 7695 (struct alloc_pool_def): New element 'id'.
76abd4c6
JZ
7696 * alloc-pool.c (fancy_abort): Extern function prototype.
7697 (abort): Macro which uses fancy_abort.
7698 (struct allocation_object_def): New structure.
7699 (ALLOCATION_OBJECT_PTR_FROM_USER_PTR): New macro.
7700 (USER_PTR_FROM_ALLOCATION_OBJECT_PTR): New macro.
7701 (last_id): New variable.
7702 (create_alloc_pool): Add the offset of u.data to size of element,
7703 increase and use last_id.
7704 (free_alloc_pool): Do the checking only when ENABLE_CHECKING.
7705 (pool_alloc): Likewise. Set ID for elements.
7706 (pool_free): Check whether the PTR was allocated from POOL.
7707
66ea6f4c
RH
77082003-05-11 Richard Henderson <rth@redhat.com>
7709
7710 PR c/10675
7711 * c-decl.c: Include hashtab.h.
7712 (detect_field_duplicates): New.
7713 (finish_struct): Use it.
7714 * Makefile.in (c-decl.o): Update.
7715 * c-parse.in (structsp_attr): Nreverse component_decl_list results.
7716 (component_decl_list, component_decl_list2,
7717 components, components_notype): Build list in reverse order.
7718 (enumlist): Clarify docs. Use TREE_CHAIN not chainon.
7719
9804f5fb 7720 * tree.c (chainon): Special case op2 null as well.
66ea6f4c
RH
7721 Reorg for clarity.
7722
358997e2
RS
77232003-05-11 Roger Sayle <roger@eyesopen.com>
7724
7725 * config/i386/i386.md (logsf2, logdf2, logxf2, logdf2): New patterns
7726 to implement log, logf and logl built-ins as inline x87 intrinsics.
7727 (UNSPEC_FYL2X): New unspec to represent x87's "fyl2x" instruction.
7728 (*fyl2x_sfxf3, *fyl2x_dfxf3, *fyl2x_xf3, *fyl2x_tfxf3): New insn
7729 patterns for x87's "fyl2x" instruction, used by log?f2 patterns.
7730
7731 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_FYL2X like
7732 UNSPEC_FPATAN, i.e. replaces two stack operands with single result.
7733
ffa916ba
KG
77342003-05-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7735
9804f5fb 7736 * Makefile.in (out_object_file): Don't set -Wno-error for ${cpu}.o.
04f3680d 7737
ffa916ba
KG
7738 * sparc.c (print_operand): Fix uninitialized warning.
7739
91f4cfe3
ZD
77402003-05-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7741
7742 * cfgloopanal.c (num_loop_insns, average_num_loop_insns): Count only
7743 real insns.
7744 * loop-unroll.c (unroll_loop_runtime_iterations): Remove superfluous
7745 condition.
7746
ac38d8da
NB
77472003-05-11 Neil Booth <neil@cat.daikokuya.co.uk>
7748
7749 * doc/cpp.texi: Fix typos.
7750
82b1c974
UW
77512003-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7752
7753 * config/s390/s390.c (s390_function_arg_float): New function.
7754 (s390_function_arg_pass_by_reference): Use it.
7755 (s390_function_arg_advance): Likewise.
7756 (s390_function_arg): Likewise.
7757 (s390_va_arg): Likewise
7758
6d70e6be
NS
77592003-05-11 Nathan Sidwell <nathan@codesourcery.com>
7760
7761 * coverage.h (coverage_counter_alloc): New function.
7762 * function.h (struct function): Remove arc_profile flag.
7763 * coverage.c (fn_ident): Remove.
7764 (fn_b_ctrs, no_coverage): New.
7765 (get_coverage_counts): Use current_function_funcdef_no.
7766 (coverage_counter_alloc): New.
7767 (coverage_counter_ref): Adjust.
7768 (coverage_begin_output): Check no_coverage. Use
7769 current_function_funcdef_no.
7770 (coverage_end_function): Likewise.
7771 (create_coverage): Set no_coverage. Set DECL_UNINLINEABLE rather
7772 than clearing flag_inline_functions. Do not clear arc_profile
7773 flag.
7774 * function.c (prepare_function_start): Do not set arc_profile
7775 flag.
7776 * profile.c (instrument_edges): Return number of instrumented
7777 edges. Use a for loop.
7778 (branch_prob): Call coverage_counter_alloc. Make BB_TO_GCOV_INDEX
7779 local to here and simplify. Use profile_arc_flag not arc_profile
7780 flag.
7781 (find_spanning_tree): Reformat.
7782 * toplev.c (rest_of_compilation): Use profile_arc_flags and
7783 flag_test_coverage rather than arc_profile flag.
7784
78d0a54d
GDR
77852003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
7786
7787 * doc/invoke.texi (Wctor-dtor-privacy): Update documentation.
7788
a71c8ddc
RK
77892003-05-11 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7790
7791 * varasm.c (copy_constant, case VIEW_CONVERT_EXPR): New case.
7792
6e270179 77932003-05-11 Bruno Haible <bruno@clisp.org>
9804f5fb 7794
6e270179
NB
7795 * cppfiles.c (find_or_create_entry): Preserve errno.
7796
77972003-05-11 Neil Booth <neil@cat.daikokuya.co.uk>
7798
7799 * c-cppbuiltin.c (c_cpp_builtins): Move __STDC_HOSTED__ into
7800 cpplib as it's a Standard Predefined Macro.
7801 * c-opts.c (finish_options): Pass flag_hosted to cpp_init_builtins.
7802 * cppinit.c (_cpp_init_builtins): Take HOSTED. Define
7803 __STDC_HOSTED__ appropriately.
7804 * cpplib.h (_cpp_init_builtins): Update.
7805 * fix-header.c (read_scan_file): Update.
7806 * doc/cpp.texi, doc/cppopts.texi: Update documentation.
7807
f333504d
GDR
78082003-05-11 Gabriel Dos Reis <gdr@integrable-solutions.net>
7809
7810 PR C++/689
7811 PR C++/9257
7812 * c-opts.c (c_common_decode_option): Don't set
7813 warn_ctor_dtor_privacy wen -Wall.
7814 * c-common.c (warn_ctor_dtor_privacy): Don't turn on by default.
7815
6e5d72ba
AO
78162003-05-10 Alexandre Oliva <aoliva@redhat.com>
7817
7818 * reload1.c (reload_cse_move2add): Revert part of my 2003-05-09's
7819 patch.
7820
59650e48
ZW
78212003-05-10 Zack Weinberg <zack@codesourcery.com>
7822
7823 * diagnostic.c: Reorder functions for clarity, putting all the
7824 functions in the "error" family next to each other, and
7825 likewise all the functions in the "error_with_decl" family.
7826 Some other routines were moved too. Add comments.
7827 (vbuild_message_string): Fold into sole caller.
7828
7829
34dc173c
UW
78302003-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7831
7832 * except.c (EH_RETURN_STACKADJ_RTX): Do not define.
7833 (EH_RETURN_HANDLER_RTX): Likewise.
7834 (expand_builtin_eh_return): Do not copy stack adjustment
7835 if EH_RETURN_STACKADJ_RTX is not defined.
7836 (expand_eh_return): Likewise. Also, do not pass stack
7837 adjustment as argument to the eh_return pattern.
7838 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Do not define just
7839 because EH_RETURN_STACKADJ_RTX is not defined.
7840 * unwind-dw.c (uw_update_context_1): If EH_RETURN_STACKADJ_RTX
7841 is not defined, treat stack pointer like a regular register.
7842 (uw_init_context_1): Set up fake initial stack pointer register.
7843 (uw_install_context_1): Do not compute stack adjustment if
7844 EH_RETURN_STACKADJ_RTX is not defined.
7845
7846 * config/i386/i386.md ("eh_return"): Remove first argument.
7847 * config/mips/mips.md ("eh_return"): Likewise.
7848 * config/rs6000/rs6000.md ("eh_return"): Likewise.
7849 * config/sh/sh.md ("eh_return"): Likewise.
7850
7851 * config/s390/s390.h (EH_RETURN_STACKADJ_RTX): Remove.
7852
a64d0bc6
AA
78532003-05-10 Alexander Aganichev <aaganichev@yandex.ru>
7854
7855 * config/i386/i386.h (MODES_TIEABLE_P): Fix typo.
7856
9b514d25
NS
78572003-05-10 Nathan Sidwell <nathan@codesourcery.com>
7858
7859 * defaults.h (GCOV_TYPE_SIZE): Remove.
7860 * gcov-io.h (gcov_type): Set to specific mode int on target.
7861 (gcov_unsigned_t, gcov_position_t): New.
7862 (GCOV_TYPE_NODE): New.
7863 (GCOV_TAG_SUMMARY_LENGTH): Adjust.
7864 (GCOV_COUNTERS_SUMMABLE): New.
7865 (gcov_ctr_summary, gcov_sumary, gcov_fn_info, gcov_merge_fn,
7866 gcov_ctr_info, gcov_info): Adjust types.
7867 (gcov_var): Adjust types.
7868 (gcov_write_unsigned, gcov_write_tag,
7869 gcov_write_length, gcov_write_tag_length, gcov_write_summary,
7870 gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
7871 (gcov_position, gcov_sync, gcov_seek): Adjust gcov types.
7872 * gcov-io.c (gcov_write_unsigned, gcov_write_tag,
7873 gcov_write_length, gcov_write_tag_length, gcov_write_summary,
7874 gcov_read_unsigned, gcov_read_summary): Adjust gcov types.
7875 * libgcov.c (gcov_crc32, gcov_version_mismatch, gcov_exit,
7876 __gcov_init, __gcov_merge_add): Adjust gcov types.
7877 * coverage.c (ctr_merge_functions): Constify.
7878 (ctr_names): New.
7879 (read_counts_file): Adjust gcov types. Only summarize & merge
7880 summable counters.
7881 (coverage_counter_ref): Use GCOV_TYPE_NODE.
7882 (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
7883 build_ctr_info_value, build_gcov_info): Adjust types.
7884 * profile.c (branch_prob): Adjust gcov types.
7885 * gcov_dump (dump_file): Adjust gcov types.
7886
03f1640c
RE
78872003-05-10 Richard Earnshaw <rearnsha@arm.com>
7888
59650e48 7889 * arm.md (DOM_CC_X_AND_Y, DOM_CC_NX_OR_Y, DOM_CC_X_OR_Y): New
03f1640c
RE
7890 constants.
7891 (ior_scc_scc, and_scc_scc): New insn_and_split patterns.
59650e48 7892 * arm.c (arm_select_dominance_cc_mode): Renamed from
03f1640c
RE
7893 select_dominance_cc_mode, no-longer static. Use DOM_CC... constants.
7894 Callers updated.
7895 * arm-protos.h (arm_select_dominance_cc_mode): Add prototype.
7896
3ee10665
RS
78972003-05-09 Roger Sayle <roger@eyesopen.com>
7898
7899 * config/alpha/alpha.c (alpha_start_function): Declare frame_size
7900 as unsigned to avoid signed/unsigned comparison warnings.
7901
0bd0703d
BW
79022003-05-09 Bob Wilson <bob.wilson@acm.org>
7903
7904 * config/xtensa/xtensa.c (xtensa_emit_loop_end): Only use "nop.n"
7905 instruction if the Xtensa density option is enabled.
7906
1476c9d9
MK
79072003-05-09 Matt Kraai <kraai@alumni.cmu.edu>
7908
7909 * mklibgcc.in: Remove extra quotes.
7910
36e8d515
MM
79112003-05-09 Mark Mitchell <mark@codesourcery.com>
7912
7913 * config/rs6000/rs6000.c (spe_init_builtins): Fix typo in creation
7914 of int_ftype_void.
7915
f8a30250
AO
79162003-05-09 Alexandre Oliva <aoliva@redhat.com>
7917
7918 * reload1.c (reload_cse_move2add): Don't turn an implicit
7919 truncation into a self-set in the narrow mode.
7920
e912eadf
RE
79212003-05-09 Richard Earnshaw <rearnsha@arm.com>
7922
7923 * arm.md (clzsi2): The CLZ instruction is predicable.
7924
638db43e
BW
79252003-05-09 Bob Wilson <bob.wilson@acm.org>
7926
7927 * config/xtensa/xtensa.c: Formatting.
7928
5675294b
DN
79292003-05-09 Diego Novillo <dnovillo@redhat.com>
7930
7931 * tree-dump.c (dequeue_and_dump): Use CONSTRUCTOR_ELTS,
7932 instead of TREE_OPERAND to access the operand of a
7933 CONSTRUCTOR node.
7934
ec0f4995
DN
79352003-05-09 Diego Novillo <dnovillo@redhat.com>
7936
7937 * tree-dump.c (dequeue_and_dump): CONSTRUCTOR nodes contain only
7938 one operand.
7939
3c4b6438
GDR
79402003-05-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
7941
7942 * toplev.h (warning_with_file_and_line): Don't declare.
7943 (error_with_file_and_line): Likewise.
7944 * diagnostic.c (error_with_file_and_line): Remove.
7945 (warning_with_file_and_line): Likewise.
7946
49468c8b
GDR
79472003-05-09 Gabriel Dos Reis <gdr@integrable-solutions.net>
7948
7949 * c-parse.in (if_stmt_locus): New object.
7950 (if_prefix rule): Use it. Don't use warning_with_file_and_line.
7951 (select_or_iter_stmt rule): Likewise.
7952 (if_stmt_file): Remove.
7953 (if_stmt_line): Likewise.
7954 * jump.c: include "diagnostic.h"
59650e48 7955 (never_reached_warning): Don't use warning_with_file_and_line.
49468c8b
GDR
7956 * Makefile.in (jump.o): Add dependce on diagnostic.h
7957
c6b97fac
AM
79582003-05-09 Alan Modra <amodra@bigpond.net.au>
7959
7960 * expr.c (move_block_from_reg): Remove "size" parm. Localize vars.
7961 Move code handling pieces not larger than a word to..
7962 * function.c (assign_parms): ..here, but use change_address instead
7963 of adjust_address and operand_subword, and expand_binop instead of
7964 expand_shift. Adjust calls to move_block_from_reg.
7965 * expr.h (move_block_from_reg): Update declaration.
7966 (copy_blkmode_from_reg): Formatting.
7967 * Makefile.in (function.o): Add $(OPTABS_H) to deps.
7968 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Adjust
7969 move_block_from_reg calls.
7970 * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
7971 * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
7972 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
7973 * config/m88k/m88k.c (m88k_builtin_saveregsk): Likewise.
7974 * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
7975 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
7976 * config/romp/romp.h (SETUP_INCOMING_VARARGS): Likewise.
7977 * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
7978 * config/sh/sh.c (sh_builtin_saveregs): Likewise.
7979
06d22853
DD
79802003-05-08 DJ Delorie <dj@redhat.com>
7981
7982 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg): Fix
7983 to handle arguments for which MUST_PASS_IN_STACK is true (e.g.,
7984 variable-sized types).
7985 (xstormy16_function_arg): New. Pass them that way too.
7986 * config/stormy16/stormy16-protos.h (xstormy16_function_arg): New.
7987 * config/stormy16/stormy16.h (FUNCTION_ARG): Call it.
7988
d0affb9f
AH
79892003-05-08 Aldy Hernandez <aldyh@redhat.com>
7990
59650e48
ZW
7991 * mklibgcc.in: Use mkinstalldirs when installing multilib
7992 directories.
d0affb9f 7993
ddf8ec7e
R
79942003-05-08 J"orn Rennecke <joern.rennecke@superh.com>
7995
7996 * sh.c (gen_block_redirect, split_branches): Use CODE_FOR_jump_compact
7997 instead of CODE_FOR_jump
7998
67f7893c
GDR
79992003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
8000
8001 * objc/objc-act.c (error_with_ivar): Don't use
59650e48 8002 error_with_file_and_line.
67f7893c
GDR
8003 (warn_with_method): Don't use warning_with_file_and_line.
8004
c8608cd6
GDR
80052003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
8006
8007 * stmt.c (emit_locus): New macro.
8008 (emit_filename): Remove.
8009 (emit_lineno): Likewise.
8010 (struct stmt_status): Replace members x_emit_filename and
8011 x_emit_lineno with x_emit_locus.
8012 (set_file_and_line_for_stmt): Adjust.
67f7893c 8013 (expand_expr_stmt_value): Don't use warning_with_file_and_line.
c8608cd6
GDR
8014 (warn_if_unused_value): Likewise.
8015 (check_seenlabel): Likewise.
8016
95035b6f
GDR
80172003-05-08 Gabriel Dos Reis <gdr@integrable-solutions.net>
8018
8019 * c-decl.c (define_label): Tidy. Don't use any of
8020 error_with_file_and_line or warning_with_file_and_file.
8021 (pending_xref_error): Likewise.
8022 (store_parm_decls): Likewise.
8023 (current_function_prototype_locus): New object. Package from
8024 current_function_prototype_file and current_function_prototype_line.
8025 (start_function): Use it.
8026 (current_function_prototype_file): Remove.
8027 (current_function_prototype_line): Remove;
8028
7dc61d6c
KG
80292003-05-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8030
8031 * builtins.c (readonly_data_expr): New function.
8032 (expand_builtin_memmove): Optimize any rodata source, not just
8033 strings.
8034
044075ac
DM
80352003-05-07 David Mosberger <davidm@hpl.hp.com>
8036
59650e48 8037 * unwind-libunwind.c (_Unwind_FindEnclosingFunction): New.
044075ac 8038
8231b3f9
RH
80392003-05-07 Richard Henderson <rth@redhat.com>
8040
8041 * config/i386/i386.c (ix86_split_long_move): Fix base register
8042 mode for XFmode splits for TARGET_64BIT.
8043
0212907f
RH
80442003-05-07 Richard Henderson <rth@redhat.com>
8045
8046 * sched-ebb.c (schedule_ebb): Supply the correct starting
8047 block number to save_line_notes.
8048
c079e6fe
RH
80492003-05-07 Richard Henderson <rth@redhat.com>
8050
8051 * toplev.c (enum dump_file_index): Swap DFI_ce3, DFI_bbro.
8052 (dump_file): Likewise.
8053
c35b64c2
DM
80542003-05-07 David Mosberger <davidm@hpl.hp.com>
8055
59650e48 8056 * config/ia64/crtbegin.asm (__do_jv_register_classes): Don't
c35b64c2 8057 forget to preserve gp.
59650e48
ZW
8058 * config/ia64/crtend.asm (__do_global_ctors_au): Ditto.
8059
8060 * config/ia64/crtbegin.asm (__do_jv_register_classes): Add missing
8061 .prologue directive.
8062 Use .skip instead of data8 for .bss section to make Intel
8063 Assembler (ias) happy. Minor whitespace fixups. Make "nop 0"
8064 explicit in the .mib bundles and remove the unnecessary stop
8065 bits. Replace local labels with normal labels, to make ias
8066 happy. Don't register __do_global_ctors_aux here, do it in
8067 crtend.asm instead.
8068
8069 * config/ia64/crtend.asm [HAVE_INIT_FINI_ARRAY]: Register
8070 __do_global_ctors_aux in .init_array section instead of
8071 declaring it as a hidden global. Replace local labels with
8072 ordinary labels to make ias happy.
c35b64c2 8073
a944ceb9
RH
80742003-05-07 Richard Henderson <rth@redhat.com>
8075
59650e48
ZW
8076 PR c++/10570
8077 * except.c: Revert 04-01 and 04-02 forced-unwind changes.
8078 * flags.h, toplev.c, doc/invoke.texi: Likewise.
a944ceb9 8079
59650e48
ZW
8080 * unwind-dw2.c (_Unwind_GetCFA): Fix ptr->int conversion warning.
8081 * unwind.inc (_Unwind_DeleteException): Check for null
8082 exception_cleanup.
a944ceb9 8083
59650e48
ZW
8084 * unwind-sjlj.c (_Unwind_SjLj_Resume_or_Rethrow): New.
8085 * unwind.inc (_Unwind_Resume_or_Rethrow): New.
8086 * unwind.h: Declare them.
8087 * libgcc-std.ver (GCC_3.3): Export them.
a944ceb9 8088
9330e977
RH
80892003-05-07 Richard Henderson <rth@redhat.com>
8090
a21d83cd 8091 * unwind-dw2.c (_Unwind_GetCFA): Cast pointer to _Unwind_Ptr,
9330e977
RH
8092 not _Unwind_Word.
8093
046e4e36
ZW
80942003-05-07 Zack Weinberg <zack@codesourcery.com>
8095
8096 * stmt.c (force_label_rtx): New function, based on logic
8097 formerly found in expand_expr.
8098 * expr.h: Prototype it.
8099 * expr.c (expand_expr <LABEL_DECL>): Use force_label_rtx if
8100 appropriate.
8101 * varasm.c (decode_addr_const <LABEL_DECL>): Use force_label_rtx.
8102
8103 * print-tree.c (debug_tree): Free the table after we're done
8104 with it. Use putc.
8105
12850cf2
AH
81062003-05-07 Aldy Hernandez <aldyh@redhat.com>
8107
046e4e36
ZW
8108 * config/rs6000/spe.h: Reverse arguments for __ev_subfw.
8109 Unreverse arguments for __ev_subw.
12850cf2 8110
046e4e36 8111 * config/rs6000/spe.md (evsubfw): Reverse arguments of assembly.
12850cf2 8112
54350d48
NC
81132003-05-07 Nick Clifton <nickc@redhat.com>
8114
8115 * config/stormy16/stormy-abi: Update to include
8116 R_XSTORMY16_FPTR16, R_XSTORMY16_LO16, R_XSTORMY16_HI16 and
8117 R_XSTORMY16_12 relocs.
8118
ffea5d1e
AM
81192003-05-07 Alan Modra <amodra@bigpond.net.au>
8120
8121 * function.c (assign_parms): Correct reversed reg_parm_stack_space
8122 test. Add partial in-regs size to stack_args_size.
8123
da635858
GP
81242003-05-07 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8125
8126 * doc/invoke.texi (Warning Options): Mark -Wmissing-declarations
8127 as a C only option.
8128
474f141e
NS
81292003-05-07 Nathan Sidwell <nathan@codesourcery.com>
8130
8131 * gcov-io.h (GCOV_LOCKED): New #define.
8132 (GCOV_LINKAGE): Make sure it is #defined.
8133 (gcov_write_string, gcov_write_tag, gcov_write_length,
8134 gcov_read_string, gcov_time): Poison in libgcov.
8135 (gcov_seek_end): Remove.
8136 (gcov_write_tag_length, gcov_sync, gcov_rewrite): New.
8137 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
8138 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
8139 GCOV_TAG_SUMMARY_LENGTH): New #defines.
8140 (gcov_write_tag, gcov_write_length): Not in libgcov.
8141 * gcov-io.c (gcov_open): Use GCOV_LOCKED.
8142 (gcov_write_tag, gcov_write_length): Not in libgcov.
8143 (gcov_write_tag_length): New.
8144 (gcov_write_summary): Use gcov_write_tag_length.
8145 * libgcov.c: Always #include gcov-io.h.
8146 (IN_LIBGCOV): -1 for inhibit_libc, +1 otherwise.
8147 (GCOV_LINKAGE): Define to nothing for L_gcov.
8148 (gcov_exit): Replace gcov_write_tag, gcov_write_length with
8149 gcov_write_tag_length. Use gcov_rewrite & gcov_seek.
8150 * gcov.c (read_graph_file): Replace gcov_seek by gcov_sync.
8151 (read_count_file): Likewise.
8152 * gcov-dump.c (dump_file): Likewise.
8153 * coverag.c (read_counts_file): Likewise.
8154
6cbeaa7e
MM
81552003-05-06 Mark Mitchell <mark@codesourcery.com>
8156
8157 PR other/10658
8158 * gcc.c (process_command): Update copyright date.
8159
26979a17
PE
81602003-05-06 Phil Edwards <pme@gcc.gnu.org>
8161
8162 * doc/install.texi (mips-*-*): Add note about libstdc++.
8163
14b56832
DD
81642003-05-06 DJ Delorie <dj@redhat.com>
8165
8166 * config/stormy16/stormy16.c (xstormy16_function_profiler): New.
8167 * config/stormy16/stormy16.h (FUNCTION_PROFILER): Call it.
8168 * config/stormy16/stormy16-protos.h (xstormy16_function_profiler): New.
8169
2c2bc09b
NB
81702003-05-06 <neil@cat.daikokuya.co.uk>
8171
8172 * c-opts.c (COMMAND_LINE_OPTIONS): Reject -Wmissing-prototypes
8173 and -Wstrict-prototypes if C++.
8174
2f3f95e9
AH
81752003-05-06 Aldy Hernandez <aldyh@redhat.com>
8176
046e4e36 8177 * config/rs6000/linuxspe.h: New file.
2f3f95e9 8178
046e4e36 8179 * config.gcc: Add powerpc-*-linux-gnuspe* target.
2f3f95e9 8180
8b689196
RH
81812003-05-06 Richard Henderson <rth@redhat.com>
8182
046e4e36 8183 * unwind-dw2.c (uw_update_context_1): Only set cfa as sp if
8b689196
RH
8184 previous frame didn't save sp. Clear sp for next frame.
8185 (uw_install_context_1): Honor saved sp from frame.
8186
5b0f0db6
RS
81872003-05-06 Richard Sandiford <rsandifo@redhat.com>
8188
8189 * config/mips/mips-protos.h (mips_subword, mips_output_move): Declare.
8190 (mips_move_1word, mips_move_2words): Remove declaration.
8191 (mips_split_64bit_move_p, mips_split_64bit_move): Declare.
8192 (mips_restore_gp): Remove insn argument.
8193 * config/mips/mips.h (FP_REG_RTX_P): New macro.
8194 * config/mips/mips.c (volatile_buffer): Remove.
8195 (mips_subword, mips_split_64bit_move_p, mips_split_64bit_move): New.
8196 (mips_move_1word, mips_move_2words): Remove, replacing with...
8197 (mips_output_move): ...this new function.
8198 (mips_restore_gp): Remove insn argument. Adjust for above changes.
8199 (print_operand): Make '%h' print %hi(op) for HIGH operands. Remove
8200 handling of floating-point constants. Handle zero CONST_DOUBLE
8201 arguments.
8202 (mips_annotate_frame_insn): Replace with...
8203 (mips_set_frame_expr): ...this, which just takes one argument.
8204 (mips_frame_set): Change the register argument to an rtx.
8205 (mips_emit_frame_related_store): Use mips_split_64bit_move_p to
8206 check whether moves should be split. Use mips_split_64bit_move
8207 to split them. Use mips_subword to generate the high and low
8208 parts of a paired FPR. Adjust calls to frame_set and
8209 mips_set_frame_expr.
8210 (mips_expand_prologue): Simplify due to above changes.
8211 * config/mips/mips.md: Add splitters for 64-bit moves on 32-bit
8212 targets, replacing xisting register-only versions.
8213 (UNSPEC_STORE_DF_HIGH): New unspec.
8214 (UNSPEC_LOAD_DF_LOW, UNSPEC_LOAD_DF_HIGH): New unspecs.
8215 (mulsi3_r4000, muldi3_internal2): Avoid use of mips_move_1word.
8216 (*paradoxical_extendhidi2): Remove.
8217 (movdi_internal, movdi_internal2): Use mips_output_move.
8218 (*movdi_internal2_mips16, movsi_internal, movcc): Likewise.
8219 (movsf_internal1, movsf_internal2): Likewise.
8220 (movdf_internal1a): Likewise. Fix length and type of f <- G case.
8221 (movdf_internal1b): Use mips_output_move. Fix type of f <- G case.
8222 (movdf_internal2): Use mips_output_move. Fix lengths of FPR moves.
8223 Add m <- G alternative.
8224 (load_df_low, load_df_high, store_df_low): New patterns.
8225 (movhi_internal): Use @ template instead of calling a function.
8226 Remove unnecessary 'z' alternatives.
8227 (movqi_internal): Likewise.
8228 (exception_receiver): Update call to mips_restore_gp.
8229
e8b84d3d
RS
82302003-05-06 Richard Sandiford <rsandifo@redhat.com>
8231
8232 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Remove.
8233 (mips_delegitimize_address): Declare.
8234 * config/mips/mips.h (ASM_SIMPLIFY_DWARF_ADDR): Undefine.
8235 (FIND_BASE_TERM): Define.
8236 * config/mips/mips.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
8237 (mips_delegitimize_address): Renamed from mips_simplify_dwarf_addr.
8238 Handle small-data addresses.
8239
e82a312b
RS
82402003-05-05 Roger Sayle <roger@eyesopen.com>
8241
8242 * real.c (real_powi): New function to calculate the value of
8243 a real raised to an integer power, i.e. pow(x,n) for int n.
8244 (real_sqrt): Convert to using the faster do_add, do_multiply
8245 and do_divide API for consistency with the rest of real.c.
8246 * real.h (real_powi): Prototype here.
8247 * builtins.c (fold_builtin): Avoid local variable mode when
8248 evaluating sqrt at compile time. Attempt to evaluate pow at
8249 compile-time, by checking for an integral exponent.
8250
905e8651
RH
82512003-05-05 Richard Henderson <rth@redhat.com>
8252
8253 * doc/extend.texi (Variable Attributes): Re-sort table and tidy.
8254
88467101
DB
82552003-05-05 David O'Brien <obrien@FreeBSD.org>
8256
8257 * config/rs6000/sysv4.h (CPP_OS_FREEBSD_SPEC): Add __ELF__ to mirror
8258 other FreeBSD ports.
8259 (LINK_OS_FREEBSD_SPEC): Mirror conventions on other FreeBSD ports.
cb1f476f 8260 (_LITTLE_ENDIAN): Use __LITTLE_ENDIAN__ instead.
88467101 8261
6ccfe27c
JJ
82622003-05-05 Janis Johnson <janis187@us.ibm.com>
8263
8264 * Makefile.in: (site.exp): Add ALT_CC_UNDER_TEST, add quotes around
8265 expanded variables.
8266 * doc/sourcebuild.texi (C tests): Describe gcc.dg/compat tests.
8267
10b6a274
ZW
82682003-05-05 Zack Weinberg <zack@codesourcery.com>
8269
8270 * rtl.h (STRING_POOL_ADDRESS_P): Rename to DEFERRED_CONSTANT_P.
8271 * varasm.c (struct varasm_status): Add deferred_constants field.
8272 (n_deferred_strings): Delete variable.
8273 (n_deferred_constants): New #define.
8274 (struct constant_descriptor_tree): Kill next and label fields.
8275 (const_hash_table, MAX_HASH_TABLE): Delete.
8276 (const_desc_htab): New static variable.
8277 (const_hash): Rename const_desc_hash, and make it fit the
8278 hashtab.h interface.
8279 (const_desc_eq): New.
8280 (const_hash_1, compare_constant): Const-ify arguments.
8281 (build_constant_desc): Set DEFERRED_CONSTANT_P on all new
8282 SYMBOL_REFs. Clarify comments. Don't set desc->label.
8283 (output_constant_def): Do the lookup/insert using the
8284 hashtab.h interface. Don't muck with n_deferred_constants or
8285 DEFERRED_CONSTANT_P here.
8286 Always call maybe_output_constant_def_contents.
8287 (maybe_output_constant_def_contents): Take a pointer to the
8288 descriptor, not the EXP and RTL separately. Return
8289 immediately if this constant is not deferred. Defer output of
8290 everything, except writable string constants. Update
8291 n_deferred_constants here.
8292 (output_constant_def_contents): Now takes just one argument,
8293 an rtx. Clear DEFERRED_CONSTANT_P here.
8294 (mark_constant_pool): Update for rename of n_deferred_strings.
8295 (mark_constant): Don't clear DEFERRED_CONSTANT_P here.
8296
8297 (init_varasm_status): Clear p->deferred_constants.
8298 (init_varasm_once): Call htab_create_ggc for const_desc_htab.
8299
68ef8841
KG
83002003-05-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8301
8302 * builtins.c (expand_builtin_stpcpy): Only expand when the length
8303 of the source string can be evaluated at compile-time.
8304
9938b5d9
AH
83052003-05-05 Aldy Hernandez <aldyh@redhat.com>
8306
10b6a274 8307 * testsuite/gcc.c-torture/compile/simd-6.c: New.
9938b5d9 8308
10b6a274 8309 * c-typeck.c (digest_init): Handle arrays of vector constants.
9938b5d9 8310
e3e9f108
JJ
83112003-05-05 Jakub Jelinek <jakub@redhat.com>
8312
8313 * builtins.c (expand_builtin_mempcpy): New function.
8314 (expand_builtin_stpcpy): Optimize stpcpy whose return value is
8315 ignored into strcpy no matter what arguments it has.
8316 (expand_builtin) <case BUILT_IN_MEMPCPY>: Call
8317 expand_builtin_mempcpy.
8318
6035d635
AH
83192003-05-05 Aldy Hernandez <aldyh@redhat.com>
8320
10b6a274 8321 * testsuite/gcc.dg/20030505.c: New.
6035d635 8322
10b6a274
ZW
8323 * c-typeck.c (convert_for_assignment): Opaque pointers can
8324 interconvert.
6035d635 8325
10b6a274
ZW
8326 * config/rs6000/rs6000.c: New global opaque_p_V2SI_type_node.
8327 (rs6000_init_builtins): Initialize opaque_p_V2SI_type_node.
8328 (spe_init_builtins): Rename all pv2si_type_node to
8329 opaque_p_V2SI_type_node.
8330 Remove declaration of pv2si_type_node.
8331 (is_ev64_opaque_type): Accept opaque pointers.
6035d635 8332
36b29d7d
GK
83332003-05-05 Geoffrey Keating <geoffk@apple.com>
8334
bc9ec0e0
GK
8335 * config/rs6000/rs6000.c (validate_condition_mode): Use
8336 flag_finite_math_only.
8337 (rs6000_reverse_condition): Never return UNKNOWN; use
8338 flag_finite_math_only.
8339 (rs6000_generate_compare): Use flag_finite_math_only.
8340 (rs6000_emit_cmove): Handle UNLE. Support UNEQ under -ffast-math.
8341 Use HONOR_* rather than flag_unsafe_math_optimizations. Correct
10b6a274 8342 UNGE and GT cases. Handle UNEQ and LTGT when ! HONOR_NANS.
bc9ec0e0 8343
36b29d7d
GK
8344 * toplev.c (check_global_declarations): Suppress not-used warning
8345 for volatile variables.
8346
9e5f281f
OH
83472003-05-05 Olivier Hainque <hainque@act-europe.fr>
8348
10b6a274
ZW
8349 * expr.c (expand_expr, case BIT_FIELD_REF): Refine the test forcing
8350 usage of bitfield instructions for mode1 != BLKmode, only ignoring
8351 SLOW_UNALIGNED_ACCESS if the field is not byte aligned.
8352 (store_field): Likewise.
9e5f281f 8353
f5119d10
AH
83542003-05-05 Aldy Hernandez <aldyh@redhat.com>
8355
10b6a274
ZW
8356 * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
8357 evsubifw to builtins accepting 5-bit unsigned constants.
8358 (easy_vector_constant): Return if V1DImode. Fix typo.
f5119d10 8359
25ecd459
AH
83602003-05-05 Aldy Hernandez <aldyh@redhat.com>
8361
10b6a274 8362 * config/rs6000/spe.h: Revert licensing change from last patch.
25ecd459 8363
9be13211
DD
83642003-05-05 DJ Delorie <dj@redhat.com>
8365
8366 * config/stormy16/stormy16.md (negsi2): Allocate the pseudos
8367 before reload, but defer the split until after.
8368 * config/stormy16/stormy16.c (xstormy16_expand_arith): Modify
8369 to match.
8370
2c9d95ef
DE
83712003-05-05 David Edelsohn <edelsohn@gnu.org>
8372
8373 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add 440 support.
8374 * config/rs6000/vxworks.h (CC1_SPEC): Use -mcpu=440 for t440.
8375
1e77e673
ZD
83762003-05-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8377
8378 * libgcov.c (__gcov_merge_add): Do not use gcov_type when inhibit_libc
10b6a274 8379 is defined.
1e77e673 8380
00362064
KG
83812003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8382
8383 * builtin-attrs.def (ATTR_NOTHROW_NONNULL_1,
8384 ATTR_NOTHROW_NONNULL_2, ATTR_NOTHROW_NONNULL_3): Renamed from
8385 ATTR_NONNULL_1, ATTR_NONNULL_2 and ATTR_NONNULL_3.
8386
8387 (ATTR_NOTHROW_NONNULL_1_2, ATTR_NOTHROW_NONNULL_1_4,
8388 ATTR_CONST_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1,
8389 ATTR_PURE_NOTHROW_NONNULL_1_2, ATTR_MALLOC_NOTHROW_NONNULL_1):
8390 New.
8391
8392 * builtins.def (DEF_EXT_FALLBACK_BUILTIN): Accept ATTRS argument.
8393 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Update comment
8394
8395 (BUILT_IN_INDEX, BUILT_IN_RINDEX, BUILT_IN_MEMCPY,
8396 BUILT_IN_MEMMOVE, BUILT_IN_MEMCMP, BUILT_IN_MEMSET,
8397 BUILT_IN_MEMPCPY, BUILT_IN_STRCAT, BUILT_IN_STRNCAT,
8398 BUILT_IN_STPCPY, BUILT_IN_STRCPY, BUILT_IN_STRNCPY,
8399 BUILT_IN_STRCMP, BUILT_IN_STRNCMP, BUILT_IN_STRLEN,
8400 BUILT_IN_STRSTR, BUILT_IN_STRPBRK, BUILT_IN_STRSPN,
8401 BUILT_IN_STRCSPN, BUILT_IN_STRCHR, BUILT_IN_STRRCHR, BUILT_IN_NAN,
8402 BUILT_IN_NANF, BUILT_IN_NANL, BUILT_IN_NANS, BUILT_IN_NANSF,
8403 BUILT_IN_NANSL, BUILT_IN_PUTS, BUILT_IN_FPUTC, BUILT_IN_FPUTS,
8404 BUILT_IN_FWRITE, BUILT_IN_PUTS_UNLOCKED, BUILT_IN_FPUTC_UNLOCKED,
8405 BUILT_IN_FPUTS_UNLOCKED, BUILT_IN_FWRITE_UNLOCKED,
8406 BUILT_IN_STRDUP): Add "nonnull" attribute.
8407
ad26fb41
RK
84082003-05-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8409
c1853da7
RK
8410 * expr.c (store_field): Don't clobber TEMP in shift: it might be
8411 a variable.
8412 (get_inner_reference): Don't go through a VIEW_CONVERT_EXPR
8413 whose purpose is to step up the alignment.
8414 (expand_expr, case ADDR_EXPR): Force LO_SUM into memory, just like REG.
8415
ad26fb41
RK
8416 * stor-layout.c (compute_record_mode): Relax restriction
8417 on fields crossing word boundaries forcing BLKmode.
8418
1fecc266
NB
84192003-05-04 Neil Booth <neil@daikokuya.co.uk>
8420
8421 * cppinit.c (cpp_create_reader, post_options): Warn about
8422 trigraphs unless explicity set or -trigraphs.
8423 * cpplex.c (warn_in_comment): New.
8424 (_cpp_process_line_notes): Better handling of -Wtrigraphs.
8425 (_cpp_skip_block_comment): Add call to _cpp_process_line_notes.
8426 * doc/cppopts.texi, doc/cpp.texi: Update.
8427
09780dfb
ZD
84282003-05-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8429
8430 * Makefile.in (LIBGCOV): Add _gcov_merge_add.
8431 * gcov-io.h: Make GCOV_LINKAGE extern in libgcov and prevent resulting
8432 namespace clash.
8433 (GCOV_MERGE_FUNCTIONS): New.
8434 (gcov_merge_fn): Declare.
8435 (struct gcov_ctr_info): New field "merge".
8436 (__gcov_merge_add): Declare.
8437 * coverage.c (ctr_merge_functions): New.
8438 (build_ctr_info_type, build_ctr_info_value): Initialize merge field
8439 of gcov_ctr_info type.
8440 * libgcov.c (__gcov_merge_add): New.
8441 (gcov_exit): Call a hook to merge values of counters.
8442
c71f2ffd
GDR
84432003-05-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
8444
8445 * toplev.h (pedwarn_with_file_and_line): Don't declare.
8446 * diagnostic.c (pedwarn_with_file_and_line): Remove.
8447
3d885683
GDR
84482003-05-04 Gabriel Dos Reis <gdr@integrable-solutions.net>
8449
8450 * varasm.c (assemble_variable): Don't use error_with_file_and_line.
8451
8c9b38d7
KG
84522003-05-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8453
8454 * builtins.c (expand_builtin_constant_p, expand_builtin_strlen,
8455 expand_builtin_frame_address): Update prototypes.
8456 (expand_builtin_constant_p, expand_builtin_strlen,
8457 expand_builtin_strcpy, expand_builtin_memset,
8458 expand_builtin_bzero, expand_builtin_args_info,
8459 expand_builtin_frame_address): Pass in just the argument(s)
8460 needed, not the entire expression `exp'.
8461 (expand_builtin): Update all calls to these functions.
8462
9c80ff25
RH
84632003-05-03 Richard Henderson <rth@redhat.com>
8464
8465 * builtins.c (expand_builtin) <BUILT_IN_DWARF_FP_REGNUM>: Remove.
8466 <BUILT_IN_DWARF_SP_COLUMN>: New.
8467 * builtins.def (BUILT_IN_DWARF_FP_REGNUM): Remove.
8468 (BUILT_IN_DWARF_SP_COLUMN): New.
8469 * dwarf2out.c (expand_builtin_dwarf_fp_regnum): Remove.
8470 (expand_builtin_dwarf_sp_column): New.
8471 * except.h: Update to match.
8472 * unwind-dw2.c (execute_stack_op): Correct stack push typo.
8473 (execute_cfa_program): Record location expression address
8474 before extracting length.
8475 (uw_update_context_1): Install old CFA into stack pointer column.
8476 (uw_init_context_1): Set cfa_reg to stack pointer column.
8477
4d588c14
RH
84782003-05-03 Richard Henderson <rth@redhat.com>
8479
8480 * config/rs6000/rs6000.c (constant_pool_expr_p): Make static and
8481 return bool.
8482 (toc_relative_expr_p): Likewise.
8483 (SPE_CONST_OFFSET_OK): Move from rs6000.h.
8484 (legitimate_constant_pool_address_p): Move from rs6000.h, change
8485 into a function, downcase all users.
8486 (legitimate_small_data_p): Likewise.
8487 (legitimate_offset_address_p): Likewise.
8488 (legitimate_indexed_address_p): Likewise.
8489 (legitimate_indirect_address_p): Likewise.
8490 (legitimate_lo_sum_address_p): Likewise.
8491 (rs6000_mode_dependent_address): Likewise.
8492 * rs6000.h (CONSTANT_POOL_EXPR_P, TOC_RELATIVE_EXPR_P): Remove.
8493 (SPE_CONST_OFFSET_OK, LEGITIMATE_CONSTANT_POOL_ADDRESS_P,
8494 LEGITIMATE_SMALL_DATA_P, LEGITIMATE_OFFSET_ADDRESS_P,
8495 LEGITIMATE_INDEXED_ADDRESS_P, LEGITIMATE_INDIRECT_ADDRESS_P,
8496 LEGITIMATE_LO_SUM_ADDRESS_P): Move into rs6000.c.
8497 (LEGITIMATE_ADDRESS_INTEGER_P): Remove.
8498 (GO_IF_MODE_DEPENDENT_ADDRESS): Use rs6000_mode_dependent_address.
8499 * config/rs6000/rs6000-protos.h: Update.
8500
8d90f9c0
GK
85012003-05-03 Geoffrey Keating <geoffk@apple.com>
8502
b39358e1
GK
8503 * config/rs6000/rs6000.h (REVERSIBLE_CC_MODE): Define.
8504 (REVERSE_CONDITION): Define.
8505
b7053a3f
GK
8506 * config/rs6000/rs6000.c (scc_comparison_operator): Make equivalent
8507 to branch_positive_comparison_operator.
8508 (ccr_bit): Check that sCOND conditions are actually a positive bit.
8509 (print_operand): Remove %D substitution.
8510 (rs6000_emit_sCOND): Generate complement operation to ensure that
8511 sCOND input is a positive bit.
8512 * config/rs6000/rs6000.md: Rearrange sCOND templates to be in the
8513 same order as bCOND, and add the missing ones. Remove the %D
8514 substitutions from the scc patterns.
8515
8d90f9c0
GK
8516 * simplify-rtx.c (simplify_relational_operation): Add case for
8517 ! (fabs(x) < 0.0).
8518
8882ac3a
BK
85192003-05-03 Bruce Korb <bkorb@gnu.org>
8520
8521 * gcc/fixinc/fixincl.tpl(dne): restore this to force merge conflicts
8522 in fixincl.x
8523 * gcc/fixinc/inclhack.def(bsd_stdio_attrs_conflict): fix placement
8524
bd879e9a
AH
85252003-05-03 Aldy Hernandez <aldyh@redhat.com>
8526
4d588c14 8527 * config/rs6000/spe.h: Remove unecessary casts. Misc cleanups.
bd879e9a 8528
87f85ea0
ZW
85292003-05-03 Zack Weinberg <zack@codesourcery.com>
8530
8531 PR c/10604
8532 * c-common.c (warn_sign_compare): Initialize to -1.
8533 * c-opts.c (c_common_init_options): Don't set warn_sign_compare here.
8534 (c_common_decode_option <OPT_Wall>): Set warn_sign_compare
8535 for C++ only.
8536 (c_common_post_options): Set warn_sign_compare from extra_warnings
8537 if it's still -1 at this point.
8538
8539 * toplev.c (maybe_warn_unused_parameter): New static variable.
8540 (set_Wextra): New static function.
8541 (W_options): Remove "extra".
8542 (decode_W_option): Call set_Wextra.
8543 (independent_decode_option): Likewise.
8544 (set_Wunused): Cooperate with set_Wextra in setting
8545 warn_unused_parameter.
8546 (rest_of_compilation): No need to check extra_warnings as
8547 well as warn_uninitialized.
8548
8549 * c-typeck.c (build_binary_op, build_conditional_expr):
8550 No need to check extra_warnings as well as warn_sign_compare.
8551 (internal_build_compound_expr): No need to check extra_warnings
8552 as well as warn_unused_value.
8553 * function.c (expand_function_end): No need to check extra_warnings
8554 as well as warn_unused_parameter.
8555 * stmt.c (expand_expr_stmt_value): No need to check extra_warnings
8556 as well as warn_unused_value.
8557
8558 * doc/invoke.texi: Clarify documentation of -Wsign-compare.
8559
8560 * Makefile.in: Disable -Werror for gengtype-lex.o.
8561
ee960939
OH
85622003-05-03 Olivier Hainque <hainque@act-europe.fr>
8563
8564 * emit-rtl.c (last_call_insn, add_function_usage_to): New functions.
8565 * rtl.h (last_call_insn, add_function_usage_to): New prototypes.
8566 * builtins.c (expand_builtin_apply): Use the new emit-rtl functions.
8567 * calls.c (emit_call_1): Likewise.
87f85ea0 8568 (expand_call): For calls initializing constant memory, replace
ee960939
OH
8569 emission of standalone mem /u clobber with function usage entry.
8570 * expr.c (emit_block_move_via_libcall): Likewise.
8571 * cse.c (count_reg_usage, case EXPR_LIST): New case.
8572 * flow.c (propagate_one_insn): Pass entire operand of
8573 CALL_INSN_FUNCTION_USAGE to mark_used_regs.
8574 * integrate.c (try_constants): For CALL_INSNs, substitute constants
8575 within the FUNCTION_USAGE also.
8576 * loop.c (prescan_loop): Note clobbers of const mem mentioned in
8577 FUNCTION_USAGE lists.
8578 * reload1.c (replace_pseudos_in): Renamed.
8579 (reload): Use it for clobbers surviving until the end of the reload.
8580
3923e410
RK
85812003-05-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8582
13cf99ec
RK
8583 * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Don't use
8584 gen_lowpart on non-integer modes.
8585
3923e410
RK
8586 * stor-layout.c (place_field): When adjusting offset_align, use
8587 desired_align, not DECL_ALIGN.
8588
070588f0
NS
85892003-05-03 Nathan Sidwell <nathan@codesourcery.com>
8590
8591 * c-decl.c (pending_invalid_xref_file): Remove.
8592 (pending_invalid_xref_line): Remove.
8593 (pending_invalid_xref_location): New.
8594 (lookup_label): Use location_t and input_location directly.
8595 (lookup_tag): Likewise.
8596 (pending_xref_error): Likewise.
8597 (c_expand_body_1): Likewise.
8598 * c-common.c (x_expand_start_cond): Likewise.
8599 * c-semantics.c (genrtl_for_stmt): Likewise.
8600 (find_reachable_label): Likewise.
8601 * expr.c (expand_expr): Likewise.
8602 * integrate.c (output_inline_function): Likewise.
8603 * tree-inline.c (find_alloca_call): Likewise.
8604 (find_builtin_longjmp_call): Likewise.
8605 * gcc.c (input_filename): Make static.
87f85ea0 8606
b259a9a6
RS
86072003-05-03 Richard Sandiford <rsandifo@redhat.com>
8608
969c6c43
RS
8609 * config/mips/mips.md: Fix comment typo.
8610
b259a9a6
RS
8611 * config/mips/mips.c (mips_integer_op): New structure.
8612 (MIPS_MAX_INTEGER_OPS): Define.
8613 (mips_const_insns): Use mips_build_integer to determine the number
8614 of instructions needed to load a CONST_INT.
8615 (move_operand): Reject compound CONST_INTs.
8616 (mips_build_shift, mips_build_lower, mips_build_integer): New fns.
8617 (mips_move_integer): New fn.
8618 (mips_legitimize_const_move): Pass CONST_INTs to mips_move_integer.
8619 (mips_legitimize_move): Only legitimize constants when moving
8620 word or subword values.
8621
28068c2c
MK
86222003-05-02 Matt Kraai <kraai@alumni.cmu.edu>
8623
8624 * Makefile.in (gcov-iov.h): Use move-if-change and a stamp.
8625
685828f7
KG
86262003-05-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8627
8628 * builtins.c (expand_builtin_stpcpy): Copy `arglist' before
8629 modifying it.
8630
d9e95c63
FH
86312003-05-03 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
8632 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8633
8634 * doc/contrib.texi (Contributors): Add Zdenek Dvorak, Aldy
8635 Hernandez, and Kazu Hirata. Update Richard Henderson.
8636
7454096f
GK
86372003-05-02 Geoffrey Keating <geoffk@apple.com>
8638
b86fe7b4
GK
8639 * config/rs6000/rs6000.c (rs6000_attribute_table): Add 'extern'
8640 to tentative declaration.
87f85ea0 8641
20bfcd69
GK
8642 * config/rs6000/sysv4.h (SYMBOL_FLAG_SMALL_V4): Delete.
8643 (SYMBOL_FLAG_SMALL_V4): Delete.
8644 * config/rs6000/rs6000.c (small_data_operand): Use SYMBOL_REF_SMALL_P.
8645 (rs6000_elf_encode_section_info): Don't set SYMBOL_FLAG_SMALL_V4.
8646 (rs6000_elf_in_small_data_p): Add extra section names. Add
8647 comment about TREE_PUBLIC test.
8648
7454096f
GK
8649 * c-semantics.c (genrtl_switch_stmt, genrtl_if_stmt): Call
8650 expand_stmt on result of expand_unreachable_stmt.
8651
3f4a3170
GP
86522003-05-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
8653
8654 * doc/contrib.texi (Contributors): Add Daniel Berlin.
8655
473f51b6
DE
86562003-05-02 David Edelsohn <edelsohn@gnu.org>
8657
8658 * config/rs6000/{603.md,6xx.md,7450.md,7xx.md,rs64.md}: Decrease
8659 number of automata.
8660
8661 * config/rs6000/rs6000.c (symbol_ref_operand): Check
8662 SYMBOL_REF_FUNCTION_P on AIX.
8663 (current_file_function_operand): Same.
8664 * config/rs6000/rs6000.md (call,call_value): Force non-function
8665 symbol_ref into register on AIX.
8666
e7949876
AM
86672003-05-02 Alan Modra <amodra@bigpond.net.au>
8668
8669 * calls.c (struct arg_data): Move offset, slot_offset, size and
8670 alignment_pad to struct locate_and_pad_arg_data. Update all refs.
8671 (initialize_argument_information): Adjust call to locate_and_pad_parm.
8672 Delete alignment_pad var. Don't calculate slot_offset here.
8673 (emit_library_call_value_1): Delete alignment_pad, offset and size
8674 vars. Use struct locate_and_pad_arg_data instead. Adjust refs.
8675 Adjust call to locate_and_pad_parm. Don't tweak arg size for
8676 partial in-regs here. Formatting fixes.
8677 * expr.h (struct locate_and_pad_arg_data): New struct.
8678 (locate_and_pad_parm): Adjust declaration.
8679 * function.c (assign_parms): Localize vars. Use "locate" instead of
8680 other arg location vars. Don't invoke FUNCTION_ARG or
8681 FUNCTION_INCOMING_ARG unless pretend_named is different from
8682 named_arg. Heed MUST_PASS_IN_STACK and set up "partial" before
8683 calling locate_and_pad_parm. Adjust locate_and_pad_parm call.
8684 Use slot_offset for stack home of reg parms. Correct test for
8685 parm passed in memory. Formatting fixes.
8686 (locate_and_pad_parm): Add "partial" to params. Replace offset_ptr
8687 arg_size_ptr and alignment pad with "locate". Set slot_offset here.
8688 Correct initial_offset_ptr handling. Localize vars. Always pad
8689 locate->offset even when in_regs.
8690
6060edcb
NS
86912003-05-02 Nathan Sidwell <nathan@codesourcery.com>
8692
8693 * Makefile.in (TREE_H): Replace location.h with input.h.
8694 (GTFILES) Remove location.h
8695 (gt-lists.h): Replace gt-location.h with gt-input.h
8696 * input.h (input_filename, input_line): Remove variables.
8697 (location_s, location_t): Move from location.h.
8698 (input_location): New.
8699 (input_filename, input_line): New #defines.
8700 * location.h: Remove.
8701 * tree.h: Replace location.h with input.h.
8702 (input_filename, input_line): Remove.
8703 * diagnostic.h: Replace location.h with input.h.
8704 * gcc.h (input_filename, input_filename_length): Remove declarations.
8705 * toplev.c (input_filename, input_line): Remove.
8706 (input_location): Define.
8707 (push_srcloc, pop_srcloc): Adjust.
8708 * diagnostic.c (diagnostic_report_current_module): Adjust.
8709
f8000836
NC
87102003-05-02 Nick Clifton <nickc@redhat.com>
8711
8712 * configure.in: Add xstormy16 to list of targets that has a nop
8713 instruction and hence which can be tested to see if the
8714 assembler supports the --gdwarf2 switch.
8715 * configure: Regenerate.
8716
409f52d3 87172003-05-01 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
87f85ea0
ZW
8718
8719 PR target/8257
8720 * config/alpha/alpha.c (alpha_sa_mask, alpha_expand_prologue,
8721 alpha_start_function, alpha_expand_epilogue, unicosmk_gen_dsib):
8722 Avoid undefined shifts by making the shift operand unsigned.
8723
57458e8a
DD
87242003-05-01 DJ Delorie <dj@redhat.com>
8725
8726 * reload.c (find_reloads): Also check that all of a multi-reg
8727 value is in the class.
8728
774cb6d1
NS
87292003-05-01 Nathan Sidwell <nathan@codesourcery.com>
8730
8731 * scan.h (lineno): Revert the rename here.
8732
e1a4211d
SS
87332003-05-01 Stan Shebs <shebs@apple.com>
8734
8735 * config/darwin.c (darwin_encode_section_info): Call
8736 default_encode_section_info.
8737
02ca7595
DE
87382003-05-01 David Edelsohn <edelsohn@gnu.org>
8739
8740 * config/rs6000/rs6000.md (define_attr "type"): Add mfjmpr.
8741 (movsi_internal1): Use new mfjmpr attribute.
8742 (movhi_internal): Same.
8743 (movqi_internal): Same.
8744 (movcc_internal1): Same.
8745 (movdi_internal64): Same.
8746 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
8747 power4.md,rios1.md,rios2.md,rs64.md}: Add mfjmpr.
8748 * config/rs6000/40x.md: Add fpu_405.
8749 * config/rs6000/power4.md: Merge power4lsu and power4disp automata
8750 into power4misc automata. Remove extraneous parentheses.
8751 * config/rs6000/440.md: New file.
8752 * config/rs6000/rs6000.c (processor_target_table): Add 440,
8753 440fp. Rename 405f to 405fp.
8754 (function_arg_padding): Correct formatting.
8755 (rs6000_rtx_costs): Add PROCESSOR_PPC440 cases.
8756
3b895f8e
NS
87572003-05-01 Nathan Sidwell <nathan@codesourcery.com>
8758
d479d37f
NS
8759 * input.h (lineno): Rename to ...
8760 (input_line): ... here.
8761 * tree.h (lineno): Rename to ...
8762 (input_line): ... here.
8763 * scan.h (lineno): Rename to ...
8764 (input_line): ... here.
8765 * toplev.c (lineno): Rename to ...
8766 (input_line): ... here.
8767 (push_srcloc, pop_srcloc): Rename lineno to input_line.
8768 * c-common.c (c_expand_start_cond, fname_decl): Likewise.
8769 * c-decl.c (poplevel, pop_label_level, lookup_label, lookup_tag,
8770 store_parm_decls, c_expand_body_1): Likewise.
8771 * c-errors.c (pedwarn_c99): Likewise.
8772 * c-format.c (status_warning): Likewise.
8773 * c-lex.c (fe_file_change, cb_def_pragma, c_lex): Likewise.
8774 * c-opts.c (c_common_post_options, c_common_parse_file): Likewise.
8775 * c-parse.in (save_filename, maybe_type_qual, ifc): Likwise.
8776 * c-semantics.c (finish_stmt_tree, build_stmt, emit_local_var,
8777 gentrtl_goto_stmt, genrtl_expr_stmt_value, genrtl_decl_stmt,
8778 genrtl_if_stmt, genrtl_while_stmt, genrtl_do_stmt,
8779 genrtl_return_stmt, genrtl_for_stmt, build_break_stmt,
8780 build_continue_stmt, genrtl_switch_stmt, genrtl_asm_stmt,
8781 prep_stmt, find_reachable_label, expand_unreachable_stmt): Likewise.
8782 * coverage.c (create_coverage): Likewise.
8783 * diagnostic.c (pedwarn, sorry, error, fatal_error,
8784 internal_error, warning, diagnostic_report_current_module,
8785 inform): Likewise.
8786 * expr.c (expand_expr): Likewise.
8787 * integrate.c (expand_inline_function,
8788 output_inline_function): Likewise.
8789 * rtl-error.c (file_and_line_for_asm): Likewise.
8790 * tree-inline.c (find_alloca_call, find_builtin_longjmp_call,
8791 walk_tree): Likewise.
8792 * tree.c (make_node): Likewise.
8793 * ada, cp, f, java, objc, treelang: Likewise.
8794 * objc/objc-act.c (objc_init): Rename lineno to input_line.
8795 (build_module_descriptor, build_selector_translation_table,
8796 build_protocol_template, build_method_prototype_list_template,
8797 build_category_template, build_selector_table,
8798 build_class_template, build_super_template, build_ivar_template,
8799 build_ivar_list_template, build_method_list_template,
8800 build_method_template, add_instance_variable): Likewise.
8801
3b895f8e
NS
8802 * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Change parameter
8803 name from input_filename.
8804
cafe096b
EC
88052003-04-30 Eric Christopher <echristo@redhat.com>
8806 Richard Sandiford <rsandifo@redhat.com>
8807
8808 * configure: Regenerate from patches below.
8809 * combine.c (gen_lowpart_for_combine): Fix comment and add tests
8810 for all symbolic operands.
8811 * config/mips/mips.c: Migrate RTX_COSTS and CONST_COSTS
8812 to function.
8813 * config/mips/linux.h: Fix typo.
8814 * Merge from mips-3_4-rewrite branch:
8815
8816 2003-04-07 Richard Sandiford <rsandifo@redhat.com>
8817
87f85ea0
ZW
8818 * config/mips/mips.c (mips_classify_symbol): Add catch-all case for
8819 handling local labels when TARGET_ABICALLS.
cafe096b
EC
8820
8821 2003-04-04 Richard Sandiford <rsandifo@redhat.com>
8822
87f85ea0
ZW
8823 * config/mips/mips-protos.h (mips_expand_epilogue): Add an
8824 integer argument.
8825 (mips_expand_call): Likewise.
8826 * config/mips/mips.h (TARGET_SIBCALLS): New macro.
8827 (FIXED_REGISTERS): Clear $31 entry.
8828 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTER): Likewise.
8829 (EPILOGUE_USES): Define.
8830 * config/mips/mips.c (mips_function_ok_for_sibcall): New function.
8831 (TARGET_FUNCTION_OK_FOR_SIBCALL): Use it.
8832 (override_options): Add a 'j' register class.
8833 (mips_expand_call): Handle sibcalls
8834 (mips_expand_epilogue): Handle epilogues for sibcalls.
8835 * config/mips/mips.md (epilogue): Adjust call to mips_expand_epilogue.
8836 (sibcall_epilogue): New pattern.
8837 (call, call_value): Adjust calls to mips_expand_call.
8838 (sibcall, sibcall_value): New expanders.
8839 (sibcall_internal, sibcall_value_internal): New patterns.
8840 (sibcall_value_multiple_internal): New pattern.
cafe096b
EC
8841
8842 2003-03-25 Richard Sandiford <rsandifo@redhat.com>
8843
87f85ea0
ZW
8844 * config/mips/mips.md (extended_mips16): New attribute.
8845 (define_attr length): Default to 8 if extended_mips16 == yes.
8846 (truncdisi2): Set extended_mips16 to yes for the sll alternative.
8847 (truncdihi2, truncdiqi2, *extendsidi2): Likewise.
8848 (call_internal): Set extended_mips16 to yes for direct jumps.
8849 Remove redundant mode attribute.
8850 (call_value_internal, call_value_multiple_internal): Likewise.
8851 (call_split): Remove redundant mode attribute.
8852 (call_value_split, call_value_multiple_split): Likewise.
cafe096b 8853
87f85ea0
ZW
8854 * config/mips/mips.c (mips_symbol_insns): Rework. Fix handling
8855 of unaligned offsets.
cafe096b 8856
0d569849 8857 * config/mips/mips.c (mips_splittable_symbol_p): Fix handling
87f85ea0 8858 of SYMBOL_GENERAL.
cafe096b
EC
8859
8860 2003-03-22 Richard Sandiford <rsandifo@redhat.com>
8861
87f85ea0
ZW
8862 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS): Add commentary.
8863 * config/mips/mips.c (override_options): Disable -mexplicit-relocs
8864 for mips16 code.
cafe096b
EC
8865
8866 2003-03-22 Richard Sandiford <rsandifo@redhat.com>
8867
87f85ea0 8868 * config/mips/mips.h (ADDRESS_COST): Define.
cafe096b
EC
8869
8870 2003-03-20 Richard Sandiford <rsandifo@redhat.com>
8871
87f85ea0
ZW
8872 * config/mips/mips.h (EXTRA_CONSTRAINT): Give existing meaning of
8873 'R' to 'U'. Make 'R' mean a single-instruction memory reference.
8874 * config/mips/mips.md: Replace 'R' constraints with 'U'.
cafe096b
EC
8875
8876 2003-03-18 Richard Sandiford <rsandifo@redhat.com>
8877
87f85ea0
ZW
8878 * config/mips/mips.md (truncdisi2): Add commentary. Use sll instead
8879 of a two-instruction sequence. Add register->memory alternative.
8880 (truncdihi2, truncdiqi2): Likewise.
8881 Rework shift/truncate instructions so that they only handle right
8882 shifts of 32 (or more, in the case of arithmetic shifts).
8883 Add patterns for truncate/sign-extend.
cafe096b
EC
8884
8885 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
8886
87f85ea0
ZW
8887 * configure.in (mips*-*-*): Check for explicit relocation support.
8888 * configure: Regenerate.
cafe096b
EC
8889
8890 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
8891
87f85ea0
ZW
8892 * config/mips/mips.h (TARGET_SWITCHES): Add -mexplicit-relocs
8893 and -mno-explicit-relocs.
8894 (MASK_EXPLICIT_RELOCS): Define.
8895 (TARGET_EXPLICIT_RELOCS): Use it.
8896 (mips_split_addresses): Remove declaration.
8897 * config/mips/mips.c (override_options): Update comment for
8898 mips_split_addresses. Clear MASK_EXPLICIT_RELOCS for non-PIC n64.
cafe096b
EC
8899
8900 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
8901
87f85ea0
ZW
8902 * combine.c (gen_lowpart_for_combine): Treat the lowpart Pmode of
8903 a CONST as identity. Check the return value of gen_lowpart_common.
cafe096b
EC
8904
8905 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
8906
87f85ea0
ZW
8907 * config/mips/mips.c (mips_legitimize_symbol): Handle small data
8908 references for TARGET_EXPLICIT_RELOCS.
8909 (mips_reloc_string): Return "%gp_rel(" for RELOC_GPREL16 if
8910 !TARGET_MIPS16.
cafe096b
EC
8911
8912 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
8913
87f85ea0
ZW
8914 * config/mips/mips.md: Replace 'IQ' mips16 constraints with just 'Q'.
8915 (addsi3): Remove redundant constraints.
8916 (addsi3_internal): Use separate register & constant alternatives.
8917 Use a 'Q' constraint and "addiu" insn for the latter.
8918 (adddi3_internal_3, addsi3_internal_2): Likewise.
cafe096b
EC
8919
8920 2003-03-13 Richard Sandiford <rsandifo@redhat.com>
8921
87f85ea0
ZW
8922 * config/mips/mips-protos.h (mips_expand_unaligned_load): Declare.
8923 (mips_expand_unaligned_store): Declare.
8924 * config/mips/mips.c (mips_get_unaligned_mem): New fn.
8925 (mips_expand_unaligned_load, mips_expand_unaligned_store): New fns.
8926 * config/mips/mips.md (UNSPEC_ULW, UNSPEC_USW): Remove.
8927 (UNSPEC_ULD, UNSPEC_USD): Remove.
8928 (UNSPEC_LWL, UNSPEC_LWR, UNSPEC_SWL, UNSPEC_SWR): New.
8929 (UNSPEC_LDL, UNSPEC_LDR, UNSPEC_SDL, UNSPEC_SDR): New.
8930 (extv, extzv): Use mips_expand_unaligned_load.
8931 (insv): Use mips_expand_unaligned_store. Use a reg_or_0_operand
8932 predicate for operand 3.
8933 (movsi_ulw, movsi_usw): Replace with...
8934 (mov_lwl, mov_lwr, mov_swl, move_swr): ...these new insns.
8935 (movdi_uld, movdi_usd): Likewise replace with...
8936 (mov_ldl, mov_ldr, mov_sdl, move_sdr): ...these insns.
cafe096b
EC
8937
8938 2003-02-26 Richard Sandiford <rsandifo@redhat.com>
8939
87f85ea0
ZW
8940 * config/mips/mips-protos.h (mips_global_pic_constant_p): Declare.
8941 * config/mips/mips.h (LEA_REGS): New register class.
8942 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add entries for it.
8943 (GR_REG_CLASS_P): Include LEA_REGS.
8944 (DANGEROUS_FOR_LA25_P): New macro.
8945 (EXTRA_CONSTRAINT): Add !DANGEROUS_FOR_LA25_P to R's condition.
8946 Add a T constraint for the DANGEROUS_FOR_LA25_P case.
8947 * config/mips/mips.c (mips_regno_to_class): Change GR_REGS
8948 entries to LEA_REGS.
8949 (mips_global_pic_constant_p): New function.
8950 (override_options): Add 'e' register constraint.
8951 (mips_secondary_reload_class): Return LEA_REGS when reloading
8952 a dangerous constant into a class containing $25.
8953 * config/mips/mips.md (movdi_internal2): Add an e <- T alternative.
8954 (movsi_internal): Likewise.
cafe096b
EC
8955
8956 2003-02-23 Richard Sandiford <rsandifo@redhat.com>
8957
87f85ea0
ZW
8958 * config/mips/mips.h (TARGET_SPLIT_CALLS): New macro.
8959 * config/mips/mips.md (call_split): New insn.
8960 (call_value_split, call_value_multiple_split): New insns.
8961 (call_internal): Turn into a define_insn_and_split. Split the
8962 instruction into a call and $gp load if TARGET_SPLIT_CALLS.
8963 (call_value_internal, call_value_multiple_internal): Likewise.
cafe096b
EC
8964
8965 2003-02-23 Richard Sandiford <rsandifo@redhat.com>
8966
87f85ea0
ZW
8967 * config/mips/mips.c (mips_reloc_string): Return "%got(" for
8968 RELOC_GOT_PAGE and RELOC_GOT_DISP if !TARGET_NEWABI.
8969 (mips_encode_section_info): Don't take symbol visibility into
8970 account if TARGET_ABICALLS. Add more commentary.
8971 * config/mips/mips.md: Add commentary above reloc constants.
cafe096b
EC
8972
8973 2003-02-12 Richard Sandiford <rsandifo@redhat.com>
8974
87f85ea0
ZW
8975 * config/mips/mips.c (mips_legitimize_const_move): New, extracted
8976 from mips_legitimize_move. Legitimize constant pool references.
8977 (mips_legitimize_move): Call mips_legitimize_const_move. Attach
8978 a REG_EQUAL note to the last instruction.
cafe096b
EC
8979
8980 2003-02-11 Richard Sandiford <rsandifo@redhat.com>
8981
87f85ea0
ZW
8982 * config/mips/mips-protos.h (mips_simplify_dwarf_addr): Declare.
8983 * config/mips/mips.h (TARGET_EXPLICIT_RELOCS, TARGET_NEWABI): New.
8984 (ASM_SIMPLIFY_DWARF_ADDR): Define to mips_simplify_dwarf_addr.
8985 (EXTRA_CONSTRAINT): Allow symbolic call addresses for TARGET_ABICALLS.
8986 * config/mips/mips.md (UNSPEC_HIGH): New constant.
8987 (UNSPEC_RELOC_GPREL16): Rename to...
8988 (RELOC_GPREL16): ...this.
8989 (RELOC_GOT_HI, RELOC_GOT_LO, RELOC_GOT_PAGE, RELOC_GOT_DISP): New.
8990 (RELOC_CALL16, RELOC_CALL_HI, RELOC_CALL_LO): New.
8991 (macro_calls): New attribute.
8992 (length): Use it to set the default length of calls. Don't allow
8993 calls to have delay slots if macro_calls is "yes".
8994 (luisi, luidi): New patterns.
8995 (lowsi, lowdi): Use '%R' to print the relocation.
8996 (lowdi_extend): Remove.
8997 (loadgp): Remove mode from operand 0. Use '%0' instead of '%a0'.
8998 (call_internal): Merge alternatives. Always use "jal".
8999 (call_value_internal, call_value_multiple_internal): Likewise.
9000 (reloc_gprel16): Remove.
9001 * config/mips/mips.c (mips_got_alias_set): New variable.
9002 (mips_classify_constant): Handle the new relocation constants.
9003 (mips_classify_symbol): Reverse the sense of SYMBOL_REF_FLAG for PIC.
9004 (mips_symbolic_address_p): Return false if generating explicit relocs.
9005 Otherwise allow local PIC symbols to have an offset.
9006 (mips_splittable_symbol_p): New function.
9007 (mips_classify_address): Use it to check whether a LO_SUM is valid.
9008 (mips_const_insns): Always accept HIGH.
9009 (call_insn_operand): Don't accept global symbols if using explicit
9010 relocs.
9011 (move_operand): Don't accept HIGH when generating PIC.
9012 (mips_reloc, mips_lui_reloc): New functions.
9013 (mips_force_temporary): Remove MODE argument. Expect VALUE to
9014 be a valid right-hand-side for a SET pattern.
9015 (mips_load_got, mips_load_got16, mips_load_got32): New functions.
9016 (mips_emit_high): New function.
9017 (mips_legitimize_symbol): Use mips_reloc for the mips16 gp-relative
9018 case. Use mips_splittable_symbol_p to check whether a LO_SUM
9019 address should be used. Use mips_emit_high to generate the
9020 high part of such an address. Adjust the global symbol + offset
9021 case to match the change to mips_force_temprorary.
9022 (mips_legitimize_move): Shuffle call to mips_legitimize_symbol.
9023 If generating explicit-reloc PIC, load the address of global
9024 symbols from the GOT. Use mips_emit_high to emit the high part
9025 of an address.
9026 (mips_simplify_dwarf_addr): New function.
9027 (mips_move_1word): Use lwc1 instead of l.s and swc1 instead of s.s.
9028 (mips_move_2words): Likewise ldc1/l.d and sdc1/s.d if TARGET_64BIT.
9029 (mips_expand_call): Load the addresses of global functions using
9030 %call* relocs if generating explicit-reloc PIC. Don't generate
9031 an exception_receiver pattern.
9032 (override_options): Initialize mips_got_alias_set.
6356f892 9033 (print_relocation): Remove in favor of...
87f85ea0
ZW
9034 (mips_reloc_string): ...this new function.
9035 (print_operand): Handle '%R'. Use mips_reloc_string.
9036 (print_operand_address): Use print_operand to print the symbolic
9037 part of a LO_SUM address.
9038 (mips_output_function_prologue): Use .cprestore, reverting last patch.
9039 (mips_encode_section_info): Factor out DECL_RTL accesses. Reverse
9040 sense of SYMBOL_REF_FLAG for PIC, using binds_local_p to check
9041 for local symbols.
cafe096b
EC
9042
9043 2003-02-02 Eric Christopher <echristo@redhat.com>
9044
0d569849 9045 * config/mips/mips.c (mips_sign_extend): Remove.
87f85ea0
ZW
9046 * config/mips/mips-protos.h: Ditto.
9047 * config/mips/mips.md (movdi_internal2_extend): Remove.
9048 (extendsidi2): Fix mode of convert_memory_address.
cafe096b
EC
9049
9050 2003-01-24 Eric Christopher <echristo@redhat.com>
9051
87f85ea0
ZW
9052 * config/mips/mips.md: Rewrite zero_extend* and extend*
9053 patterns. Use explicit instructions and split after reload
9054 for register extensions.
9055 (ashlsi3_internal1_extend): New combiner pattern for
9056 shift and extend combinations.
9057 * config/mips/mips.h: Change Pmode back to ptr_mode
9058 for performance enhancement.
9059 * combine.c (expand_compound_operation): Make sure
9060 that zero_extend operation is profitable.
cafe096b
EC
9061
9062 2003-01-14 Richard Sandiford <rsandifo@redhat.com>
9063
87f85ea0
ZW
9064 * config/mips/mips.h (TRAMPOLINE_TEMPLATE): Make size of stored
9065 addresses depend on ptr_mode rather than Pmode.
9066 (TRAMPOLINE_SIZE, TRAMPOLINE_ALIGNMENT): Update acoordingly.
9067 (INITIALIZE_TRAMPOLINE): Rework to handle Pmode != ptr_mode.
9068 (CASE_VECTOR_MODE): Use ptr_mode for !TARGET_MIPS16.
9069 (ASM_OUTPUT_ADDR_VEC_ELT): Update accordingly.
9070 * config/mips/mips.md (tablejump): Likewise. Remove Pmode
9071 condition for selecting cpaddsi or cpadddi: use cpadd instead.
9072 (tablejump_internal1): Remove condition.
9073 (tablejump_internal2): Change condition to TARGET_64BIT.
9074 (cpaddsi): Rename to...
9075 (cpadd): ...this.
9076 (cpadddi): Remove.
cafe096b
EC
9077
9078 2003-01-09 Richard Sandiford <rsandifo@redhat.com>
9079
87f85ea0
ZW
9080 * config/mips/mips-protos.h (mips16_constant_after_function_p,
9081 mips_address_cost, mips_check_split, double_memory_operand,
9082 mips16_gp_offset, mips16_gp_offset_p, mips16_constant,
9083 pic_address_needs_scratch, symbolic_operand): Remove declarations.
9084 (mips_legitimate_address_p): Return bool.
9085 (mips_address_insns, mips_fetch_insns, mips_const_insns,
9086 mips_legitimize_address, mips_legitimize_move,
9087 mips_expand_call): Declare.
9088 (mips_return_addr): Move outside #ifdef RTX_CODE.
9089
9090 * config/mips/mips.h (ABI_HAS_64BIT_SYMBOLS): New macro.
9091 (PIC_FN_ADDR_REG): New reg_class.
9092 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add corresponding entries.
9093 (GR_REG_CLASS_P): True for PIC_FN_ADDR_REG.
9094 (SMALL_OPERAND, SMALL_OPERAND_UNSIGNED, LUI_OPERAND,
9095 CONST_HIGH_PART, CONST_LOW_PART, LUI_INT): New macros.
9096 (SMALL_INT, SMALL_INT_UNSIGNED, CONST_OK_FOR_LETTER_P): Use new macros.
9097 (EXTRA_CONSTRAINTS): Give new meanings to Q, R and S.
9098 (CONSTANT_ADDRESS_P): Use mips_legitimate_address_p.
9099 (LEGITIMATE_PIC_OPERAND): Undefine.
9100 (LEGITIMATE_CONSTANT_P): Use mips_const_insns.
9101 (LEGITIMIZE_ADDRESS): Use mips_legitimize_address.
9102 (CONSTANT_AFTER_FUNCTION_P): Remove definition in #if 0 block.
9103 (FUNCTION_MODE): Change to SImode.
9104 (CONST_COSTS): Use mips_const_insns to calculate the cost of
9105 most constants. Treat const_artih_operands specially if they
9106 occur in a PLUS or MINUS.
9107 (CONSTANT_POOL_COST): New macro.
9108 (RTX_COSTS): Use mips_address_insns for MEMs, with a base cost of 2.
9109 Add LO_SUM handling.
9110 (ADDRESS_COST): Undefine.
9111 (PREDICATE_CODES): Add symbolic_operand and const_arith_operand.
9112 Add CONST to the list of codes for arith_operand. Add LABEL_REF
9113 to call_insn_operand and remove CONST_INT.
9114
9115 * config/mips/mips.c: Include integrate.h.
9116 (SINGLE_WORD_MODE_P): New macro.
9117 (mips_constant_type, mips_symbol_type, mips_address_type): New enums.
9118 (mips_constant_info, mips_address_info): New structs.
9119 (mips_regno_to_class): Map $25 to PIC_FN_ADDR_REG.
9120 (mips_classify_constant, mips_classify_symbol,
9121 mips_valid_base_register_p, mips_symbolic_address_p,
9122 mips_classify_address, mips_symbol_insns,
9123 mips16_unextended_reference_p, mips_address_insns, mips_const_insns,
9124 mips_fetch_insns, mips_force_temporary, mips_add_offset,
9125 mips_legitimize_symbol, mips_legitimize_address, mips_legitimize_move,
9126 mips_print_relocation): New functions.
9127 (const_arith_operand): New operand predicate.
9128 (arith_operand): Use it.
9129 (mips_const_double_ok, mips16_simple_memory_operand,
9130 simple_memory_operand, double_memory_operand, mips_check_split,
9131 mips_address_cost, pic_address_needs_scratch, mips16_gp_offset,
9132 mips16_gp_offset_p, mips16_output_gp_offset,
0d569849 9133 mips16_constant_after_function_p, mips16_constant): Remove.
87f85ea0
ZW
9134 (call_insn_operand): Be more fussy about symbolic constants.
9135 Use register_operand.
9136 (move_operand): Use mips_symbolic_address_p to check symbolic
9137 operands and general_operand to check the rest.
9138 (symbolic_operand): Use mips_classify_constant.
9139 (mips_legitimate_address_p): Use mips_classify_address.
9140 (mips_move_1word): Combine handling of symbolic addresses.
9141 Remove special treatment of gp-relative loads for TARGET_MIPS16.
9142 (move_move_2words): Likewise. Assume addresses are offsettable
9143 if they need to refer to more than one word. Add HIGH handling.
9144 (mips_restore_gp): Use ptr_mode for the GP save slot.
9145 (mips_expand_call): New function, combining the old mips.md
9146 call and call_internal define_expands. If the address isn't
9147 a call_insn_operand, force it into a register. For SVR4 PIC,
9148 emit an exception_receiver instruction after the call.
9149 (override_options): Only override flag_pic for TARGET_ABICALLS
9150 if it is currently zero. Allow mips_split_addresses when
9151 Pmode == DImode too, except when ABI_HAS_64BIT_SYMBOLS.
9152 Add new register class letter, 'c'.
9153 (print_operand): Use mips_classify_constant for constant operands.
9154 (print_operand_address): Use mips_classify_address.
9155 (mips_output_function_prologue): Don't use .cprestore.
9156 (mips_expand_epilogue): For TARGET_MIPS16, only adjust the stack
9157 via the frame pointer if current_function_calls_eh_return.
9158 (mips_encode_section_info): For TARGET_ABICALLS, use SYMBOL_REF_FLAG
9159 to mark whether a symbol is local or global.
9160 (build_mips16_call_stub): Expect the address of the function rather
9161 than a MEM reference to it. Update call generation sequences.
9162 (mips16_optimize_gp): Remove Pmode checks. Temporarily disable
9163 small-data adjustments.
9164
9165 * config/mips/mips.md: Remove 'R'/'m' memory distinction. Use default
9166 length for loads and stores.
9167 (UNSPEC_CPADD, UNSPEC_RELOC_GPREL16): New constants.
9168 (define_attr type): Add const and prefetch.
9169 (define_attr length): Use mips_const_insns for const instructions.
9170 Use mips_fetch_insns for load and store instructions.
9171 (define_attr single_insn): New.
9172 (define_attr can_delay): Use it.
9173 (define_attr abicalls): Remove.
9174 (define_delay): Use can_delay. Always allow calls to have delay slots.
9175 (addsi3_internal_2): Add 'Q' constraint.
9176 (movsi_ulw, movsi_usw, movdi_uld, movdi_usd): Set length to 8.
9177 (high): Remove.
9178 (lowsi): Renamed from low.
9179 (lowdi): New pattern.
9180 (movdi, movsi): Use mips_legitimize_move. Remove define_split.
9181 (lwxc1, ldxc1, swxc1, sdxc1): Set length to 4.
9182 (loadgp): Change operand 0 to an immediate_operand.
9183 (tablejump): Use the same patterns for SVR4 PIC but emit a cpadd
9184 beforehand.
9185 (cpaddsi, cpadddi): New patterns.
9186 (tablejump_internal3, tablejump_internal4): Remove define_expands
9187 and associated define_splits.
9188 (call, call_value): Use mips_expand_call.
9189 (call_internal): New, replacing all existing call_internal* insns.
9190 (call_value_internal): Likewise call_value_internal*.
9191 (call_value_multiple_internal): Likewise call_value_multiple_internal*.
9192 (untyped_call): Remove if (operands[0]) magic.
9193 (prefetch_si_address, prefetch_si): Change type to "prefetch".
9194 (prefetch_di_address, prefetch_di): Likewise.
9195 (leasi, leadi): Remove.
9196 (reloc_gprel16): New.
9197
9198 * config/mips/5400.md (ir_vr54_hilo): Include const type.
9199 * config/mips/5500.md (ir_vr55_hilo): Likewise.
9200 * config/mips/sr71k.md (ir_sr70_hilo): Likewise.
cafe096b
EC
9201
9202 2003-01-08 Eric Christopher <echristo@redhat.com>
9203
87f85ea0
ZW
9204 * config.gcc (mipsisa32*): Change ABI_MEABI to ABI_EABI.
9205 * config/mips/elf.h (STARTFILE_SPEC): Remove ABI_MEABI references and
9206 configure check for libgloss.
9207 * config/mips/elf64.h: Ditto.
9208 * config/mips/mips.c: Remove ABI_MEABI.
9209 * config/mips/mips.h: Ditto.
cafe096b
EC
9210
9211 2002-11-05 Richard Sandiford <rsandifo@redhat.com>
9212
87f85ea0
ZW
9213 Fix merge fallout.
9214 * config/mips/mips.md (mul_acc_si): Reapply 2002-10-16 change.
9215 (muldi3_internal): Remove outdated comment.
9216 (*muls_di, *umuls_di): Fix comment and 64-bitness.
9217 (*smsac_di, *umsac_di): Likewise. Reformat.
9218 (umulsi3_highpart): Minor formatting tweaks.
9219 (umulsi3_highpart_internal): Use only if !ISA_HAS_MULHI. Remove
9220 redundant scratch operand. Minor formatting tweak.
9221 (umulsi3_highpart_mulhi_internal): Use for !TARGET_64BIT as well.
9222 (umulsi3_highpart_neg_mulhi_internal): Likewise. Fix asm template.
9223 (smulsi3_highpart): As for the unsigned version.
9224 (smulsi3_highpart_internal): Likewise.
9225 (smulsi3_highpart_mulhi_internal): Likewise.
9226 (smulsi3_highpart_neg_mulhi_internal): Likewise.
9227 (smuldi3_highpart, umuldi3_highpart): Minor formatting tweaks.
9228 (*smul_acc_di): Remove duplicated pattern.
9229 (*umul_acc_di, *smul_acc_di): Reapply 2002-10-16 change.
9230 (anddi3) [unnamed mips16 pattern]: Remove reintroduced length.
9231 (zero_extendsidi2_internal2): Remove new, but commented-out pattern.
cafe096b
EC
9232
9233 2002-10-22 Eric Christopher <echristo@redhat.com>
9234
87f85ea0
ZW
9235 * config/mips/mips-protos.h (mips_return_addr): New.
9236 * config/mips/mips.c (mips_return_addr): New.
9237 (movdi_operand): Remove.
9238 (se_register_operand): Ditto.
9239 (se_reg_or_0_operand): Ditto.
9240 (se_uns_arith_operand): Ditto.
9241 (se_arith_operand): Ditto.
9242 (se_nonmemory_operand): Ditto.
9243 (extend_operator): Ditto.
9244 (highpart_shift_operator): Ditto.
9245 (mips_initial_elimination_offset): Remove return address pointer
9246 elimination.
9247 (mips_reg_names): Remove $ra.
9248 (mips_regno_to_class): Ditto.
9249 * config/mips/mips.h (POINTER_SIZE): Define based on TARGET_LONG64
9250 and TARGET_64BIT.
9251 (POINTER_BOUNDARY): Remove.
9252 (POINTERS_EXTEND_UNSIGNED): Define to 0.
9253 (PROMOTE_MODE): Promote to Pmode.
9254 (SHORT_IMMEDIATES_SIGN_EXTEND): Define.
9255 (Pmode): Define to TARGET_64BIT.
9256 (FUNCTION_MODE): Define as Pmode.
9257 (mips_args): Remove deleted functions.
9258 (SIZE_TYPE): Depend on POINTER_SIZE.
9259 (PTRDIFF_TYPE): Ditto.
9260 (FIXED_REGISTERS): Fix extra registers.
9261 (CALL_USED_REGISTERS): Ditto.
9262 (CALL_REALLY_USED_REGISTERS): Ditto.
9263 (RAP_REG_NUM): Remove.
9264 (RETURN_ADDRESS_POINTER_REGNUM): Ditto.
9265 (RETURN_ADDR_RTX): Define to mips_return_addr.
9266 (ELIMINABLE_REGS): Remove RETURN_ADDRESS_POINTER_REGNUM.
9267 (CAN_ELIMINATE): Ditto.
9268 * config/mips/mips.md: For DImode patterns, take into account
9269 deletions above. Split mulsidi patterns into sign_extend and
9270 zero_extend.
cafe096b
EC
9271
9272 2002-10-16 Richard Sandiford <rsandifo@redhat.com>
87f85ea0
ZW
9273 Michael Meissner <meissner@redhat.com>
9274
9275 * config/mips/mips.h (ISA_HAS_MACC): True for normal-mode vr4120 code.
9276 * config/mips/mips.md (mulsi3_mult3): Add a define_peephole2 to
9277 mop up unnecessarly moves through LO.
9278 (*mul_acc_si): Remove vr5400 and vr5500 handling from here.
9279 (*macc): New pattern for ISA_HAS_MACC. Add define_peephole2s to
9280 change mtlo/macc sequences into mul/add sequences when a three-
9281 address mul is available.
9282 (*macc2): New pattern. Add a define_peephole2 to generate it.
9283 (*mul_sub_si): Fix contraint for operand 5.
9284 (*muls): Use in 32-bit code as well.
9285 (*msac): Likewise. Use msub instead of msac in vr5500 code
9286 if the destination is LO. Remove duplicate define_split.
9287 (*muls_di): Use only in 32-bit code. Adjust rtl accordingly.
9288 (*msac_di): Likewise. Fix formatting.
9289 (smulsi3_highpart, umulsi3_highpart): Use mulhi in 32-bit code too.
9290 (*xmulsi3_highpart_internal): Use only if !ISA_HAS_MULHI.
9291 (*xmulsi3_highpart_mulhi): Use even if !TARGET_64BIT.
9292 (*xmulsi3_neg_highpart_mulhi): Likewise.
9293 (*mul_acc_64bit_di): Remove.
9294 (*mul_acc_di): Use only in 32-bit code. Handle ISA_HAS_MACC as well.
cafe096b
EC
9295
9296 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
9297
87f85ea0
ZW
9298 * config/mips/vr.h (DRIVER_SELF_SPECS): Define.
9299 * config/mips/t-vr (MULTILIB_OPTIONS): Remove mlong32.
9300 (MULTILIB_DIRNAMES): Remove long32.
9301 (MULTILIB_EXCEPTIONS): Don't build -mabi=32 -mgp32 multilibs.
9302 (MULTILIB_REDUNDANT_DIRS): Remove.
cafe096b
EC
9303
9304 2002-10-14 Richard Sandiford <rsandifo@redhat.com>
9305
87f85ea0
ZW
9306 * doc/tm.texi (DRIVER_SELF_SPECS): Document.
9307 * gcc.c (driver_self_specs): New variable.
9308 (do_self_spec): New function.
9309 (main): Use it to process driver_self_specs.
cafe096b
EC
9310
9311 2002-10-09 Richard Sandiford <rsandifo@redhat.com>
9312
87f85ea0
ZW
9313 * config/mips/mips.md (one_cmpldi2): Use only if TARGET_64BIT.
9314 Remove DImode define_split for !TARGET_64BIT.
9315 (anddi3): Remove !TARGET_64BIT support from here as well.
9316 Change operand 2's predicate to se_uns_arith_operand.
9317 Add constant alternatives to define_insn.
9318 (iordi3, xordi3, *nordi3): Likewise.
9319 (anddi3_internal1, xordi3_immed): Remove.
cafe096b
EC
9320
9321 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
9322
87f85ea0
ZW
9323 * config/mips/mips.h (PROCESSOR_R4121): Rename to PROCESSOR_R4120.
9324 (TARGET_MIPS4121): Rename to TARGET_MIPS4120.
9325 * config/mips/mips.c (mips_cpu_info): Rename vr4121 to vr4120.
9326 * config/mips/mips.md: Apply same renaming here.
cafe096b
EC
9327
9328 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
9329
87f85ea0
ZW
9330 * config/mips/mips.c (PROCESSOR_R4320, TARGET_MIPS4320): Remove.
9331 (GENERATE_MULT3_SI): Remove use of TARGET_MIPS4320.
9332 * config/mips/mips.c (mips_cpu_info): Remove vr4320 entry.
9333 * config/mips/mips.md (define_attr cpu): Remove r4320.
9334 Remove vr4320 scheduler and uses of TARGET_MIPS4320.
cafe096b
EC
9335
9336 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
9337
87f85ea0
ZW
9338 * config/mips/mips.c (mips16_strings): New variable.
9339 (mips_output_function_epilogue): Clear the SYMBOL_REF_FLAG of every
9340 symbol in mips16_strings. Free the list.
9341 (mips_encode_section_info): Keep track of local strings.
cafe096b
EC
9342
9343 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
9344
87f85ea0
ZW
9345 * config/mips/mips.md (bunge, bltgt, bungt): New define_expands.
9346 (sordered_df, sordered_sf): Remove.
9347 * config/mips/mips.c (get_float_compare_codes): New fn.
9348 (gen_int_relational, gen_conditional_move): Use it.
cafe096b
EC
9349
9350 2002-10-01 Richard Sandiford <rsandifo@redhat.com>
9351
87f85ea0
ZW
9352 * config/mips/mips-protos.h (mips_emit_fcc_reload): Declare.
9353 * config/mips/mips.h (PREDICATE_CODES): Add fcc_register_operand.
9354 * config/mips/mips.c (fcc_register_operand): New function.
9355 (mips_emit_fcc_reload): New function, extracted from reload_incc.
9356 (override_options): Allow TFmode values in float registers
9357 if ISA_HAS_8CC.
9358 * cnfig/mips/mips.md (reload_incc): Change destination prediate
9359 to fcc_register_operand. Remove misleading source constraint.
9360 Use mips_emit_fcc_reload.
0d569849 9361 (reload_outcc): Duplicate reload_incc.
cafe096b
EC
9362
9363
44c8a5f8
DN
93642003-04-30 Diego Novillo <dnovillo@redhat.com>
9365
9366 * builtins.def (BUILTIN_CONSTANT_P): Mark as constant.
9367
5d638f70
GK
93682003-04-30 Geoffrey Keating <geoffk@apple.com>
9369
9370 * tree-inline.c (inlinable_function_p): Back out last change, it's
9371 unnecessary.
9372
5e26df64
SB
93732003-04-30 Steven Bosscher <steven@gcc.gnu.org>
9374
9375 * ggc-page.c (TREE_EXP_SIZE): Define.
9376 (extra_order_size_table): New entry for expr trees with
9377 two operands.
9378
fba020b1
GDR
93792003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
9380
9381 * c-common.c (if_elt): Use location_t in lieu of "file, line" pair.
9382 (c_expand_start_cond): Adjust.
9383 (c_expand_end_cond): Don't use warning_with_file_and_file.
9384 (shadow_warning): Likewise.
9385
62216ea0
NS
93862003-04-30 Nathan Sidwell <nathan@codesourcery.com>
9387
9388 * tree.h (DECL_POINTER_DEPTH): Remove.
9389 (struct tree_decl): Remove pointer_depth.
cafe096b 9390
d1908feb
JJ
93912003-04-30 Janis Johnson <janis187@us.ibm.com>
9392
9393 * config/rs6000/linux64.h (ASM_OUTPUT_LABELREF): Remove.
9394 * config/rs6000/rs6000.c (rs6000_elf_strip_name_encoding): Remove.
9395 (rs6000_xcoff_encode_section_info): Remove.
9396 (current_file_function_operand): Use SYMBOL_REF_FLAGS; fix latent bug.
9397 (rs6000_output_mi_thunk): Remove dead code; use SYMBOL_REF_FLAGS.
9398 (small_data_operand, rs6000_emit_move, rs6000_elf_in_small_data_p,):
9399 Use SYMBOL_REF_FLAGS.
9400 (rs6000_elf_encode_section_info): Call default_encode_section_info for
9401 generic flags, use SYMBOL_REF_FLAGS; code cleanups.
9402 * sysv4.h (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
9403 (SYMBOL_FLAG_SMALL_V4, SYMBOL_REF_SMALL_V4_P): New.
9404 * xcoff.h (TARGET_ENCODE_SECTION_INFO): Remove.
9405 (ASM_DECLARE_FUNCTION_NAME): Remove setting of SYMBOL_REF_FLAG.
9406
0e42348d
GDR
94072003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
9408
9409 * diagnostic.c (output_pointer): Use HOST_PTR_PRINTF.
9410
dad78426
AS
94112003-04-30 Andreas Schwab <schwab@suse.de>
9412
9413 * doc/extend.texi (Other Builtins): Enclose multiple word data
9414 type in braces for @deftypefn.
9415
4c80872c
RK
94162003-04-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9417
5826955d
RK
9418 * stor-layout.c (mode_for_size_tree): Use BLKmode if SIZE overflows.
9419
4c80872c
RK
9420 * doc/install.texi (--enable-threads): Document "gnat" option.
9421
10256cf5
GDR
94222003-04-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
9423
9424 * diagnostic.h (output_formatted_scalar): Tweak.
9425 * diagnostic.c (output_long_decimal): Likewise.
9426 (output_unsigned_decimal): Likewise.
9427 (output_long_unsigned_decimal): Likewise.
9428 (output_octal): Likewise.
9429 (output_long_octal): Likewise.
9430 (output_hexadecimal): Likewise.
9431 (output_long_hexadecimal): Likewise.
9432 (output_pointer): New function.
9433 (output_format): Use it. Recognize "%p" format specifier.
9434
b2a7fa89
ZD
94352003-04-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9436
9437 * function.c (purge_addressof_1): Postpone insn in fewer cases.
9438
a6fdc086
GK
94392003-04-29 Geoffrey Keating <geoffk@apple.com>
9440
505b0fd6
GK
9441 * config/rs6000/host-darwin.c (segv_handler): When -dH is used,
9442 call abort() after running out of stack space.
9443
a6fdc086
GK
9444 * c-typeck.c (function_types_compatible_p): Ignore incompatible
9445 'volatile' qualifiers on a function's return type in GNU mode.
9446
9c0631a7
AH
94472003-04-29 Aldy Hernandez <aldyh@redhat.com>
9448
87f85ea0
ZW
9449 * expr.c (emit_group_load): Dump parallels of simd types to
9450 memory.
9c0631a7 9451
74719742
VM
94522003-04-29 Vladimir Makarov <vmakarov@redhat.com>
9453
9454 * genautomata.c (add_vect): Check undefined value for range type
9455 too.
9456
baade80b
PE
94572003-04-29 Phil Edwards <pme@gcc.gnu.org>
9458
9459 * configure.in: More general test for cmp --ignore-initial.
9460 * configure: Regenerate.
9461
84d8756d
RK
94622003-04-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9463
0384674e
RK
9464 * stor-layout.c (mode_for_size_tree): Use tree_low_cst.
9465 (layout_decl, place_field): Likewise.
9466 Also make minor type and whitespace changes.
9467
84d8756d
RK
9468 * tree.c (save_expr): Don't fold a COMPONENT_REF.
9469
0219237c
OH
94702003-04-29 Olivier Hainque <hainque@act-europe.fr>
9471
9472 * calls.c (expand_call): When modes of target and valreg match, force
9473 sibcall failure when target is a MEM.
9474
b9538b2e
GK
94752003-04-29 Geoffrey Keating <geoffk@apple.com>
9476
b3d627e2
GK
9477 * tree-inline.c (inlinable_function_p): Don't support inlining
9478 functions using varargs.
9479
f4ddb75b
GK
9480 * doc/invoke.texi (Overall Options): Mention -x objective-c-header.
9481
0366359a
GK
9482 * dwarf2out.c (output_call_frame_info): No need to output EH
9483 unwind information if all_throwers_are_sibcalls.
9484
e55614ca
GK
9485 * c-semantics.c (expand_unreachable_stmt): Return a tree.
9486 (expand_stmt): Update for change to expand_unreachable_stmt.
9487 (expand_unreachable_if_stmt): Likewise.
9488
b9538b2e
GK
9489 * Makefile.in (quickstrap): Pass BOOT_CFLAGS to submake.
9490
72e940d2
JM
94912003-04-29 Jason Merrill <jason@redhat.com>
9492
9493 PR middle-end/10336
cafe096b 9494 * jump.c (never_reached_warning): Really stop looking if we reach
72e940d2
JM
9495 the beginning of the function.
9496
9193479f
BW
94972003-04-29 Bob Wilson <bob.wilson@acm.org>
9498
9499 * config/xtensa/elf.h (SIZE_TYPE, PTRDIFF_TYPE, USER_LABEL_PREFIX):
9500 Remove redundant macros.
9501 (WCHAR_TYPE, WCHAR_TYPE_SIZE): Change to "short unsigned int".
9502 (LOCAL_LABEL_PREFIX): Define unconditionally.
9503 (NO_DOT_IN_LABEL): Clarify comment.
9504 * config/xtensa/linux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Add explicit
9505 definition to "long int".
9506
b0501ec1
AK
95072003-04-29 Alexander Kabaev <kan@FreeBSD.ORG>
9508
9509 bootstrap/10452
9510 * gengtype-yacc.y: Improve portability.
9511
8e720e8b
ZW
95122003-04-29 Zack Weinberg <zack@codesourcery.com>
9513
9514 * config.gcc: Install obsolete target list for GCC 3.3.
9515 * doc/install.texi: Mention in specific-target instructions
9516 that certain configurations are deprecated.
9517
1be3f80f
ZW
95182003-04-29 Zack Weinberg <zack@codesourcery.com>
9519
9520 * tree.h: Delete no-checking definition of CST_OR_CONSTRUCTOR_CHECK.
9521
8e854b76
KL
95222003-04-29 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
9523
9524 * c-pragma.c (maybe_apply_renaming_pragma): Fix typo.
9525 * gcc.c (display_help): Likewise.
9526 * toplev.c (f_options): Likewise.
9527 * params.def (PARAM_MAX_INLINE_SCOPE): Likewise.
9528 * config/c4x/c4x.h (TARGET_SWITCHES): Likewise.
9529 * config/mcore/mcore.h (TARGET_SWITCHES): Likewise.
9530 * config/s390/s390.h (TARGET_SWITCHES): Likewise.
9531 * config/v850/v850.h (TARGET_SWITCHES): Likewise.
9532
267594f3
R
95332003-04-29 J"orn Rennecke <joern.rennecke@superh.com>
9534
9535 * varasm.c (default_assemble_visibility): Use assemble_name.
9536
667b43dd
DB
95372003-04-29 David O'Brien <obrien@FreeBSD.org>
9538
9539 * config/i386/freebsd64.h (LINK_SPEC): Mirror FreeBSD linker.
5b51b1f5
DB
9540 * config/rs6000/freebsd.h (LINK_SHLIB_SPEC): New macro.
9541 (SIZE_TYPE): New macro.
fbf17dab
DB
9542 * config/i386/freebsd-aout.h (NO_PROFILE_COUNTERS): New macro.
9543 (SET_ASM_OP): New macro.
9544 (HANDLE_SYSV_PRAGMA): New macro.
9545 (ASM_WEAKEN_LABEL): New macro.
667b43dd 9546
a833faa5
MM
95472003-04-28 Mark Mitchell <mark@codesourcery.com>
9548
9549 PR c++/10180
9550 * tree-inline.c (expand_call_inline): Call push_srcloc when
9551 encountering EXPR_WITH_FILE_LOCATION. Honor warn_inline.
9552
a72bf3e9
MS
95532003-04-28 Mike Stump <mrs@apple.com>
9554
9555 * gdbinit.in: Update to reflect new identifier structure.
9556
0864034e
ZW
95572003-04-28 Zack Weinberg <zack@codesourcery.com>
9558
9559 * tree.h (TREE_CST_RTL, CST_OR_CONSTRUCTOR_CHECK): Delete.
9560 (struct tree_int_cst, struct tree_real_cst, struct tree_string,
9561 struct tree_complex, struct tree_vector): Remove RTL field.
9562 (CONSTRUCTOR_ELTS): Use elt 0.
9563 * tree.def (CONSTRUCTOR): Delete first of its two operands.
9564 * varasm.c (output_constant_def): Remove early exit if
9565 TREE_CST_RTL is set. Don't set TREE_CST_RTL.
9566 (decode_addr_const): Don't mention TREE_CST_RTL in comment.
9567 * target.h (select_section): Don't mention TREE_CST_RTL in comment.
9568 * doc/tm.texi (encode_section_info): Don't talk about TREE_CST_RTL.
9569
9661b15f
JJ
95702003-04-28 Jakub Jelinek <jakub@redhat.com>
9571
9572 * c-decl.c (finish_decl): When prototype with asmspec is found
9573 for built-in, adjust built_in_decls as well as expr.c decls.
9574 * expr.c (init_block_move_fn, init_block_clear_fn): New functions.
9575 (emit_block_move_libcall_fn, clear_storage_libcall_fn): Use it.
9576 * expr.c (init_block_move_fn, init_block_clear_fn): New prototypes.
9577
8707fe93
RH
95782003-04-28 Richard Henderson <rth@redhat.com>
9579
0864034e
ZW
9580 * config/sparc/sparc.c (print_operand): Add 's' to sign-extend.
9581 * config/sparc/sparc.md (const_mulsidi3_v8plus): Fix mode of
9582 integral constant mult operand.
9583 (const_mulsidi3_sp32, const_mulsidi3_sp64): Likewise.
9584 (const_smulsi3_highpart_v8plus): Likewise.
9585 (const_smulsi3_highpart): Likewise.
9586 (const_umulsidi3_sp32): Likewise; sign-extend it in the output.
9587 (const_umulsidi3_sp64, const_umulsidi3_v8plus): Likewise.
9588 (const_umulsi3_highpart_v8plus): Likewise.
9589 (const_umulsi3_highpart): Likewise.
8707fe93 9590
ff4cb2e7
DB
95912003-04-28 David O'Brien <obrien@FreeBSD.org>
9592
9593 * config/i386/x86-64.h (NO_PROFILE_COUNTERS, HAVE_AS_DWARF2_DEBUG_LINE):
9594 Define as 1.
9595
495d8dd6
DB
95962003-04-28 David O'Brien <obrien@FreeBSD.org>
9597
9598 * config/i386/i386.h (builtin_define): Add __amd64 and __amd64__.
9599
e31603c4
JJ
96002003-04-28 Jakub Jelinek <jakub@redhat.com>
9601
9602 * builtins.def (BUILT_IN_BCOPY, BUILT_IN_MEMMOVE): New.
9603 * builtin-types.def (BT_FN_VOID_CONST_PTR_PTR_SIZE): New.
9604 * builtins.c (expand_builtin_memmove, expand_builtin_bcopy): New
9605 functions.
9606 (expand_builtin): Handle BUILT_IN_BCOPY and BUILT_IN_MEMMOVE.
9607
dbe983a8
NC
96082003-04-28 Nick Clifton <nickc@redhat.com>
9609
9610 * config/arm/elf.h (ASM_OUTPUT_ALIGNED_COMMON): Remove definition.
9611
afc6aaab
ZW
96122003-04-27 Zack Weinberg <zack@codesourcery.com>
9613
9614 * expr.c (expand_expr <COMPLEX_CST, STRING_CST>): Always call
9615 output_constant_def, use its result instead of TREE_CST_RTL (exp).
9616 Can assume it has the form (mem (symbol_ref ".LCxxx")).
9617 (expand_expr <COMPONENT_REF>): Can always just extract the
9618 relevant field of a CONSTRUCTOR.
9619 (expand_expr <ARRAY_REF, COMPONENT_REF, BIT_FIELD_REF,
9620 ARRAY_RANGE_REF>): Make control flow explicit.
9621 * varasm.c (output_constant_def): Can look at TREE_CST_RTL of
9622 an INTEGER_CST.
9623
860992e6
KH
96242003-04-27 Kazu Hirata <kazu@cs.umass.edu>
9625
9626 * reload1.c (reg_set_luid): Fix a comment typo.
9627
32a61907
ZW
96282003-04-27 Zack Weinberg <zack@codesourcery.com>
9629
9630 * varasm.c (const_str_htab_hash, const_str_htab_eq, STRHASH,
9631 struct deferred_string, const_str_htab): Kill.
9632 (n_deferred_strings): New static variable.
9633 (build_constant_desc): Set SYMBOL_REF_DECL of the new
9634 symbol_ref to point to the constant.
9635 (output_constant_def): When a deferred string is forced out,
9636 just clear STRING_POOL_ADDRESS_P and decrement n_deferred_strings.
9637 (mark_constant): Likewise.
9638 (maybe_output_constant_def_contents): When deferring a string
9639 constant, just set STRING_POOL_ADDRESS_P and increment
9640 n_deferred_strings.
9641 (mark_constant_pool): Check n_deferred_strings, not the size
9642 of const_str_htab.
9643 (init_varasm_once): No need to create const_str_htab.
9644
9645 * rtl.def, rtl.h, doc/rtl.texi: Document possibility that
9646 SYMBOL_REF_DECL points to a constant.
9647
293107d1
ZW
96482003-04-26 Zack Weinberg <zack@codesourcery.com>
9649
9650 * varasm.c (output_constant_def): Split out two new static
9651 functions, build_constant_desc and maybe_output_constant_def_contents.
9652 Restructure for comprehensibility. Don't call
9653 output_addressed_constants. Treat defstr being non-NULL for
9654 STRING_POOL_ADDRESS_P constants as an invariant.
9655 (struct deferred_string): Remove labelno field.
9656 (output_constant_def_contents): Kill labelno argument. Call
9657 output_addressed_constants here. Use ASM_OUTPUT_LABEL, not
9658 asm_out.internal_label.
9659 (mark_constant): Update call to output_constant_def_contents.
9660 Treat defstr being non-NULL for STRING_POOL_ADDRESS_P
9661 constants as an invariant.
9662
12969f45
RH
96632003-04-26 Richard Henderson <rth@redhat.com>
9664
9665 * config/i386/i386.c (output_pic_addr_const): Use SYMBOL_REF_LOCAL_P.
9666 (ix86_expand_call, ix86_rtx_consts): Likewise.
9667
5cc2f4f3
KG
96682003-04-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9669
9670 * doc/md.texi (cmpstr): Document additional restrictions.
9671
09b04f2d
NB
96722003-04-26 Neil Booth <neil@daikokuya.co.uk>
9673
9674 * flags.h (time_report): Remove.
9675 * timevar.c (timevar_enable): New.
9676 (TIMEVAR_ENABLE): Remove, use timevar_enable.
9677 (timevar_init): Rename from init_timevar.
9678 * timevar.h (timevar_init): Rename from init_timevar.
9679 * toplev.c (time_report): Make static.
9680 (do_compile): Conditionally call init_timevar first.
9681 (preprocess_options): Move some code to do_compile.
9682
3e35d143
SC
96832003-04-26 Stephane Carrez <stcarrez@nerim.fr>
9684
9685 * doc/install.texi (Binaries): Mention binaries for HC11/HC12.
9686
e6dc0cc6
NB
96872003-04-26 Neil Booth <neil@daikokuya.co.uk>
9688
9689 * _cpp_lex_direct: Remove pointless code.
9690
5936c7e7
SC
96912003-04-26 Stephane Carrez <stcarrez@nerim.fr>
9692
9693 * doc/extend.texi (Function Attributes): Document "near" and "far"
9694 for 68HC11 and 68HC12.
9695
85a43a2f
RK
96962003-04-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9697
9698 * expr.c (store_field): When making temporary for store, don't
9699 make it TYPE_QUAL_CONST.
9700
09e4ab56
PE
97012003-04-25 Phil Edwards <pme@gcc.gnu.org>
9702
9703 * toplev.c (read_integral_parameter): Use "argument" in error
9704 message to distinguish it from actual invalid options.
9705
ab409f1b
BW
97062003-04-25 Bob Wilson <bob.wilson@acm.org>
9707
9708 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Back out previous
9709 addition of __PIC__ and __pic__ macros.
9710 * config/xtensa/xtensa.h: Clean up indentation.
9711
6a2b287f
BW
97122003-04-25 Bob Wilson <bob.wilson@acm.org>
9713
9714 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Remove definition of
9715 _GNU_SOURCE. Add definitions of __PIC__ and __pic__.
9716 (SUBTARGET_CPP_SPEC): Define.
9717 (LIB_SPEC): Delete.
9718 * config/xtensa/xtensa-protos.h (xtensa_declare_object): Delete.
9719 * config/xtensa/xtensa.c (xtensa_declare_object): Delete.
9720 * config/xtensa/xtensa.h (CPP_SPEC, SUBTARGET_CPP_SPEC, EXTRA_SPECS):
9721 Define.
9722 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
9723 (ASM_OUTPUT_ALIGNED_BSS, BSS_SECTION_ASM_OP): Define.
9724
60986d64
L
97252003-04-25 H.J. Lu <hjl@gnu.org>
9726
9727 * config/ia64/ia64.c (ia64_expand_compare_and_swap): Add rmode
9728 for return mode.
9729 (ia64_expand_builtin): Set rmode to SImode for
9730 IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_SI,
9731 IA64_BUILTIN_VAL_COMPARE_AND_SWAP_SI and
9732 IA64_BUILTIN_BOOL_COMPARE_AND_SWAP_DI. Set remode to DImode
9733 for IA64_BUILTIN_VAL_COMPARE_AND_SWAP_DI.
9734
c7a5cf61
PE
97352003-04-25 Phil Edwards <pme@gcc.gnu.org>
9736
9737 * configure.in (make_compare_target): Test for GNU cmp and set this
9738 variable appropriately.
9739 * Makefile.in (compare, compare3, compare4, compare-lean, compare3-lean,
9740 compare4-lean): Rename actual targets to slowcompare*. New compare*
9741 targets depend on names based on make_compare_target.
9742 * configure: Regenerated.
9743
f5bdba44
RH
97442003-04-25 Richard Henderson <rth@redhat.com>
9745
9746 * config/ia64/ia64.c (ia64_compute_frame_size): Allow inline asm
9747 to clobber ar.pfs and ar.unat.
9748 (ia64_expand_prologue): Force alloc instruction if ar.pfs saved;
9749 fix test for spilling ar.pfs to the stack.
9750
97512003-04-25 Richard Henderson <rth@redhat.com>
8f4e6caf 9752
293107d1
ZW
9753 PR opt/10315
9754 * config/rs6000/rs6000.c (rs6000_emit_move): Only elide proper
9755 checks during reload; use validize_mem instead of adjust_address.
8f4e6caf 9756
eda833e3
BE
97572003-04-26 Ben Elliston <bje@wasabisystems.com>
9758
9759 * config/arm/arm.c (arm_adjust_cost): Correct logic that tests the
9760 return values from recog_memoized().
9761
9feff114
JDA
97622003-04-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9763
9764 PR opt/8705
9765 * gcse.c (try_replace_reg): On a successful substitution of a constant
9766 into a single set, try to simplify the source of the set.
9767 * loop.c (scan_loop): Don't try to optimize a MODE_CC set with a
9768 constant source.
9769
59325650
NB
97702003-04-24 Neil Booth <neil@daikokuya.co.uk>
9771
9772 * cpplex.c (cpp_token_len): Tighten up.
9773 (cpp_token_as_text): Need extra byte now.
9774 * cpplib.c (glue_header_name): Need extra 2 bytes.
9775 * cppmacro.c (cpp_macro_definition): Need extra byte.
9776
b746b8cb
AK
97772003-04-24 Alexander Kabaev <kan@FreeBSD.ORG>
9778
9779 * config/sparc/sparc.md (umulsidi3, mulsidi3): Avoid using
293107d1 9780 const_umulsidi3_sp32 and const_mulsidi3_sp32 on 64bit targets
b746b8cb
AK
9781 where they might be not present. Use their _sp64 equivalent
9782 instead.
9783
019238b7
JH
9784Thu Apr 24 20:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
9785
9786 * i386.md (cvtsi2sdq): Fix typo in previous patch.
293107d1 9787
39f6c4c8
KW
97882003-04-24 Krister Walfridsson <cato@df.lth.se>
9789
9790 * configure.in: Check whether mbstowcs works.
9791 * configure, config.in: Regenerate.
9792 * intl.c: Use HAVE_WORKING_MBSTOWCS.
9793
0c79f08b
L
97942003-04-24 H.J. Lu <hjl@gnu.org>
9795
9796 * config/ia64/ia64.c (ia64_init_builtins): Add si_ftype_pdi_di_di
9797 for __sync_bool_compare_and_swap_di for int return type.
9798
9799 * config/ia64/ia64intrin.h (__sync_bool_compare_and_swap_di):
9800 Change return type to int.
9801 (__sync_bool_compare_and_swap): Likewise.
9802
26f74aa3
JH
9803Thu Apr 24 16:55:26 CEST 2003 Jan Hubicka <jh@suse.cz>
9804
9805 * cfgbuild.c (make_edges): Do not use next_nonnote_insn when
9806 looking for fallthru edge.
9807
9808 * athlon.md (athlon-agu, athlon-store, athlon-fany, athlon-faddmul):
9809 Fix.
9810 (athlon-load2, athlon-store2, athlon-fpsched, athlon-fpload,
9811 athlon-fvector): New.
9812 (athlon_*): Revisit to match new optimization guide.
9813 * i386.c (ix86_adjust_cost): Fix memory operand costs on Athlon/k8
9814 * i386.md (cvt??2?? patterns): Fix modes.
9815 (fistp patterns): Set modes.
9816
9817 Accidentaly commited with my earlier reload patch:
9818 PR c/10308
9819 * reload.c (find_reloads_address_1): Reload plus at the place of
9820 index register.
293107d1 9821
796621e8
NS
98222003-04-24 Nathan Sidwell <nathan@codesourcery.com>
9823
9824 New GCOV_TAG_FUNCTION layout
9825 * coverage.c (struct function_list): Replace name with ident.
9826 (struct counts_entry): Likewise.
9827 (fn_ident): New.
9828 (htab_counts_entry_hash, htab_counts_entry_eq,
9829 htab_counts_entry_del): Adjust.
9830 (reads_count_file, get_coverage_counts,
9831 coverage_begin_output, coverage_end_function): Adjust.
9832 (build_fn_info_type, build_fn_info_value): Likewise.
9833 * gcov-dump.c (tag_function): Adjust.
9834 * gcov-io.c (gcov_write_string, gcov_read_string): Not in LIBGCOV.
9835 * gcov-io.h (gcov_write_string, gcov_read_string): Not in LIBGCOV.
9836 * gcov.c (struct function_info): Add ident.
9837 (read_graph_file, read_count_file): Adjust.
9838 * libgcov.c (gcov_exit): Adjust.
9839
6ff76c36
RH
98402003-04-23 Richard Henderson <rth@redhat.com>
9841
9842 PR opt/8300
9843 * toplev.c (rest_of_compilation): Delay no_new_pseudos until
9844 after initialize_uninitialized_subregs; update reg info assuming
9845 new pseudos were created.
9846
6338b358
NB
98472003-04-23 Neil Booth <neil@daikokuya.co.uk>
9848
9849 * Makefile.in (c-lex.o, LIBCPP_OBJS, cpplex.o): Update.
9850 * c-lex.c (MULTIBYTE_CHARS): Remove conditionals.
9851 (lex_string): Take cpp_string with full spelling.
9852 (cb_ident): Update.
9853 (c_lex): Update diagnostics.
9854 * cpplex.c (SPELL_NUMBER, SPELL_STRING): Combine into SPELL_LITERAL.
9855 (create_literal): New.
9856 (lex_string): Unterminated literals have type CPP_OTHER.
9857 (_cpp_lex_direct): Update calls to lex_string. Use create_literal
9858 for CPP_OTHER.
9859 (cpp_token_len, cpp_spell_token, cpp_output_token): Simplify.
9860 (_cpp_equiv_tokens, cpp_interpret_charconst): Update.
9861 * cpplib.c (parse_include, do_line, do_linemarker,
9862 destringize_and_run): Update for token storing full spelling.
9863 * cpplib.h: Update token spelling types.
9864 * cppmacro.c (stringify_arg, check_trad_stringification):
9865 Update for token storing full spelling.
9866
011fd56b
UW
98672003-04-23 Ulrich Weigand <uweigand@de.ibm.com>
9868
9869 * config/s390/s390.c (s390_expand_cmpstr): Disable CLC loop.
9870
7052a099
RE
98712003-04-23 Richard Earnshaw <rearnsha@arm.com>
9872
9873 * arm.h (TARGET_OPTIONS): Add value field.
9874
f0ddce84
MM
98752003-04-23 Mark Mitchell <mark@codesourcery.com>
9876
9877 * doc/extend.texi: Remove duplicate 2003 copyright date.
9878
cdb23767
NS
98792003-04-23 Nathan Sidwell <nathan@codesourcery.com>
9880
9881 * Makefile.in (LIBGCC_DEPS): Add gcov headers.
9882 (libgcov.a): Depends on LIBGCC_DEPS.
9883 * basic-block.h (profile_info): Moved here from coverage.h. Made
9884 a pointer.
9885 * coverage.c (struct function_list): Fixed array of counter types.
9886 (struct counts_entry): Keyed by counter type, contains summary.
9887 (profile_info): Moved to profile.c.
9888 (prg_ctr_mask, prg_n_ctrs, fn_ctr_mask, fn_n_ctrs): New global
9889 vars.
9890 (profiler_label): Remove.
9891 (ctr_labels): New.
9892 (set_purpose, label_for_tag, build_counter_section_fields,
9893 build_counter_section_value, build_counter_section_data_fields,
9894 build_counter_section_data_values, build_function_info_fields,
9895 build_function_info_value, gcov_info_fields, gcov_info_value): Remove.
9896 (build_fn_info_type, build_fn_info_value, build_ctr_info_type,
9897 build_ctr_info_value, build_gcov_info): New.
9898 (htab_counts_entry_hash, htab_counts_entry_eq): Adjust.
9899 (reads_counts_file): Adjust.
9900 (get_coverage_counts): Takes counter number. Add summary
9901 parameter. Adjust.
9902 (coverage_counter_ref): Tkaes counter number. Adjust. Lazily
9903 create counter array labels.
9904 (coverage_end_function): Adjust.
9905 (create_coverage): Adjust.
9906 (find_counters_section): Remove.
9907 * coverage.h (MAX_COUNTER_SECTIONS): Remove.
9908 (struct section_info, struct profile_info): Remove.
9909 (profile_info): Moved to basic-block.h.
9910 (coverage_counter_ref): Takes a counter number.
9911 (get_coverage_counts): Takes a counter number. Added summary
9912 parameter.
9913 (find_counters_section): Remove.
9914 * gcov-dump.c (tag_arc_counts): Rename to ...
9915 (tag_counters): ... here. Adjust.
9916 (tag_table): Move tag_counters to 3rd entry. Remove
9917 PROGRAM_PLACEHOLDER and PROGRAM_INCORRECT entries.
9918 (dump_file): Check for counter tag values here.
9919 (tag_summary): Adjust.
9920 * gcov-io.c (gcov_write_summary, gcov_read_summary): Adjust.
9921 * gcov-io.h (GCOV_LOCKED): New.
9922 (GCOV_TAG_ARC_COUNTS): Rename to ...
9923 (GCOV_TAG_COUNTS_BASE): ... here.
9924 (GCOV_TAG_PLACEHOLDER_SUMMARY, GCOV_TAG_INCORRECT_SUMMARY):
9925 Remove.
9926 (GCOV_COUNTER_ARCS, GCOV_COUNTERS, GCOV_NAMES): New.
9927 (GCOV_TAG_FOR_COUNTER, GCOV_COUNTER_FOR_TAG,
9928 GCOV_TAG_IS_COUNTER): New.
9929 (struct gcov_ctr_summary): New.
9930 (struct gcov_summary): Adjust.
9931 (struct gcov_counter_section): Remove.
9932 struct gcov_counter_section_data): Remove.
9933 (struct gcov_function_info): Rename to ...
9934 (struct gcov_fn_info): ... here. Adjust.
9935 (struct gcov_ctr_info): New.
9936 (struct gcov_info): Adjust.
9937 * gcov.c (read_count_file): Adjust.
9938 (output_lines): Adjust.
9939 * libgcov.c (gcov_exit): Adjust.
9940 (__gcov_flush): Adjust.
9941 * mklibgcc.in (libgcc2_c_dep): Add gcov headers.
9942 * predict.c (maybe_hot_bb_p, probably_cold_bb_p,
9943 probably_never_executed_bb_p, compute_frequency_function): Adjust
9944 profile_info use.
9945 * profile.c (struct counts_entry): Remove.
9946 (profile_info): Define here.
9947 (get_exec_counts): Adjust get_coverage_counts call.
9948 (compute_branch_probablilities): Remove find_counters_section
9949 call.
9950 (gen_edge_profiler): Adjust coverage_counter_ref call.
9951 * tracer.c (tail_duplicate): Adjust profile_info use.
9952
2be3b5ce
RS
99532003-04-23 Roger Sayle <roger@eyesopen.com>
9954
9955 PR optimization/10339
9956 * builtins.c (expand_builtin_strcmp): Try to emit cmpstrsi insn
9957 directly instead of unsafely transforming call into a memcmp.
9958 (expand_builtin_strncmp): Likewise.
9959
c57ddcf1
RS
99602003-04-22 Roger Sayle <roger@eyesopen.com>
9961
9962 * alias.c (mark_constant_function): Check for constancy and
9963 purity even of void functions. Update both the function decl
9964 and the cgraph RTL info with the results.
9965
c1a19acb
RS
99662003-04-22 Roger Sayle <roger@eyesopen.com>
9967
9968 * real.c (do_add): Change to return a bool indicating that the
9969 result of the operation may be inexact due to loss of precision.
9970 (do_multiply): Likewise.
9971 (do_divide): Likewise.
9972
c2e9147c
GK
99732003-04-22 Geoffrey Keating <geoffk@apple.com>
9974 Loren James Rittle <ljrittle@acm.org>
9975
9976 * dwarf2out.c (fde_table_allocated): Mark with GTY.
9977 (decl_die_table_allocated): Likewise.
9978 (abbrev_die_table_allocated): Likewise.
9979 (line_info_table_allocated): Likewise.
9980 (separate_line_info_table_allocated): Likewise.
9981 (pubname_table_allocated): Likewise.
9982 (arange_table_allocated): Likewise.
9983 (ranges_table_allocated): Likewise.
9984 (decl_die_table_in_use): Unconditionalize; mark with GTY.
9985 (abbrev_die_table_in_use): Likewise.
9986 (line_info_table_in_use): Likewise.
9987 (separate_line_info_table_in_use): Likewise.
9988 (pubname_table_in_use): Likewise.
9989 (arange_table_in_use): Likewise.
9990 (ranges_table_in_use): Likewise.
9991 (have_location_lists): Likewise.
9992 (emitcount): New GTY-marked static, moved...
9993 (maybe_emit_file): ...from here.
9994 (label_num): New GTY-marked static, moved...
9995 (gen_internal_sym): ...from here.
9996
4da2eb6b
RH
99972003-04-22 Richard Henderson <rth@redhat.com>
9998
293107d1
ZW
9999 PR 8866
10000 * rtl.h (MEM_NOTRAP_P): New.
10001 (MEM_COPY_ATTRIBUTES): Copy it.
10002 * rtlanal.c (may_trap_p): Check it.
10003 * expr.c (do_tablejump): Set it.
4da2eb6b
RH
10004 * doc/rtl.texi (Flags): Document it.
10005
293107d1 10006 * cfgrtl.c (try_redirect_by_replacing_jump): Revert last three changes.
4da2eb6b 10007
c1238896
OH
100082003-04-22 Olivier Hainque <hainque@act-europe.fr>
10009
10010 * config/alpha/alpha.c (alpha_expand_prologue [OPEN_VMS_ABI]): Don't
10011 set FRP on stack adjustment for outgoing args if frame_pointer_needed.
10012
6d412a7b
VC
100132003-04-22 Vincent Celier <celier@gnat.com>
10014
293107d1
ZW
10015 * gthr-gnat.h, gthr-gnat.c: new sources for implementation of
10016 --enable-threads=gnat.
10017 * Makefile.in: Add gthr-gnat.c to LIB2ADDEH.
10018 * configure.in: Add gnat to the list of thread packages
10019 * configure: Rebuild.
10020 * config/t-linux: Add gthr-gnat.c to LIB2ADDEH and LIB2ADDEHDEP
6d412a7b 10021
b78f9414
NB
100222003-04-22 Neil Booth <neil@daikokuya.co.uk>
10023
10024 * cpplex.c (_cpp_get_fresh_line): Pop the buffer if return_at_eof.
f945b4e0
DP
10025
100262003-04-22 Devang Patel <dpatel@apple.com>
10027
b78f9414
NB
10028 * cpptrad.c (_cpp_replacement_text_len): Add check for macro
10029 parameter count.
f945b4e0 10030 (_cpp_copy_replacement_text): Same.
293107d1 10031
1067694a
NB
100322003-04-22 Neil Booth <neil@daikokuya.co.uk>
10033
10034 * c-lex.c (c_lex): Handle CPP_OTHER differently.
10035 * cppexp.c (_cpp_parse_expr): Similarly.
10036 * cpplex.c (SPELL_CHAR): Remove.
10037 (_cpp_lex_direct): Stray chars are saved as byte strings.
10038 (cpp_spell_token, cpp_output_token, _cpp_equiv_token): Don't
10039 handle SPELL_CHAR.
10040 (cpp_avoid_paste): Update handling of CPP_OTHER.
10041 * cpplib.h: Spell CPP_OTHER like a number.
10042 (struct cpp_token): Remove member c.
10043 * cppmacro.c (stringify_arg): Update handling of CPP_OTHER.
10044
77c915d8
DT
100452003-04-22 David Turner <novalis@gnu.org>
10046
10047 * gbl-ctors.h: Add special license exception.
10048 * libgcc2.h: Likewise.
10049 * tsystem.h: Likewise.
10050 * gcov-io.h: Likewise.
10051
85e50b6b
DE
100522003-04-22 David Edelsohn <edelsohn@gnu.org>
10053
10054 * fold-const.c (fold_range_test): Use RANGE_TEST_NON_SHORT_CIRCUIT
10055 macro defaulting to original BRANCH_COST heuristic.
10056 * doc/tm.texi (RANGE_TEST_NON_SHORT_CIRCUIT): Document.
10057
10058 * config/rs6000/rs6000.h (RANGE_TEST_NON_SHORT_CIRCUIT): Define.
10059
00c060a4
AH
100602003-04-22 Aldy Hernandez <aldyh@redhat.com>
10061
293107d1 10062 * config/rs6000/t-spe: Merge in t-fprules into file.
00c060a4 10063
293107d1 10064 * config.gcc: Add t-spe to powerpc-eabispe.
00c060a4 10065
e4d72771
KJ
100662003-04-22 Kean Johnston <jkj@sco.com>
10067
10068 * tlink.c (recompile_files): Add missing '=' to putenv calls
10069
ad27e65a
NS
100702003-04-22 Nathan Sidwell <nathan@codesourcery.com>
10071
10072 * ginclude/stddef.h: Provide C++ safe offsetof.
10073
277b3b18
R
100742003-04-22 J"orn Rennecke <joern.rennecke@superh.com>
10075
10076 * function.c (purge_addressof_1): In (mem (addressof (reg))) case
10077 for reg notes, if there are no substitutions, just use a SUBREG.
10078
b2dd096b
MM
100792003-04-21 Mark Mitchell <mark@codesourcery.com>
10080
10081 * Makefile.in (calls.o): Depend on except.h.
10082 * calls.c: Include except.h.
10083 (emit_call_1): Call note_eh_region_may_contain_throw if
10084 appropriate.
10085 * except.c (eh_region): Add may_contain_throw.
10086 (expand_eh_region_end_cleanup): Do not include handler code when
10087 it cannot be reached.
10088 (note_eh_region_may_contain_throw): New function.
10089 * except.h (note_eh_region_may_contain_throw): New function.
10090
bfc6c67e
MM
100912003-04-21 Mark Mitchell <mark@codesourcery.com>
10092
10093 * config/i386/winnt.c (i386_pe_mark_dllimport): Revert previous
10094 changes.
10095
95b1c7b6
AH
100962003-04-21 Aldy Hernandez <aldyh@redhat.com>
10097
293107d1
ZW
10098 * config/rs6000/rs6000.c (rs6000_override_options): No SPE means
10099 64-bit long doubles.
95b1c7b6 10100
6a48df45
OH
101012003-04-21 Olivier Hainque <hainque@act-europe.fr>
10102
3cd58fd7
OH
10103 * fold-const.c (fold, case PLUS_EXPR and case MULT_EXPR): Restore
10104 a number of conversions required for type consistency and previously
10105 stripped off by STRIP_NOPS.
10106
6a48df45
OH
10107 * calls.c (expand_call): Prevent sibcall optimization for calls to
10108 nested subprograms.
10109
0d2f38ee 10110 * expmed.c (extract_bit_field): Reverse operands of && condition to
293107d1 10111 prevent a potential division by zero in the previously first branch.
0d2f38ee
OH
10112 * config/pa/pa.md (extv, extzv): FAIL if the bitfield length is zero.
10113
c3cdeef4
JB
101142003-04-21 Joel Brobecker <brobecker@gnat.com>
10115
10116 * dwarf2out.c (is_ada, is_ada_subrange_type): New functions.
10117 (subrange_type_die): Likewise.
10118 (modified_type_die): Emit a subrange_type DIE for Ada subrange types.
10119 (is_c_family, is_cxx, is_java, is_fortran): Return bool and clean up.
10120
ca29da43
NS
101212003-04-21 Nathan Sidwell <nathan@codesourcery.com>
10122
293107d1
ZW
10123 Break out coverage routines to new file.
10124 * Makefile.in (COVERAGE_H): New variable
10125 (C_OBJS): Add coverage.o
10126 (coverage.o): New target.
10127 (profile.o, loop-init.o, sched-ebb.o, predict.o, tracer.o): Adjust
10128 dependencies.
10129 (GTFILES): Adjust.
10130 (gt-coverage.h): New target.
10131 (gt-profile.h): Remove.
10132 * profile.h: Remove. Move to ...
10133 * coverage.h: ... here. New. #include gcov-io.h.
10134 * gcov-io.h: Move function definitions to ...
10135 * gcov-io.c: ... here. New.
10136 * profile.c: Move coverage routines to coverage.c.
10137 (instrument_edges, get_exec_counts, branch_prob, init_branch_prob,
10138 end_branch_prob): Adjust.
10139 * coverage.c: New. Coverage routines from profile.c
10140 (coverage_counter_ref, coverage_init, coverage_finish,
10141 coverage_end_function, coverage_begin_output,
10142 coverage_counter_ref, get_coverage_counts): Define.
10143 * gcov-dump.c, gcov.c: #include gcov-io.c.
10144 * libgcov.c: Likewise. Adjust.
10145 * loop-init.c: Don't #include profile.h
10146 * tracer.c, predict.c, sched-ebb.c: Adjust #includes.
10147 * rtl.h: Add coverage prototypes.
10148 * toplev.c (compile_file): Init coverage, not branch_prob.
10149 Always call coverage_finish.
10150 (rest_of_compilation): Call coverage_end_function.
ca29da43 10151
1774b213 101522003-04-21 Matt Kraai <kraai@alumni.cmu.edu>
dd0fbae2
MK
10153
10154 * config/rs6000/rs6000.md (*movsf_softfloat): Add "h" <- "0" case.
10155
74eb4b3e
NB
101562003-04-21 Neil Booth <neil@daikokuya.co.uk>
10157
10158 * c-ppoutput.c (cb_include): Don't take a cpp_token.
10159 * cppfiles.c: Don't undef strcmp.
10160 (find_include_file): Don't take a cpp_token. Check for empty
10161 file names.
10162 (_cpp_execute_include, _cpp_compare_file_date): Don't take a cpp_token.
10163 (cpp_push_include): Simplify.
10164 * cpphash.h (_cpp_execute_include, _cpp_compare_file_date): Update.
10165 * cpplib.c (glue_header_name): Return the file name, not a cpp_token.
10166 (parse_include): Similary. Don't check for zero-length filenames.
10167 (do_include_common, do_pragma_dependency): Update accordingly.
10168 * cpplib.h (struct cpp_callbacks): Change prototype of include.
10169
337f4314 101702003-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
293107d1 10171
9e91ce11
RK
10172 * doc/rtl.texi (RTX_UNCHANGING_P): Point to true_dependence for
10173 details of conflict handling.
293107d1 10174
26b84487
RK
10175 * fold-const.c (extract_muldiv, case CONVERT_EXPR): Detect case
10176 when conversion overflows.
10177
1a96dc46
RK
10178 * stor-layout.c (layout_decl): Don't set DECL_SIZE_UNIT if already set.
10179
337f4314
RK
10180 * expr.c (store_constructor): Set RTX_UNCHANGING_P if readonly_field_p
10181 before clearing.
10182
3819b963
MM
101832003-04-21 Mark Mitchell <mark@codesourcery.com>
10184
10185 * config/i386/winnt.c (i386_pe_mark_dllimport): Make the new RTL
10186 have the same form as the old RTL.
10187
0e7a8c4b
AJ
101882003-04-21 Andreas Jaeger <aj@suse.de>
10189
293107d1 10190 * cppcharset.c (_cpp_valid_ucn): Cast field precision to int.
0e7a8c4b 10191
b39b8084
CL
101922003-04-20 Chris Lattner <sabre@nondot.org>
10193 Zack Weinberg <zack@codesourcery.com>
10194
10195 * c-common.h, c-semantics.c: Rename genrtl_decl_cleanup to
10196 genrtl_cleanup_stmt. Correct comment at head of
10197 genrtl_cleanup_stmt (no such thing as a DECL_CLEANUP).
10198
10199 * stmt.c (struct nesting): Kill n_function_calls.
10200 (expand_start_bindings): Don't set
10201 thisblock->data.block.n_function_calls.
10202 (expand_end_bindings): Compare function_call_count against 0.
10203 (expand_cleanups): Kill DONT_DO argument; all callers passed
10204 NULL_TREE. All callers updated to match.
10205
b20cbca2
ZW
102062003-04-20 Zack Weinberg <zack@codesourcery.com>
10207
10208 * varasm.c (struct deferred_constant, defer_addressed_constants_flag)
10209 (defer_addressed_constants, output_deferred_addressed_constants): Kill.
10210 (output_constant_def): Remove code predicated on
10211 defer_addressed_constants_flag.
10212
10213 * output.h: Remove prototypes of deleted functions.
10214 * c-typeck.c (constructor_subconstants_deferred): Kill.
10215 (struct initializer_stack): Remove 'deferred' field.
10216 (start_init): Remove all references to the above.
10217 (finish_init): Likewise. Also remove never-executed call to
10218 output_deferred_addressed_constants. Pull assignment to
10219 defstr out of if expression.
10220
41c32c98
NB
102212003-04-20 Neil Booth <neil@daikokuya.co.uk>
10222
10223 * cpphash.h (NOTE_ESC_NL, NOTE_ESC_SPACE_NL, NOTE_TRIGRAPH,
10224 NOTE_NEWLINE): Remove.
10225 * cpplex.c (_cpp_clean_line, _cpp_process_line_notes): Update
10226 to handle new form of line note type.
10227
c6a2438a
ZW
102282003-04-20 Zack Weinberg <zack@codesourcery.com>
10229
10230 * target.h (encode_section_info): Add new argument carrying
10231 the RTL to be modified by the hook.
10232
10233 * varasm.c (make_decl_rtl, output_constant_def): Update calls
10234 to encode_section_info.
10235 (default_encode_section_info): Take and use RTL argument,
10236 don't use TREE_CST_RTL or DECL_RTL.
10237 * output.h: Update prototype of default_encode_section_info.
10238 * config/darwin.h (ASM_DECLARE_OBJECT_NAME)
10239 (ASM_DECLARE_FUNCTION_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL):
10240 Update calls to encode_section_info.
10241
10242 * config/darwin.c, config/arm/arm.c, config/arm/pe.c
10243 * config/h8300/h8300.c, config/i386/winnt.c, config/m32r/m32r.c
10244 * config/m68hc11/m68hc11.c, config/m88k/m88k.c, config/mcore/mcore.c
10245 * config/mips/mips.c, config/mmix/mmix.c, config/pa/pa.c
10246 * config/romp/romp.c, config/rs6000/rs6000.c, config/s390/s390.c
10247 * config/v850/v850.c (TARGET_ENCODE_SECTION_INFO definitions):
10248 Take and use RTL argument, don't use TREE_CST_RTL or DECL_RTL,
10249 except for PE dllimport/dllexport. Update calls to
10250 default_encode_section_info.
10251
10252 * config/darwin-protos.h, config/arm/arm-protos.h, config/i386-protos.h:
10253 Update prototypes.
10254
10255 * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update.
10256
8c7d377f
JDA
102572003-04-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10258
10259 PR/8705
10260 * pa.md (movccfp): New expander.
10261 (setccfp0, setccfp1): Rename to movccfp0 and movccfp1, respectively.
10262 Reverse fcmp conditions.
10263
1052bb09
MM
102642003-04-20 Marek Michalkiewicz <marekm@amelek.gda.pl>
10265
10266 * config/avr/avr.md (*cmpqi_sign_extend): Handle negative values
10267 of operand 1 correctly.
10268
299f79b5
NS
102692003-04-20 Nathan Sidwell <nathan@codesourcery.com>
10270
10271 * cpplex.c (_cpp_lex_direct): Set BOL for CPP_EOF tokens.
10272 * gcov.c (output_lines): Don't be so fussy about going past EOF.
10273
1613e52b
NB
102742003-04-20 Neil Booth <neil@daikokuya.co.uk>
10275
10276 * Makefile.in (LIBCPP_OBJS): Add cppcharset.o.
10277 (cppcharset.o): New target.
10278 * c-lex.c (is_extended_char): Move to cppcharset.c.
10279 (utf8_extend_token): Delete.
10280 * cppcharset.c: New file.
10281 * cpphash.h (_cpp_valid_ucn): New.
10282 * cpplex.c (lex_identifier): Update prototype.
10283 (continues_identifier_p): Rename forms_identifier_p. Handle UCN
10284 escapes.
10285 (maybe_read_ucs): Rename maybe_read_ucn. Update to use code
10286 in cppcharset.c.
10287 (lex_number, lex_identifier, cpp_parse_escape): Update.
10288 (_cpp_lex_direct): Update to handle UCNs.
10289 (cpp_avoid_paste): Don't paste to form a UCN.
10290
0a45ec5c
RS
102912003-04-19 Roger Sayle <roger@eyesopen.com>
10292
10293 * builtins.c (expand_builtin): Don't expand a pure or const
10294 built-in function if the result will be ignored and none of
10295 its arguments are volatile.
10296
16477cc5
KJ
102972003-04-19 Kean Johnston <jkj@sco.com>
10298
10299 * unwind-dw2.c (_Unwind_GetCFA): cast return to avoid warning
10300 * config.gcc: make SCO use dbxelf.h and elfos.h; only use one
10301 target fragment now: t-sco5; dont compile crti.o.
10302 * config/i386/sco5.h: major overhaul to remove all COFF remnants
10303 and to use elfos.h for most definitions.
10304 (BSS_SECTION_ASM_OP): set correct segment attributes.
10305 (PREFERED_DEBUGGING_TYPE): set to DWARF-2.
10306 (DWARF2_UNWIND_INFO): Always set to 1.
10307 (MD_STARTFILE_PREFIX): Make /usr/gnu/lib the default.
10308 (MD_STARTFILE_PREFIX_1): Define.
10309 (MD_EXEC_PREFIX): Adjust to /usr/gnu/bin if using GAS.
10310 (DEFAULT_LINKER): Define if not specified to configure.
10311 (CTORS_SECTION_ASM_OP): Remove COFF crud.
10312 (DTORS_SECTION_ASM_OP): Remove COFF crud.
10313 (WINT_TYPE): Define.
10314 (SDB_DEBUGGING_INFO): Remove.
10315 (EXTRA_SECTIONS): Likewise.
10316 (EXTRA_SECTION_FUNCTIONS): Likewise.
10317 (CTOR_LIST_BEGIN): Likewise.
10318 (CTOR_LIST_END): Likewise.
10319 (INIT_SECTION_FUNCTION): Likewise.
10320 (FINI_SECTION_FUNCTION): Likewise.
10321 (SUBTARGET_FRAME_POINTER_REQUIRED): Likewise.
10322 (LOCAL_LABEL_PREFIX): Likewise.
10323 (NON_SAVING_SETJMP): Likewise.
10324 (RETURN_POPS_ARGS): Likewise.
10325 (ASM_OUTPUT_SKIP): Likewise.
10326 (TARGET_ASM_NAMED_SECTION): Likewise.
10327 (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
10328 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
10329 (ASM_OUTPUT_IDENT): Likewise.
10330 (ASM_OUTPUT_CASE_LABEL): Likewise.
10331 (ASM_OUTPUT_ASCII): Likewise.
10332 (ASM_OUTPUT_LIMITED_STRING): Likewise.
10333 (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
10334 (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
10335 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
10336 (ASM_FINISH_DECLARE_OBJECT): Likewise.
10337 (ASM_DECLARE_OBJECT_NAME): Likewise.
10338 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
10339 (ASM_DECLARE_FUNCTION_NAME): Likewise.
10340 (ASM_DECLARE_RESULT): Likewise.
10341 (ASM_WEAKEN_LABEL): Likewise.
10342 (SUPPORTS_WEAK): Likewise.
10343 (APPLY_RESULT_SIZE): Likewise.
10344 (LPREFIX): Likewise.
10345 (ALIGN_ASM_OP): Likewise.
10346 (ASCII_DATA_ASM_OP): Likewise.
10347 (IDENT_ASM_OP): Likewise.
10348 (ASM_SHORT): Likewise.
10349 (ASM_LONG): Likewise.
10350 (TYPE_ASM_OP): Likewise.
10351 (SIZE_ASM_OP): Likewise.
10352 (STRING_ASM_OP): Likewise.
10353 (SKIP_ASM_OP): Likewise.
10354 (EH_FRAME_SECTION_ASM_OP): Likewise.
10355 (READONLY_DATA_SECTION_ASM_OP): Likewise.
10356 (INIT_SECTION_ASM_OP): Likewise.
10357 (FINI_SECTION_ASM_OP): Likewise.
10358 (TEXT_SECTION_ASM_OP): Likewise.
10359 (DATA_SECTION_ASM_OP): Likewise.
10360 (TYPE_OPERANT_FORMAT): Likewise.
10361 (ASM_SPEC): Remove COFF code.
10362 (STARTFILE_SPEC): Likewise. Always use crti.o; add -p and -pp support;
10363 cause -pg to emit an error; use pcrt1elf.o with -pp
10364 (ENDFILE_SPEC): Likewise.
10365 (TARGET_OS_CPP_BUILTINS): Add _SCO_DS_LL.
10366 (CPP_SPEC): Remove COFF crud; always look in /usr/gnu/include first.
10367 (LINK_SPEC): Remove COFF crud; use -E for environment switch not -R;
10368 add -z alt_resolve to support weak symbols the way GCC wants them.
10369 (LIB_SPEC): Use the profiler libraries in -p or -pp mode.
10370 (LIBGCC_SPEC): Dont use -lgcc in -G mode.
10371 (ASM_PREFERED_EH_DATA_FORMAT): Remove.
10372 * config/i386/t-sco5 (TARGET_LIBGCC2_CFLAGS): Remove.
10373 (CRTSTUFF_T_CFLAGS_S): Define.
10374 (MULTILIB_OPTIONS): Likewise.
10375 (MULTILIB_DIRNAMES): Likewise.
10376 (MULTILIB_MATCHES): Likewise.
10377 (MULTILIB_EXTRA_OPTS): Likewise.
10378 (LIBGCC): Likewise.
10379 (INSTALL_LIBGCC): Likewise.
10380 (crti.o): Remove.
10381 * config/i386/t-sco5gas: Remove.
10382 * doc/install.texi: Updated for new OpenServer instructions.
10383 * testsuite/gcc.dg/nest.c: Allow failure on SCO (-pg not supported)
10384
de0656cf
KJ
103852003-04-19 Kean Johnston <jkj@sco.com>
10386
10387 * fixinc/check.tpl: Allow user to over-ride diff program.
10388 * fixinc/inclhack.def: Removed extraneous #ifndef SVR5.
10389 (sco_math): Added test for SCO math header files.
10390 (sco_regset): Added check for conflicts with ieeefp.h.
10391 (svr4_disable_opt): Removed extraneous #ifdef SVR4.
10392 * fixinc/fixincl.x: Regenerated
10393 * fixinc/tests/base/math.h: Added sco_math tests.
10394 * fixinc/tests/base/string.h: New file.
10395 * fixinc/tests/base/sys/regset.h: New file.
10396
6f572ac2
NB
103972003-04-19 Neil Booth <neil@daikokuya.co.uk>
10398
10399 * cpphash.h (struct cpp_buffer): Remove backup_to.
10400 * cpplex.c (BACKUP, get_effective_char): Die.
10401 (_cpp_skip_block_comment): Assume '*' is location on entry.
10402 (continues_identifier_p): Respect -fno-dollars-in-identifiers.
10403 (IF_NEXT_IS): Update.
10404 (_cpp_lex_direct): Don't use backup_to; look ahead directly.
10405
ced2ad76
MK
104062003-04-19 Matt Kraai <kraai@alumni.cmu.edu>
10407
10408 * README.Portability: Move to a new section and obsolete K+R
10409 portability issues.
10410
07015444
JH
10411Sat Apr 19 14:56:17 CEST 2003 Jan Hubicka <jh@suse.cz>
10412
10413 * rtlanal.c (subreg_offset_representable_p): Fix call of
10414 subreg_lowpart.
10415
bced6edf
NB
104162003-04-19 Neil Booth <neil@daikokuya.co.uk>
10417
10418 * cpphash.h (struct cpp_reader): New member warned_dollar.
10419 * cpplex.c (continues_identifier_p): New function.
10420 (parse_identifier, parse_number, parse_string): Rename lex_identifer,
10421 lex_number and lex_string, and simplify.
10422 (parse_slow, unescaped_terminator_p): Die.
10423 (_cpp_lex_direct): Update.
10424
a259f218
RK
104252003-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10426
10427 * calls.c (expand_call): Provide init for old_stack_pointer_delta.
10428
8555daff
NS
104292003-04-19 Nathan Sidwell <nathan@codesourcery.com>
10430
10431 * doc/invoke.texi (-fprofile-arcs): Mention -lgcov, locking and
6356f892 10432 fork behavior.
8555daff 10433
4e1f0f8e
NB
104342003-04-19 Neil Booth <neil@daikokuya.co.uk>
10435
10436 * cppexp.c (eval_token): Permit true and false even if pedantic.
10437
bf805def
NB
104382003-04-19 Neil Booth <neil@daikokuya.co.uk>
10439
10440 * cpplex.c (skip_whitespace): Rearrange to avoid stage1 ICE.
10441
26aea073
NB
104422003-04-19 Neil Booth <neil@daikokuya.co.uk>
10443
10444 * cppfiles.c (ENABLE_VALGRIND_CHECKING, VALGRIND_DISCARD,
10445 MMAP_THRESHOLD, TEST_THRESHOLD, SHOULD_MMAP): Remove.
10446 (struct include_file): Remove fefcnt, mapped members.
10447 (open_file, stack_include_file, _cpp_pop_file_buffer): Disable caching.
10448 (read_include_file): Don't use mmap, terminate buffers in '\r'.
10449 (purge_cache): Don't use munmap.
10450 * cpphash.h (CPP_BUF_COLUMN): Update.
10451 (lexer_state): Remove lexing_comment.
10452 (struct _cpp_line_note): New.
10453 (struct cpp_buffer): New members cur_note, notes_used, notes_cap,
10454 next_line and need_line. Remove col_adjust and saved_flags.
10455 (_cpp_process_line_notes, _cpp_clean_line, _cpp_get_fresh_line,
10456 _cpp_skip_block_comment, scan_out_logical_line): New.
10457 (_cpp_init_mbchar): Remove.
10458 * cppinit.c (init_library): Remove call to _cpp_init_mbchar.
10459 (cpp_read_main_file): Set line to 1 earlier.
10460 (post_options): -traditional-cpp doesn't want trigraphs.
10461 * cpplex.c (MULTIBYTE_CHARS): Remove code predicated on this.
10462 (add_line_note, _cpp_clean_line, _cpp_process_line_notes,
10463 _cpp_get_fresh_line): New.
10464 (handle_newline, skip_escaped_newlines, trigraph_p,
10465 continue_after_nul, _cpp_init_mbchar): Remove.
10466 (get_effective_char): Update.
10467 (_cpp_skip_block_comment): Rename from skip_block_comment, simplify.
10468 (skip_line_comment): Simplify.
10469 (skip_whitespace, parse_identifier, parse_slow, parse_number,
10470 parse_string): Update.
10471 (cpp_lex_direct): Use clean lines and process line notes. Update.
10472 (cpp_interpret_charconst): No MULTIBYTE_CHARS.
10473 * cpplib.c (prepare_directive_trad): Call scan_out_logical_line
10474 directly.
10475 (_cpp_handle_directive): Don't set saved_flags.
10476 (run_directive, destringize_and_run, cpp_define, cpp_define_builtin,
10477 cpp_undef, handle_assertion, cpp_push_buffer): Update.
10478 (_cpp_pop_buffer): Free notes.
10479 * cppmacro.c (builtin_macro, paste_tokens): \n terminate buffer.
10480 * cpppch.c (cpp_read_state): \n terminate buffer.
10481 * cpptrad.c (skip_escaped_newlines, handle_newline): Remove.
10482 (copy_comment): Use _cpp_skip_block_comment.
10483 (skip_whitespace, lex_identifier, _cpp_read_logical_line_trad):
10484 Simplify.
10485 (_cpp_overlay_buffer, _cpp_remove_overlay, push_replacement_text,
10486 save_replacement_text): Update.
10487 (scan_out_logical_line): Update to use clean lines and process
10488 line notes.
10489 * fix-header.c (read_scan_file): Update.
10490
7008a11b
DR
104912003-04-18 Douglas B Rupp <rupp@gnat.com>
10492
10493 * unwind-dw2-fde.c (__register_frame_info_bases): Check for
10494 null begin parameter (as well as pointer to null).
10495 (__deregister_frame_info_bases): Likewise.
10496
21102f25
RK
104972003-04-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10498
34d21fe3
RK
10499 * function.c (purge_addressof_1): For ADDRESSOF, see if SUB is a
10500 hard or virtual register and copy into pseudo if replacement fails.
10501
10502 * cfgcleanup.c (flow_find_cross_jump): Use INSN_P, not active_insn_p.
dd4ff203 10503
21102f25
RK
10504 * expmed.c (mask_rtx): Avoid undefined shifts for BITSIZE of 0.
10505
e59baa1f
OH
105062003-04-18 Olivier Hainque <hainque@act-europe.fr>
10507
38afb23f
OH
10508 * calls.c (expand_call): Move special case for constructor calls
10509 to right place. Ensures constructor calls used to initialize
c6a2438a 10510 arguments get a clean outgoing argument block for themselves.
38afb23f
OH
10511 Move check for stack deallocation completeness until after last
10512 deallocation. Add stack_pointer_delta to set of state
10513 variables saved and restored along with current stack_level.
c6a2438a
ZW
10514
10515 * integrate.c (expand_inline_function): Ensure non-const actuals
10516 don't end up const in the caller's flow after conversion to possibly
10517 const formal type.
e59baa1f 10518
8dcea3f3
VC
105192003-04-18 Vincent Celier <celier@gnat.com>
10520
c6a2438a
ZW
10521 * dwarf2out.c (loc_descriptor_from_tree): Treat all *_MOD_EXPR
10522 and *_DIV_EXPR as TRUNC_*_EXPR.
8dcea3f3 10523
3e378f14
MM
105242003-04-18 Mark Mitchell <mark@codesourcery.com>
10525
10526 * cfgrtl.c (try_redirect_by_replacing_jump): Create a basic block
10527 for orphaned jump tables.
10528
1b0d0e84
KH
105292003-04-18 Kazu Hirata <kazu@cs.umass.edu>
10530
10531 * reload1.c: Revert my previous patch on 2002-04-17.
10532
906042f5
GP
105332003-04-18 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10534
10535 * doc/contrib.texi (Contributors): Prefer "bug fix" over "bugfix".
10536 Add Segher Boessenkool.
10537
38a31425
AS
105382003-04-18 Alexander Sotirov <sluncho@mirizma.org>
10539
10540 PR c/9177
10541 * c-decl.c (c_expand_body): Don't garbage collect the function
10542 body if we are going to dump it later.
10543
59c60a98
RH
105442003-04-18 Richard Henderson <rth@redhat.com>
10545
10546 * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): Remove.
10547 (alpha_end_function): Don't set them.
10548 (decl_in_text_section): Remove.
10549 (alpha_encode_section_info): Remove.
10550 (samegp_function_operand): Use SYMBOL_REF LOCAL_P and EXTERNAL_P.
10551 (direct_call_operand): Use SYMBOL_REF_DECL and compare actual
10552 sections, rather than decl_in_text_section results.
10553
c553b702
RS
105542003-04-18 Roger Sayle <roger@eyesopen.com>
10555
10556 * rtlanal.c (reg_overlap_mentioned_p): Handle ZERO_EXTRACT
10557 and SIGN_EXTRACT.
10558
6a29edea
EB
105592003-04-18 Eric Botcazou <ebotcazou@libertysurf.fr>
10560
10561 PR optimization/7675
10562 * c-typeck.c (build_external_ref): Set the DECL_NONLOCAL flag
10563 on VAR_DECL, PARM_DECL and FUNCTION_DECL from within
10564 nested functions if they refer to declarations from parent functions.
10565 * stmt.c (expand_decl): Don't put automatic variables in registers
10566 if the DECL_NONLOCAL flag is set.
10567
4d3eb89a
HPN
105682003-04-18 Hans-Peter Nilsson <hp@bitrange.com>
10569
10570 * gcse.c (compute_ld_motion_mems): For MEM destinations, only
10571 consider those to be movable where the source matches
10572 want_to_gcse_p.
10573 (update_ld_motion_stores): In comment, refer to
10574 compute_ld_motion_mems for validity of replacement.
10575
04c5580f
JH
10576Fri Apr 18 01:28:51 CEST 2003 Jan Hubicka <jh@suse.cz>
10577
d101590b 10578 * gcov-dump.c (tag_summary): Remove max_sum
ca29da43
NS
10579 * gcov-io.h (gcov_summary, gcov_write_summary,
10580 gcov_read_summary): Kill max_sum.
10581 * libgcov.c (gcov_exit): Do one pass over the data. Make error
10582 message more verbose.
10583
10584 * emit-rtl.c (subreg_hard_regno): Check that register is
10585 representable.
293107d1 10586
04c5580f
JH
10587 * reload.c (reload_inner_reg_of_subreg): When register is not
10588 representable, reload the whole thing.
10589 (find_reloads): Likewsie.
10590 * rtlanal.c (subreg_representable_p): New function.
10591
10592 * profile.c (compute_branch_probabilities): Cleanup sanity checking;
10593 allow negative probabilities for edges from the call to exit.
ca29da43
NS
10594 (branch_prob): Do not add fake edges for functions that may return
10595 twice.
04c5580f 10596
c409ea0d
DD
105972003-04-17 DJ Delorie <dj@redhat.com>
10598
10599 * toplev.c (target_options): Add value field.
10600 (set_target_switch): Handle target options with values.
10601 * doc/tm.texi: Document how fixed vs variable target
10602 options work.
10603 * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
10604 config/c4x/c4x.h, config/cris/aout.h, config/cris/cris.h,
10605 config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10606 config/frv/frv.h, config/i386/i386.h, config/ia64/ia64.h,
10607 config/m32r/m32r.h, config/m68hc11/m68hc11.h,
10608 config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
10609 config/mips/mips.h, config/mmix/mmix.h, config/pa/pa.h,
10610 config/rs6000/rs6000.h, config/rs6000/sysv4.h,
10611 config/s390/s390.h, config/sparc/sparc.h, config/v850/v850.h:
10612 Add value initializer to target options.
10613
36801818
LR
106142003-04-07 Loren James Rittle <ljrittle@acm.org>
10615
10616 * cpppch.c (cpp_valid_state): Unconditionally initialize nl.
10617
a211395b
KH
106182003-04-17 Kazu Hirata <kazu@cs.umass.edu>
10619
10620 * reload1.c (move2add_last_cc0): New.
10621 (reload_cse_move2add): Detect implicit sets.
10622 (move2add_note_store): Notice a store into cc0.
10623
220a35cc
RS
106242003-04-17 Roger Sayle <roger@eyesopen.com>
10625
10626 PR c/10375
10627 * c-decl.c (duplicate_decls): Preserve "const" and "noreturn"
10628 function attributes.
10629
7ed0620a 106302003-04-17 Janis Johnson <janis187@us.ibm.com>
46b2356d
JJ
10631
10632 * doc/sourcebuild.texi (Test Suites): Document support for testing
10633 binary compatibility (moved from testsuite/README.compat).
10634
3907500b
RH
106352003-04-17 Richard Henderson <rth@redhat.com>
10636
10637 * config/ia64/ia64.c (ia64_in_small_data_p): Disallow strings.
10638
d22b2e54
SL
106392003-04-17 Simon Law <sfllaw@engmail.uwaterloo.ca>
10640
c6a2438a
ZW
10641 * doc/include/gpl.texi: Fix double-spacing after "MA" to match
10642 the one provided by the FSF.
d22b2e54 10643
616de62f
GP
106442003-04-17 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
10645
10646 * doc/install.texi (Binaries): Update URL and list of platforms
10647 provided by ftp.thewrittenword.com.
10648
f2dd0c42
RH
106492003-04-17 Richard Henderson <rth@redhat.com>
10650
10651 * config/xtensa/xtensa.c (xtensa_encode_section_info): Remove.
10652 (call_insn_operand): Use SYMBOL_REF_LOCAL_P.
10653 * config/xtensa/xtensa.md (call, call_value): Likewise.
10654
50d1ff6a
RH
106552003-04-17 Richard Henderson <rth@redhat.com>
10656
10657 * config/v850/v850.c (print_operand): Use SYMBOL_REF_[ZST]DA.
10658 (print_operand_address): Likewise.
10659 (ep_memory_operand): Likewise.
10660 (special_symbolref_operand): Likewise.
10661 (v850_encode_data_area): Use SYMBOL_REF_FLAGS.
10662 (v850_encode_section_info): Call default_encode_section_info.
10663 (v850_strip_name_encoding): Remove.
10664 * config/v850/v850.h (EXTRA_CONSTRAINT): Use SYMBOL_REF_[ZST]DA.
10665 (ASM_OUTPUT_LABELREF): Remove.
10666 (ZDA_NAME_FLAG_CHAR, ZDA_NAME_P): Remove.
10667 (SDA_NAME_FLAG_CHAR, SDA_NAME_P): Remove.
10668 (TDA_NAME_FLAG_CHAR, TDA_NAME_P): Remove.
10669 (ENCODED_NAME_P): Remove.
10670 (SYMBOL_FLAG_ZDA, SYMBOL_REF_ZDA_P): New.
10671 (SYMBOL_FLAG_SDA, SYMBOL_REF_SDA_P): New.
10672 (SYMBOL_FLAG_TDA, SYMBOL_REF_TDA_P): New.
10673
e7d687bb
RH
106742003-04-17 Richard Henderson <rth@redhat.com>
10675
10676 * config/stormy16/stormy16.c (xstormy16_encode_section_info): Kill.
10677 * config/stormy16/stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use
10678 SYMBOL_REF_FUNCTION_P.
10679
72628c61
RH
106802003-04-17 Richard Henderson <rth@redhat.com>
10681
10682 * config/sparc/sparc.c (sparc_encode_section_info): Remove.
10683 (data_segment_operand): Use SYMBOL_REF_FUNCTION_P.
10684 (text_segment_operand): Likewise.
10685
675ff4c7
RH
106862003-04-17 Richard Henderson <rth@redhat.com>
10687
10688 * config/sh/sh.c (gen_datalabel_ref): Don't add SH_DATALABEL_ENCODING.
10689 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
10690 (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
10691 (sh_encode_section_info): Remove.
10692 (sh_strip_name_encoding): Remove.
10693 * config/sh/sh.h (SH_DATALABEL_ENCODING): Remove.
10694 (DATALABEL_SYMNAME_P, STRIP_DATALABEL_ENCODING): Remove.
10695 (SH_TLS_ENCODING, TLS_SYMNAME_P, STRIP_TLS_ENCODING): Remove.
10696 (ASM_OUTPUT_LABELREF): Remove.
10697 (ASM_OUTPUT_SYMBOL_REF): Use SYMBOL_REF_FUNCTION_P.
10698 * config/sh/sh.md (*): Use SYMBOL_REF_LOCAL_P.
10699
114278e7
RH
107002003-04-17 Richard Henderson <rth@redhat.com>
10701
10702 * config/s390/s390.c (SYMBOL_FLAG_ALIGN1): New.
10703 (tls_model_chars): Remove.
10704 (larl_operand): Use SYMBOL_REF_FLAGS.
10705 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
c6a2438a 10706 (legitimize_pic_address): Use SYMBOL_REF_LOCAL_P.
114278e7
RH
10707 (s390_output_mi_thunk): Likewise.
10708 (s390_emit_prologue): Set SYMBOL_FLAG_LOCAL as needed.
10709 (s390_function_profiler): Likewise.
10710 (s390_encode_section_info): Use default_encode_section_info
10711 and SYMBOL_FLAG_ALIGN1.
10712 (s390_strip_name_encoding): Remove.
10713 * config/s390/s390.h (ASM_OUTPUT_LABELREF): Remove.
10714 * config/s390/s390.md (call, call_value): Use SYMBOL_REF_LOCAL_P.
10715 (builtin_setjmp_receiver): Set SYMBOL_FLAG_LOCAL as needed.
10716
e95ef187
RH
107172003-04-17 Richard Henderson <rth@redhat.com>
10718
10719 * config/ns32k/ns32k.c (ns32k_encode_section_info): Remove.
10720 (global_symbolic_reference_mentioned_p): Use SYMBOL_REF_LOCAL_P.
10721 (print_operand_address): Likewise.
10722
10723 * config/ns32k/ns32k.h (CANNOT_CHANGE_MODE_CLASS): Add CLASS argument.
10724 * config/ns32k/ns32k.c (expand_block_move): Don't check
10725 flag_unroll_loops.
10726
6cd4a764
RH
107272003-04-17 Richard Henderson <rth@redhat.com>
10728
10729 * config/mcore/mcore.c (mcore_encode_section_info): Don't set
10730 SYMBOL_REF_FLAG.
10731
89e6b702
RH
107322003-04-17 Richard Henderson <rth@redhat.com>
10733
10734 * rtl.h (SYMBOL_FLAG_MACH_DEP_SHIFT): New.
10735
10736 * config/m32r/m32r.c (SYMBOL_FLAG_MODEL_SHIFT): New.
10737 (SYMBOL_REF_MODEL): New.
10738 (LIT_NAME_P): Move from m32r.h.
10739 (m32r_select_section): Remove.
10740 (m32r_encode_section_info): Use SYMBOL_REF_FLAGS.
10741 (m32r_strip_name_encoding): Remove.
10742 (m32r_in_small_data_p): New.
10743 (small_data_operand): Use SYMBOL_REF_SMALL_P.
10744 (addr24_operand): Use SYMBOL_REF_MODEL.
10745 (call26_operand): Likewise.
10746 (addr32_operand): Tidy.
10747 (m32r_print_operand): Use HOST_WIDE_INT_PRINT_HEX.
10748 * config/m32r/m32r.h (RODATA_SECTION_ASM_OP): Remove.
10749 (SDATA_SECTION_ASM_OP, SBSS_SECTION_ASM_OP): Remove.
10750 (READONLY_DATA_SECTION_ASM_OP): Remove.
10751 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
10752 (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Remove.
10753 (TARGET_ASM_SELECT_SECTION): Remove.
10754 (SDATA_FLAG_CHAR, MEDIUM_FLAG_CHAR, LARGE_FLAG_CHAR): Remove.
10755 (SDATA_NAME_P, SMALL_NAME_P, MEDIUM_NAME_P): Remove.
10756 (LARGE_NAME_P, ENCODED_NAME_P): Remove.
10757 (ASM_OUTPUT_LABELREF): Remove.
10758
ec94fc00
RH
107592003-04-17 Richard Henderson <rth@redhat.com>
10760
10761 * config/ip2k/ip2k.c (is_regfile_address): Use SYMBOL_REF_FUNCTION_P.
10762 (encode_section_info): Remove.
10763 * config/ip2k/ip2k-protos.h: Update.
10764
1b8135a4
RH
107652003-04-17 Richard Henderson <rth@redhat.com>
10766
c6a2438a 10767 * varasm.c (default_encode_section_info): Don't set
1b8135a4
RH
10768 SYMBOL_FLAG_EXTERNAL if not TREE_PUBLIC.
10769 * config/i370/i370.c (i370_encode_section_info): Remove.
10770 * config/i370/i370.h (CONSTANT_ADDRESS_P): Use SYMBOL_REF_EXTERNAL_P.
10771 (PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Likewise.
10772 * config/i370/i370.md (movsi): Likewise.
10773
10774 * config/i370/t-i370: Add missing backslash.
10775
6d7fe8b3
EB
107762003-04-17 Eric Botcazou <ebotcazou@libertysurf.fr>
10777
10778 * doc/invoke.texi (inline-limit): Fix pasto.
10779
dc66a1c4
RH
107802003-04-17 Richard Henderson <rth@redhat.com>
10781
10782 * config/h8300/h8300.c (SYMBOL_FLAG_FUNCVEC_FUNCTION): New.
10783 (small_call_insn_operand): Use it.
10784 (SYMBOL_FLAG_EIGHTBIT_DATA): New.
10785 (h8300_eightbit_constant_address_p): Use it.
10786 (SYMBOL_FLAG_TINY_DATA): New.
10787 (h8300_tiny_constant_address_p): Use it.
10788 (h8300_encode_label, h8300_strip_name_encoding): Remove.
10789 (h8300_encode_section_info): Set SYMBOL_REF_FLAGS.
10790 * config/h8300/h8300.h (TINY_DATA_NAME_P): Remove.
10791 (ASM_OUTPUT_LABELREF): Remove.
10792
90a63880
RH
107932003-04-16 Richard Henderson <rth@redhat.com>
10794
0f6e5d45
RH
10795 * config/frv/frv.c (symbol_ref_small_data_p): Remove. Replace
10796 all users with SYMBOL_REF_SMALL_P.
10797 (const_small_data_p): Use SYMBOL_REF_SMALL_P.
10798 (frv_encode_section_info): Remove.
10799 (frv_strip_name_encoding): Remove.
10800 (frv_in_small_data_p): Merge tests from encode_section_info.
10801 (frv_print_operand): Use '@' not SDATA_FLAG_CHAR.
10802 * config/frv/frv.h (SDATA_FLAG_CHAR): Remove.
10803 (SDATA_NAME_P): Remove.
10804 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use SIZE not SDATA_NAME_P.
10805 (ASM_OUTPUT_LABELREF): Remove.
10806 (PRINT_OPERAND_PUNCT_VALID_P): Use '@' not SDATA_FLAG_CHAR.
10807
90a63880
RH
10808 * config/frv/frv.c (frv_asm_out_constructor): New.
10809 (frv_asm_out_destructor): New.
10810 * config/frv/frv.h (CTORS_SECTION_ASM_OP): New.
10811 (DTORS_SECTION_ASM_OP): New.
10812 (ASM_OUTPUT_CONSTRUCTOR): Remove.
10813 (ASM_OUTPUT_DESTRUCTOR): Remove.
10814
5c93e01b
RH
108152003-04-16 Richard Henderson <rth@redhat.com>
10816
10817 * config/cris/cris.c (cris_gotless_symbol, cris_got_symbol): Use
10818 SYMBOL_REF_LOCAL_P; abort if not pic.
10819 (cris_encode_section_info): Remove.
10820
11467df2
RH
108212003-04-16 Richard Henderson <rth@redhat.com>
10822
10823 * config/c4x/c4x.c (c4x_encode_section_info): Remove.
10824 (c4x_T_constraint): Use SYMBOL_REF_FUNCTION_P.
10825
10826 * config/c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): Declare
10827 flag_inline_trees.
10828
74b66b3c
RH
108292003-04-16 Richard Henderson <rth@redhat.com>
10830
10831 * config/avr/avr.c (avr_encode_section_info): Remove.
10832 (avr_insert_attributes): New.
10833 (print_operand_address): Use SYMBOL_REF_FUNCTION_P.
10834 (avr_assemble_integer): Likewise.
10835
8cbd5ce0
RH
108362003-04-16 Richard Henderson <rth@redhat.com>
10837
10838 * arc.c (arc_encode_section_info): Remove.
c6a2438a 10839 (arc_assemble_integer): Use SYMBOL_REF_FUNCTION_P.
8cbd5ce0
RH
10840 (arc_print_operand, arc_print_operand_address): Likewise.
10841 * arc.h (EXTRA_CONSTRAINT): Likewise.
10842
96c6931d
RS
108432003-04-16 Roger Sayle <roger@eyesopen.com>
10844
10845 * c-semantics.c (find_reachable_label): New function to find a
10846 potentially reachable label in an expression.
10847 (expand_unreachable_if_stmt): Similar to expand_if_stmt but
10848 assumes the start of the IF_STMT is unreachable (dead) code.
10849 (expand_unreachable_stmt): Similar to expand_stmt but assumes
10850 the start of the statement list is unreachable (dead) code.
10851 (genrtl_if_stmt): If the controlling expression of the IF
10852 is constant, use expand_unreachable_stmt for the THEN or ELSE
10853 clause as appropriate.
10854 (genrtl_switch_stmt): Use expand_unreachable_stmt to expand
10855 the body of a SWITCH statement.
10856 (expand_stmt): The code immediately following a "return",
10857 "break", "continue" or "goto" is unreachable.
10858 * Makefile.in (c-semantics.o): Depend upon tree-inline.h.
10859
3568b0ef
RH
108602003-04-16 Richard Henderson <rth@redhat.com>
10861
10862 * rtl.h (MEM_ALIAS_SET): Update documentation.
10863 * doc/rtl.texi (Special Accessors): New node.
10864 (SYMBOL_REF_FLAG): Note relationship with SYMBOL_REF_FLAGS.
10865
60fa6660
AO
108662003-04-16 Alexandre Oliva <aoliva@redhat.com>
10867
10868 * reload1.c (reload_cse_noop_set_p): Return false if mode of
10869 SET_DEST is not the same as that returned by...
10870 * cselib.h (cselib_reg_set_mode): ... new function.
10871 * cselib.c (cselib_reg_set_mode): Define it.
10872 (REG_VALUES): Document semantics of first element as set mode.
10873 (cselib_subst_to_values): Skip first element if ELT is NULL.
10874 (cselib_lookup): Likewise. Insert past the first element.
10875 (cselib_invalidate_regno): NULLify first element.
10876 (cselib_record_set): Set first element.
10877
15b19a7d
OH
108782003-04-16 Olivier Hainque <hainque@act-europe.fr>
10879
c6a2438a
ZW
10880 * tree.c (skip_simple_arithmetics_at, saved_expr_p): New functions.
10881 (save_expr): Replace loop by call to skip_simple_arithmetics_at.
10882 * tree.h: Add prototypes for the two new functions.
10883 * fold-const.c (fold_binary_op_with_conditional_arg): Replace test
10884 updates introduced in the previous revision by call to saved_expr_p.
10885 * stor-layout.c (put_pending_size): Use skip_simple_arithmetics_at.
a9ecacf6 10886
c6a2438a
ZW
10887 * expr.c (store_field): Force usage of bitfield instructions when
10888 the field position requires it, whatever SLOW_UNALIGNED_ACCESS.
10889 (expand_expr, case BIT_FIELD_REF): likewise.
15b19a7d 10890
f2d80e7e
MM
108912003-04-16 Mark Mitchell <mark@codesourcery.com>
10892
10893 PR middle-end/8866
10894 * cfgtrl.c (try_redirect_by_replacing_jump): Do not delete
10895 jumptables.
10896
1cdbd630
RH
108972003-04-16 Richard Henderson <rth@redhat.com>
10898
10899 * config/ia64/ia64.c (sdata_symbolic_operand): Use
10900 SYMBOL_REF_SMALL_P and SYMBOL_REF_LOCAL_P.
10901 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
10902 (function_operand): Use SYMBOL_REF_FUNCTION_P.
10903 (ia64_expand_load_address): Likewise.
10904 (ia64_assemble_integer): Likewise.
10905 (ia64_encode_section_info): Remove.
10906 (ia64_strip_name_encoding): Remove.
10907 * config/ia64/ia64.h (ENCODE_SECTION_INFO_CHAR): Remove.
10908 * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't strip it.
10909
d055668e
RH
109102003-04-16 Richard Henderson <rth@redhat.com>
10911
10912 * config/alpha/alpha.c (SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP): New.
10913 (samegp_function_operand): Use SYMBOL_FLAG_SAMEGP.
10914 (direct_call_operand): Use SYMBOL_FLAG_NEAR.
10915 (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
10916 (small_symbolic_operand): Use SYMBOL_REF_SMALL_P.
10917 (global_symbolic_operand): Similarly.
10918 (tls_symbolic_operand_1): Use SYMBOL_REF_TLS_MODEL.
10919 (tls_symbolic_operand_type): Likewise.
10920 (alpha_encode_section_info): Use default_encode_section_info.
10921 (alpha_strip_name_encoding): Remove.
10922 (get_tls_get_addr): Split out from ...
10923 (alpha_legitimize_address): ... here.
10924 (alpha_emit_xfloating_libcall): Use init_one_libfunc.
10925 (get_some_local_dynamic_name_1): Use SYMBOL_REF_TLS_MODEL.
10926 (alpha_initialize_trampoline): Use init_one_libfunc.
10927 (alpha_setup_incoming_varargs): Mark unused parameters.
10928 (alpha_initial_elimination_offset): Likewise.
10929 (alpha_end_function): Use SYMBOL_FLAG_NEAR, SYMBOL_FLAG_SAMEGP.
10930 (unicosmk_unique_section): Use default_strip_name_encoding.
10931 (unicosmk_ssib_name, unicosmk_output_externs): Likewise.
10932
ffd25996
AH
109332003-04-16 Aldy Hernandez <aldyh@redhat.com>
10934
c6a2438a 10935 * config.gcc: Add t-spe for eabispe.
ffd25996 10936
c6a2438a 10937 * config/rs6000/t-spe: New.
ffd25996 10938
7f0ea82e
R
109392003-04-16 J"orn Rennecke <joern.rennecke@superh.com>
10940
10941 Re-apply this patch:
10942
10943 2002-05-16 Dale Johannesen <dalej@apple.com>
10944 * combine.c (cant_combine_insn_p): Reenable combinations
10945 involving hard regs unless CLASS_LIKELY_SPILLED_P.
10946
c328adfa
JDA
109472003-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10948
10949 PR/10271
10950 * pa-protos.h (function_arg): Remove last argument.
10951 * pa.c (function_arg): Likewise. Use CUMULATIVE_ARGS struct instead.
c6a2438a 10952 * pa.h (struct hppa_args): Add member incoming.
c328adfa
JDA
10953 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Initialize
10954 member incoming.
10955 (FUNCTION_ARG): Revise call to function_arg.
10956 (FUNCTION_INCOMING_ARG): Delete.
10957
f9c1196a
ZW
109582003-04-15 Zack Weinberg <zack@codesourcery.com>
10959
10960 * configure.in: Unify the code which creates symlinks to a
10961 just-built as, ld, objdump, and nm with the code that detects
10962 their presence for purposes of feature tests.
10963 * configure: Regenerate.
10964
0b78a9b6
ZW
109652003-04-15 Zack Weinberg <zack@codesourcery.com>
10966
10967 * varasm.c (output_constant_def): Do not consult
10968 CONSTANT_AFTER_FUNCTION_P. Remove all code predicated on it.
10969 (after_function_constants, output_after_function_constants): Delete.
10970 * doc/tm.texi: Delete documentation of CONSTANT_AFTER_FUNCTION_P.
10971 * config/mips/mips-protos.h, config/mips/mips.c
10972 (mips16_constant_after_function_p): Delete.
10973 * config/mips/mips.h: Delete #if-0-ed definition of
10974 CONSTANT_AFTER_FUNCTION_P.
10975 * config/d30v/d30v.h, config/stormy16/stormy16.h: Remove
10976 mention of CONSTANT_AFTER_FUNCTION_P in comment.
10977
03907fbd
GK
109782003-04-15 Geoffrey Keating <geoffk@apple.com>
10979
10980 * tree.c (next_decl_uid): Mark with GTY.
10981 (next_type_uid): Likewise.
10982
9959c8c7
R
109832003-04-15 J"orn Rennecke <joern.rennecke@superh.com>
10984
10985 PR target/9594:
10986 * sh.c (barrier_align): Also recognize stuff_delay_slot as
10987 an indicator that a barrier was created by branch splitting.
10988
c8b718ba
MM
109892003-04-15 Mark Mitchell <mark@codesourcery.com>
10990
10991 * c-decl.c (implicitly_declare): Copy declarations that are going
10992 to be placed in a local scope.
10993
f5034c5e
JM
109942003-04-15 James A. Morrison <ja2morri@uwaterloo.ca>
10995
10996 * invoke.texi (Spec Files): Wrap if-exists-else example.
10997 (MCore): Remove duplicate @itemx entries and @opindex entries.
10998
7344f3d7
UW
109992003-04-15 Ulrich Weigand <uweigand@de.ibm.com>
11000
11001 * unwind.inc (_Unwind_Backtrace): New function.
11002 * unwind.h (_Unwind_Backtrace): Declare it.
11003 * libgcc-std.ver (_Unwind_Backtrace): Export it.
11004
9547e8fd
JM
110052003-04-14 Jason Merrill <jason@redhat.com>
11006
11007 PR middle-end/10336, c++/10401
0b78a9b6 11008 * jump.c (never_reached_warning): Also stop looking if we reach the
9547e8fd
JM
11009 beginning of the function.
11010
55adc7bd
KG
110112003-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11012
11013 PR target/10338
11014 PR bootstrap/10198
11015 PR bootstrap/10140
11016 * fixinc/gnu-regex.c (regerror): Use mempcpy not __mempcpy.
11017
d2b54839
R
110182003-04-15 J"orn Rennecke <joern.rennecke@superh.com>
11019
11020 * i386.md (abssf2_if+1): Make condition agree with abssf2_1 .
11021
d0ccc658
RK
110222003-04-15 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11023
11024 * optabs.c (expand_binop): In multi-word add cases, ensure
11025 XTARGET is copied to TARGET if they are different.
11026
29921faf
OH
110272003-04-15 Olivier Hainque <hainque@act-europe.fr>
11028
11029 * except.c (resolve_fixup_regions): Avoid dereferencing null pointer
11030 to region, possible after integration of function with unreachable
11031 regions that were optimized away.
11032
ff3867ae
JJ
110332003-04-15 Jakub Jelinek <jakub@redhat.com>
11034
11035 * config/rs6000/rs6000.h (EPILOGUE_USES): Use register 2,
11036 instead of TOC_REGISTER in epilogue in
11037 current_function_calls_eh_return functions.
11038
f4e92987
MM
110392003-04-14 Mark Mitchell <mark@codesourcery.com>
11040
db0b376e
MM
11041 * doc/extend.texi (Empty Structures): Correct description of G++'s
11042 handling of these structures.
11043
f4e92987
MM
11044 * c-decl.c (grokdeclarator): Reject extern redeclarations of
11045 static variables.
11046
629f6514
JJ
110472003-04-14 Janis Johnson <janis287@us.ibm.com>
11048
615158e2
JJ
11049 * config/rs6000/rs6000.md (define_constants): Define constants for
11050 all UNSPEC usage, including new values for TLS support.
11051 (aux_truncdfsf2, fctiwz, movsi_got, movsi_got_internal,
11052 load_toc_aix_si, load_toc_aix_di, load_toc_v4_pic_si,
11053 load_toc_v4_PIC_1, load_toc_v4_PIC_1b, load_macho_picbase,
11054 macho_correct_pic, blockage, move_from_CR_ov_bit, movesi_from_cr,
11055 stack_tie, movsi_to_cr_one, movsi_to_cr, mtcrfsi, eh_set_lr_si,
11056 eh_set_lr_di): Use them.
11057 * rs6000.c: (mtcrf_operation, uses_TOC, rs6000_emit_prologue,
11058 rs6000_emit_epilogue) Use them.
11059
629f6514
JJ
11060 * rtl.h (SYMBOL_REF_TLS_MODEL): Fix mask value.
11061
8951a635
NB
110622003-04-14 Neil Booth <neil@daikokuya.co.uk>
11063
11064 * Makefile.in (c-opts.o): Use custom action.
11065
798a3935
DR
110662003-04-14 Douglas B Rupp <rupp@gnat.com>
11067
11068 * ifcvt.c (noce_process_if_block): Fail on BLKmode move.
11069
2443af37
RK
110702003-04-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11071
0d3c8800
RK
11072 * stor-layout.c (layout_type, case ARRAY_TYPE): Add missing code to
11073 handle "superflat arrays" in Ada.
11074
2443af37
RK
11075 * integrate.c (expand_inline_function): Don't inline if would
11076 lose /u on a BLKmode TARGET.
11077
8cb5fbbf
JB
110782003-04-14 Joel Brobecker <brobecker@gnat.com>
11079
39d658e3
JB
11080 * dbxout.c (print_int_cst_bounds_in_octal_p): New function,
11081 extracted from dbxout_type.
11082 (dbxout_range_type): print large bounds in octal format.
11083 (dbxout_type): Replace extracted code by call to
11084 print_int_cst_bounds_in_octal_p.
11085
0b78a9b6
ZW
11086 * dwarf2out.c (gen_compile_unit_die): Emit DW_LANG_Ada95 instead
11087 of DW_LANG_Ada83 for Ada units.
8cb5fbbf 11088
9ceca302
OH
110892003-04-14 Olivier Hainque <hainque@act-europe.fr>
11090
41ee3204
OH
11091 * explow.c (round_push): Use HOST_WIDE_INT instead of int for the
11092 temporary used to round CONST_INT sizes.
11093
4694840a
OH
11094 * tree.c (int_fits_type_p): Extract generic checks from the case
11095 of constant type bounds. Refine the checks against constant type
11096 bounds to allow for possible decisions against each of these bounds
11097 without requiring both bounds to be constant.
11098 (tree_int_cst_msb): Put back.
11099 * tree.h (tree_int_cst_msb): Likewise.
11100
4147232b
OH
11101 * global.c (global_conflicts): Prevent allocation of call clobbered
11102 hard regs to pseudos live across abnormal edges, as later passes are
11103 not ready to handle them.
11104
0b78a9b6
ZW
11105 * fold-const.c (fold): Reorder tests for conditional expressions.
11106
11107 * expr.c (highest_pow2_factor): Return unsigned.
11108 * expr.h (offset_address): Likewise.
11109 * emit-rtl.c (offset_address): POW2 argument now unsigned.
cbcafd35 11110
712b7a05
RS
111112003-04-14 Roger Sayle <roger@eyesopen.com>
11112
11113 * builtins.c (expand_builtin_strlen): Evaluate the lengths of
11114 string literals at compile-time.
11115
15d4fd98
RS
111162003-04-14 Roger Sayle <roger@eyesopen.com>
11117
11118 * fold-const.c (fold): Transform (c1 - x) cmp c2, where cmp is a
11119 comparison operation and c1/c2 are floating point constants into
11120 x swap(cmp) (c1 - c2).
11121
2fcb395c
VM
111222003-04-14 Vladimir Makarov <vmakarov@redhat.com>
11123
11124 * genautomata.c (output_translate_vect): Fix a typo in loop
11125 condition.
11126
747a0d9d
HPN
111272003-04-14 Hans-Peter Nilsson <hp@axis.com>
11128
11129 PR target/10377
11130 * config/cris/cris.md ("*mov_sideqi", "*mov_sidehi")
11131 ("*mov_sidesi", "*mov_sideqi_mem", "*mov_sidehi_mem")
11132 ("*mov_sidesi_mem", "*clear_sidesi", "*clear_sidehi")
11133 ("*clear_sideqi", "*ext_sideqihi", "*ext_sideqisi")
11134 ("*ext_sidehisi", "*op_sideqi", "*op_sidehi", "*op_sidesi")
11135 ("*op_swap_sideqi", "*op_swap_sidehi", "*op_swap_sidesi")
11136 ("*extopqihi_side", "*extopqisi_side", "*extophisi_side")
11137 ("*extopqihi_swap_side", "*extopqisi_swap_side")
11138 ("*extophisi_swap_side", 8th, 9th, 10th, 11th, 14th peepholes):
11139 When next to constraint R, replace constraint i with n.
11140
58e6ae30
JH
11141Mon Apr 14 16:18:37 CEST 2003 Jan Hubicka <jh@suse.cz>
11142
11143 PR opt/10024
11144 * cfgrtl.c (force_nonfallthru_and_redirect): Use unchecked_make_edge.
11145
88657a26
KL
111462003-04-14 Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net>
11147
11148 * doc/contrib.texi (Contributors): Correct my entry.
11149
7f685e17
RS
111502003-04-13 Roger Sayle <roger@eyesopen.com>
11151
11152 * tree.h (DECL_BUILT_IN_NONANSI): Remove.
11153 * c-common.c (builtin_function_2): Don't set DECL_BUILT_IN_NONANSI.
11154 * c-decl.c (duplicate_decls): Use invariant DECL_BUILT_IN_NONANSI
11155 implies DECL_BUILT_IN to simplify logic.
11156 * print-tree.c (print_node): Don't dump DECL_BUILT_IN_NONANSI.
11157
1331d16f
RS
111582003-04-13 Roger Sayle <roger@eyesopen.com>
11159
11160 * builtin-types.def (BT_FN_STRING_CONST_STRING): New builtin type.
11161 (BT_FN_PTR_SIZE_SIZE): Likewise.
11162 * builtins.def (BUILT_IN_MALLOC, BUILT_IN_CALLOC, BUILT_IN_STRDUP):
11163 New built-in functions for malloc, calloc and strdup respectively.
11164 * calls.c (special_function_p): No need to handle malloc-like
11165 functions any longer. ECF_MALLOC is set via built-in attributes.
11166
11167 * c-decl.c (duplicate_decls): Preserve pure and malloc attributes.
11168
11169 * doc/extend.texi: Document these new built-in functions.
11170
9cb65f92
KG
111712003-04-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
11172
11173 * builtins.c (expand_builtin_memcpy): Add `endp' argument, use it.
11174 (expand_builtin_stpcpy): New.
11175 (expand_builtin): Add BUILT_IN_MEMPCPY & BUILT_IN_STPCPY.
11176 * builtins.def: Add mempcpy & stpcpy support.
11177 * doc/extend.texi (mempcpy, stpcpy): Document new builtins.
11178
5de601cf
NC
111792003-04-13 Nick Clifton <nickc@redhat.com>
11180
11181 * config/rs6000/rs6000.c: Replace occurrences of "GNU CC" with
11182 "GCC".
11183 * config/rs6000/40x.md, config/rs6000/603.md,
11184 config/rs6000/6xx.md, config/rs6000/7450.md, config/rs6000/7xx.md,
11185 config/rs6000/8540.md, config/rs6000/aix.h, config/rs6000/aix31.h,
11186 config/rs6000/aix3newas.h, config/rs6000/aix41.h,
11187 config/rs6000/aix43.h, config/rs6000/aix51.h,
11188 config/rs6000/aix52.h, config/rs6000/altivec-defs.h,
11189 config/rs6000/altivec.h, config/rs6000/altivec.md,
11190 config/rs6000/beos.h, config/rs6000/darwin.h,
11191 config/rs6000/eabi.h, config/rs6000/eabialtivec.h,
11192 config/rs6000/eabisim.h, config/rs6000/eabispe.h,
11193 config/rs6000/freebsd.h, config/rs6000/gnu.h,
11194 config/rs6000/host-darwin.c, config/rs6000/linux.h,
11195 config/rs6000/linux64.h, config/rs6000/linuxaltivec.h,
11196 config/rs6000/lynx.h, config/rs6000/mach.h, config/rs6000/mpc.md,
11197 config/rs6000/netbsd.h, config/rs6000/power4.md,
11198 config/rs6000/rios1.md, config/rs6000/rios2.md,
11199 config/rs6000/rs6000-c.c, config/rs6000/rs6000-modes.def,
11200 config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
11201 config/rs6000/rs6000.h, config/rs6000/rs6000.md,
11202 config/rs6000/rs64.md, config/rs6000/rtems.h, config/rs6000/spe.h,
11203 config/rs6000/spe.md, config/rs6000/sysv4.h,
11204 config/rs6000/sysv4le.h, config/rs6000/vxworks.h,
0b78a9b6 11205 config/rs6000/windiss.h, config/rs6000/xcoff.h: Likewise.
5de601cf 11206
50d440bc
NC
112072003-04-13 Nick Clifton <nickc@redhat.com>
11208
11209 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Delete
11210 support for -mcall-aix switch.
11211 * config/rs6000/eabiaix.h: Delete.
11212 * config/rs6000/rs6000.h (rs6000_abi): Remove ABI_AIX_NODESC.
11213 (RS6000_REG_SAVE, RS6000_SAVE_AREA, FP_ARGS_MAX_REG,
11214 RETURN_ADDRESS_OFFSET): Remove use of ABI_AIX_NODESC.
11215 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Likewise.
11216 * config/rs6000/rs6000.c (print_operand, rs6000_stack_info,
11217 debug_stack_info, output_function_profiler,
11218 rs6000_trampoline_size, rs6000_initialise_trampoline): Likewise.
11219 * config/rs6000/rs6000.md (call, call_value, call_nonlocal_sysv,
11220 call_indirect_nonlocal_sysv, call_value_indirect_nonlocal_sysv,
11221 call_value_nonlocal_sysv, sibcall_value_nonlocal_sysv,
11222 sibcall_nonlocal_sysv, sibcall_value_local64): Likewise.
11223 * config/rs6000/t-ppcgas (MULTILIB_OPTIONS): Remove mcall-aix
11224 multilibs.
11225 (MULTILIB_DIRNAMES): Remove mcall-aix directories.
11226 (MULTILIB_EXCEPTIONS): Delete.
11227 (MULTILIB_MATCHES): Remove mcall-aix matches.
11228
11229 * doc/fragments.texi: Replace -mcall-aix example with an ARM
11230 one.
11231 * doc/install.texi: Delete powerpc-*-eabiaix target.
11232 * doc/invoke.texi: Remove documentation of mcall-aix switch.
11233 * doc/tm.texi: Remove mcall-aix from example CPP_SPEC.
11234 * config.gcc: Delete powerpc-*-eabiaix target.
11235
62b9c42c
KH
112362003-04-13 Kazu Hirata <kazu@cs.umass.edu>
11237
11238 * doc/invoke.texi: Fix typos.
11239 * doc/tm.texi: Likewise.
11240
6d0c8bb1
ZW
112412003-04-12 Zack Weinberg <zack@codesourcery.com>
11242
11243 * c-typeck.c (digest_init, push_init_level): Use CONSTRUCTOR_ELTS.
11244
dcf92453
ZW
112452003-04-12 Zack Weinberg <zack@codesourcery.com>
11246
11247 * tree.c (build_constructor): New function.
11248 * tree.h: Prototype it.
11249
11250 * c-typeck.c (build_c_cast, pop_init_level)
11251 * profile.c (build_function_info_value, build_gcov_info_value)
11252 (create_profiler):
11253 Use build_constructor.
11254
11255 * builtins.c (expand_builtin_args_info): Remove #if 0 blocks.
11256
11257 * objc/objc-act.c (build_constructor):
11258 Rename objc_build_constructor. Use build_constructor.
11259 (build_objc_string_object, objc_add_static_instance)
11260 (init_def_list, init_objc_symtab, init_module_descriptor)
11261 (generate_static_references, build_selector_translation_table)
11262 (build_descriptor_table_initializer, generate_descriptor_table)
11263 (build_protocol_initializer, build_ivar_list_initializer)
11264 (generate_ivars_list, build_dispatch_table_initializer)
11265 (generate_dispatch_table, generate_protocol_list)
11266 (build_category_initializer, build_shared_structure_initializer):
11267 Update to match.
11268
c85b28e8
ZW
112692003-04-12 Zack Weinberg <zack@codesourcery.com>
11270
11271 * intl.h: #define gcc_gettext_width to strlen when !ENABLE_NLS.
11272
cebcfdc8
SC
112732003-04-12 Stephane Carrez <stcarrez@nerim.fr>
11274
dcf92453 11275 * config/m68hc11/m68hc11-protos.h
cebcfdc8
SC
11276 (m68hc11_eq_compare_operator): Declare
11277 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register new predicate.
11278 * config/m68hc11/m68hc11.c (m68hc11_eq_compare_operator): New predicate
11279 (d_register_operand): Check the operand mode.
11280 (hard_addr_reg_operand): Likewise.
11281
0ae32ec0
SC
112822003-04-12 Stephane Carrez <stcarrez@nerim.fr>
11283
11284 * config/m68hc11/m68hc11.md ("decrement_and_branch_until_zero"): New
11285 pattern for dbcc/ibcc generation for 68HC12.
11286 ("doloop_end"): New pattern.
11287 ("m68hc12_dbcc_dec_hi"): New pattern for dbeq/dbne.
11288 ("m68hc12_dbcc_inc_hi"): New pattern for ibeq/ibne.
11289 ("m68hc12_dbcc_dec_qi"): New pattern.
11290 ("m68hc12_dbcc_inc_qi"): New pattern.
11291 (split): Add split for the above when we can't use dbcc/ibcc due to
11292 reloading.
11293 (peephole2): Add peephole2 to generate the above when possible.
11294
a67bac5f
SC
112952003-04-12 Stephane Carrez <stcarrez@nerim.fr>
11296
11297 * config/m68hc11/m68hc11.md ("bitcmpqi" split): No need to test the
11298 mode of operand 0.
11299 (peephole2 optimize const load): Likewise for operand 2.
11300 ("*rotlhi3_with_carry"): Change pattern to a const 1 rotate which
11301 clobbers CC_REGNUM.
11302 ("*rotrhi3_with_carry"): Likewise.
11303 (ashift:DI 1 split): Update pattern to create the above rotate.
11304 (lshiftrt:DI 1 split): Likewise.
11305
09214424
SC
113062003-04-12 Stephane Carrez <stcarrez@nerim.fr>
11307
11308 * config/m68hc11/m68hc11.md (SOFT_Z_REGNUM): New constant.
11309 ("tstqi_z_used" split): Use it.
11310 ("cmphi_z_used"): Likewise.
11311 ("bitcmpqi_z_used"): Likewise; also use SP_REGNUM constant.
11312 ("cmpqi_z_used"): Likewise.
11313
355b81d5
MM
113142003-04-12 Mark Mitchell <mark@codesourcery.com>
11315
11316 PR c++/7910
11317 * config/i386/winnt.c (i386_pe_mark_dllimport): Fix thinko.
11318
2bd02043
ZW
113192003-04-12 Zack Weinberg <zack@codesourcery.com>
11320
11321 * configure.in: Check for wchar.h, mbstowcs, and wcswidth.
11322 * configure, config.in: Regenerate.
11323 * intl.c (gcc_gettext_width): New function.
11324 * intl.h: Prototype it.
11325
96cd9069
SC
113262003-04-12 Stephane Carrez <stcarrez@nerim.fr>
11327
11328 * config/m68hc11/m68hc11.h (TARGET_SWITCHES): Fix -mnominmax option;
11329 recognize -mnorelax.
11330 (reg_class): Add Z_OR_S_REGS to represent soft registers with Z
11331 (REG_CLASS_NAMES): Add its name.
11332 (REG_CLASS_CONTENTS): Define its content.
11333
c364c3a6
SC
113342003-04-12 Stephane Carrez <stcarrez@nerim.fr>
11335
11336 * config/m68hc11/larith.asm (memcpy): Use ARG macro to access stack
11337 parameters so that offsets are valid for far definition.
11338 (__mulsi3): Likewise and use ret to return.
11339 (___adddi3, ___subdi3, ___notdi2, ): Don't use it to save the result.
11340
09501938
DE
113412003-04-12 David Edelsohn <edelsohn@gnu.org>
11342
11343 * config/rs6000/rs6000.c (rs6000_hash_constant): Skip '0' fields.
11344
ff3d4e83
AO
113452003-04-12 Alexandre Oliva <aoliva@redhat.com>
11346
17a15c67
AO
11347 * mklibgcc.in (libgcc-stage-start): For every multilib directory
11348 containing a libgcc.a, move lib* to the corresponding stage dir.
11349
ff3d4e83
AO
11350 * Makefile.in (stage1-start, stage2-start, stage3-start,
11351 stage4-start): Move $(SPECS) to specs in stage dir.
11352 (unstage1 unstage2 unstage3 unstage4): Move specs in stage dir
11353 back as $(SPECS).
11354
9e6ccb98
AO
11355 * mklibgcc.in (libgcc-stage-start): Move into the stage directory
11356 object files from the non-libgcc/ multilib directories as well.
11357
ba05abd3
GK
113582003-04-11 Geoffrey Keating <geoffk@apple.com>
11359
0aaafe73
GK
11360 * profile.c (read_counts_file): Initialise 'checksum'.
11361
d5b9108c
GK
11362 * emit-rtl.c (gen_rtx): Really correct typo.
11363
a37db56b
GK
11364 PR c++/9393
11365 * doc/invoke.texi (Debugging Options): Document -frandom-seed.
11366 * configure.in: Check for gettimeofday.
11367 * tree.c (flag_random_seed): Define.
11368 (default_flag_random_seed): New.
11369 (append_random_chars): Use flag_random_seed rather than trying
11370 to acquire randomness here.
11371 * tree.h (default_flag_random_seed): Declare.
11372 * toplev.c (display_help): Add -frandom-seed and -fstack-limit-*
11373 descriptions.
11374 (decode_f_option): Handle -frandom-seed.
11375 (print_switch_values): Call default_flag_random_seed.
11376 * flags.h (flag_random_seed): Declare.
11377 * configure: Regenerate.
11378 * config.in: Regenerate.
11379 * config/alpha/t-crtfm: Use -frandom-seed.
2bd02043 11380
ba05abd3
GK
11381 * doc/extend.texi (Empty Structures): New.
11382
df026186
GK
11383 * c-pch.c: Include flags.h. Add comments to routines.
11384 (struct c_pch_validity): New.
11385 (get_ident): Update PCH file version number.
11386 (pch_init): Output current debugging type.
11387 (c_common_valid_pch): Check debugging type.
11388 * Makefile.in (c-pch.o): Update dependencies.
11389 * flags.h (debug_type_names): Declare.
11390 * toplev.c (debug_type_names): Move out of decode_g_option.
11391
15c812e3
EC
113922003-04-11 Eric Christopher <echristo@redhat.com>
11393
11394 * emit-rtl.c (gen_rtx): Fix typos.
11395
a73071bc
RH
113962003-04-11 Richard Henderson <rth@redhat.com>
11397
11398 * emit-rtl.c (gen_rtx): Zero '0' fields.
11399
ca06cfe6
RH
114002003-04-11 Richard Henderson <rth@redhat.com>
11401
11402 PR c++/10202
11403 * expr.c (expand_expr): Use COMPLETE_OR_UNBOUND_ARRAY_TYPE_P
11404 not COMPLETE_TYPE_P for re-invoking layout_decl.
11405
d2d42a91
SL
114062003-04-11 Simon Law <sfllaw@engmail.uwaterloo.ca>
11407
11408 * doc/bugreport.texi: Fix paragraph breaking between sections
11409 in preparation for TeXinfo's paragraph indentation fixes.
11410 * doc/extend.texi: Ditto.
11411 * doc/invoke.texi: Ditto.
11412 * doc/objc.texi: Ditto.
11413 * doc/gcov.texi: Wrap 'gcov' in @command{}.
11414 * doc/invoke.texi (Darwin Options): Add a preamble.
11415
2ae5ae57
RH
114162003-04-11 Richard Henderson <rth@redhat.com>
11417
11418 * config/i386/i386.c (tls_model_chars): Remove.
11419 (ix86_encode_section_info, ix86_strip_name_encoding): Remove.
11420 (local_symbolic_operand): Use SYMBOL_REF_LOCAL_P.
11421 (tls_symbolic_operand): Use SYMBOL_REF_TLS_MODEL.
11422 (tls_symbolic_operand_1): Likewise.
11423 (legitimate_pic_address_disp_p): Use SYMBOL_REF_LOCAL_P.
11424 * config/i386/i386.h (TARGET_ENCODE_SECTION_INFO): Remove.
11425 (TARGET_STRIP_NAME_ENCODING, ASM_OUTPUT_LABELREF): Remove.
11426 * config/i386/winnt.c (i386_pe_encode_section_info): Replace
11427 bits "copied from i386.h" with default_encode_section_info.
11428
52859c77
RH
114292003-04-11 Richard Henderson <rth@redhat.com>
11430
11431 * rtl.def (SYMBOL_REF): Add two 0 fields.
11432 * gengtype.c (adjust_field_rtx_def): Handle them.
11433 * print-rtl.c (print_rtx): Print them.
11434 * rtl.h (SYMBOL_REF_DECL, SYMBOL_REF_FLAGS): New.
11435 (SYMBOL_FLAG_FUNCTION, SYMBOL_REF_FUNCTION_P): New.
11436 (SYMBOL_FLAG_LOCAL, SYMBOL_REF_LOCAL_P): New.
11437 (SYMBOL_FLAG_SMALL, SYMBOL_REF_SMALL_P): New.
11438 (SYMBOL_FLAG_TLS_SHIFT, SYMBOL_REF_TLS_MODEL): New.
11439 (SYMBOL_FLAG_EXTERNAL, SYMBOL_REF_EXTERNAL_P): New.
11440 (SYMBOL_FLAG_MACH_DEP): New.
11441 * optabs.c (init_one_libfunc): Zap fake SYMBOL_REF_DECL.
11442 * varasm.c (make_decl_rtl): Set SYMBOL_REF_DECL.
11443 (assemble_static_space): Set SYMBOL_REF_FLAGS.
11444 (assemble_trampoline_template): Likewise.
11445 (output_constant_def, force_const_mem): Likewise.
11446 (default_encode_section_info): New.
11447 * output.h: Declare it.
11448 * target-def.h (TARGET_ENCODE_SECTION_INFO): Use it.
11449
68d28100
RH
114502003-04-11 Richard Henderson <rth@redhat.com>
11451
11452 * libfuncs.h (LTI_setbits, LTI_gcov_flush, LTI_gcov_init): New.
11453 (setbits_libfunc, gcov_flush_libfunc, gcov_init_libfunc): New.
11454 * optabs.c (init_optabs): Initialize them.
11455 (init_libfuncs): Use init_one_libfunc.
11456 * calls.c (expand_call): Use gcov_flush_libfunc.
11457 * expr.c (store_constructor): Use setbits_libfunc.
11458 * function.c (expand_main_function): Use init_one_libfunc.
11459 * profile.c (create_profiler): Use gcov_init_libfunc and DECL_RTL.
11460
11fe27a5
MM
114612003-04-11 Mark Mitchell <mark@codesourcery.com>
11462
11463 * doc/c-tree.texi (Functions): Remove DECL_REAL_CONTEXT
11464 documentation; add DECL_FRIEND_CONTEXT.
11465
f401d0f5
JDA
114662003-04-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11467
11468 * doc/install.texi (hppa): Update links for HP-UX patches. Revise
11469 notes on linker selection and configuration for 64-bit HP-UX port.
11470 * doc/invoke.texi (hppa): Remove hppa text from description for
11471 -ffunction-sections and -fdata-sections. Document -static, -nolibdld
11472 and -threads options.
11473
11474 * pa-hpux10.h (LIB_SPEC): Add link options to resolve dependency of
11475 libc.a on libdld.sl when -static is specified and -nolibdld is not
11476 specified.
11477 * pa64-hpux.h (LIB_SPEC): Likewise.
11478 * pa-hpux11.h (LIB_SPEC): Likewise.
11479 (LINK_SPEC): Add __gcc_plt_call as an undefined symbol when -shared
11480 is not specified.
11481
43451169
ZW
114822003-04-11 Zack Weinberg <zack@codesourcery.com>
11483
11484 * config/darwin-c.c (darwin_pragma_unused): Use lookup_name,
11485 not IDENTIFIER_LOCAL_VALUE.
11486
a46666a9
RH
114872003-04-11 Richard Henderson <rth@redhat.com>
11488
11489 PR c/10201
11490 * expr.c (expand_expr): Move DECL_RTL frobbing ...
11491 * stor-layout.c (layout_decl): ... here.
11492
6d2f9dd3
JM
114932003-04-11 James A. Morrison <ja2morri@uwaterloo.ca>
11494
11495 * doc/invoke.texi: Eliminate extra white-space caused by
11496 @gccoptlist{ on its own line.
11497 * doc/invoke.texi: Ensured there are two spaces between each option.
11498 * doc/invoke.texi: Re-wrapped option lines that were too wide.
11499 Added @gol to options that didn't have them.
11500
94de45d9
NS
115012003-04-11 Nathan Sidwell <nathan@codesourcery.com>
11502
11503 * Makefile.in (loop-init.o): Do not depend on gcov-io.h,
11504 gcov-iov.h.
11505
11506 Simplify interface to gcov reading and writing.
11507 * gcov-io.h (gcov_file, gcov_position, gcov_length, gcov_buffer,
11508 gcov_alloc, gcov_modified, gcov_errored): Move into ...
11509 (struct gcov_var gcov_var): ... this static structure.
11510 (gcov_write_unsigned, gcov_write_counter, gcov_write_string):
11511 Return void.
11512 (gcov_read_unsigned, gcov_read_couter, gcov_read_string): Return
11513 read object.
11514 (gcov_read_bytes, gcov_write_bytes): Set error flag on error.
11515 (gcov_reserve_length): Remove.
11516 (gcov_write_tag): New.
11517 (gcov_write_length): Adjust.
11518 (gcov_read_summary, gcov_write_summary): Adjust.
11519 (gcov_eof, gcov_ok): Rename to ...
11520 (gcov_is_eof, gcov_is_error): ... here. Return error code.
11521 (gcov_save_position, gcov_resync): Rename to ...
11522 (gcov_position, gcov_seek): ... here.
11523 (gcov_skip, gcov_skip_string): Remove.
11524 (gcov_error): Remove.
11525 (gcov_open, gcov_close): Adjust.
11526 * gcov.c (find_source): Take const char *, copy it on allocation.
11527 (read_graph_file): Adjust.
11528 (read_count_file): Adjust.
11529 * libgcov.c (gcov_exit): Adjust.
11530 * gcov-dump.c (tag_function, tag_blocks, tag_arcs, tag_lines,
11531 tag_arc_counts, tag_summary): Return void. Adjust.
11532 (struct tag_format): Adjust proc member.
11533 (dump_file): Adjust gcov calls.
11534
7a615b25
AO
115352003-04-11 Alexandre Oliva <aoliva@redhat.com>
11536
11537 * Makefile.in (fixinc.sh): Pass BUILD_LIBERTY as LIBERTY to
11538 mkfixinc.sh.
11539 * fixinc/mkfixinc.sh (defs): Add LIBERTY.
11540 * configure.in (STMP_FIXINC, STMP_FIXPROTO): Don't disable on
11541 build != host sysrooted builds.
11542 * configure.in (SYSTEM_HEADER_DIR): Make sure it contains
11543 TARGET_SYSTEM_ROOT even on sysrooted natives.
11544 * configure: Rebuilt.
11545
339a28b9
ZW
115462003-04-10 Zack Weinberg <zack@codesourcery.com>
11547
11548 * c-decl.c (struct binding_level): Add shadowed_tags and
11549 function_body; remove this_block, tag_transparent, and
11550 subblocks_tag_transparent; update comments.
11551 (clear_binding_level, lookup_tag_reverse): Kill.
11552 (make_binding_level): Use ggc_alloc_cleared or memset.
11553 (lookup_tag): Remove struct binding_level* parameter. All
11554 callers changed. Just look at IDENTIFIER_TAG_VALUE, and
11555 current_binding_level->tags if asked for thislevel_only or if
11556 we might have to diagnose "struct foo; union foo;"
11557 (pushlevel): Ignore argument. Do not push another binding
11558 level on the transition from the parameters to the top level
11559 of the function body; just tweak the flags and proceed.
11560 (poplevel): Overhaul. Clear IDENTIFIER_TAG_VALUEs; on exiting
11561 a function body, separate the parameter list from the
11562 top-level local variables.
11563 (set_block): Do nothing.
11564 (pushtag): Set IDENTIFIER_TAG_VALUE and add an entry to
11565 shadowed_tags if necessary.
11566 (warn_if_shadowing): Nuke the special case for local shadowing
11567 parameter.
11568 (pushdecl): Do not create a shadow entry if we are replacing
11569 an older decl in the same binding level.
11570 (pushdecl_function_level): Tweak for new way of indicating
11571 function scope.
11572 (shadow_tag_warned): Use TYPE_NAME, not lookup_tag_reverse.
11573 (start_function): Don't set subblocks_tag_transparent.
11574 (finish_function): Fix up the binding_level stack for totally
11575 empty functions. Otherwise, don't call poplevel.
11576
11577 * c-common.c (shadow_warning): MANDATORY argument is no longer
11578 necessary. Always use plain warning.
11579 * c-common.h: Update to match.
11580
11581 * cfglayout.c (scope_to_insns_initialize): Clear block when we
11582 hit the FUNCTION_DECL.
11583 * function.c: Do not create cyclic tree structure.
11584
115852003-04-10 Zack Weinberg <zack@codesourcery.com>
11586
11587 * c-tree.h (struct lang_identifier): Replace global_value,
11588 local_value members with symbol_value, tag_value. Kill
11589 implicit_decl and limbo_value.
11590 (IDENTIFIER_GLOBAL_VALUE, IDENTIFIER_LOCAL_VALUE,
11591 IDENTIFIER_LIMBO_VALUE, IDENTIFIER_IMPLICIT_DECL,
11592 C_MISSING_PROTOTYPE_WARNED): Kill.
11593 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE,
11594 C_DECL_IMPLICIT, C_DECL_ISNT_PROTOTYPE): New.
11595 (C_DECL_ANTICIPATED): Rename to C_DECL_INVISIBLE.
11596 (implicit_decl_warning, lookup_name_current_level,
11597 record_function_scope_shadow): Don't prototype.
11598 (pushdecl_function_level): Prototype.
11599
11600 * c-decl.c (truly_local_externals): New variable.
11601 (struct binding_level): Adjust commentary.
11602 (get_function_binding_level, clear_limbo_values,
11603 record_function_scope_shadow): Kill.
11604 (lookup_name_current_level, implicit_decl_warning): Are now static.
11605 (any_external_decl, record_external_decl): New static functions.
11606 (clone_underlying type): Split out of pushdecl.
11607 (c_print_identifier): Update to match changes to struct
11608 lang_identifier.
11609 (poplevel): Delete #if 0 block. Make externals invisible
11610 instead of clearing their IDENTIFIER_SYMBOL_VALUEs. Don't
11611 call clear_limbo_values. Refer to IDENTIFIER_SYMBOL_VALUE not
11612 IDENTIFIER_GLOBAL_VALUE or IDENTIFIER_LOCAL_VALUE.
11613 (duplicate-decls): For real parm decl after a forward decl,
11614 set TREE_ASM_WRITTEN here. Allow void foo(...) followed by
11615 foo(...) { } with only a warning. Say whether a previous
11616 declaration was implicit.
11617 (warn_if_shadowing): Now handles all shadowing, not just
11618 local-over-local. Clarify comments.
11619 (pushdecl): Rewritten. There is no longer a distinction
11620 between global and local symbol values; they're all
11621 IDENTIFIER_SYMBOL_VALUE. Call record_external_decl on all
11622 DECL_EXTERNAL decls, and use any_external_decl to check
11623 against previous externals. Kill #if 0 blocks. Don't
11624 tolerate error_mark_node being NULL.
11625 (pushdecl_top_level): Handle only those cases which
11626 Objective C (the only user) needs.
11627 (pushdecl_function_level): New function.
11628 (implicitly_declare): Create ordinary decls with
11629 C_DECL_IMPLICIT set. Recycle old decls, however they got
11630 created.
11631 (lookup_name): It's always IDENTIFIER_SYMBOL_VALUE. Return 0
11632 for C_DECL_INVISIBLE symbols.
11633 (lookup_name_current_level): Likewise. Use chain_member.
11634 (c_make_fname_decl): Don't muck with DECL_CONTEXT.
11635 Use pushdecl_function_level.
11636 (builtin_function): Use C_DECL_INVISIBLE.
11637 (start_function): Don't muck with IDENTIFIER_IMPLICIT_DECL.
11638 Use C_DECL_ISNT_PROTOTYPE and C_DECL_IMPLICIT.
11639 (store_parm_decls): It's IDENTIFIER_SYMBOL_VALUE now.
11640 (identifier_global_value): Same. Must scan
11641 global_binding_level in extremis.
11642
11643 * c-typeck.c (undeclared_variable): New static function, split
11644 from build_external_ref.
11645 (build_external_ref): Use DECL_CONTEXT, not
11646 IDENTIFIER_LOCAL_VALUE, to decide whether a local hides
11647 an instance variable. Restructure for clarity.
11648 * objc/objc-act.c: Use identifier_global_value, not
11649 IDENTIFIER_GLOBAL_VALUE.
11650
6d9c4c83
JW
116512003-04-08 Jonathan Wakely <redi@gcc.gnu.org>
11652
11653 * doc/extend.texi (Template Instantiation): Refer to ISO standard,
11654 not Working Paper.
11655 * doc/invoke.texi (C++ Dialect Options): Same.
11656
06790e5f
ZW
116572003-04-10 Zack Weinberg <zack@codesourcery.com>
11658
11659 * tree.c (tree_operand_check_failed): New function.
11660 * tree.h (TREE_OPERAND_CHECK, TREE_OPERAND_CHECK_CODE,
11661 TREE_RTL_OPERAND_CHECK): New checking macros.
11662 (TREE_OPERAND, SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL,
11663 RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, WITH_CLEANUP_EXPR_RTL,
11664 CONSTRUCTOR_ELTS, LABELED_BLOCK_LABEL, LABELED_BLOCK_BODY,
11665 EXIT_BLOCK_RETURN, LOOP_EXPR_BODY, EXPR_WFL_NODE,
11666 EXPR_WFL_FILENAME_NODE, EXPR_WFL_FILENAME, TARGET_EXPR_SLOT,
11667 TARGET_EXPR_INITIAL, TARGET_EXPR_CLEANUP): Use the new
11668 checking macros.
11669
f90e4dea
JH
11670Thu Apr 10 23:52:30 CEST 2003 Jan Hubicka <jh@suse.cz>
11671
11672 PR inline-asm/8803
11673 * function.c (instantate_virtual_regs): Verify that all ASM statements
11674 match after the virutal regs instantiation.
11675
08744705
SE
116762003-04-10 Steve Ellcey <sje@cup.hp.com>
11677
11678 * ia64-protos.h (addp4_optimize_ok): New.
11679 * ia64.c (addp4_optimize_ok): New.
11680 * ia64.md (*ptr_extend_plus_1): Use addp4_optimize_ok.
11681 (*ptr_extend_plus_2): Ditto.
11682
267b28bd
SE
116832003-04-10 Steve Ellcey <sje@cup.hp.com>
11684
11685 * expr.c (expand_assignment): Extend offset_rtx with convert_to_mode
11686 not with convert_memory_address.
11687 (store_constructor): Ditto, and same for copy_size_rtx.
11688 (expand_expr): Ditto.
11689
021bad8e
DR
116902003-04-10 Douglas B Rupp <rupp@gnat.com>
11691
11692 * config/i386/i386.c (ix86_ms_bitfield_layout_p): Fix formatting.
11693
1839841c
BW
116942003-04-10 Bob Wilson <bob.wilson@acm.org>
11695
11696 * config/xtensa/lib2funcs.S (__xtensa_sync_caches): Flush data cache
11697 even if it is configured to be write-through.
11698
e23795ea
UW
116992003-04-10 Ulrich Weigand <uweigand@de.ibm.com>
11700
11701 * config/s390/s390.c (larl_operand): Do not allow symbols
11702 marked with '@'.
11703 (s390_encode_section_info): Mark symbols with forced 1-byte
11704 alignment with '@'.
11705 (s390_strip_name_encoding): Strip '@'.
11706 (legitimize_pic_address): Handle symbols that are not valid
11707 LARL operands in 64-bit mode.
11708
0bb7378d
AH
117092003-04-10 Andrew Haley <aph@redhat.com>
11710
11711 * tree-inline.c (inlinable_function_p): Disable inlining for
11712 synchronized methods.
11713
009ed910
SB
117142003-04-09 Steven Bosscher <steven@gcc.gnu.org>
11715
11716 * c-common.h (lang_statement_code_p): Remove declaration.
11717 (statement_code_p): Ditto.
11718 (c_common_stmt_codes): Define; list of c-common statement codes.
11719 (statement_code_p): New extern declaration.
11720 (STATEMENT_CODE_P): Define.
11721 (INIT_STATEMENT_CODES): Define.
11722 * c-common.c (statement_code_p): Kill the function, declare
11723 as an array of bools instead.
11724 (lang_statement_code_p): Remove.
11725 (walk_stmt_tree): Use STATEMENT_CODE_P not statement_code_p.
11726 (c_safe_from_p): Ditto.
11727 * c-objc-common.c (c_objc_common_init): Use INIT_STATEMENT_CODES
11728 to initialize the statement_code_p array.
11729 * tree-inline.c (walk_tree): Use STATEMENT_CODE_P instead of
11730 statement_code_p.
11731 (copy_tree_r): Ditto.
11732 * cp/cp-tree.h (cp_stmt_codes): Define; list of C++ specific
11733 statement tree codes.
11734 * cp/lex.c (cxx_init): Add missing print line break. Use
11735 INIT_STATEMENT_CODES to initialize the statement_code_p array.
11736 * cp/parser.c (cp_parser_statement): Use STATEMENT_CODE_P
11737 instead of statement_code_p.
11738 * cp/pt.c (tsubst_expr): Ditto.
11739 * cp/tree.c (verify_stmt_tree_r): Ditto.
11740 (cp_statement_code_p): Remove.
11741 (init_tree): Don't set lang_statement_code_p, it's gone.
11742
496324d0
DN
117432003-04-09 Dan Nicolaescu <dann@ics.uci.edu>
11744 Zack Weinberg <zack@codesourcery.com>
11745
11746 * regrename.c (struct du_chain): Use a bitfield for reg_class.
11747 * cse.c (struct qty_table_elem, struct table_elt, struct set):
11748 Use bitfields for fields holding enum rtx_code or
11749 enum machine_mode values. Add comments explaining size choices.
11750
9c951124
AO
117512003-04-09 Alexandre Oliva <aoliva@redhat.com>
11752
11753 * config/fp-bit.c (unpack_d): Handle pair of doubles with
11754 different signs correctly.
11755
d1c9693e
VM
117562003-04-09 Vladimir Makarov <vmakarov@redhat.com>
11757
11758 * sched-deps.c (reg_pending_barrier_mode): New enumeration.
11759 (reg_pending_barrier): Make it of the enumeration type.
11760 (sched_analyze_2): Define the barrier as MOVE_BARRIER or
11761 TRUE_BARRIER.
11762 (sched_analyze): Ditto.
11763 (sched_analyze_insn): Ditto. Use anti-dependencies for
11764 MOVE_BARRIER and true-dependencies as TRUE_BARRIER.
11765 (init_deps_global): Initialize the barrier as NO_BARRIER.
06790e5f 11766
f32360c7
VM
117672003-04-09 Vladimir Makarov <vmakarov@redhat.com>
11768
11769 * config/ia64/ia64.c (issue_nops_and_insn): Add new parameter.
11770 Check that asm insn starts on a new cycle. Add nops after asm
11771 insn to end bundle.
11772 (bundling): Move insn type evaluation from the loop. Call
11773 issue_nops_and_insn with the new parameter. Ignore changing
11774 position for nops after asm insn.
11775
0913e4b4
AO
117762003-04-09 Alexandre Oliva <aoliva@redhat.com>
11777
11778 * optabs.c: Comment that gen_add2_insn and others may actually
11779 return emitted insns, if the gen functions turn out to return
11780 emitted insns.
11781 * reload1.c (reload_cse_move2add): Cope with emitted insns from
11782 gen_add2_insn.
11783
21515593
RH
117842003-04-09 Richard Henderson <rth@redhat.com>
11785
11786 * config/ia64/ia64.c (move_operand): Allow symbolic_operand,
11787 but not tls_symbolic_operand.
11788 (ia64_expand_load_address): Remove scratch operand.
11789 (ia64_expand_tls_address): Split out from ia64_expand_move.
11790 (ia64_expand_move): Split symbolics only after reload.
11791 (ia64_emit_cond_move): New.
11792 * config/ia64/ia64-protos.h: Update.
11793 * config/ia64/ia64.md (movsi_symbolic, movdi_symbolic): Remove.
11794 (symbolic splitter): Accept SImode operands too.
11795 (cmove splitter): Use ia64_emit_cond_move.
11796
66d6bf1f
NC
117972003-04-09 Nick Clifton <nickc@redhat.com>
11798
11799 * doc/install.texi: Note that ARM toolchains need binutils 2.13 or
11800 newer.
11801 * config/arm/elf.h (SUBTARGET_ASM_FLOAT_SPEC): Pass -mfpu=softfpa
11802 instead of -mno-fpu.
11803 * config/arm/semi.h (ASM_SPEC): Likewise.
11804 * config/arm/xscale-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise,
11805 but only if -msoft-float is specified pass. Otherwise pass
11806 -mfpu=softvfp.
06790e5f 11807
22659ac9
ZD
118082003-04-09 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11809
11810 * function.c (purge_addressof): Use free_INSN_LIST_node instead of
11811 free_EXPR_LIST_node.
11812
5fce2c65
RS
118132003-04-08 Roger Sayle <roger@eyesopen.com>
11814
11815 * fold-const.c (fold): Use "fold" following build in more places.
11816 Optimize sqrt(x)*sqrt(x) as x, pow(x,y)*pow(z,y) as pow(x*z,y),
11817 pow(x,y)*pow(x,z) as pow(x,y+z) and x/pow(y,z) as x*pow(y,-z).
11818
531878a6
RS
118192003-04-08 Roger Sayle <roger@eyesopen.com>
11820
11821 * builtins.c (fold_builtin): Constant fold expressions as x*0.5
11822 instead of x/2.0. Optimize sqrt(pow(x,y)) as pow(x,y*0.5),
11823 log(pow(x,y)) as y*log(x), pow(exp(x),y) as exp(x*y),
11824 pow(sqrt(x),y) as pow(x,y*0.5) and pow(pow(x,y),z) as pow(x,y*z).
11825 Delete function scope "fcode" variable to avoid shadowing.
11826
c583e7c3
KB
118272003-04-08 Kevin Buettner <kevinb@redhat.com>
11828
11829 * dwarf2out.c (DWARF_ARANGES_HEADER_SIZE, DWARF_ARANGES_PAD_SIZE):
11830 Take into account DWARF_INITIAL_LENGTH_SIZE.
11831
5a82c0b1
HPN
118322003-04-08 Hans-Peter Nilsson <hp@axis.com>
11833
11834 * reorg.c (fill_slots_from_thread): When considering changing the
11835 insn following a reg-to-reg copy insn to use the source reg of the
11836 copy, bail out if there's overlap between the registers.
11837
8a5275eb
ZD
118382003-04-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11839
11840 * function.c (postponed_insns): New.
11841 (purge_addressof_1): Postpone processing of insns if addressofs
11842 are not put into stack.
06790e5f 11843 (purge_addressof): Process postponed insns.
8a5275eb 11844
ac55736a
R
118452003-04-08 J"orn Rennecke <joern.rennecke@superh.com>
11846
11847 * sh.h (NORMAL_MODE): If interrupt handler and TARGET_FMOVD,
11848 this is FP_MODE_DOUBLE .
11849 * sh.c (ra.h): #include.
11850 (push_regs): Add second parameter. Changed all callers.
11851 If necessary, set fpscr before saving floating point registers.
11852 (calc_live_regs): If interrupt handler and TARGET_FMOVD, always
11853 do saves / restores with SZ == 1.
11854 (sh_expand_prologue): If interrupt handler, don't use gen_toggle_sz.
11855 (sh_expand_epilogue): Likewise. For TARGET_FMOVD, if floating point
11856 registers are being restored, restore FPSCR only after restoring them.
11857
3fdaa45a
AH
118582003-04-08 Aldy Hernandez <aldyh@redhat.com>
11859
496324d0
DN
11860 * config/rs6000/rs6000.c (rs6000_init_builtins): Set opaque types
11861 regardless of architecture.
11862 (spe_init_builtins): Change V2SI and V2SF types to opaque types.
3fdaa45a 11863
490dbac7
R
118642003-04-08 J"orn Rennecke <joern.rennecke@superh.com>
11865
11866 * sh.c (push_regs, calc_live_regs): Return int. Take single
11867 HARD_REG_SET * parameter. Changed all callers.
11868
799b33a0
JH
11869Tue Apr 8 11:12:07 CEST 2003 Jan Hubicka <jh@suse.cz>
11870
11871 * i386.c (legitimate_pic_address_disp_p): Do not accept PLUS in the
11872 GOTOFF operand.
11873 (legitimize_pic_address): Move plus outside the unspec.
11874 * i386.c (legitimate_constant_p): Check (CONST (PLUS (UNSPEC ...
11875 for validity.
11876
3e71e002
NS
118772003-04-08 Nathan Sidwell <nathan@codesourcery.com>
11878
11879 * gcov-io.h (gcov_save_position): Remove __inline__ from
11880 declaration.
11881
7ba4ca63
MK
118822003-04-07 Matt Kraai <kraai@alumni.cmu.edu>
11883
11884 * doc/install.texi: Use @command and @samp for single- and
11885 multi-word commands respectively.
11886 * doc/makefile.texi: Likewise.
11887 * doc/sourcebuild.texi: Likewise.
11888
f8d4be57 118892003-04-07 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
496324d0 11890 Richard Henderson <rth@redhat.com>
f8d4be57 11891
496324d0
DN
11892 PR c/9516
11893 * expr.c (safe_from_p): Rearrange to avoid deep recursion in
6356f892 11894 favor of looping and tail recursion for TREE_LIST and binops.
f8d4be57 11895
760e8e42
ZD
118962003-04-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11897
11898 * loop.h (REGNO_FIRST_LUID, REGNO_LAST_LUID): Provide defaults
11899 for insns without luid.
11900
b0a3412c
GN
119012003-04-07 Glen Nakamura <glen@imodulo.com>
11902
11903 PR opt/8634
11904 * explow.c (maybe_set_unchanging): Don't flag non-static const
11905 aggregate type initializers with RTX_UNCHANGING_P.
11906
c5a1e3d6
RH
119072003-04-07 Richard Henderson <rth@redhat.com>
11908
496324d0
DN
11909 PR opt/8634
11910 * function.c (purge_addressof_1): Don't try arithmetics for
11911 unchanging memories.
c5a1e3d6 11912
138d4703
JJ
119132003-04-07 Janis Johnson <janis187@us.ibm.com>
11914
11915 * doc/sourcebuild.texi (Test Suites): Document testing support for
11916 gcov and profile-directed optimizations; describe gcc.misc-tests.
11917
1d5b4e0b
JH
11918Mon Apr 7 22:19:59 CEST 2003 Jan Hubicka <jh@suse.cz>
11919
11920 PR target/10077
11921 * i386.md (movsi_1, movsi_nointerunit_1): Fix SSEMOV alternative.
11922
60ba917e
EB
119232003-04-07 Eric Botcazou <ebotcazou@libertysurf.fr>
11924
11925 * doc/rtl.texi (Comparison operations): Update to
11926 record the allowed comparison modes.
11927
2abe3e28
AH
119282003-04-07 Aldy Hernandez <aldyh@redhat.com>
11929
496324d0
DN
11930 * config/rs6000/rs6000.c (rs6000_common_init_builtins): Rename all
11931 V2SI_type_node to opaque_V2SI_type_node. Rename all
11932 V2SF_type_node to opaque_V2SF_type_node.
11933 (rs6000_init_builtins): Define opaque_V2SI_type_node and
11934 opaque_V2SF_type_node.
11935 (is_ev64_opaque_type): The types opaque_V2SI_type_node and
11936 opaque_V2SF_type_node are opaque types.
2abe3e28 11937
9a318d30
R
119382003-04-07 J"orn Rennecke <joern.rennecke@superh.com>
11939
11940 * gcse.c (replace_store_insn): Use single_set.
11941
546d2adb
NS
119422003-04-07 Nathan Sidwell <nathan@codesourcery.com>
11943
11944 Change gcov file interface to single file at a time.
11945 * gcov-io.h: Replace IN_LIBGCC1 with IN_LIBGCOV. Use IN_GCOV.
11946 Convert to C89 prototypes.
11947 (gcov_file, gcov_length, gcov_position, gcov_buffer, gcov_alloc,
11948 gcov_error, gcov_modified): New static variables.
11949 (gcov_open, gcov_close, gcov_read_bytes, gcov_write_bytes): New
11950 functions.
11951 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
11952 gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
11953 (gcov_read_summary, gcov_write_summary): Adjust.
11954 (gcov_save_position, gcov_reserve_length, gcov_write_length):
11955 Adjust.
11956 (gcov_resync, gcov_skip, gcov_skip_string): Adjust.
11957 (da_file_open, da_file_close, da_file_eof, da_file_error): Remove.
11958 (da_file_position, da_file_seek, da_file_write, da_file_read):
11959 Remove.
11960 (gcov_error, gcov_eof, gcov_ok, gcov_time): New functions.
11961 * gcov.c (gcov_type): Don't typedef here.
11962 (IN_GCOV): #define
11963 (read_graph_file, read_count_file): Adjust.
11964 * gcov-dump.c (gcov_type): Don't typedef here.
11965 (IN_GCOV): #define.
11966 (tag_function, tag_blocks, tag_arcs, tag_lines, tag_arc_counts):
11967 Remove FILE parameter, adjust.
11968 (struct tag_format): Adjust proc member.
11969 (dump_file): Adjust.
11970 * libgcov.c (IN_LIBGCOV): #define.
11971 (gcov_exit): Adjust.
11972 * loop-init.c: Don't #include gcov-io.h
11973 * profile.c (struct counts_entry): New structure to hold counter
11974 values.
11975 (struct section_reference, struct da_index_entry): Remove.
11976 (bbg_file, da_file): Remove.
11977 (htab_counts_index_hash, htab_counts_index_eq,
11978 htab_counts_index_del): Replace with ...
11979 (htab_counts_entry_hash, htab_counts_entry_eq,
11980 htab_counts_entry_del): ... these.
11981 (cleanup_counts_index, index_counts_file): Remove.
11982 (read_counts_file): New function.
11983 (get_exec_counts): Adjust.
11984 (compute_branch_probabilities): Don't free the exec counts here.
11985 (branch_prob): Adjust.
11986 (init_branch_prob): Adjust.
11987 (end_branch_prob): Adjust.
11988
5da702b1
AH
119892003-04-07 Aldy Hernandez <aldyh@redhat.com>
11990
496324d0
DN
11991 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
11992 -mfloat-gprs.
5da702b1 11993
496324d0
DN
11994 * config/rs6000/rs6000.c: Delete rs6000_fprs.
11995 Declare rs6000_float_gprs.
11996 Declare rs6000_float_gprs_string.
11997 (rs6000_parse_float_gprs_option): New.
11998 (rs6000_override_options): Genericize rs6000_parse_* calls to use
11999 rs6000_parse_yes_no_option.
12000 Change check for cpu=8540, to use TARGET_E500.
12001 (rs6000_parse_isel_option): Delete.
12002 (rs6000_parse_spe_option): Delete.
12003 (rs6000_parse_vrsave_option): Delete.
5da702b1 12004
496324d0
DN
12005 * config/rs6000/rs6000.h: Rename rs6000_fprs to rs6000_float_gprs.
12006 Define rs6000_float_gprs_string.
12007 (TARGET_OPTIONS): Add rs6000_float_gprs option.
5da702b1 12008
496324d0 12009 * config/rs6000/eabi.h (TARGET_FPRS): Change to use rs6000_float_gprs.
5da702b1 12010
496324d0 12011 * config/rs6000/eabispe.h: Set rs6000_float_gprs.
5da702b1 12012
cde1d5bf
JH
12013Mon Apr 7 14:36:24 CEST 2003 Jan Hubicka <jh@suse.cz>
12014
12015 PR opt/10024
12016 * cfglayout.c (cfg_layout_redirect_edge):
12017 Redirect any branch edges unified with the fallthru one.
12018 * cfgrtl.c (force_nonfallthru_and_redirect): Do not special
12019 case fallthru edges when called via cfglayout.c
12020
d5019ba3
R
120212003-04-07 J"orn Rennecke <joern.rennecke@superh.com>
12022
12023 * c-typeck.c (output_init_element): Check for type == error_mark_node.
12024
093b05b6
KH
120252003-04-07 Kazu Hirata <kazu@cs.umass.edu>
12026
12027 * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Always
12028 split.
12029 (a splitter): Do zero-extension via HImode.
12030
9a94f7f3
JM
120312003-04-07 James A. Morrison <ja2morri@uwaterloo.ca>
12032
12033 * doc/invoke.texi: Eliminate extra white-space caused by
12034 @gccoptlist{ on its own line.
12035 * doc/invoke.texi: Ensured there are two spaces between each option.
12036 * doc/invoke.texi: Re-wrapped option lines that were too wide.
12037 Added @gol to options that didn't have them.
12038
85ebf0c6
JM
120392003-04-07 James A Morrison <ja2morri@student.math.uwaterloo.ca>
12040
12041 * doc/extend.texi (Darwin Pragmas): Fix spelling of Mac OS.
12042
d78e771d
ZW
120432003-04-06 Zack Weinberg <zack@codesourcery.com>
12044
12045 * tree.c (tree_size): For all 'c' and 'x' nodes, look directly
12046 at the sizes of the relevant structures, rather than relying
12047 on TREE_CODE_LENGTH. Call lang_hooks.tree_size to get the
12048 sizes of any such we don't know about. Use
12049 lang_hooks.identifier_size for IDENTIFIER_NODE.
12050
12051 (initializer_zerop): Use CONSTRUCTOR_ELTS.
12052 * tree.def: Update commentary. Make fourth element of
12053 the definition for all 'c' and 'x' nodes zero.
12054
12055 * langhooks.h: New hook, tree_size / LANG_HOOKS_TREE_SIZE.
12056 * langhooks-def.h: Update to match.
12057 * langhooks.c: New default, lhd_tree_size.
12058
12059 * c-common.def (SRCLOC): Kill.
12060 * c-pretty-print.c (pp_c_postfix_expression [case SRCLOC]):
12061 Remove entirely - was already #if-ed out.
12062
12063
48a79342
ZW
120642003-04-06 Zack Weinberg <zack@codesourcery.com>
12065
12066 * mklibgcc.in: Use a here document to avoid running afoul of
12067 shells that generate control-A from "echo \1".
12068
993f19a8
AH
120692003-04-06 Aldy Hernandez <aldyh@redhat.com>
12070
d78e771d
ZW
12071 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mspe
12072 option.
993f19a8 12073
d78e771d
ZW
12074 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
12075 rs6000_spe.
993f19a8 12076
d78e771d 12077 * config/rs6000/eabi.h (TARGET_E500): Define.
993f19a8 12078
d78e771d
ZW
12079 * config/rs6000/rs6000.h (TARGET_E500): Define.
12080 (TARGET_OPTIONS): Add spe= option.
12081 Declare rs6000_spe and rs6000_spe_string extern.
993f19a8 12082
d78e771d
ZW
12083 * config/rs6000/rs6000.c (branch_positive_comparison_operator):
12084 Change TARGET_SPE to TARGET_E500.
12085 (ccr_bit): Change TARGET_SPE to TARGET_E500. Check for
12086 !TARGET_FPRS.
12087 (print_operand): Same.
12088 (rs6000_generate_compare): Same.
12089 (output_cbranch): Same.
12090 (rs6000_spe): Declare.
12091 (rs6000_spe_string): Declare.
12092 (rs6000_override_options): Call rs6000_parse_spe_option.
12093 (rs6000_parse_spe_option): New.
993f19a8 12094
95ec27aa
SB
120952003-04-06 Steven Bosscher <steven@gcc.gnu.org>
12096
12097 * hashtable.c (gcc_obstack_init): Delete this function
12098 and everything related to it.
12099 * hashtable.h: Remove prototype.
12100 * bitmap.c (bitmap_element_allocate): Cleanup redundant
12101 defines. Cleanup some unnecessary whitespace.
12102 * defaults.h (obstack_chunk_alloc): Redefine with
12103 appropriate casts for libiberty obstacks.
12104 (obstack_chunk_free): Ditto.
12105 (OBSTACK_CHUNK_SIZE): Define, default to 0.
12106 (gcc_obstack_init): Define as a call to _obstack_begin.
12107 * tree.c (print_obstack_statistics): Delete this unused
12108 function.
12109 * tree.h (obstack): Don't forward-declare.
12110 (print_obstack_statistics): Delete prototype.
12111 (print_obstack_name): Ditto.
12112 (gcc_obstack_init): Ditto.
12113 * rtl.h (gcc_obstack_init): Ditto.
12114 * java/jv-scan.c (gcc_obstack_init): Delete this
12115 function, its prototype and related defines.
12116 * java/jvgenmain.c (gcc_obstack_init): Delete this
12117 function, and related defines.
12118 * java/parse-scan.y (obstack_chunk_alloc): Don't define.
12119 (obstack_chunk_free): Ditto
12120
62e64b0b
GK
121212003-04-06 Geoffrey Keating <geoffk@apple.com>
12122
12123 * dbxout.c (dbxout_handle_pch): Move prototype out from
12124 #if defined DBX_DEBUGGING_INFO.
12125
10b7602f
NS
121262003-04-05 Nathan Sidwell <nathan@codesourcery.com>
12127
12128 * gcov.c (struct arc_info): Replace local_span with cycle.
12129 (struct block_info): Replace u.span with u.cycle. Add is_call_return.
12130 (solve_flow_graph): Set is_call_return.
12131 (add_line_counts): Adjust. In block mode, blocks attach to last line.
12132 (accumulate_line_counts): Find graph cycles, not spanning tree.
12133 (output_branch_count): Adjust.
12134 (output_lines): Adjust.
12135 * doc/gcov.texi: Update.
12136
910c46b5
KH
121372003-04-06 Kazu Hirata <kazu@cs.umass.edu>
12138
12139 * config/h8300/h8300.md (*zero_extendqisi2_h8300hs): Change
12140 the second alternative to "#".
12141
ef378bbe
KH
121422003-04-05 Kazu Hirata <kazu@cs.umass.edu>
12143
12144 * config/h8300/h8300.c (single_one_operand): Use GET_MODE_MASK.
12145 (single_zero_operand): Likewise.
12146
873ceaab
DB
121472003-04-05 Daniel Berlin <dberlin@dberlin.org>
12148
12149 * Makefile.in (df.o): Depend on alloc-pool.h, not obstack.h.
12150 * df.c: Include alloc-pool.h, not obstack.h.
12151 (df_ref_obstack): Remove.
12152 (df_ref_pool, df_link_pool): Add pools.
12153 (df_alloc): Init the new pools.
12154 (df_free): And free them.
12155 (df_link_create): Use the pools.
12156 (df_ref_create): Ditto.
12157
5be86fec
KH
121582003-04-05 Kazu Hirata <kazu@cs.umass.edu>
12159
12160 * simplify-rtx.c: Fix formatting.
12161
984e25ac
DE
121622003-04-05 Andrew Pinski <apinski@apple.com>
12163
12164 * config/rs6000/rs6000.c (addrs_ok_for_quad_peep): Allow addr2
12165 reg with reg1 == reg2 and offset1 = -8.
12166
121672003-04-05 David Edelsohn <edelsohn@gnu.org>
12168
12169 * config/rs6000/rs6000.c (rs6000_rtx_costs): Halve Power4
12170 multiply costs. Correct Power4 divide costs.
12171 * config/rs6000/power4.md: Restore multiply and FP latency.
12172
94f24ddc
ZD
121732003-04-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12174
12175 * alias.c (find_base_term): Export.
12176 * rtl.h (find_base_term): Declare.
12177 * gcse.c (find_moveable_store): Test for flag_non_call_exceptions
12178 instead of flag_exceptions. Move test for parameter passing ...
12179 (store_killed_in_insn): ... here.
12180
92441f83
GP
121812003-04-05 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12182
12183 PR bootstrap/10267
12184 * doc/install.texi (*-*-solaris2): /bin/ksh is not just recommended
12185 for configuring.
12186
33b49800
GK
121872003-04-04 Geoffrey Keating <geoffk@apple.com>
12188
12189 * dbxout.c (scope_labelno): Add GTY.
12190 (have_used_extensions): Add GTY.
12191 (source_label_number): Add GTY.
12192 (lastfile): Add GTY.
12193 (lastfile_is_base): New.
12194 (base_input_file): New.
12195 (dbxout_handle_pch): New.
12196 (dbx_debug_hooks): Add handle_pch.
12197 (xcoff_debug_hooks): Likewise.
12198 (dbxout_function_end): Remove scope_labelno.
12199 (dbxout_init): Set base_input_file.
12200 (dbxout_handle_pch): New.
12201 (dbxout_source_file): Honour lastfile_is_base.
12202 * dwarfout.c (dwarf_debug_hooks): Add dummy handle_pch.
12203 * sdbout.c (sdb_debug_hooks): Add dummy handle_pch.
12204 * vmsdbgout.c (vmsdbg_debug_hooks): Add dummy handle_pch.
12205 * dwarf2out.c (dwarf2_debug_hooks): Add dummy handle_pch.
12206 * debug.c (do_nothing_debug_hooks): Add dummy handle_pch.
12207 * debug.h (struct gcc_debug_hooks): Add handle_pch.
12208 * c-pch.c (pch_init): Don't call start_source_file, but do call
12209 handle_pch.
12210 (c_common_write_pch): Call handle_pch.
12211 (c_common_read_pch): Don't call start_source_file,
06790e5f 12212 or end_source_file.
33b49800 12213
bb056a77
OH
12214Fri Apr 4 17:43:52 2003 Olivier Hainque <hainque@act-europe.fr>
12215
d78e771d
ZW
12216 * emit-rtl.c (get_mem_attrs): Adjust alignment tests determining
12217 use of default attributes to agree MEM_ALIGN macro.
bb056a77 12218
08b0f5f9
JB
12219Fri Apr 4 17:33:24 2003 Joel Brobecker <brobecker@gnat.com>
12220
d78e771d 12221 * dbxout.c (dbxout_type): When printing type index of range type
08b0f5f9
JB
12222 whose bounds are printed in octal format, print type of parent type if
12223 it exists so enumerated type descriptions are not transformed
d78e771d 12224 into unsigned types.
08b0f5f9 12225
45ca2106
KH
122262003-04-04 Kazu Hirata <kazu@cs.umass.edu>
12227
12228 * config/h8300/h8300-protos.h: Add a prototype for
12229 compute_a_shift_cc.
12230 * config/h8300/h8300.c (shift_one): Update the CC status.
12231 (shift_two): Likewise.
12232 (output_a_shift_cc): Set cc_inline and cc_special.
12233 (compute_a_shift_cc): New.
12234 * config/h8300/h8300.md (shift insns): Use compute_a_shift_cc.
12235
7c2aa9d7
RH
122362003-04-04 Richard Henderson <rth@redhat.com>
12237
12238 * cse.c (fold_rtx): Fix 03-30 change; do check insn non-null.
12239
0705a2a2
LR
122402003-04-04 Loren James Rittle <ljrittle@acm.org>
12241
12242 * fixinc/inclhack.def (bsd_stdio_attrs_conflict): New.
12243 * fixinc/fixincl.x: Rebuilt.
12244 * fixinc/tests/base/stdio.h: Regenerated.
12245
1a482881
NS
122462003-04-04 Nathan Sidwell <nathan@codesourcery.com>
12247
12248 * gcov.c (accumulate_line_counts): Fix span tree merge bug.
12249
5d806217
R
12250Fri Apr 4 15:58:52 2003 J"orn Rennecke <joern.rennecke@superh.com>
12251
12252 * sh.h (ACTUAL_NORMAL_MODE): New macro, broken out of
12253 (NORMAL_MODE).
12254 * sh.c (fpscr_set_from_mem): Use ACTUAL_NORMAL_MODE.
12255
0dc5ac92 122562003-04-04 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
06790e5f 12257
0dc5ac92
GP
12258 * doc/contrib.texi (Contributors): Add entries for Wolfgang
12259 Bangerth, DJ Delorie, Christian Ehrhardt, Christopher Faylor,
12260 Nathanael Nerode, Diego Novillo, Hartmut Penner, Volker Reichelt,
12261 Danny Smith, and Ulrich Weigand.
12262 Update Kriang Lerdsuwanakij and fix a typo in Janis Johnson's
12263 entry.
12264
5eb7ad07
NC
122652003-04-04 Nick Clifton <nickc@redhat.com>
12266
12267 * config/sparc/sol2-bi.h: Revert previous delta.
12268 * config/sparc/sol2-gas-bi.h (AS_SPARC64_FLAG): Prepend -TSO
12269
fdf3bb57
NC
122702003-04-04 Nick Clifton <nickc@redhat.com>
12271
12272 * config/v850/v850.c (expand_prologue): Only use register save
12273 helper functions if long calls are not being used.
12274 Add a clobber of r11 id using long calls.
12275 (pattern_is_ok_for_prologue): Account for the extra clobber.
12276 (construct_save_jarl): Likewise.
12277 * config/v850/v850.md (prolog pattern): Do not use this pattern
12278 for v850e's.
12279
ad3f5759
AS
122802003-04-04 Andreas Schwab <schwab@suse.de>
12281
12282 * stor-layout.c (layout_decl): Avoid syntax error in last change
12283 when PCC_BITFIELD_TYPE_MATTERS is defined but not
12284 EMPTY_FIELD_BOUNDARY.
12285
ed2e5902
JM
122862003-04-03 Jason Merrill <jason@redhat.com>
12287
12288 PR c/10175
12289 * jump.c (never_reached_warning): Revert patch of 2002-11-02.
12290 Look backwards for a line note.
12291
7b43d104
NB
122922003-04-03 Neil Booth <neil@daikokuya.co.uk>
12293
12294 * fix-header.c (read_scan_file): Defer switch processing.
12295
d24ecd21
MA
122962003-04-03 Matt Austern <austern@apple.com>
12297
12298 * cpppch.c (reset_ht): Remove.
12299 (cpp_read_state): Remove loop to reset hashtable identifiers.
12300 * ggc-common.c (gt_pch_save): Add call to gt_pch_fixup_stringpool
12301 after pch file is written.
12302 * ggc.h (gt_pch_fixup_stringpool): Declare.
12303 * stringpool.c (ht_copy_and_clear): Define. Callback. Copy
12304 hashnode's value to another hashtable, then clear the original.
12305 (saved_ident_hash): Define.
12306 (gt_pch_save_stringpool): Create saved_ident_hash, use it to
12307 store definitions in ident_hash, and clear ident_hash.
12308 (gt_pch_fixup_stringpool): Define. Restore definitions from
12309 saved_ident_hash to ident_hash, then destroy saved_ident_hash.
12310
bcc53e2a
JH
12311Thu Apr 3 22:27:40 CEST 2003 Jan Hubicka <jh@suse.cz>
12312
12313 * cfgrtl.c (update_bb_for_insn): Do not set block for barriers.
12314
773eae39
EB
123152003-04-03 Eric Botcazou <ebotcazou@libertysurf.fr>
12316
12317 PR optimization/10157
12318 * gcse.c (can_copy_p): Rename it to can_copy.
12319 (can_copy_init_p): Remove.
12320 (compute_can_copy): Use can_copy instead of can_copy_p.
12321 (can_copy_p): New exported function. Call compute_can_copy.
12322 (hash_scan_set): Use it.
12323 (gcse_main): Don't call compute_can_copy.
12324 (bypass_jumps): Don't call compute_can_copy.
12325 * rtl.h (can_copy_p): Declare.
12326 * loop.c (scan_loop): Don't move the source and add a reg-to-reg
12327 copy if the mode doesn't support copy operations.
12328
78d55cc8
JM
123292003-04-03 Jason Merrill <jason@redhat.com>
12330
613fa146
JM
12331 * Makefile.in (unstrap): Also remove stage_last.
12332
7bf6b23d
JM
12333 * dwarf2out.c (lookup_filename): Don't check for "<internal>".
12334 (dwarf2out_source_line): Don't do anything if line==0.
12335
78d55cc8 12336 * stor-layout.c (do_type_align): New fn, split out from...
06790e5f 12337 (layout_decl): ...here. Do all alignment calculations for
78d55cc8
JM
12338 FIELD_DECLs here.
12339 (update_alignment_for_field): Not here.
12340 (start_record_layout, debug_rli): Remove unpadded_align.
12341 * tree.h (struct record_layout_info_s): Remove unpadded_align.
12342 * c-decl.c (finish_enum): Don't set DECL_SIZE, DECL_ALIGN
12343 or DECL_MODE on the CONST_DECLs.
12344 (finish_struct): Don't mess with DECL_ALIGN.
12345
d10f5ecf
JH
12346Thu Apr 3 18:57:19 CEST 2003 Jan Hubicka <jh@suse.cz>
12347
12348 * i386.c (print_operand): Do not bypass output_addr_const at flag_pic.
12349
12350Thu Apr 3 17:08:09 2003 J"orn Rennecke <joern.rennecke@superh.com>
8d3b0953 12351
70aadfcc
R
12352 * sh.c (sh_function_ok_for_sibcall): Return 0 if the current
12353 function is an interrupt handler.
12354
12355 * sh.c (sh_expand_epilogue): Avoid clash of temp register for
12356 restoring target registers with EH_RETURN_STACKADJ_RTX; use
12357 multiple registers in round-robin fashion.
8d3b0953 12358
de94b46c
KG
123592003-04-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12360
12361 * gengtype-lex.l (IWORD): Add CHAR_BITFIELD.
12362 * system.h (CHAR_BITFIELD): New.
12363
203dcb74
KH
123642003-04-03 Kazu Hirata <kazu@cs.umass.edu>
12365
12366 * config/h8300/h8300.md (a peephole2): Generalize to accept GT
12367 and LE.
12368 (another peephole2): Likewise.
12369
dc00aebd
NC
123702003-04-03 Nick Clifton <nickc@redhat.com>
12371
12372 * config/sparc/sol2-bi.h (ASM_CPU64_DEFAULT_SPEC): Add -TSO.
d78e771d 12373 (DEF_ARCH64_SPEC): Likewise.
dc00aebd 12374
a94f136b
JH
12375Thu Apr 3 09:53:40 CEST 2003 Jan Hubicka <jh@suse.cz>
12376
12377 * i386.c (constant_address_p): Use legitimate_constant_p.
12378 (legitimate_address_p): Do not use CONSTANT_ADDRESS_P.
12379
9a2dd2dd
KH
123802003-04-02 Kazu Hirata <kazu@cs.umass.edu>
12381
12382 * config/h8300/h8300-protos.h: Add a prototype for
12383 gtle_operator.
12384 * config/h8300/h8300.c (gtle_operator): New.
12385 * config/h8300/h8300.h (PREDICATE_CODES): Add an entry for
12386 gtle_operator.
12387 * config/h8300/h8300.md (a peephole2): Generalize to accept GT
12388 and LE.
12389
378683cf
RH
123902003-04-02 Richard Henderson <rth@redhat.com>
12391
12392 * libgcc-std.ver (_Unwind_GetCFA): New.
12393 * unwind-dw2.c (_Unwind_GetCFA): New.
12394 * unwind-libunwind.c (_Unwind_GetCFA): New.
12395 * unwind-sjlj.c (_Unwind_GetCFA): New.
12396 * unwind.h: Declare it.
12397
a67a3220
JH
12398Thu Apr 3 00:31:21 CEST 2003 Jan Hubicka <jh@suse.cz>
12399
12400 PR inline-asm/8088
12401 * i386.c (ix86_hard_regno_mode_ok): Return 0 for MMX/SSE registers
12402 when MMX/SSE is not available.
12403
11292480
MS
124042003-04-02 Mike Stump <mrs@apple.com>
12405
12406 * doc/install.texi (Specific): Update pointers to apple.com.
12407
a94f136b 12408Thu Apr 3 00:18:49 CEST 2003 Jan Hubicka <jh@suse.cz>
a5b378d6
JH
12409
12410 * i386.c (override_options): Disable red zone by default on i386.
06790e5f 12411 (compute_frame_layout, ix86_force_to_memory, ix86_free_from_memory):
a5b378d6
JH
12412 Do not test TARGET_64BIT together with TARGET_RED_ZONE
12413
8fc9a7ba
KH
124142003-04-02 Kazu Hirata <kazu@cs.umass.edu>
12415
12416 * config/h8300/h8300.md (a peephole2): Tighten the condition.
12417
496e1c4b
RH
124182003-04-02 Richard Henderson <rth@redhat.com>
12419
12420 * longlong.h (umul_ppmm) [alpha]: Use __builtin_alpha_umulh.
12421
d98cd543
KH
124222003-04-02 Kazu Hirata <kazu@cs.umass.edu>
12423
12424 * config/h8300/h8300.md (a peephole2): New.
12425
b30abdf2
RH
124262003-04-02 Richard Henderson <rth@redhat.com>
12427
12428 * except.c (sjlj_find_directly_reachable_regions): Recognize when
12429 must-not-throw region has been deleted.
12430
ad5eeaa9
RH
124312003-04-02 Richard Henderson <rth@redhat.com>
12432
d78e771d
ZW
12433 * dwarf2out.c (output_call_frame_info): Ignore fde->nothrow as an
12434 optimization when flag_exceptions not enabled.
ad5eeaa9 12435
be12c2b0
VM
124362003-04-02 Vladimir Makarov <vmakarov@redhat.com>
12437
12438 * config/rs6000/rs6000.c
12439 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Redefine the
12440 macros.
12441 (rs6000_issue_rate): Add case for 8540.
12442 (rs6000_use_sched_lookahead): New function.
12443
12444 * config/rs6000/8540.md: Rename SIU units into SU ones and MIU
12445 units into MU ones.
12446 (ppc8540_branch, ppc8540_cr_logical): Add one cycle in the
12447 reservation before retirement.
12448 (ppc8540_multiply, ppc8540_load, ppc8540_store,
12449 ppc8540_simple_float, ppc8540_vector_load, ppc8540_vector_store):
12450 Remove additional cycle in the reservation before retirement.
12451 (ppc8540_mfcr, ppc8540_mtcrf, ppc8540_mtjmpr): Add missed
12452 reservation of ppc8540_issue.
06790e5f 12453
f875310e
AS
124542003-04-02 Andreas Schwab <schwab@suse.de>
12455
12456 * real.c (decode_ieee_single): Fix decoding of SNaN bit.
12457
125ca8fd
RH
124582003-04-01 Richard Henderson <rth@redhat.com>
12459
d78e771d
ZW
12460 * except.c (convert_from_eh_region_ranges_1): Smash REG_EH_REGION
12461 notes for nothrow calls if flag_forced_unwind_exceptions.
12462 (build_post_landing_pads): Mind flag_forced_unwind_exceptions.
12463 (sjlj_find_directly_reachable_regions): Likewise.
12464 (reachable_handlers): Likewise.
12465 (can_throw_external): Likewise.
12466 (collect_one_action_chain): Record cleanups after catch-all and
12467 must-not-throw if flag_forced_unwind_exceptions.
12468 * flags.h (flag_forced_unwind_exceptions): Declare.
12469 * toplev.c (flag_forced_unwind_exceptions): New.
12470 (lang_independent_options): Add it.
125ca8fd
RH
12471 * doc/invoke.text: Add it.
12472
8f744ea9
DM
124732003-04-01 David Mosberger <davidm@hpl.hp.com>
12474
d78e771d
ZW
12475 * config/ia64/crti.asm: Clean up trailing whitespace.
12476 Remove trailing hashes (#) from identifiers.
8f744ea9 12477
d78e771d 12478 * config/ia64/crtn.asm: Ditto.
8f744ea9 12479
d78e771d
ZW
12480 * config/ia64/crtend.asm: Remove trailing hashes (#) from
12481 identifiers.
12482 (__do_global_ctors_aux): Align to 32-byte boundary. Add unwind
12483 directives. Drop explicit bundling---it just makes the code
12484 harder to read. Don't save/restore gp needlessly.
8f744ea9 12485
d78e771d
ZW
12486 * config/ia64/crtbegin.asm: Remove trailing hashes (#) from
12487 identifiers (they're only needed if the identifier would clash
12488 with a register name otherwise).
12489 (__do_global_dtors_aux): Align to 32-byte boundary. Add unwind
12490 directives. Drop explicit bundling---it just makes the code
12491 harder to read.
12492 (__do_jv_register_classes): Ditto.
12493 (.fini_array): Remove "progbits" (newer
12494 assemblers don't like wrong section-types).
12495 (.init_array): Ditto.
8f744ea9 12496
e129b3f9
RS
124972003-04-01 Roger Sayle <roger@eyesopen.com>
12498
12499 PR fortran/9974
15d4fd98 12500 * gcse.c (reg_killed_on_edge): New function to test whether the
e129b3f9
RS
12501 given reg is overwritten by any instruction queued on an edge.
12502 (bypass_block): Ignore substitutions killed on incoming edges.
12503 Don't bypass outgoing edges that have queued instructions.
12504
fe0002ee
AO
125052003-04-01 Alexandre Oliva <aoliva@redhat.com>
12506
12507 * real.h (EXP_BITS): Make room for...
12508 (struct real_value): ... added canonical bit.
12509 (struct real_format): Added pnan.
12510 (mips_single_format, mips_double_format, mips_extended_format,
12511 mips_quad_format): New.
12512 * real.c: Copy p to pnan in all formats.
12513 (get_canonical_qnan, get_canonical_snan): Set canonical bit.
12514 (real_nan): Use pnan to compute significand's shift.
12515 (real_identical): Disregard significand in canonical
12516 NaNs.
12517 (real_hash): Likewise. Take signalling into account.
12518 (encode_ieee_single, encode_ieee_double, encode_ieee_quad):
12519 Disregard significand bits in canonical NaNs. Set all bits of
12520 canonical NaN if !qnan_msb_set.
12521 (encode_ibm_extended, decode_ibm_extended): Likewise. Use
12522 qnan_msb_set to tell the base double format.
12523 (ibm_extended_format): Use 53 as pnan.
12524 (mips_single_format, mips_double_format, mips_extended_format,
12525 mips_quad_format): Copied from the corresponding ieee/ibm
12526 formats, with qnan_msb_set false.
12527 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Use mips_extended_format.
12528 * config/mips/linux64.h (MIPS_TFMODE_FORMAT): Use mips_quad_format.
12529 * config/mips/mips.c (override_options): Use mips_single_format
12530 and mips_double_format. Default TFmode to mips_quad_format.
12531 * config/mips/t-linux64 (tp-bit.c): Define QUIET_NAN_NEGATED.
12532 * config/mips/t-irix6: Likewise.
12533 * config/mips/t-mips (fp-bit.c, dp-bit.c): Likewise.
12534 * config/fp-bit.c (pack_d, unpack_d): Obey it.
12535
481a8181
GK
125362003-04-01 Geoffrey Keating <geoffk@apple.com>
12537
12538 * unwind-dw2-fde-darwin.c (DESTRUCTOR_MAY_BE_CALLED_LIVE): New.
12539 (live_image_destructor): Reset image to initial state.
12540 (examine_objects): Set DESTRUCTOR_MAY_BE_CALLED_LIVE.
12541
375ffbe6
EB
125422003-04-01 Eric Botcazou <ebotcazou@libertysurf.fr>
12543
12544 * config/sparc/sparc.c (input_operand): Accept bare
12545 CONSTANT_P_RTX operands.
12546
47a3dae1
ZD
125472003-04-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12548
12549 * gcse.c (struct ls_expr): Added pattern_regs field.
12550 (ldst_entry): Initialize it.
12551 (extract_mentioned_regs, extract_mentioned_regs_helper): New.
12552 (store_ops_ok): Use regs precomputed by them.
12553 (find_loads, store_killed_in_insn, load_kills_store): Change return
12554 type to bool.
12555 (store_killed_before, store_killed_after): Take position of register
12556 set in account.
12557 (reg_set_info): Store position of the setter.
12558 (gcse_main): Enable store motion.
12559 (mems_conflict_for_gcse_p): Enable load motion of non-symbol mems.
12560 (pre_insert_copy_insn, update_ld_motion_stores, insert_store): Prevent rtl
12561 sharing.
12562 (simple_mem): Enable store motion of non-symbol mems.
12563 (regvec): Type changed.
12564 (LAST_AVAIL_CHECK_FAILURE): New.
12565 (compute_store_table_current_insn): New.
12566 (build_store_vectors): Computation of availability and anticipatability
12567 moved ...
12568 (compute_store_table, find_moveable_store): ... here.
12569 (delete_store): Remove senseless comment.
12570 (store_motion): Reorganize.
12571
77d4f3a4
KB
125722003-04-01 Kevin Buettner <kevinb@redhat.com>
12573
12574 * config/mips/mips.c (override_options): Provide mappings for
12575 HI_REGNUM and LO_REGNUM.
12576 * config/mips/mips.h (MD_DBX_FIRST): Define.
12577
7d4444ea
FS
125782003-04-01 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12579
12580 * combine.c (merge_outer_ops): Fix typo.
12581
12582 * varasm.c (make_decl_one_only): Revert 2003-03-09 patch.
12583
9259f3b0
DE
125842003-04-01 David Edelsohn <edelsohn@gnu.org>
12585
12586 * config/rs6000/{40x.md,603.md,6xx.md,7450.md,7xx.md,mpc.md,
12587 power4.md,rios1.md,rios2.md,rs64.md}: Change mult_compare to
12588 imul_compare. Add lmul_compare.
12589 * config/rs6000/power4.md: Bump some latencies. Model extra cycle
12590 in second pair of dispatch slots. Model stores more accurately.
12591 Tweak multiply model. Add bypasses for CR instructions dependent
12592 on complicated compares.
12593 * config/rs6000/rs6000.md (mulsi3): Name imul_compare patterns.
12594 (muldi3): Add lmul_compare patterns.
12595 * config/rs6000/rs6000.c (rs6000_variable_issue): Move FPLOAD_UX
12596 and FPSTORE_UX to split instructions and add COMPARE,
12597 DELAYED_COMPARE, IMUL_COMPARE, LMUL_COMPARE, IDIV, LDIV.
12598 (rs6000_adjust_cost): Add IMUL_COMPARE and LMUL_COMPARE.
12599 (rs6000_rtx_costs): Separate POWER4 multiply case.
12600
7fe317e4
UW
126012003-04-01 Ulrich Weigand <uweigand@de.ibm.com>
12602
12603 * config/s390/s390.c (s390_fixup_clobbered_return_reg):
12604 Do nothing if __builtin_return_address was not used.
12605
e1fea6ee
JH
12606Tue Apr 1 18:18:23 CEST 2003 Jan Hubicka <jh@suse.cz>
12607
12608 * i386.md (test patterns): Allow memory operand in operand1.
12609
d744e06e
AH
126102003-02-31 Aldy Hernandez <aldyh@redhat.com>
12611
d78e771d
ZW
12612 * testsuite/gcc.c-torture/execute/simd-3.c: New.
12613
12614 * expr.c (expand_expr): Handle VECTOR_CST.
12615 (const_vector_from_tree): New.
12616
12617 * varasm.c (output_constant): Handle VECTOR_CST.
12618
12619 * c-typeck.c (digest_init): Build a vector constant from a
12620 VECTOR_TYPE.
12621
12622 * config/rs6000/rs6000.c: Remove prototype for
12623 easy_vector_constant.
12624 (easy_vector_constant): Add mode parameter. Rewrite to handle
12625 more easy constants.
12626 (rs6000_emit_move): Pass mode to easy_vector_constant.
12627 Call emit_easy_vector_insn for SPE V2SI vector constant moves.
12628 (emit_easy_vector_insn): New.
12629 (easy_vector_same): New.
12630 (EASY_VECTOR_15): New macro.
12631 (EASY_VECTOR_15_ADD_SELF): New macro.
12632 (bdesc_2arg): Rename to xorv2si3.
12633 (easy_vector_constant_add_self): New.
12634 (input_operand): Allow vector constants.
12635
12636 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12637 easy_vector_constant, easy_vector_constant_add_self.
12638 (EXTRA_CONSTRAINT): Add 'W'.
12639
12640 * config/rs6000/rs6000-protos.h: Add prototype for
12641 easy_vector_constant, emit_easy_vector_insn.
12642
12643 * config/rs6000/altivec.md (xorv8hi3): New.
12644 (xorv16qi3): New.
12645 Remove all _const0 patterns.
12646 (movv4si_internal): Rewrite to use code. Add vector constant to
12647 vector alternative. Add splitter.
12648 (movv8hi_internal): Same.
12649 (movv16qi_internal): Same.
12650 (movv4sf_internal): Same.
12651 Change the unspecs for vspltis* to use constants.
12652
12653 * config/rs6000/spe.md ("xorv4hi3"): New.
12654 ("spe_evxor"): Rename to xorv2si3.
12655 ("xorv1di3"): New.
12656 Remove all _const0 patterns.
12657 (movv2si_internal): Rewrite to use code. Add vector constant to
12658 alternatives. Add splitter.
12659 (movv4hi_internal): Add vector constant to alternatives.
12660 (movv1di_internal): Same.
12661 (movv2sf_internal): Same.
d744e06e 12662
46e33d43
MM
126632003-03-31 Mark Mitchell <mark@codesourcery.com>
12664
12665 PR c/9936
12666 * c-decl.c (grokdeclarator): Clear SAVE_EXPR_CONTEXT for
12667 variably-sized arrays in parameters.
12668 (set_save_expr_context): New function.
12669 (c_expand_body): Use it, via walk_tree.
12670
73a39fc4
EC
126712003-03-31 Eric Christopher <echristo@redhat.com>
12672
12673 * combine.c (can_combine_p): Allow ZERO_EXTRACT and STRICT_LOW_PART.
12674 (combinable_i3pat): Remove call to expand_field_assignment and
12675 #if 0'd code.
12676
6b665219
MM
126772003-03-31 Mark Mitchell <mark@codesourcery.com>
12678
12679 PR c++/10278
12680 * c-common.c (finish_label_address_expr): Handle the
12681 error_mark_node.
12682
6c06208f
RH
126832003-03-31 Richard Henderson <rth@redhat.com>
12684
12685 * real.c (real_identical): Reorg so as to not compare
12686 signalling for normals.
12687
11789584
SC
126882003-03-31 Stephane Carrez <stcarrez@nerim.fr>
12689
12690 * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
12691
c25292ce
SC
126922003-03-31 Stephane Carrez <stcarrez@nerim.fr>
12693
12694 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
12695 notes as they are boggus.
12696 (m68hc11_gen_movqi): Likewise.
12697
07faf2d6
SC
126982003-03-31 Stephane Carrez <stcarrez@nerim.fr>
12699
12700 * config/m68hc11/m68hc11.c (expand_prologue): For an interrupt handler
12701 save the soft registers after the frame pointer so that gdb can unwind
12702 the frame more easily.
12703 (expand_epilogue): Likewise in opposite order; allow to use X register
12704 as scratch if the return value is by reference.
12705
adff28c3
JM
127062003-03-31 Jason Merrill <jason@redhat.com>
12707
12708 PR java/10145
12709 * stor-layout.c (update_alignment_for_field): Respect
12710 DECL_USER_ALIGN for zero-length bitfields, too.
12711 * c-decl.c (finish_struct): Don't set DECL_ALIGN for normal
12712 fields.
12713
c419b113
MA
127142003-03-31 Matt Austern <austern@apple.com>
12715
12716 * cpppch.c (struct cpp_savedstate): Add defs and n_defs members.
12717 (count_defs): Keep track of number of defs as well as total size.
12718 (write_defs): Put every definition in cpp_savedstate's defs array.
12719 (comp_hashnode): Define. Comparison function for qsort.
12720 (cpp_write_pch_deps): Sort definitions before writing them.
12721 (struct ht_node_list): Define. Like cpp_savedstate but simpler.
12722 (collect_ht_nodes): Define.
12723 (cpp_valid_state): When verifying that undefined identifiers in
12724 the pch file are still undefined, read a sorted list of undefined
12725 identifiers, collect all defined identifiers into a sorted list,
12726 and walk through both lists to make sure there's no match.
73a39fc4 12727
ef3a7d56
KH
127282003-03-31 Kazu Hirata <kazu@cs.umass.edu>
12729
12730 * config/h8300/h8300.md (a peephole2): New.
12731
5ccd517a
MM
127322003-03-31 Michael Matz <matz@suse.de>
12733
12734 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Change 1 into 0.
12735
127362003-03-31 Segher Boessenkool <segher@koffie.nl>
c8ae788f
SB
12737
12738 PR target/10177
12739 * config/rs6000/rs6000.h (HARD_REGNO_RENAME_OK): New.
12740 * config/rs6000/rs6000.c (compute_vrsave_mask): Don't mark
12741 all call-clobbered registers as used.
12742
7f1fc38e
MM
127432003-03-31 Michael Matz <matz@suse.de>
12744
12745 * cppexp.c (cpp_classify_number): Accept '.' after "0x".
12746 * testsuite/gcc.dg/cpp/c99-hexfloat-3.c: New file.
12747
27283c73
NS
127482003-03-31 Nathan Sidwell <nathan@codesourcery.com>
12749
12750 * gcov.c: Add -a & -u options.
12751 (struct arc_info): Add local_span, is_call_non_return,
12752 is_nonlocal_return, is_unconditional flags, remove is_call flag.
12753 (struct block_info): Add flags, is_call_site, is_nonlocal_return
12754 members. Make encodings a union with span member.
12755 (struct function_info): Add blocks_executed, line, src, line_next
12756 members.
12757 (struct coverage_info): Make branches a union with blocks member.
12758 (struct source_info): Add functions member.
12759 (object_summary, program_count): New global variables.
12760 (flag_all_blocks, flag_unconditional): New flags.
12761 (find_source, output_branch_count): New functions.
12762 (print_usage): Adjust.
12763 (options): Adjust.
12764 (process_args): Adjust.
12765 (read_graph_file) <GCOV_TAG_FUNCTION>: Adjust.
12766 <GCOV_TAG_BLOCKS>: Read flags.
12767 <GCOV_TAG_LINES>: Adjust.
12768 (read_count_file): Process SUMMARY tags.
12769 (solve_flow_graph): Set is_unconditional and clear is_call_site
12770 appropriately.
12771 (add_branch_counts): Adjust. Don't count unconditional branches.
12772 (add_line_counts): Deal with all-blocks mode, accumulate block
12773 coverage.
12774 (accumulate_line_counts): Adjust, generate local spanning tree for
12775 all-blocks mode.
12776 (output_lines): Adjust.
12777 * profile.c (branch_prob): Alter GCOV_FUNCTION_TAG record.
12778 * doc/gcov.texi: Document.
12779
212d9313
KH
127802003-03-31 Kazu Hirata <kazu@cs.umass.edu>
12781
63855aa6 12782 * config/h8300/h8300.md: Organize peephole2's that transform
212d9313
KH
12783 (compare (reg:HI) (const_int)).
12784
03f2ea93
RS
127852003-03-31 Roger Sayle <roger@eyesopen.com>
12786
12787 * emit-rtl.c (dconstm2, dconsthalf): New real constants.
12788 (init_emit_once): Initialize dconstm2 and dconsthalf here.
12789 * real.h (dconstm2, dconsthalf): Add prototypes here.
12790 * real.c (real_sqrt): Use dconsthalf rather than local copy.
12791 * builtins.c (fold_builtin): When optimizing sqrt(exp(x)) as
12792 exp(x/2.0) remember to fold the division if possible.
12793 Fold sin(0.0) as 0.0, cos(0.0) as 1.0, pow(x,1.0) as x,
12794 pow(x,-1.0) as 1.0/x, pow(x,2.0) as x*x, pow(x,-2.0) as
12795 1.0/(x*x) and pow(x,0.5) as sqrt(x).
12796
155de338
KH
127972003-03-31 Kazu Hirata <kazu@cs.umass.edu>
12798
12799 * config/h8300/h8300.md (a new peephole2): New.
12800
98d3d336
RS
128012003-03-31 Richard Sandiford <rsandifo@redhat.com>
12802
12803 * gcse.c (simple_mem): Return false for floating-point accesses
12804 if flag_float_store is true.
12805
6b2d1c9e
RS
128062003-03-30 Roger Sayle <roger@eyesopen.com>
12807
12808 * gcse.c (gcse_constant_p): New function to identify constants
12809 suitable for constant propagation, including COMPARE with two
12810 integer constant arguments.
12811 (hash_scan_set): Use gcse_constant_p.
12812 (find_avail_set): Likewise.
12813 (cprop_insn): Likewise.
12814 (do_local_cprop): Likewise.
12815 (find_implicit_sets): Likewise.
12816 (find_bypass_set): Likewise.
12817
af829441
MK
128182003-03-30 Matt Kraai <kraai@alumni.cmu.edu>
12819
12820 * except.h: Remove definition of varray_type.
12821
3d1f4922
RH
128222003-03-30 Richard Henderson <rth@redhat.com>
12823
12824 PR opt/10011, opt/10252:
d78e771d
ZW
12825 * toplev.c (rest_of_compilation): Run purge_builtin_constant_p
12826 before post-gcse cse pass.
3d1f4922 12827
9311f3f6
RS
128282003-03-30 Roger Sayle <roger@eyesopen.com>
12829
12830 * dojump.c (do_jump): Copy SUBREGs into a pseudo for comparison.
12831
ececa172
DD
128322003-03-30 DJ Delorie <dj@redhat.com>
12833
12834 * profile.c (instrument_edges): Make sure any newly created
12835 jump insns have correct jump label info.
12836
e1233a7d
RH
128372003-03-30 Richard Henderson <rth@redhat.com>
12838
12839 * cfgbuild.c (make_edges): Use tablejump_p.
12840 * cfgcleanup.c (label_is_jump_target_p): Likewise.
12841 * cfglayout.c (cfg_layout_can_duplicate_bb_p): Likewise.
12842 * cfgrtl.c (flow_delete_block_noexpunge): Likewise.
12843 (try_redirect_by_replacing_jump): Likewise.
12844 (redirect_edge_and_branch): Likewise.
12845 * cse.c (fold_rtx): Likewise.
12846 * jump.c (delete_related_insns): Likewise.
12847 * rtlanal.c (get_jump_table_offset): Likewise.
12848 * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): Likewise.
12849
78e68f88
GDR
128502003-03-30 Gabriel Dos Reis <gdr@integrable-solutions.net>
12851
d78e771d
ZW
12852 * Makefile.in (STRICT_WARN): Don't warn for ISO C constructs.
12853 (STRICT2_WARN): Likewise.
73a39fc4 12854
15dda4d3
KG
128552003-03-30 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12856
12857 PR other/6955
12858 * collect2.c (collect_wait): Use WCOREDUMP and fix output message.
12859 * system.h (WCOREDUMP, WCOREFLG): Define if necessary.
12860
5bf92e20
RH
128612003-03-30 Richard Henderson <rth@redhat.com>
12862
12863 PR c/10083
12864 * config/alpha/alpha.md (umuldi3_highpart): Change to expander;
12865 don't zero_extend const inputs.
12866
9a8075a1
KH
128672003-03-30 Kazu Hirata <kazu@cs.umass.edu>
12868
12869 * reload1.c (reload_cse_move2add): Fix a comment typo.
12870
f3926c48
KH
128712003-03-30 Kazu Hirata <kazu@cs.umass.edu>
12872
12873 * config/h8300/h8300.md (a peephole2): Remove useless code.
12874
39ecf301
KH
128752003-03-29 Kazu Hirata <kazu@cs.umass.edu>
12876
12877 * config/h8300/h8300.md (*iorsi3_and_ashift): New.
12878 (*iorsi3_and_lshiftrt): Likewise.
12879 (*iorsi3_zero_extract): Likewise.
12880
d4048ff6
KH
128812003-03-29 Kazu Hirata <kazu@cs.umass.edu>
12882
12883 * config/h8300/h8300.md (*insv_si_8_8): New.
12884 (*insv_si_8_8_lshiftrt_8): Likewise.
12885 (a peephole2): Likewise.
12886
62d08205
GP
128872003-03-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12888
60ef8bdd 12889 * doc/contrib.texi: Add Eric Botcazou and Roger Sayle.
73a39fc4 12890 Uniformly use bugfix instead of bug fix.
60ef8bdd
GP
12891
128922003-03-29 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
73a39fc4 12893
62d08205
GP
12894 PR doc/895
12895 * ONEWS: Remove those items that already appear in the EGCS
12896 release notes on our web pages.
12897
e87a88d3
AM
128982003-03-29 Alan Modra <amodra@bigpond.net.au>
12899
12900 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Respect
12901 TARGET_HARD_FLOAT. Reformat.
12902 (FUNCTION_ARG_REGNO_P): Likewise, and remove unneeded casts.
12903
ce4a8f7d
ACY
129042003-03-28 Albert Chin-A-Young <china@thewrittenword.com>
12905
12906 * gcc/fixinc/inclhack.def: Update solaris_mutex_init_1 to
12907 work on Solaris 2.5.1.
12908
12f76820
KH
129092003-03-28 Kazu Hirata <kazu@cs.umass.edu>
12910
12911 * config/h8300/h8300.md (*addsi3_and_r_1): Put under plus:SI
12912 section of h8300.md
12913 (*addsi3_and_nor_r_1): Likewise.
12914
7d798969
UW
129152003-03-29 Ulrich Weigand <uweigand@de.ibm.com>
12916
12917 * config/s390/s390.c (s390_emit_prologoue): Make sure backchain is
12918 set up before any trapping memory access if flag_non_call_exceptions.
12919
00dcfe80
AM
129202003-03-29 Alan Modra <amodra@bigpond.net.au>
12921
12922 * reload1.c (reload_as_needed): Allow a USE in asm reloads.
12923
12924 * loop.c: (find_mem_in_note_1, find_mem_in_note): Comment.
12925
d869a8c4
NN
129262003-03-28 Nathanael Nerode <neroden@gcc.gnu.org>
12927
12928 * configure.in: Clarify comments.
12929 * configure: Regenerate.
12930
5c033b9f
UW
129312003-03-28 Ulrich Weigand <uweigand@de.ibm.com>
12932
73a39fc4 12933 * config/s390/s390.md ("literal_pool_31"): Output pool anchor
5c033b9f
UW
12934 label even if pool empty when generating PIC.
12935 ("literal_pool_31", "literal_pool_64"): Coding style cleanup.
12936
d18ad191
KH
129372003-03-28 Kazu Hirata <kazu@cs.umass.edu>,
12938 Dhananjay Deshpande <dhananjayd@kpit.com>
12939
12940 PR target/10205
12941 * config/h8300/h8300.c (h8300_initial_elimination_offset):
12942 Correct the offset computation when TARGET_NORMAL.
12943
0c85dbfd
EB
129442003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
12945
12946 PR target/10067
12947 * config/sparc/sparc.md (jump pattern): Correct order
12948 when issuing the annuling marker.
12949
f7670e7b
EB
129502003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
12951
12952 PR c/8281
12953 * config/sparc/sparc.md (movdi_insn_sp32_v9): Remove 'f-f' alternative.
12954 (movdi reg/reg split): Match only on sparc32, and v9 when int regs.
12955
c9280dfe
AM
129562003-03-28 Alan Modra <amodra@bigpond.net.au>
12957
12958 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
12959 globalize_label.
12960 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
73a39fc4 12961 * config/i960/i960.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
c9280dfe
AM
12962 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12963 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12964 * config/mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12965 * config/sparc/sparc.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
12966 * config/v850/v850.c (v850_output_aligned_bss): Likewise.
12967
e81eb37f
AM
129682003-03-28 Alan Modra <amodra@bigpond.net.au>
12969
12970 * loop.c: (find_mem_in_note_1, find_mem_in_note): New functions.
12971 (replace_loop_mems): Add "written" param. Remove invalid REG_EQUAL
12972 notes after hoisting.
12973 (load_mems): Adjust replace_loop_mems call.
12974
1ce324c3 129752003-03-28 Eric Botcazou <ebotcazou@libertysurf.fr>
d78e771d 12976 Richard Henderson <rth@redhat.com>
1ce324c3
EB
12977
12978 PR target/10114 and PR target/10084
12979 * dwarf2out.c (mem_loc_descriptor): Handle LO_SUM.
12980
c6cf19a8
RH
129812003-03-27 Richard Henderson <rth@redhat.com>
12982
12983 * config/alpha/alpha.md (adddi_er_high_l): Valid only after reload.
12984
9ddae796
RS
129852003-03-27 Roger Sayle <roger@eyesopen.com>
12986
12987 * fold-const.c (fold_inf_compare): New function to simplify FP
12988 comparisons against +Infinity or -Infinity.
12989 (fold): Optimize floating point comparisons against Infs and NaNs.
12990
01e60c33
JJ
129912003-03-27 Janis Johnson <janis187@us.ibm.com>
12992
12993 * libgcov.c: Provide only dummy functions if libc is not available.
12994
ad59ba20
RH
129952003-03-27 Richard Henderson <rth@redhat.com>
12996
12997 * real.h (struct real_value): Add signalling.
12998 (EXP_BITS): Decrement.
12999 * real.c (get_canonical_qnan): Don't set MSB-1.
13000 (get_canonical_snan): Likewise. Set signalling.
13001 (real_identical): Compare signalling.
13002 (round_for_format): Remove force-one-bit on code.
13003 (real_nan): Likewise. Set signalling.
13004 (encode_ieee_single): Add force-one-bit code; honor signalling.
13005 (encode_ieee_double, encode_ieee_extended, encode_ieee_quad): Likewise.
13006 (decode_ieee_single): Set signalling.
13007 (decode_ieee_double, decode_ieee_extended, decode_ieee_quad): Likewise.
13008
940bbb74
OH
130092003-03-27 Olivier Hainque <hainque@act-europe.fr>
13010
13011 PR ada/9953
13012 * ada/Makefile.in (gnatlib configuration for HPUX): Split
13013 the general section for HPUX into specific sections for
13014 HPUX 10 and HPUX 11. Fix the setting of TGT_LIB in the HPUX
13015 11 case.
13016
c7d325c8
GN
130172003-03-27 Glen Nakamura <glen@imodulo.com>
13018
13019 PR opt/10087
13020 * loop.c (loop_givs_reduce): Skip bivs with duplicate locations
13021 while incrementing giv.
13022 (record_biv): Check for duplicate biv locations and
13023 set (struct induction *) v->same if found.
13024
f18ab437
DM
130252003-03-27 David Mosberger <davidm@hpl.hp.com>
13026
d78e771d
ZW
13027 * unwind-libunwind.c (uw_frame_state_for): Adjust for libunwind
13028 v0.9 API change: replace read of UNW_REG_HANDLER with
13029 unw_get_proc_info().
13030 (_Unwind_GetLanguageSpecificData): Replace read of UNW_REG_LSDA
13031 with unw_get_proc_info().
13032 (_Unwind_GetRegionStart): Replace UNW_REG_PROC_START with
13033 unw_get_proc_info().
f18ab437 13034
eaff4b90
VM
130352003-03-27 Vladimir Makarov <vmakarov@redhat.com>
13036
13037 * config/rs6000/8540.md: Use presence_set instead of absence_set.
13038
3684a055
RH
130392003-03-26 Richard Henderson <rth@redhat.com>
13040
13041 * c-decl.c (finish_function): Always defer if DECL_DECLARED_INLINE_P.
13042
de132314
RS
130432003-03-26 Roger Sayle <roger@eyesopen.com>
13044
13045 PR bootstrap/10051, PR bootstrap/10169.
13046 * mips-tfile.c (init_file): Don't provide a static initializer.
13047 (initialize_init_file): Initialize the contents of init_file.
13048 (add_file): Call initialize_init_file if not already initialized.
13049
6f84708a
UW
130502003-03-26 Ulrich Weigand <uweigand@de.ibm.com>
13051
13052 * config/s390/s390.c (s390_optimize_prolog): Do not save/restore
13053 registers used for global asm variables.
13054 (s390_frame_info, s390_arg_frame_offset): Likewise.
13055 (s390_emit_prologue, s390_emit_epilogue): Likewise.
13056
5e8006fa
VM
130572003-03-26 Vladimir Makarov <vmakarov@redhat.com>
13058
d78e771d 13059 * config/rs6000/8540.md: New file.
73a39fc4 13060
5e8006fa
VM
13061 * config/rs6000/{40x.md, 603.md, 6xx.md, 7450.md, 7xx.md, mpc.md,
13062 power4.md, rios1.md, rios2.md, rs64.md}: Add mult_compare to
13063 reservations for imul.
13064
13065 * config/rs6000/rs6000.md: Include 8540.md. Change
13066 delayed_compare onto mult_compare for insns generating
13067 multiplication.
13068 (mult_compare, fpsimple, brinc, vecdiv, veccmpsimple, vecfdiv):
13069 New type attribute values.
13070
13071 * config/rs6000/spe.md (*negsf2_gp, *abssf2_gpr): Use type
13072 fpsimple instead of fp.
13073 (*divsf3_gpr): Use type vecfdiv instead of fp.
13074 (spe_evfsabs, spe_evfsnabs, spe_evfsneg): Use type vecsimple
13075 instead of vecfloat.
13076 (spe_evfsdive): Use type vecfdiv instead of vecfloat.
13077 (spe_brinc): Use type brinc instead of veccomplex.
13078 (spe_evaddw, spe_evaddiw): Use type vecsimple instead of
13079 veccomplex.
13080 (spe_evdivws, spe_evdivwu): Use type vecdiv instead of veccomplex.
13081 (*movv2si_internal, *movv1di_internal, *movv4hi_internal,
13082 *movv2sf_internal): Define type attribute values for all
13083 alternatives.
13084 (cmpsfeq_gpr, cmpsfgt_gpr, cmpsflt_gpr): Use type veccmp instead
13085 of fpcompare.
13086 (tstsfeq_gpr, tstsfgt_gpr, tstsflt_gpr): Use type veccmpsimple
13087 instead of fpcompare.
73a39fc4 13088
29ae9364
DE
130892003-03-26 David Edelsohn <edelsohn@gnu.org>
13090
13091 * config/rs6000/power4.md: Allow delay between dispatch and
13092 function units for simple instructions. Correct store units.
13093 Allow branch to occupy as many dispatch slots as necessary.
13094
be565ad7
JJ
130952003-03-26 Jakub Jelinek <jakub@redhat.com>
13096
13097 * config/ia64/ia64.c (ia64_expand_op_and_fetch): Fix comment.
13098 (ia64_expand_compare_and_swap): Use always DImode ar.ccv,
13099 zero extend old to it.
13100 * config/ia64/ia64.md (cmpxchg_acq_si): Remove mode from ccv
13101 operand.
13102
27e484bc
EB
131032003-03-26 Eric Botcazou <ebotcazou@libertysurf.fr>
13104
13105 PR target/7784
13106 * reload.c (find_reloads_address): Handle
13107 (PLUS (PLUS (REG) (REG)) (CONST_INT)) form for
13108 all base registers.
13109
b47161ec
MA
131102003-03-25 Marcelo Abreu <mmabreu@inf.ufrgs.br>
13111
13112 PR other/10203
13113 * version.c: Reference the GCC web site in the URL.
13114
611f0729
AM
131152003-03-26 Alan Modra <amodra@bigpond.net.au>
13116
13117 * c-incpath.c (add_standard_paths): Add both "translated" and
13118 non-translated header paths.
13119
e4e7d312
LR
131202003-03-25 Loren James Rittle <ljrittle@acm.org>
13121
13122 * doc/install.texi (*-*-freebsd*): Update with known status.
13123
2e2255ff
JM
131242003-03-21 Jason Merrill <jason@redhat.com>
13125
13126 PR optimization/10171
13127 * unroll.c (unroll_loop): Don't delete the jump at the end unless
13128 we also delete a jump at the beginning.
13129
8725a499
SC
131302003-03-25 Stephane Carrez <stcarrez@nerim.fr>
13131
13132 * doc/contrib.texi (Contributors): Mention self as 68HC11/68HC12
13133 contributor.
13134
3504dad3
JH
13135Tue Mar 25 20:35:51 CET 2003 Jan Hubicka <jh@suse.cz>
13136
13137 * i386.c (ix86_rtx_costs): For -fpic and x86-64 local symbolic
13138 constants are not expensive.
13139
cb9a1d9b
JH
13140Mon Mar 24 20:03:03 CET 2003 Jan Hubicka <jh@suse.cz>
13141
13142 PR opt/10056
13143 * cfglayout.c (fixup_reorder_chain): Fix dealing with the conditional
13144 jump jumping to the next instruction.
13145 * cfgrtl.c (force_nonfallthru_and_redirect): Likewise.
13146
d6d05f8d
GP
131472003-03-25 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13148
13149 * doc/passes.texi (Passes): Properly document that we do not
13150 perform jump2 any longer; remove command-line option -dJ.
13151
d2fc7725
EB
131522003-03-25 Eric Botcazou <ebotcazou@libertysurf.fr>
13153
13154 PR optimization/8746
13155 * config/i386/i386.md (and promoting splitters): Disable HImode to
13156 SImode promoting when the sign bit matters and is not preserved, or
13157 when TARGET_FAST_PREFIX is true. Disable promoting when optimizing
13158 for size.
13159
beb14cfe
KH
131602003-03-24 Kazu Hirata <kazu@cs.umass.edu>
13161
13162 * config/h8300/h8300.md (a peephole2): Extend to support loads
13163 in QImode and HImode.
13164
dbcedbc4
SC
131652003-03-24 Stephane Carrez <stcarrez@nerim.fr>
13166
13167 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Add _call_far and
13168 _return_far
13169 (MULTILIB_OPTIONS): Don't multilib on -mlong-calls.
13170 (MULTILIB_EXCEPTIONS): Likewise.
13171 * config/m68hc11/m68hc11.md ("call"): Support far calls for 68HC11
13172 by calling some board support routine.
13173 ("call_value"): Likewise.
13174 ("*return_void"): Likewise for return.
13175 ("*return_16bit"): Likewise.
13176 ("*return_32bit"): Likewise.
13177 * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Generate .far
13178 for 68HC11 too.
73a39fc4 13179 (DWARF2_ADDR_SIZE): Use 4 so that addresses can
dbcedbc4
SC
13180 * config/m68hc11/m68hc11.c (m68hc11_override_options): Accept
13181 -mlong-calls for 68HC11.
13182 * config/m68hc11/larith.asm (declare_near): New macro.
13183 (__premain, ___negsi2, ___one_cmplsi2, ___ashlsi3): Use it.
13184 (___ashrsi3, ___lshrsi3, ___lshrhi3, ___lshlhi3): Likewise.
13185 (___rotrhi3, ___rotlhi3, ___ashrhi3, ___ashrqi3): Likewise.
13186 (___lshlqi3, __divmodhi4, ___mulqi3, ___mulhi3): Likewise.
13187 (__mulhi32): Likewise.
13188 (ret): Update macro for 68HC11.
13189 (__far_trampoline): Implement for 68HC11.
13190 (__call_a16, __call_a32, __return_void, __return_16): New support
13191 routines for 68HC11 memory bank switching calling support.
13192 (__return_32): Likewise.
13193
696fe23c
NB
131942003-03-24 Neil Booth <neil@daikokuya.co.uk>
13195
13196 * toplev.c (independent_decode_option): Don't skip a 'Y' prefix.
13197
05253aed
JJ
131982003-03-24 Janis Johnson <janis187@us.ibm.com>
13199
13200 * doc/install.texi (Testing): Mention test result links from build
13201 status pages.
13202
f8928391
MM
132032003-03-24 Mark Mitchell <mark@codesourcery.com>
13204
13205 * function.c (put_var_into_stack): Change bool parameter to int.
13206 (gen_mem_addressof): Likewise.
13207 * rtl.h (gen_mem_addressof): Likewise.
13208 * tree.h (put_var_into_stack): Likewise.
13209 * config/alpha/alpha.c (alpha_gp_save_rtx): Adjust call to
13210 gen_mem_addressof or put_var_into_stack.
13211 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
13212 * config/ia64/ia64.c (spill_tfmode_operand): Likewise.
13213
b980d725
KH
132142003-03-24 Kazu Hirata <kazu@cs.umass.edu>
13215
13216 * config/h8300/h8300.md (a peephole2): New.
13217
2ff1fb45
JJ
132182003-03-24 Jakub Jelinek <jakub@redhat.com>
13219
13220 * dojump.c (do_jump): Handle UNSAVE_EXPR specially.
13221
8b5777db
GP
132222003-03-24 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
13223
13224 * doc/contrib.texi (Contributors): Update Janis Johnson.
13225
02484af9
EB
132262003-03-23 Eric Botcazou <ebotcazou@libertysurf.fr>
13227
13228 PR target/10072
13229 * combine.c (simplify_if_then_else): Check that the mode
13230 has MODE_INT class before applying the (OP Z (mult COND C2))
13231 transformation.
13232
941bc659
EB
132332003-03-23 Eric Botcazou <ebotcazou@libertysurf.fr>
13234
13235 PR optimization/9414
13236 * config/sparc/sparc.md (widening peepholes): Use
13237 widen_memory_access instead of change_address.
13238
f29a2bd1
MM
132392003-03-23 Mark Mitchell <mark@codesourcery.com>
13240
13241 PR c++/7086
13242 * c-typeck.c (c_mark_addressable): Adjust calls to
13243 put_var_into_stack.
13244 * expr.c (expand_expr): Likewise.
13245 * function.c (put_var_into_stack): Add rescan parameter. Do not
13246 call fixup_var_refs when rescan is false.
13247 (gen_mem_addressof): Likewise.
13248 (assign_parms): Adjust calls to put_var_into_stack.
13249 (setjmp_protect): Likewise.
13250 (setjmp_protect_args): Likewise.
13251 * rtl.h (gen_mem_addressof): Change prototype.
13252 * stmt.c (expand_decl): Adjust calls to put_var_into_stack.
13253 * tree.h (put_var_into_stack): Change prototype.
13254
fa9b4904
AB
132552003-03-23 Arpad Beszedes <beszedes@cc.u-szeged.hu>
13256
b099daeb 13257 PR middle-end/9967
fa9b4904
AB
13258 * builtins.c (expand_builtin_fputs): When optimizing for size,
13259 don't transform fputs into fwrite.
13260
068d2c9d
MM
132612003-03-23 Glen Nakamura <glen@imodulo.com>
13262
13263 PR c/8224
13264 * fold-const.c (extract_muldiv_1): Don't pass through type conversions
13265 when signedness changes for division or modulus.
13266
c967e28c
AM
132672003-03-24 Alan Modra <amodra@bigpond.net.au>
13268
13269 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Remove unnecessary
13270 globalize_label.
13271
766dec0e
RS
132722003-03-23 Roger Sayle <roger@eyesopen.com>
13273
13274 PR c/10178
13275 * stmt.c (expand_end_case_type): Check for overflow in range when
13276 determining whether to use a bit-test implementation.
13277
ef3e9886
RH
132782003-03-23 Richard Henderson <rth@redhat.com>
13279
13280 * cfgcleanup.c (try_optimize_cfg): Allow merging of tablejumps
13281 before flow2.
13282 * cfgrtl.c (try_redirect_by_replacing_jump): Similarly.
13283
bd2eae18
RH
132842003-03-23 Richard Henderson <rth@redhat.com>
13285
13286 PR opt/10116
13287 * ifcvt.c (find_if_block): Disallow tablejump insns outgoing
13288 from then_bb or else_bb after flow2.
13289
62c9aa5f
ZW
132902003-03-23 Zack Weinberg <zack@codesourcery.com>
13291
13292 * configure.in: Check whether it is necessary to link against
13293 libm to use ldexp.
13294 * configure: Regenerate.
13295 * Makefile.in: Add LDEXP_LIB substitution variable.
13296
4d1da12a
KH
132972003-03-23 Kazu Hirata <kazu@cs.umass.edu>
13298
13299 * config/h8300/h8300.md: Fix comment typos.
13300
7772f0a9
JDA
133012003-03-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13302
13303 * pa.c (output_cbranch): Fix typo in comment.
13304
3ce6bef0
RH
133052003-03-22 Richard Henderson <rth@redhat.com>
13306
13307 * cfgcleanup.c (insns_match_p): Do not do EQUIV substitution
13308 after reload.
13309
7a9cdb10
DD
133102003-03-22 DJ Delorie <dj at redhat dot com>,
13311 Bruce Korb <bkorb at gnu dot org>
13312
13313 * fixinc/inclhack.def (solaris_mutex_init_1): New; Fix
13314 buggy Solaris 2.6 mutex/cond initializers.
13315 (solaris_mutex_init): Rename to solaris_mutex_init_2.
13316 * fixinc/fixincl.x: Regenerate.
13317 * fixinc/tests/base/pthread.h: Update.
00af168c
BK
13318 * fixinc/fixincl.c(initialize): be explicit about the default case
13319 and indicate verbose level when being very, very verbose.
13320 * fixinc/check.tpl(VERBOSE): provide a means for passing the value in
7a9cdb10 13321
8330e2c6
AJ
133222003-03-22 Andreas Jaeger <aj@suse.de>
13323
13324 * config/i386/i386.c (ix86_init_machine_status): Return value.
13325
02a57c73
JDA
133262003-03-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13327
13328 * pa.c (output_cbranch, output_bb, output_bvb): Output nop for
13329 conditional branch to the following instruction. Use next_real_insn
13330 instead of next_active_insn.
13331 (output_dbra, output_movb, jump_in_call_delay): Use next_real_insn
13332 instead of next_active_insn.
13333
97c6f7ad
UW
133342003-03-22 Ulrich Weigand <uweigand@de.ibm.com>
13335
c967e28c
AM
13336 * config/s390/s390.md ("movti", "*movdi_31", "*movdf_31"): Use 'o'
13337 instead of 'm' constraint in forced-split alternatives.
97c6f7ad
UW
13338 ("*adddi3_31", "*subdi3_31"): Likewise. Also, pass 0 instead of 1 as
13339 VALIDATE_ADDRESS parameter to operand_subword.
13340
c8fcf20c
KH
133412003-03-22 Kazu Hirata <kazu@cs.umass.edu>
13342
13343 * config/h8300/h8300.c (notice_update_cc): Correctly handle
13344 the case where the set destination is STRICT_LOW_PART.
13345
21c0e624
SS
133462003-03-22 Svein E. Seldal <Svein.Seldal@solidas.com>
13347
13348 * config/c4x/t-c4x (INSTALL_LIBGCC): Make gcc recognize a c33 as a
13349 c30 instead of a c40 processor.
13350
70e1b8fc
AM
133512003-03-22 Alan Modra <amodra@bigpond.net.au>
13352
13353 * combine.c (simplify_comparison <AND>): Use gen_int_mode. Tidy.
13354
d9b2742a
ZW
133552003-03-21 Zack Weinberg <zack@codesourcery.com>
13356
13357 * c-common.c: Include intl.h.
13358 (shadow_warning): Rewrite to allow better diagnostic translations.
13359 * c-common.h: Update prototype of shadow_warning. Declare sw_kind enum.
13360 * c-decl.c (warn_if_shadowing): Update calls to shadow_warning;
13361 use it throughout.
13362 * Makefile.in (c-common.o): Add intl.h.
13363
cbbf876b
NN
133642003-03-21 Nathanael Nerode <neroden@gcc.gnu.org>
13365
bea41393
NN
13366 * config.gcc: Remove 'float_format'.
13367
cbbf876b
NN
13368 * fixproto: Define NULL and size_t in generated stdlib.h and
13369 unistd.h. Kill unused required_stdlib_h, required_unistd_h.
13370 Rearrange file generation loop for readability. Generate time.h,
13371 string.h if missing.
13372 * tsystem.h: Include <string.h>, <time.h> unconditionally.
13373 * config.gcc: Blow away POSIX defines.
13374
84fcbe0a
SC
133752003-03-22 Stephane Carrez <stcarrez@nerim.fr>
13376
13377 * config/m68hc11/m68hc11.md ("call_value"): Fix trap check.
13378
639a8102
SC
133792003-03-22 Stephane Carrez <stcarrez@nerim.fr>
13380
13381 * config/m68hc11/m68hc11.h (ASM_DECLARE_FUNCTION_NAME): Fix typo in
13382 writing .interrupt command.
13383 * config/m68hc11/m68hc11.md ("call"): Look at the symbol to see
13384 if it's a far or near function.
13385 ("call_value"): Likewise.
13386 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Add far and
13387 near attributes.
13388 (m68hc11_handle_fntype_attribute): Accept attributes on methods.
13389 (m68hc11_override_options): Ignore -mlong-calls for 68HC11.
13390 (m68hc11_initial_elimination_offset): Set current_function_far
13391 according to attributes.
13392 (expand_prologue): Likewise.
13393 (trap_handler_symbol): New global to keep track of trap handlers.
13394 (m68hc11_encode_section_info): Mark symbol as far if needed; set
13395 trap symbol.
13396 (m68hc11_is_far_symbol): New function.
13397 (m68hc11_is_trap_symbol): New function.
13398 * config/m68hc11/m68hc11-protos.h (m68hc11_is_far_symbol): Declare.
13399 (m68hc11_is_trap_symbol): Declare.
13400
62c9aa5f 134012003-03-21 Jan Hubicka <jh@suse.cz>
d7394366
JH
13402
13403 * i386.c (ix86_compute_frame_layout): Recompute fast prologues
13404 only when amount of saved regs changed.
13405 (ix86_init_machine_status): Initialize use_fast_prologue_epilgoue_nregs.
13406 * i386.h (machine_function): New fields use_fast_prologue_epilgoue_nregs.
13407
62c9aa5f 134082003-03-21 Jan Hubicka <jh@suse.cz>
5dc96d60
JH
13409
13410 PR inline-asm/7916
13411 * function.c (instantiate_virtual_regs_lossage): New function.
13412 (instantiate_virtual_regs_1): Use it.
13413 (instantiate_virtual_regs): Do not continue in substition when insn has
13414 been deleted.
13415
c5c15353
KH
134162003-03-21 Kazu Hirata <kazu@cs.umass.edu>
13417
13418 * combine.c (make_field_assignment): Fix a warning.
13419
5c1c25f0
KH
134202003-03-21 Kazu Hirata <kazu@cs.umass.edu>
13421
13422 * config/h8300/h8300.md (*insv_si_1_n_lshiftrt_16): New.
13423
6b13641d
DJ
134242003-03-21 Dale Johannesen <dalej@apple.com>
13425
13426 * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Increase
13427 priority for R2 on Darwin.
13428 (HARD_REGNO_MODE_OK): Don't accept R31 for DFmode.
13429
6e814b8d
KH
134302003-03-21 Kazu Hirata <kazu@cs.umass.edu>
13431
13432 * combine.c (make_field_assignment): Remove unnecessary AND
13433 when storing into zero_extract.
13434
2d295af5
ZW
134352003-03-21 Zack Weinberg <zack@codesourcery.com>
13436
13437 * aclocal.m4 (gcc_AC_EXAMINE_OBJECT, gcc_AC_C_FLOAT_FORMAT): Delete.
13438 * configure.in: Don't call gcc_AC_C_FLOAT_FORMAT.
13439 * defaults.h: Remove reference to HOST_FLOAT_WORDS_BIG_ENDIAN
13440 in comment.
13441
c0510d84
DD
134422003-03-21 DJ Delorie <dj@redhat.com>
13443
13444 * optabs.c (init_integral_libfuncs): Make sure we init at least up
13445 to "long long" size words.
13446
fe86047c
UW
134472003-03-21 Ulrich Weigand <uweigand@de.ibm.com>
13448
13449 * config/s390/s390.h: Do not include fixdfdi.h on s390x.
13450 (TARGET_64BIT): Define as compile-time constant when IN_LIBGCC2.
13451 (MIN_UNITS_PER_WORD): Do not define when IN_LIBGCC2.
13452
526278c9
VR
134532003-03-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
13454
13455 PR doc-bug/9813
13456 * doc/extend.texi: Move misplaced paragraph about underscores in
13457 variables in macros.
13458
731458a4 134592003-03-21 Eric Botcazou <ebotcazou@libertysurf.fr>
2d295af5 13460 Richard Henderson <rth@redhat.com>
731458a4
EB
13461
13462 PR optimization/8366
13463 * config/sparc/sparc.h: (SYMBOLIC_CONST): New macro.
13464 (GO_IF_LEGITIMATE_ADDRESS): Use it. Reject the form
13465 PIC+SYMBOLIC_CONST in other modes than Pmode.
13466 (GO_IF_MODE_DEPENDENT_ADDRESS): Use it. Mark
13467 the form PIC+SYMBOLIC_CONST as mode dependent.
13468
f3cd0185
DD
134692003-03-21 DJ Delorie <dj@redhat.com>
13470
13471 * config/stormy16/stormy16.c (xstormy16_expand_arith): Make
13472 sure we always emit at least one insn.
13473
70e5e841
CF
134742003-03-21 Christopher Faylor <cgf@redhat.com>
13475
13476 * config.gcc (i[34567]86-*-cygwin*): Use new common makefile
13477 stub t-cygming. Use common target header cygming.h. Add extra
13478 c_target_obj and cxx_target_obj file. Default cygwin to posix
13479 threading. Enforce i386 as float format.
13480 (i[34567]86-*-mingw*): Use new common makefile stub t-cygming.
13481 Remove cygwin.h as target header. Use common target header
13482 cygming.h Enforce i386 as float format. Correct typo.
13483 * config/i386/cygming.h: New file, containing definitions
13484 common to mingw32 and cygwin.
13485 * config/i386/cygwin.h: Remove definitions common to cygwin and
13486 mingw. Simplify special spec logic. Define "wrappers" around
13487 certain include path defines to accommodate -mno-cygwin.
13488 Remove some #if 0'ed code.
2d295af5 13489 (STANDARD_INCLUDE_DIR) Always define when not cross-compiling.
70e5e841
CF
13490 (LINK_SPEC): Don't use cyg search prefix when -mno-cygwin.
13491 (GCC_DRIVER_HOST_INITIALIZATION): Define as call to mingw_scan.
13492 * config/i386/mingw32.h: Remove definitions common to cygwin and
13493 mingw.
13494 (EXTRA_OS_CPP_BUILTINS): Adjust.
13495 (TARGET_VERSION): Define.
13496 * config/i386/crtdll.h (EXTRA_OS_CPP_BUILTINS): Override
13497 mingw32.h definitions.
13498 (LIBGCC_SPEC): Add libmingwex.a as in mingw32.h.
13499 * config/i386/t-cygwin (EXTRA_GCC_OBJS): Define as cygwin1.o.
13500 Add compilation rules for cygwin1.o cygwin2.o.
13501 * config/i386/cygwin1.c: New file.
13502 * config/i386/cygwin2.c: New file.
13503 * config/i386/t-cygming: New makefile stub.
13504
4bddea4c
RH
135052003-03-20 Richard Henderson <rth@redhat.com>
13506
13507 * fold-const.c (extract_muldiv_1): Revert changing order of
13508 operands in case MULT_EXPR of 2003-02-16 patch.
13509
b3411d7e 135102003-03-20 Daniel Berlin <dberlin@dberlin.org>
06790e5f 13511 Merge changes from new-regalloc-branch
b3411d7e
DB
13512
13513 From Michael Matz <matz@suse.de>
13514 * df.c (df_ref_record_1): Move init of loc to safe point.
13515 Only recurse on interesting things in parallels.
13516 Handle CLASS_CANNOT_CHANGE_MODE smarter.
13517 (df_uses_record): Ditto.
2d295af5 13518
b3411d7e
DB
13519 * df.h (DF_REF_MEM_OK): New enum member, used to mark ref's which
13520 it's already okay to use memory operands in (IE doesn't require
13521 adding another insn or anything).
13522
05d482b9
RH
135232003-03-20 Richard Henderson <rth@redhat.com>
13524
13525 PR middle-end/6348
13526 * explow.c (allocate_dynamic_stack_space): Handle STACK_SIZE_MODE
13527 different from word_mode.
13528
86a36a0e
KH
135292003-03-20 Kazu Hirata <kazu@cs.umass.edu>
13530
13531 * config/h8300/h8300.md (*insv_si_1_n_lshiftrt): Restrict the
13532 source operand to those that can be extracted with bld.
13533
228692e2
RE
135342003-03-20 Richard Earnshaw <rearnsha@arm.com>
13535
13536 PR 10066
13537 * arm.md (UNSPEC_PIC_BASE): New constant.
13538 (pic_add_dot_plus_four): Wrap with unspec.
13539 (pic_add_dot_plus_eight): Likewise.
13540
d0940a55
KH
135412003-03-20 Kazu Hirata <kazu@cs.umass.edu>
13542
13543 * config/h8300/h8300.md (*insv_si_1_n): New.
13544 (*insv_si_1_n_lshiftrt): Likewise.
13545
c876997f
RS
135462003-03-20 Roger Sayle <roger@eyesopen.com>
13547
13548 * fold-const.c (fold_mathfn_compare): New function to simplify
13549 comparisons against built-in math functions. Fold comparisons
13550 of sqrt against constants.
13551 (fold): Call fold_mathfn_compare when appropriate.
13552
952a6df7
RE
135532003-03-20 Richard Earnshaw <rearnsha@arm.com>
13554
13555 * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
13556 information.
13557
8826ff0f
PB
135582003-03-20 Per Bothner <pbothner@apple.com>
13559
13560 Various cleanups to help compile server.
13561
b4e46cea
PB
13562 * cppinit.c (cpp_create_reader): Take extra hash_table* argument,
13563 and pass that to _cpp_init_hashtable.
13564 (cpp_read_main_file): Drop hash_table* argument; don't call
13565 _cpp_init_hashtable.
13566 * cpplib.h: Update declarations to match.
13567 * c-opts.c (c_common_init_options): Pass ident_hash to
13568 cpp_create_reader.
13569 (c_common_post_options): Don't pass ident_hash to cpp_read_main_file.
13570 * fix-header.c (read_scan_file): Likewise pass NULL table to
13571 cpp_create_reader rather than cpp_read_main_file.
13572
13573 * cppfiles.c (cpp_rename_file): Generalized and renamed
13574 to cpp_change_file.
13575 * cpplib.h: Update declaration to match.
13576 * c-opts.c (push_command_line_line, finish_options): Change
13577 cpp_rename_file calls to cpp_change_file.
2d295af5 13578
8826ff0f 13579 * line-map.c (add_line_map): Allow leaving the outermost file.
2d295af5 13580 Allowing entering an outermost-file after the initial time.
8826ff0f
PB
13581
13582 * toplev.c (pop_srcloc): Allow popping from initial file.
13583
015c3186
KH
135842003-03-20 Kazu Hirata <kazu at cs dot umass dot edu>
13585
13586 * fold-const.c (fold): Fold A - (A & B) into ~B & A.
13587
101cb92a
KH
135882003-03-20 Kazu Hirata <kazu@cs.umass.edu>
13589
13590 * config/h8300/h8300.md (a peephole2): New.
13591
f4613a2e
KH
135922003-03-20 Kazu Hirata <kazu@cs.umass.edu>
13593
13594 * config/h8300/h8300.md (*addsi3_and_r_1): New.
13595 (*addsi3_and_not_r_1): Likewise.
13596
31260fb8
LR
135972003-03-19 Loren James Rittle <ljrittle@acm.org>
13598
13599 * Makefile.in (STRICT2_WARN): Add @WERROR@.
13600 (GCC_WARN_CFLAGS): Remove $(WERROR).
13601 (fixinc.sh-warn): New.
13602 * ada/Make-lang.in (ada-warn): Add $(WERROR).
13603 * cp/Make-lang.in (cp-warn): Add $(WERROR).
13604 * f/Make-lang.in (f-warn): Add $(WERROR).
13605 * java/Make-lang.in (java-warn): Add $(WERROR).
13606 * treelang/Make-lang.in (treelang-warn): Add $(WERROR).
13607
2bd3ecad
NN
136082003-03-19 Nathanael Nerode <neroden@gcc.gnu.org>
13609
13610 * c-common.h (c_dump_tree), c-dump.c (c_dump_tree),
13611 langhooks-def.h (lhd_tree_dump_dump_tree),
13612 langhooks.c (lhd_tree_dump_dump_tree), langhooks.h (*dump_tree):
13613 Change return type from 'int' to 'bool'. Replace 0 and 1 with
13614 true and false in return statements.
13615
9eb0ef7a
KB
136162003-03-19 Kevin Buettner <kevinb@redhat.com>
13617
13618 * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE): Define.
13619 (DWARF_COMPILE_UNIT_HEADER_SIZE): Take into account
13620 DWARF_INITIAL_LENGTH_SIZE.
13621 (output_compilation_unit_header, output_pubnames, output_aranges)
13622 (output_line_info): Output 0xffffffff escape value for 64-bit
13623 DWARF extension.
13624 * config/mips/iris6.h (DWARF_INITIAL_LENGTH_SIZE): Define.
13625
8b5642e0 136262003-03-19 Ulrich Weigand <uweigand@de.ibm.com>
0796c16a
UW
13627
13628 * config/s390/s390.c (s390_preferred_reload_class): Do not
13629 force constants to the pool unless necessary.
13630 (s390_decompose_address): Prefer to use pointer as base,
13631 not index register.
13632 * config/s390/s390.md ("*tsthiCCT_only"): Remove '?' from
13633 Q alternative.
2d295af5 13634 ("*movdi_64", "*movsi", "movhi", "movqi_64", "movqi",
0796c16a
UW
13635 "*movdf_64", "*movsf"): Add '?' to Q->Q alternatives.
13636 ("*extractqi", "*extracthi", "*zero_extendhisi2_31",
13637 "*zero_extendqisi2_31", "*zero_extendqihi2_31",
13638 "*adddi3_31", "*subdi3_31"): Do not set "type" attribute.
13639
62c9aa5f 136402003-03-19 Jan Hubicka <jh@suse.cz>
d9b40e8d
JH
13641
13642 * i386.h (machine_function): New fields use_fast_prologue_epilogue.
13643 * i386.c (use_fast_prologue_epilogue): Remove.
13644 (ix86_frame): New field save_regs-using_mov;
13645 (ix86_compute_frame_layout): Decide on fast prologues;
13646 allocate saved registers in red zone.
13647 (ix86_expand_epilogue, ix86_expand_prolgoues): Obey new parameters.
13648
31488c64
NC
136492003-03-19 Nick Clifton <nickc@redhat.com>
13650
13651 * config/mcore/mcore.h (CPP_SPEC): Remove trailing semi-colon.
13652
685d0e07
JDA
136532003-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13654
13655 PR 10062
13656 * config/pa/pa-hpux.h (TARGET_HPUX_UNWIND_LIBRARY): Redefine.
13657 * pa-protos.h (output_lbranch): New prototype.
13658 * pa.c (compute_frame_size): Change size of the frame marker on the
13659 64-bit ports to 48 bytes.
13660 (pa_output_function_prologue): Document why SAVE_SP is set.
13661 (hppa_expand_prologue): Save previous stack pointer into frame marker
13662 on targets which use the hpux unwind library.
13663 (output_cbranch): Use output_lbranch.
13664 (output_lbranch): New function to output long unconditional branches.
13665 * pa.h (TARGET_HPUX_UNWIND_LIBRARY): Define.
13666 (STACK_POINTER_OFFSET): Update offset for 48-byte frame marker on
13667 64-bit ports.
13668 * pa.md (jump): Use output_lbranch.
13669 (allocate_stack): New expander for dynamic stack allocation.
13670
6a04f4e0
AM
136712003-03-19 Alan Modra <amodra@bigpond.net.au>
13672
178274da
AM
13673 * config/rs6000/rs6000.c (rs6000_stack_info): Only require a frame
13674 when debugging on XCOFF targets. Delete "abi" temp.
13675
6a04f4e0
AM
13676 PR target/10073
13677 * combine.c (force_to_mode <NOT>): Use gen_int_mode.
13678
6b2300b3
JJ
136792003-03-18 Jakub Jelinek <jakub@redhat.com>
13680
13681 * config/s390/s390.c (s390_output_dwarf_dtprel): New.
13682 * config/s390/s390-protos.h (s390_output_dwarf_dtprel): New proto.
13683 * config/s390/s390.h (ASM_OUTPUT_DWARF_DTPREL): Define.
13684
13685 * config/ia64/ia64.c (ia64_output_dwarf_dtprel): New.
13686 * config/ia64/ia64-protos.h (ia64_output_dwarf_dtprel): New proto.
13687 * config/ia64/ia64.h (ASM_OUTPUT_DWARF_DTPREL): Define.
13688
5ba6918e
GK
136892003-03-18 Geoffrey Keating <geoffk@apple.com>
13690
6788f5ca
GK
13691 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't clone
13692 the result of machopic_function_base_name.
13693 * config/darwin.c (machopic_function_base_name): Use a gc-allocated
13694 string rather than a static array.
13695
5ba6918e
GK
13696 * Makefile.in (emit-rtl.o): Add gt-emit-rtl.h to dependencies.
13697
13698 * gengtype.c: Include rtl.h.
13699 (enum rtx_code): Don't define.
13700 (rtx_format): Make declaration match rtl.h.
13701 (rtx_next_new): Rename from rtx_next to avoid conflict. Change all
13702 users.
13703 (adjust_field_rtx_def): Describe strings in NOTE_LINE_NUMBER notes.
13704 * Makefile.in (gengtype.o): Update dependencies.
13705
e0ec941e
AS
137062003-03-18 Andreas Schwab <schwab@suse.de>
13707
13708 * config/m68k/m68k.md (iordi3): Fix setting low half to -1. From
13709 martin@blom.org.
13710
8291cc0e
GK
137112003-03-18 Geoffrey Keating <geoffk@apple.com>
13712
f83b236e
GK
13713 * function.c (next_block_index): Mark with GTY.
13714
8291cc0e
GK
13715 * config/rs6000/rs6000.md (macho_correct_pic): Correct pattern.
13716
b39eb2f9
RH
137172003-03-18 Richard Henderson <rth@redhat.com>
13718
13719 * config/ia64/ia64.md (UNSPECV_SETJMP_RECEIVER): New.
13720 (builtin_setjmp_receiver): Delay call to ia64_reload_gp
13721 until after reload.
13722
6c537d03
RH
137232003-03-18 Richard Henderson <rth@redhat.com>
13724
13725 * builtins.c (expand_builtin_unop): New target_mode operand;
13726 use it to convert the result to the correct mode.
13727 (expand_builtin): Update all callers.
13728
fe03d631
UW
137292003-03-18 Ulrich Weigand <uweigand@de.ibm.com>
13730
13731 * config/s390/s390.md ("movti", "movhi", "movqi"): Add "type" attribute.
13732
62c9aa5f 137332003-03-18 Jan Hubicka <jh@suse.cz>
45183e03 13734
75fbf7d9
JH
13735 * i386.md: Fix previous commit that mistakely applied the patch
13736 twice.
13737
45183e03
JH
13738 * alias.c (rtx_equal_for_memref_p): Assume that X and Y has been
13739 canonicalized.
13740 (memrefs_conflict_p): Likewise.
13741 (addr_side_effect_eval): Canonicalize the constructed address.
13742
62c9aa5f 137432003-03-18 Jan Hubicka <jh@suse.cz>
8dfa3bb0
JH
13744
13745 * i386.md (cvtts?2si peep2): New.
13746
1e788887
KH
137472003-03-18 Kazu Hirata <kazu@cs.umass.edu>
13748
13749 * config/h8300/h8300.md (*iorsi3_two_qi_zext): New.
13750
94e001a9
AS
137512003-03-18 Andreas Schwab <schwab@suse.de>
13752
13753 * dwarf2out.c (output_file_names): Cast size_t to unsigned long
13754 for format.
13755
bdaa131b
JM
137562003-03-17 Jason Merrill <jason@redhat.com>
13757
13758 PR c++/10091
13759 * expr.c (expand_expr) [ADDR_EXPR]: Disallow taking the address of
13760 an unaligned member of TREE_ADDRESSABLE type.
13761
ffcfcb5f
AM
137622003-03-18 Alan Modra <amodra@bigpond.net.au>
13763
13764 * config/rs6000/linux64.h (MASK_PROFILE_KERNEL): Define.
13765 (TARGET_PROFILE_KERNEL): Define.
13766 (SUBTARGET_SWITCHES): Handle -mprofile-kernel.
13767 (PROFILE_BEFORE_PROLOGUE): Don't define.
13768 (PROFILE_KERNEL): Remove hacks.
13769 * config/rs6000/rs6000.c (TARGET_PROFILE_KERNEL): Define default.
13770 (rs6000_stack_info): No need to save lr if just for profiling when
70e1b8fc
AM
13771 TARGET_PROFILE_KERNEL.
13772 (output_profile_hook): Output nothing when TARGET_PROFILE_KERNEL.
ffcfcb5f
AM
13773 (output_function_profiler): Localize label generation. Emit code
13774 for kernel profiling.
13775
9b98dc74
KH
137762003-03-17 Kazu Hirata <kazu@cs.umass.edu>
13777
13778 * config/h8300/h8300-protos.h: Add a prototype for
13779 byte_accesses_mergeable_p.
13780 * config/h8300/h8300.c (byte_accesses_mergeable_p): New.
13781 * config/h8300/h8300.md (*iorhi3_two_qi_mem): Likewise.
13782 (a splitter): Likewise.
13783 (*iorsi3_ashift_16_ashift_24): Likewise.
13784 (*iorsi3_ashift_16_ashift_24_mem): Likewise.
13785
d41c4351
KG
137862003-03-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13787
13788 * dwarf2asm.h: Delete obsolete comment.
13789 (dw2_asm_output_data, dw2_asm_output_delta, dw2_asm_output_offset,
13790 dw2_asm_output_pcrel, dw2_asm_output_addr,
13791 dw2_asm_output_addr_rtx, dw2_asm_output_encoded_addr_rtx,
13792 dw2_asm_output_nstring, dw2_asm_output_data_uleb128,
13793 dw2_asm_output_data_sleb128, dw2_asm_output_delta_uleb128,
13794 dw2_asm_output_delta_sleb128): Add ATTRIBUTE_NULL_PRINTF.
13795
6970c06a
ZW
137962003-03-17 Zack Weinberg <zack@codesourcery.com>
13797
13798 * c-tree.h (struct lang_identifier): Remove error_locus field.
13799 (IDENTIFIER_ERROR_LOCUS): Kill.
13800 (record_function_scope_shadow): New prototype.
13801 * c-typeck.c (build_external_ref): Don't complain if
13802 decl is error_mark_node. When not at file scope, bind the
13803 decl's local value to error_mark_node to suppress further
13804 warnings, instead of setting IDENTIFIER_ERROR_LOCUS.
13805
13806 * c-decl.c (get_function_binding_level): New static function.
13807 (record_function_scope_shadow): New exported function.
13808 (c_make_fname_decl): Use get_function_binding_level.
13809
405a98aa
SE
138102003-03-17 Steve Ellcey <sje@cup.hp.com>
13811
13812 * stmt.c (tail_recursion_args): Call promote_mode to set
13813 unsignedp flag correctly before calling convert_move.
13814
df86c7e2
ZD
138152003-03-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13816
13817 * loop-unroll.c (decide_peel_completely,
13818 decide_unroll_constant_iterations, decide_unroll_stupid,
13819 decide_unroll_runtime_iterations, decide_peel_simple): Set
13820 loop->has_desc.
13821
62c9aa5f 138222003-03-17 Jan Hubicka <jh@suse.cz>
dbccdc42
JH
13823
13824 * ggc-common.c (ggc_mark_roots): Use htab_traverse_noresize.
13825
b36a8cc2
OH
138262003-03-17 Olivier Hainque <hainque@act-europe.fr>
13827
13828 * function.c (assign_parms): For a struct value address passed as
13829 first argument, delay the function's result RTL setup code until
13830 after the emission of parameter conversions.
6970c06a 13831
94833648
DL
138322003-03-17 Dave Love <fx@gnu.org>
13833 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
aeefc21d
DL
13834
13835 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define __digital__,
13836 __arch64__ to match Compaq cc.
13837
783e2989
NB
138382003-03-17 Neil Booth <neil@daikokuya.co.uk>
13839
13840 * c-opts.c: Default TARGET_EBCDIC to 0 if not defined.
13841 (c_common_init): Set EBCDIC in cpp options.
13842 * cpplex.c (maybe_read_ucs, cpp_parse_escape): Use EBCDIC option,
13843 not conditional compilation.
13844 * cpplib.h (struct cpp_options): New entry EBCDIC.
13845
72ecfc60
NB
138462003-03-17 Neil Booth <neil@daikokuya.co.uk>
13847
13848 * fix-header.c (read_scan_file): Need to malloc arguments to add_path.
13849
47009d11
MH
138502003-03-17 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
13851
13852 * function.c (thread_prologue_and_epilogue_insns): Set delete_unused
13853 argument to 0 for redirect_jump.
47009d11 13854
bafb714b
MM
138552003-03-16 Mark Mitchell <mark@codesourcery.com>
13856
13857 PR c++/8805
13858 * except.c (eh_region_u_cleanup): Add prev_try.
13859 (expand_eh_region_end_cleanup): Set it.
13860 (reachable_handlers): Use it to skip over cleanup blocks.
13861
30492adf
AJ
138622003-03-17 Andreas Jaeger <aj@suse.de>
13863
13864 * Makefile.in (TAGS): Remove obsolete handling of =*.[chy].
13865
7b3464ee
AM
138662003-03-17 Alan Modra <amodra@bigpond.net.au>
13867
13868 * config/rs6000/linux64.h (TARGET_64BIT): Redefine.
13869 (TARGET_RELOCATABLE, TARGET_EABI, TARGET_PROTOTYPE): Likewise.
13870 (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Likewise.
13871 (SUBTARGET_OVERRIDE_OPTIONS, CPP_SYSV_SPEC): Likewise.
13872
4f5c0f7e
RH
138732003-03-16 Richard Henderson <rth@redhat.com>
13874
6970c06a
ZW
13875 * simplify-rtx (simplify_binary_operation): Don't abort for
13876 SS_PLUS, US_PLUS, SS_MINUS, US_MINUS.
4f5c0f7e 13877
3c298c88
RH
138782003-03-16 Richard Henderson <rth@redhat.com>
13879
6970c06a
ZW
13880 * config/i386/i386.md (movstrictqi, movstrictqi_1): Check
13881 optimize_size as well.
3c298c88 13882
fe91bac5
SC
138832003-03-16 Stephane Carrez <stcarrez@nerim.fr>
13884
13885 * config/m68hc11/m68hc11.c (print_operand): Handle 'b' modifier
13886 for D register to specify the low part of it, aka B.
13887 (m68hc11_gen_movhi): Use REG_WAS_0 note and increment or decrement
13888 the register if we are loading 1 or -1 to it; avoid using temp
13889 register when moving X/Y to Y/X.
13890 (m68hc11_gen_movqi): Likewise.
13891 (m68hc11_check_z_replacement): Fix last insn setting for compare case.
13892
ddc67067
MM
138932003-03-14 Mark Mitchell <mark@codesourcery.com>
13894
13895 PR optimization/9016
13896 * config/i386/i386.c (ix86_expand_move): Force more CONST_DOUBLEs
13897 into the constant pool.
13898
0a71919d
FH
138992003-03-16 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
13900
13901 PR target/9164
13902 * tree.c (get_narrower): For extensions with unchanged bit number,
13903 return the unsignedness of the outer mode.
13904
46ea50cb
RS
139052003-03-16 Roger Sayle <roger@eyesopen.com>
13906
13907 * c-typeck.c (build_component_ref): Turn "for" into "do .. while"
13908 to avoid "may be used uninitialized" warning on ia64-hpux.
13909 * config/ia64/ia64-c.c: Include "tm_p.h" for function prototypes.
13910
012c387f
AJ
139112003-03-16 Andreas Jaeger <aj@suse.de>
13912
13913 * configure.in: Improve check for memcheck.h.
13914 * configure: Regenerated.
13915
7d1c4aae
NB
139162003-03-16 Neil Booth <neil@daikokuya.co.uk>
13917
13918 * doc/cppopts.texi: Remove documentation of -A-.
13919
e20798d1
ZW
139202003-03-15 Zack Weinberg <zack@codesourcery.com>
13921
13922 * doc/libgcc.texi: Remove @tie.
13923
4af16369
JZ
139242003-03-15 Josef Zlomek <zlomekj@suse.cz>
13925
13926 * rtl.h (subrtx_p): Renamed to rtx_referenced_p.
13927 (rtx_pair): Added new element update_label_nuses, renamed to
13928 replace_label_data.
13929 * cfgcleanup.c (outgoing_edges_match, try_crossjump_to_edge): Use
13930 replace_label_data instead of rtx_pair.
13931 * loop.c (load_mems): Likewise.
13932 * rtlanal.c (replace_label): Replace label in pool constants and in
13933 INSN_LIST (in REG_LABEL note).
13934 (subrtx_p): Renamed to rtx_referenced_p.
13935 (subrtx_p_1): Renamed to rtx_referenced_p_1, compare the interior of
13936 LABEL_REF with CODE_LABEL, traverse constants from pool.
13937
d2184e79
AH
139382003-03-15 Aldy Hernandez <aldyh@redhat.com>
13939 Zack Weinberg <zack@codesourcery.com>
13940
13941 * Makefile.in (TEXI_GCCINT_FILES): Add libgcc.texi.
13942 * doc/libgcc.texi: New file.
13943 * doc/interface.texi: Delete paragraph about libgcc interface.
13944 * doc/gccint.texi: Add libgcc menu entry and @include libgcc.texi.
13945
8cadae7e
JM
139462003-03-15 Jason Merrill <jason@redhat.com>
13947
ae0e5982
JM
13948 PR debug/9039
13949 * dwarf2out.c (gen_decl_die): Ignore frontend tree codes.
13950
8cadae7e
JM
13951 PR debug/6387
13952 * dwarf2out.c (dwarf2out_decl): If we're at -g1, just stick nested
13953 function DIEs at toplevel.
13954 (decls_for_scope): At -g1, don't descend into subblocks.
13955
2436a91b
UW
139562003-03-15 Ulrich Weigand <uweigand@de.ibm.com>
13957
13958 * varasm.c (struct rtx_const): Change type of un.addr member
13959 to struct holding an additional 'symbol' member.
13960 (decode_rtx_const): Re-enable optimization to count SYMBOL_REFs
13961 with equal string addresses as equal.
13962 (simplify_subtraction): Adapt to struct rtx_const change.
13963
151c68c3
NB
139642003-03-15 Neil Booth <neil@daikokuya.co.uk>
13965
13966 * fix-header.c (read_scan_file): Read main file before handling -D.
13967
6a87d634
RS
139682003-03-15 Roger Sayle <roger@eyesopen.com>
13969
13970 * c-cppbuiltin.c (builtin_define_with_value_n): Fix whitespace.
13971 * c-typeck.c (c_tree_expr_nonnegative_p): Likewise.
13972 * cfgbuild.c (find_many_sub_basic_blocks): Likewise.
13973 (find_sub_basic_blocks): Likewise.
13974 * cgraphunit.c (cgraph_expand_functions): Likewise.
13975 * dwarf2out.c (prune_unused_types): Likewise.
13976 * expr.c (store_field): Likewise.
13977 * genextract.c (print_path): Likewise.
13978 * haifa-sched.c (schedule_insn): Likewise.
13979 * lcm.c (compute_antinout_edge): Likewise.
13980 * loop-unroll.c (decide_peel_once_rolling): Likewise.
13981 * ra-colorize.c (ra_colorize_free_all): Likewise.
13982 * ra-debug.c (dump_igraph): Likewise.
13983 (debug_hard_reg_set): Likewise.
13984 * reg-stack.c (reg_to_stack): Likewise.
13985 * rtlanal.c (refers_to_regno_p): Likewise.
13986 * tracer.c (layout_superblocks): Likewise.
13987
49c46444
NB
139882003-03-15 Neil Booth <neil@daikokuya.co.uk>
13989
13990 * fix-header.c (read_scan_file): Fix thinko.
13991
1fe668e5
GN
139922003-03-15 Glen Nakamura <glen@imodulo.com>
13993
13994 * reload1.c (choose_reload_regs): Use && instead of ||
13995 with REG_CANNOT_CHANGE_MODE_P condition.
13996
c1bad961
NB
139972003-03-15 Neil Booth <neil@daikokuya.co.uk>
13998
13999 * Makefile.in: Update.
14000 * c-common.h (cb_register_builtins): Rename c_cpp_builtins.
14001 * c-lex.c (init_c_lex): Register builtins hook is dead.
14002 * c-opts.c (COMMAND_LINE_OPTIONS, missing_arg): Handle -A, -D and -U.
14003 (c_common_decode_option): Don't call cpp_handle_option.
14004 Handle -A, -D and -U.
14005 (handle_deferred_opts): Simplify.
14006 (finish_options): Define builtins and command line macros.
14007 * c-ppoutput.c (init_pp_output): Register builtins hook is dead.
14008 * cppinit.c: Don't include intl.h.
14009 (init_builtins): Rename cpp_init_builtins. No hook to call.
14010 (init_library): Don't need to sort options.
14011 (cpp_create_reader): Don't set pending.
14012 (cpp_destroy): Don't free pending.
14013 (struct pending_option, cl_directive_handler, struct cpp_pending,
14014 APPEND, free_chain, new_pending_directive, parse_option, opt_comp,
14015 cpp_finish_options, COMMAND_LINE_OPTIONS, DEF_OPT, struct cl_option,
14016 cl_options, cpp_handle_option): Remove.
14017 * cpplib.h (struct cpp_pending, register_builtins, cpp_handle_option,
14018 cpp_finish_options): Remove.
14019 (cpp_init_builtins): New.
14020 * fix-header.c (read_scan_file): Update to handle -D. Fix
14021 handling of -I. Replace call to cpp_finish_options.
14022
d8eed979
MH
140232003-03-15 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
14024
14025 PR optimization/9387
14026 * function.c (thread_prologue_and_epilogue_insns): Use redirect_jump
14027 for conditional returns.
14028
af75fb67
JM
140292003-03-14 Jason Merrill <jason@redhat.com>
14030
14031 PR optimization/6871
14032 * varasm.c (assemble_variable): Leave constant zeroes in .rodata.
14033
255c10b1
NB
140342003-03-14 Neil Booth <neil@daikokuya.co.uk>
14035
14036 * c-opts.c (finish_options): New.
14037 (COMMAND_LINE_OPTIONS, c_common_decode_option): Add -imacros.
14038 (missing_arg): Handle OPT_include and OPT_imacros.
14039 (c_common_init, c_common_parse_file): Use finish_options.
14040 (handle_deferred_opts): Update.
14041 * cppinit.c (struct cpp_pending): Remove imacros_head and imacros_tail.
14042 (cpp_finish_options): Don't handle -imacros here.
14043 (no_fil): Remove.
14044 (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -imacros.
14045
027fbf43
JJ
140462003-03-14 Jakub Jelinek <jakub@redhat.com>
14047
14048 * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Don't call
14049 rs6000_maybe_dead if !fromprolog.
14050
23345bbb
NB
140512003-03-14 Neil Booth <neil@daikokuya.co.uk>
14052
14053 * Makefile.in: Update.
14054 * c-common.h (fe_file_change, pp_file_change): New.
14055 * c-lex.c (init_c_lex): Don't set cb_file_change.
14056 (c_common_parse_file): Move to c-opts.c.
14057 (cb_file_change): Rename fe_file_change.
14058 * c-opts.c: Include debug.h.
14059 (warn_unused_macros, include_cursor): New.
14060 (push_command_line_include, cb_file_change): New.
14061 (COMMAND_LINE_OPTIONS): Handle -include.
14062 (c_common_decode_option): Use local warn_unused_macros.
14063 Handle OPT_include.
14064 (c_common_post_options): Set file change callback.
14065 (handle_deferred_opts): Skip -include. Don't free the array.
14066 (c_common_init): Call cpp_finish_options here, and push an
14067 initial -include file.
14068 * c-ppoutput.c (cb_file_change): Rename pp_file_change.
14069 (preprocess_file): Don't call cpp_finish_options.
14070 (init_pp_output): Don't set the file change callback.
14071 (pp_file_change): Return if no line commands or no output.
14072 * cpphash.h (next_include_file, first_unused_line): Remove.
14073 * cppinit.c (include_head, include_tail): Remove.
14074 (cpp_destroy): Don't free -include chain.
14075 (cpp_finish_options): Don't handle -include, or worry about
14076 -Wunused-macros.
14077 (_cpp_maybe_push_include_file): Remove.
14078 (COMMAND_LINE_OPTIONS, cpp_handle_option): Don't handle -include.
14079 * cpplib.c (_cpp_pop_buffer): Don't handle -include.
14080 * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_create_definition):
14081 Used flag is set based upon the state of the warn_unused_macros
14082 flag, and so use of first_unused_line is unnecessary.
14083
62c9aa5f 140842003-03-13 Jan Hubicka <jh@suse.cz>
cd648cec
JH
14085
14086 * cselib.c (clear_table): Do not take argument; always clear just
14087 used slots.
14088 (cselib_process_insn): Update call of clear_table
14089 (cselib_init): Do not call clear_table.
14090 (cselib_finish): Clear table.
14091
14092 * cse.c (count_reg_usage): Do not check side_effects_p.
14093 * rtlanal.c (set_noop_p): Check side_effects_p only when set looks
14094 like noop.
14095 (find_reg_equal_equiv_note): Do not use find_reg_note.
14096
35d9c403
RH
140972003-03-14 Richard Henderson <rth@redhat.com>
14098
14099 PR target/9700
1fe668e5 14100 * config/alpha/alpha.c (alpha_va_start): Account for
35d9c403
RH
14101 current_function_pretend_args_size in the AP offset.
14102
14103 * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Move out of line.
14104 (INITIAL_ELIMINATION_OFFSET): Move out of line.
14105 * config/alpha/alpha.c (alpha_setup_incoming_varargs): New.
14106 (alpha_initial_elimination_offset) New.
14107 * config/alpha/alpha-protos.h: Update.
14108
f43f4314
JJ
141092003-03-14 Jakub Jelinek <jakub@redhat.com>
14110
14111 * stmt.c (expand_start_case): Call emit_queue ().
14112
35d9c403
RH
141132003-03-14 Chris Demetriou <cgd@broadcom.com>
14114 Alexandre Oliva <aoliva@redhat.com>
a0a89ed0
CD
14115
14116 * config/mips/mips.h (FUNCTION_PROFILER): _mcount() doesn't pop 2
14117 words in new abis.
14118
f650843f
EB
141192003-03-14 Eric Botcazou <ebotcazou@libertysurf.fr>
14120
14121 PR optimization/8396
14122 * tree-inline.c (initialize_inlined_parameters): Make sure the value
14123 of read-only constant arguments is passed with the right type.
14124
a721a601
SB
141252003-03-14 Steven Bosscher <steven@gcc.gnu.org>
14126
14127 * doc/extend.texi (Function Names): Make the example compilable.
14128
a12f8290
DE
141292003-03-13 David Edelsohn <edelsohn@gnu.org>
14130
14131 * config/rs6000/rs6000.c (processor_target_table): Really allow
14132 GP optional instructions on Power4.
14133
141342003-03-13 Roger Sayle <roger@eyesopen.com>
36dbb93d
RS
14135
14136 * calls.c (flags_from_decl_or_type): Factor and remove redundant
14137 conditional tests.
14138
c4775f82
MS
141392003-03-13 Mike Stump <mrs@apple.com>
14140
14141 * ggc-page.c (struct page_entry): Remove varray.h header.
14142 Add index_by_depth field.
14143 Remove save_in_use_p field.
14144 (struct globals): Add depth_in_use, depth_max, by_depth_in_use,
14145 by_depth_max, by_depth, and save_in_use fields.
14146 (INITIAL_PTE_COUNT): Add.
14147 (save_in_use_p_i): Add.
14148 (save_in_use_p): Add.
14149 (adjust_depth): Add.
14150 (move_ptes_to_front): Add.
14151 (push_depth): Add.
14152 (push_by_depth): Add.
14153 (prefetch): Add.
14154 (free_page): Add support for and use faster data structures.
14155 (ggc_alloc): Likewise.
14156 (init_ggc): Likewise.
14157 (ggc_recalculate_in_use_p): Likewise.
14158 (ggc_pop_context): Likewise.
14159 (clear_marks): Likewise.
14160 (ggc_pch_read): Likewise.
14161 * Makefile.in (ggc-page.o): Remove varray.h.
14162
3bed2930
NN
141632003-03-13 Nathanael Nerode <neroden@gcc.gnu.org>
14164
7210d5ae
NN
14165 * ChangeLog: Rotated last year's entries to...
14166 * ChangeLog.8: New.
14167
1fe668e5 14168 * config/ia64/fde-glibc.c, config/ia64/freebsd.h,
3bed2930
NN
14169 config/ia64/hpux.h, config/ia64/hpux_longdouble.h,
14170 config/ia64/ia64-c.c, config/ia64/ia64-modes.def,
14171 config/ia64/ia64-protos.h, config/ia64/ia64.c,
14172 config/ia64/ia64.h, config/ia64/ia64.md,
14173 config/ia64/itanium1.md, config/ia64/itanium2.md,
14174 config/ia64/quadlib.c, config/ia64/unwind-ia64.c,
14175 config/ia64/unwind-ia64.h: It's GCC, not GNU CC.
14176
3bd104d1
AH
141772003-03-13 Aldy Hernandez <aldyh@redhat.com>
14178
d2184e79
AH
14179 * config/rs6000/rs6000.c (rs6000_dwarf_register_span):
14180 Differentiate endianness.
14181 (s6000_override_options): Use cpu type instead of TARGET_SPE.
3bd104d1 14182
2ed0b52a
NC
141832003-03-13 Nick Clifton <nickc@redhat.com>
14184
b17fe233 14185 * config/arm/arm.c (print_multi_reg): Do not generate a type 2
d2184e79
AH
14186 LDM instructions with writeback enabled.
14187 (output_return_instruction): Likewise.
b17fe233 14188
2ed0b52a
NC
14189 * config/arm/pe.h (FIXED_REGISTERS): Remove definition.
14190 (CALL_USED_REGISTERS): Remove definition.
14191 (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Define.
14192
f1384257
AM
141932003-03-13 Alan Modra <amodra@bigpond.net.au>
14194
14195 * config/rs6000/rs6000.c (rs6000_flag_pic): Delete.
14196 (rs6000_xcoff_encode_section_info): #ifdef TARGET_XCOFF.
14197 (rs6000_binds_local_p, TARGET_BINDS_LOCAL_P): #if TARGET_MACHO.
14198 (rs6000_override_options): Don't clear flag_pic for ABI_AIX.
14199 (rs6000_legitimize_address): Formatting.
14200 (rs6000_emit_move): Likewise.
14201 (rs6000_return_addr): Test ABI_AIX as well as flag_pic.
14202 (rs6000_emit_prologue <save_LR_around_toc_setup>): Likewise.
14203 (rs6000_elf_select_section): Comment reason for shlib being
14204 set for ABI_AIX.
14205 (rs6000_elf_unique_section): Likewise.
14206 (rs6000_elf_encode_section_info): Test !TARGET_AIX as well as ABI_AIX.
14207 * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Test ABI_AIX
14208 as well as flag_pic.
14209 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
14210 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
14211 * config/rs6000/linux64.h (TARGET_ENCODE_SECTION_INFO): Don't define.
14212
599aedd9
RH
142132003-03-13 Richard Henderson <rth@redhat.com>
14214
14215 * emit-rtl.c (try_split): Handle 1-1 splits of call insns properly.
14216
14217 * config/ia64/ia64.c (TARGET_FUNCTION_OK_FOR_SIBCALL): New.
14218 (ia64_gp_save_reg): Remove.
14219 (struct ia64_frame_info): Move to the beginning of the file;
14220 add reg_save_gp.
14221 (ia64_expand_call): Rearrange for new call patterns.
14222 (ia64_reload_gp): New.
14223 (ia64_split_call): New.
14224 (ia64_compute_frame_size): Allocate reg_save_gp.
14225 (ia64_expand_prologue): Save reg_save_gp.
14226 (ia64_expand_epilogue): Don't restore gp.
14227 (ia64_hard_regno_rename_ok): Remove R4 hack.
14228 (ia64_function_ok_for_sibcall): New.
1fe668e5 14229 (ia64_output_mi_thunk): Set reload_completed, no_new_pseudos;
599aedd9
RH
14230 call try_split on sibcall pattern.
14231 * config/ia64/ia64-protos.h: Update.
14232 * config/ia64/ia64.md (call_nogp, call_value_nogp, sibcall_nogp):
14233 Rename from nopic versions. Confiscate 2nd argument to call as
14234 a marker.
14235 (call_pic, call_value_pic, sibcall_pic): Remove.
14236 (call_gp, call_value_gp, sibcall_gp): New.
14237 (builtin_setjmp_setup): Remove.
14238 (builtin_setjmp_receiver): Call ia64_reload_gp.
14239
e7d9d16b
NN
142402003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
14241
1fe668e5 14242 * config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
2ff8f7ac
NN
14243 config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md: Replace
14244 "GNU CC" with "GCC".
14245
4db9c756
NN
14246 * config/c4x/c4x-c.c, config/c4x/c4x-modes.def,
14247 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
14248 config/c4x/c4x.md, config/c4x/libgcc.S, config/c4x/rtems.h:
14249 GCC, not GNU CC.
14250
63b025a5
NN
14251 * genattrtab.h, hosthooks-def.h, hosthooks.h, langhooks-def.h,
14252 langhooks.h, tree-inline.h: Replace "GNU CC" with "GCC".
14253
54a7b573
NN
14254 * c-pch.c, dummy-conditions.c, genautomata.c, genconditions.c,
14255 langhooks.c, tree-inline.c, unwind-dw2-fde-darwin.c,
14256 unwind-dw2-fde-glibc.c, unwind-libunwind.c, vmsdbgout.c: Replace
14257 "GNU CC" with "GCC".
14258
301ee2f3
NN
14259 * config/v850/lib1funcs.asm, config/v850/rtems.h,
14260 config/v850/v850-c.c, config/v850/v850-protos.h,
14261 config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
14262 GCC, not GNU CC.
14263
e7d9d16b
NN
14264 * config/vax/bsd.h, config/vax/elf.h, config/vax/netbsd-elf.h,
14265 config/vax/netbsd.h, config/vax/openbsd.h, config/vax/openbsd1.h,
14266 config/vax/ultrix.h, config/vax/vax-protos.h, config/vax/vax.c,
14267 config/vax/vax.h, config/vax/vax.md, config/vax/vaxv.h: GCC, not
14268 GNU CC.
14269
93c98498
BK
142702003-03-12 Benjamin Kosnik <bkoz@redhat.com>
14271
14272 * cpppch.c (cpp_valid_state): Use DL_WARNING_SYSHDR, not DL_WARNING.
14273
e531258e
NN
142742003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
14275
706ae11c
NN
14276 * fixinc/fixinc.interix: Remove dead code (most of it).
14277 * fixinc/fixinc.dgux: Remove.
14278
e531258e
NN
14279 * ginclude/float.h, ginclude/iso646.h, ginclude/stdarg.h,
14280 ginclude/stdbool.h, ginclude/stddef.h: GCC, not GNU CC.
14281
eab9e742
JDA
142822003-03-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14283
14284 * pa.c (pa_init_builtins): Fix warning.
14285
03d0dce1
SE
142862003-03-12 Steve Ellcey <sje@cup.hp.com>
14287
14288 * config/ia64/ia64.h (ASM_OUTPUT_XDATA_CHAR): Remove.
14289 (ASM_OUTPUT_XDATA_SHORT): Remove.
14290 (ASM_OUTPUT_XDATA_INT): Remove.
14291 (ASM_OUTPUT_XDATA_DOUBLE_INT): Remove.
14292 (ASM_OUTPUT_ADDR_DIFF_ELT): Handled 32 bit address diffs.
14293 (ASM_PREFERRED_EH_DATA_FORMAT): Handle 32 bit EH pointers.
14294 (CASE_VECTOR_MODE): Handle 32 bit pointers in case statement.
14295
847311f4
AL
142962003-03-12 Andrew Lewycky <andrew@mxc.ca>
14297
14298 PR c++/7050
14299 * expr.c (store_expr): Don't attempt to store void-typed trees,
14300 just evaluate them for side effects.
14301
c19b12cb
NB
143022003-03-12 Neil Booth <neil@daikokuya.co.uk>
14303
14304 * cppfiles.c (cpp_rename_file, cpp_push_include): New.
14305 * cppinit.c (push_include): Move with changes to cppfiles.c.
14306 (cpp_read_main_file): Mark named operators here...
14307 (cpp_finish_options): ...not here. Update.
14308 (_cpp_maybe_push_include_file): Update.
14309 * cpplib.h (cpp_push_include, cpp_rename_file): New.
14310
ad9c4d9f
NN
143112003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
14312
847311f4
AL
14313 * aclocal.m4: Introduce gcc_GAS_VERSION_GTE_IFELSE,
14314 _gcc_COMPUTE_GAS_VERSION.
14315 * configure.in: Use them.
14316 * configure: Regenerate.
ad9c4d9f 14317
8d49831d
BW
143182003-03-12 Bob Wilson <bob.wilson@acm.org>
14319
d2184e79 14320 * config/xtensa/xtensa.md (adddi3): Don't clobber source operand used
8d49831d 14321 to detect carry.
d2184e79 14322 (subdi3): Reorder emitted instructions.
8d49831d 14323
bfa2615f
AJ
143242003-03-12 Andreas Jaeger <aj@suse.de>
14325
14326 * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Remove call to
14327 NETBSD_OS_CPP_BUILTINS_LP64.
14328
73458fb7
NN
143292003-03-12 Nathanael Nerode <neroden@gcc.gnu.org>
14330
14331 * Makefile.in: Eliminate all.indirect. Update and clean up comments.
14332 Rearrange. Reorganize.
14333 * configure.in: Rearrange.
14334 * configure: Regenerate.
14335
00530a21
AJ
143362003-03-12 Andreas Jaeger <aj@suse.de>
14337
d2184e79
AH
14338 * c-cppbuiltin.c (cb_register_builtins): Define LP64 builtins for
14339 LP64 targets.
00530a21 14340
d2184e79
AH
14341 * doc/cpp.texi (Common Predefined Macros): Document __LP64__ and
14342 _LP64.
00530a21 14343
d2184e79
AH
14344 * config/ia64/ia64.h (TARGET_CPU_CPP_BUILTINS): Do not define
14345 _LP64 macros here.
14346 * config/pa/pa.h (TARGET_CPU_CPP_BUILTINS): Likewise.
00530a21 14347
d2184e79
AH
14348 * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Remove call to
14349 NETBSD_OS_CPP_BUILTINS_LP64.
14350 * config/sh/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
14351 * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Likewise.
00530a21 14352
d2184e79 14353 * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_LP64): Remove.
00530a21 14354
62c9aa5f 143552003-03-12 Jan Hubicka <jh@suse.cz>
5474eed5
JH
14356
14357 * i386.c (ix86_setup_incoming_varargs): Set stack_alignment_needed to 128.
14358
8c35a61a 143592003-03-12 Daniel Jacobowitz <drow@mvista.com>
59a7f9bf
DJ
14360
14361 Fix PR target/9797 and PR c/9853.
14362 * stmt.c (expand_decl_init): Call push_temp_slots () and
14363 pop_temp_slots ().
14364
62c9aa5f 143652003-03-12 J"orn Rennecke <joern.rennecke@superh.com>
1aa03f38
R
14366
14367 * sh.c: Include basic-block.h.
14368 (sh_output_mi_thunk, emit_load_ptr): New functions.
14369 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine.
14370
6f8c9bd1
NC
143712003-03-12 Nick Clifton <nickc@redhat.com>
14372
14373 * config/arm/pe.h (FIXED_REGISTERS): Add Maverick registers.
14374 (CALL_USED_REGISTERS): Likewise.
14375 * config/arm/arm.h (FIRST_PSEUDO_REGISTER): Update comment
14376 describing how this value is calculated.
14377
b2522d2b
HPN
143782003-03-12 Hans-Peter Nilsson <hp@bitrange.com>
14379
14380 * configure.in (rlim_t): Define to long if no valid definition
14381 found in sys/resource.h.
14382 * config.in, configure: Regenerate.
14383
f7248b51
NB
143842003-03-12 Neil Booth <neil@daikokuya.co.uk>
14385
14386 * config/mcore/mcore-elf.h (CPP_PREDEFINES): Replace with
14387 TARGET_OS_CPP_BUILTINS.
14388 * config/mcore/mcore-pe.h: Similarly.
14389 * config/mcore/mcore.h: Replace CPP_PREDEFINES and part of
14390 CPP_SPEC with TARGET_CPU_CPP_BUILTINS.
14391
8a7d6cb3
EB
143922003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
14393
14394 PR c/9928
14395 * c-decl.c (duplicate_decls): Discard the initializer of the new decl
14396 only if it is a VAR_DECL.
14397
db1077d3
EB
143982003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
14399
14400 PR optimization/9888
14401 * config/i386/i386.md (jcc_1): Fix range.
14402 (jcc_2): Likewise.
14403 (jump): LIkewise.
14404 (doloop_end_internal): Likewise.
14405
6ca23bff 144062003-03-12 Danny Smith <dannysmith@users.sourceforge.net>
1fe668e5 14407
6ca23bff
DS
14408 * config/i386/winnt.c (DLL_IMPORT_PREFIX): New define.
14409 Use throughout instead of DLL_IMPORT_EXPORT_PREFIX and "e."
14410 (DLL_EXPORT_PREFIX): New define. Use throughout instead of
14411 DLL_IMPORT_EXPORT_PREFIX and "i."
14412 (i386_pe_dllexport_name_p): Here.
14413 (i386_pe_dllimport_name_p): Here.
d2184e79 14414 (i386_pe_mark_dllexport): Here. Remove DLL_IMPORT_PREFIX,
6ca23bff
DS
14415 not 9 chars when getting identifier name.
14416 (i386_pe_mark_dllimport): Here.
14417 (i386_pe_encode_section_info): Here. Remove DLL_IMPORT_PREFIX,
14418 not 9 chars when getting identifier name. Correct comment.
14419 (i386_pe_strip_name_encoding): Here. Add comments for different
14420 cases.
14421 (gen_fastcall_suffix): Break down xmalloc() argument to
14422 components.
14423 (gen_stdcall_suffix): Likewise.
14424 Update copyright year.
14425
9b73c90a
EB
144262003-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
14427
14428 PR optimization/9888
14429 * config/i386/i386.md (movsi_1): Remove special alternatives
14430 for %eax register.
14431 (movsi_1_nointernunit): Likewise.
14432 (movhi_1): Likewise.
14433 * config/i386/i386.c (memory_address_length): Do not use
14434 short displacement when there is no base.
14435 (ix86_attr_length_address_default): Handle LEA instructions.
14436
21282b1e
NB
144372003-03-12 Neil Booth <neil@daikokuya.co.uk>
14438
14439 * c-cppbuiltin.c (builtin_define_std): Make non-static.
14440
7358f10d
LR
144412003-03-11 Loren James Rittle <ljrittle@acm.org>
14442
14443 * config/freebsd-spec.h (FBSD_CPP_PREDEFINES): Remove.
14444 (FBSD_TARGET_OS_CPP_BUILTINS): New port-specific macro.
14445 (FBSD_TARGET_CPU_CPP_BUILTINS): New port-specific macro.
14446 * config/freebsd.h (CPP_PREDEFINES): Remove.
14447 (TARGET_OS_CPP_BUILTINS): New.
14448 * config/alpha/freebsd.h: Use overridden FBSD_TARGET_CPU_CPP_BUILTINS
14449 instead of TARGET_OS_CPP_BUILTINS.
14450 * config/sparc/freebsd.h (CPP_PREDEFINES): Remove.
14451
d00bc0a2
GK
144522003-03-11 Geoffrey Keating <geoffk@apple.com>
14453
14454 * c-cppbuiltin.c (builtin_define_std): Add ATTRIBUTE_UNUSED.
14455
9b7b447f
AH
144562003-03-11 Aldy Hernandez <aldyh@redhat.com>
14457
d2184e79
AH
14458 * config/rs6000/rs6000.c (rs6000_stack_info): Remove
14459 insn_chain_scanned. Use insn_chain_scanned_p in machine_function.
9b7b447f 14460
d2184e79 14461 * config/rs6000/rs6000.h (machine_function): Add insn_chain_scanned_p.
9b7b447f 14462
62c9aa5f 144632003-03-11 Alexandre Oliva <aoliva@redhat.com>
18a47d21
AO
14464
14465 * toplev.c (independent_decode_option): Return success for --help,
14466 --target-help and --version.
14467
62c9aa5f 144682003-03-11 Alexandre Oliva <aoliva@redhat.com>
c0a579df
AO
14469
14470 * config/mips/linux64.h (DRIVER_SELF_SPECS): Add endian_spec.
14471 Default to -mips3 on -mabi=64. Don't add -mips* flag if -march is
14472 specified.
14473 (SUBTARGET_ASM_SPEC): Remove -mips*-adding code obviated by
14474 DRIVER_SELF_SPECS.
14475 (LINK_SPEC): Let endian options affect the linker emulation name.
14476
62c9aa5f 144772003-03-11 J"orn Rennecke <joern.rennecke@superh.com>
ea45c4b0
R
14478
14479 * sh.md (reload_inqi): Fix mode for source in second set.
14480
62c9aa5f 144812003-03-11 Jan Hubicka <jh@suse.cz>
7101fb18
JH
14482
14483 * cselib.c (cselib_invalidate_mem_1): Move too ...
14484 (cselib_invalidate_mem): ... here; use new list
14485 (dummy_val, first_containing_mem): New static variables.
14486 (clear_table): Initialize first_containing_mem.
14487 (discard_useless_values): Compact the containing_mem list.
14488 (add_mem_for_addr): Add to the list.
14489 * cselib.h (cselib_val): Add next_containing_mem.
14490
b5044283
AH
144912003-03-11 Aldy Hernandez <aldyh@redhat.com>
14492
d2184e79
AH
14493 * config/rs6000/rs6000.c (rs6000_override_options): Disable string
14494 instructions for e500.
b5044283 14495
cd6a5007
NB
144962003-03-11 Neil Booth <neil@daikokuya.co.uk>
14497
14498 * Makefile.in: Update.
14499 * c-cppbuiltin.c: Include tm_p.h.
14500
41f3a930
AH
145012003-03-11 Aldy Hernandez <aldyh@redhat.com>
14502
d2184e79 14503 * doc/tm.texi (Frame Registers): Document DWARF_REG_TO_UNWIND_COLUMN.
41f3a930 14504
d2184e79
AH
14505 * unwind-dw2.c (DWARF_REG_TO_UNWIND_COLUMN): Define.
14506 (_Unwind_GetGR): Use DWARF_REG_TO_UNWIND_COLUMN.
14507 (_Unwind_SetGR): Same.
14508 (_Unwind_GetGRPtr): New.
14509 (_Unwind_SetGRPtr): New.
14510 (uw_update_context_1): Use accesor functions instead of accessing
14511 context->reg[] directly.
14512 (uw_install_context_1): Same.
14513 (execute_cfa_program): Same.
14514 (__frame_state_for): Same.
41f3a930 14515
d2184e79
AH
14516 * config/rs6000/rs6000.c (spe_synthesize_frame_save): Use 1200 as
14517 the synthetic register offset.
41f3a930 14518
d2184e79 14519 * config/rs6000/rs6000.h (DWARF_REG_TO_UNWIND_COLUMN): New.
41f3a930 14520
d2f55c5c
HPN
145212003-03-11 Hans-Peter Nilsson <hp@axis.com>
14522
14523 * config/cris/cris.md: Remove lingering EGCS reference.
14524 ("*extopqihi_side_biap"): For HI operation, match
14525 cris_additive_operand_extend_operator, not
14526 cris_operand_extend_operator. Adjust condition.
14527 ("*extopqihi_side", "*extopqihi"): Ditto.
14528 ("*extopqisi_side_biap"): Correct operand numbers in condition.
14529 ("*extophisi_side_biap", "*extopqisi_swap_side_biap"): Ditto.
14530 ("*extophisi_swap_side_biap", "*extopqisi_swap"): Ditto.
14531 ("*extophisi_swap"): Ditto.
14532 ("*extopqihi_swap_side_biap"): For HI operation, match a simple
14533 PLUS, not cris_operand_extend_operator. Adjust condition and
14534 output template.
14535 ("*extopqihi_swap_side", "*extopqihi_swap"): Ditto.
14536 * config/cris/cris.h (PREDICATE_CODES): Add
14537 cris_additive_operand_extend_operator.
14538 * config/cris/cris.c (cris_additive_operand_extend_operator):
14539 New predicate.
14540
37bd08f8
HP
145412003-03-11 Hartmut Penner <hpenner@de.ibm.com>
14542
14543 * df.c (read_modify_subreg_p): Change from static to global.
14544 * df.h (read_modify_subreg_p): Add prototype.
14545 * sched-deps.c (sched_analyze_1): Generate true dependency for
1fe668e5 14546 strict_low_part, certain subregs and zero/sign_extract.
37bd08f8 14547
cb60f38d
NB
145482003-03-11 Neil Booth <neil@daikokuya.co.uk>
14549
14550 * Makefile.in: Update.
14551 * c-common.c: Don't include real.h or except.h.
14552 (REGISTER_PREFIX): Remove.
14553 (builtin_define_std, builtin_define_with_value,
14554 builtin_define_with_int_value, builtin_define_with_hex_fp_value,
14555 builtin_define_type_max, builtin_define_type_precision,
14556 builtin_define_float_constants): Move to c-cppbuiltin.c.
14557 (c_stddef_cpp_builtins): New.
14558 * c-common.h (builtin_define_with_value, c_stddef_cpp_builtins): New.
14559 * c-cppbuiltin.c: New, extracted from c-common.c.
14560 (define__GNUC__): New.
14561 * cppspec.c (lang_specific_driver): Remove support of -no-gcc.
14562 * gcc.c: Remove support of %v1, %v2 and %v3 specs.
14563 (cpp_unique_options): Don't support no-gcc.
14564 (do_spec_1): Remove support of version specs.
14565 * doc/invoke.texi: Remove documentation of %v1, %v2 and %v3.
14566 * doc/passes.texi: Update.
14567 * doc/tm.texi: Update.
14568
31ca3635
AH
145692003-03-10 Aldy Hernandez <aldyh@redhat.com>
14570
d2184e79 14571 * dwarf2out.c (multiple_reg_loc_descriptor): Fix thinko.
31ca3635 14572
ab82a49f
AP
145732003-03-10 Andrew Pinski <apinski@apple.com>
14574
14575 * config/darwin.c (machopic_function_base_name): If dynamic-no-pic
14576 is on should not get here.
14577 (machopic_indirect_data_reference): If dynamic-no-pic is on just
14578 generate high/low parts of the address.
14579 (machopic_legitimize_pic_address): Change MACHOPIC_PURE to
14580 MACHOPIC_INDIRECT. Dynamic-no-pic uses 0 as the pic base. Generate
14581 symbol and labels with a new reg. Dynamic-no-pic does not have a
14582 pic_offset_table_rtx.
14583 (machopic_select_section): Change references of flag_pic to
1fe668e5 14584 MACHOPIC_INDIRECT.
ab82a49f
AP
14585 (machopic_asm_out_destructor): Likewise.
14586 * config/darwin.h (ASM_DECLARE_UNRESOLVED_REFERENCE): Change
14587 reference of flag_pic to MACHOPIC_INDIRECT.
14588 (MACHO_DYNAMIC_NO_PIC_P): Define as TARGET_DYNAMIC_NO_PIC.
14589 (MACHOPIC_INDIRECT): Is also true when dynamic-no-pic is on.
14590 (MACHOPIC_JUST_INDIRECT): Is also true when dynamic-no-pic is on.
14591 (MACHOPIC_PURE): Is not pure when dynamic-no-pic is on.
14592 * config/i386/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define as
14593 0 for right now as dynamic-no-pic is not implemented on Darwin/ia32.
14594 * config/rs6000/darwin.h (MASK_MACHO_DYNAMIC_NO_PIC): Define.
14595 (TARGET_DYNAMIC_NO_PIC): Define.
14596 (SUBTARGET_SWITCHES): Define, have sub-target switches for
1fe668e5 14597 dynamic-no-pic.
ab82a49f
AP
14598 (SUBTARGET_OVERRIDE_OPTIONS): Move check for -fpic from
14599 rs6000_override_options to here. Dynamic-no-pic overrides
14600 pic.
14601 (CC1_SPEC): Change from not static then pic to not static and not
14602 dynamic-no-pic then pic.
14603 * config/rs6000/rs6000.c (rs6000_override_options): Move the
14604 check for -fpic and DARWIN_ABI to config/rs6000/darwin.h
14605 (rs6000_legitimize_reload_address): Add case for loading floating in
14606 dynamic-no-pic.
14607 (rs6000_emit_move): Add case for dynamic-no-pic. Change reference
14608 of flag_pic to MACHOPIC_INDIRECT.
14609 (secondary_reload_class): Conditional change the reference of
14610 flag_pic to MACHOPIC_INDIRECT.
14611 (rs6000_output_mi_thunk): Change reference of flag_pic to
14612 MACHOPIC_INDIRECT.
14613 (output_profile_hook): Likewise.
14614 (machopic_output_stub): Non-pure (dynamic-no-pic) is now supported.
14615 * config/rs6000/rs6000.md (movdf_low): Add the case for
14616 MACHO_DYNAMIC_NO_PIC_P.
14617 (call): Change references for flag_pic in TARGET_MACHO to
14618 MACHOPIC_INDIRECT.
14619 (SUBTARGET_OVERRIDE_OPTIONS): Add case where -fpic is on and
14620 -mdynamic-no-pic is on. Also move case for -fpic from rs6000.c.
14621 * doc/invoke.texi (-mdynamic-no-pic): Document.
87d7d780
DP
14622
146232003-03-10 Devang Patel <dpatel@apple.com>
1fe668e5 14624
87d7d780
DP
14625 PR c++/9394
14626 * gcc.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
14627 (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
14628 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Add.
14629 (DEFAULT_WORD_SWITCH_TAKES_ARG): Add.
14630 * cppspec.c (DEFAULT_SWITCH_TAKES_ARG): Remove.
14631 (DEFAULT_WORD_SWITCH_TAKES_ARG): Remove.
1fe668e5 14632
6b856d15
SB
146332003-03-10 Steven Bosscher <s.bosscher@student.tudelft.nl>
14634
14635 PR optimization/7189
14636 * toplev.c (rest_of_compilation): Move
14637 check_function_return_warnings up to just after
14638 delete_unreachable_blocks.
14639
2d8d15b7
SC
146402003-03-10 Stephane Carrez <stcarrez@nerim.fr>
14641
14642 * config/m68hc11/m68hc11.h (HARD_REGNO_RENAME_OK): Define.
14643 * config/m68hc11/m68hc11-protos.h (m68hc11_hard_regno_rename_ok):
14644 Declare.
14645 * config/m68hc11/m68hc11.c (m68hc11_hard_regno_rename_ok): New function
14646 for reg rename optimization to avoid using Z and Y registers.
14647
0e01d661
SC
146482003-03-10 Stephane Carrez <stcarrez@nerim.fr>
14649
14650 * config/m68hc11/m68hc11.md ("*addhi3_68hc12"): Accept any constant
14651 when adding to X and Y since leax/leay are fast.
14652 ("*addhi3"): Accept 'I' constraint when adding to address register.
14653 ("rotlhi3"): Operand 1 must be a register_operand.
14654 (peephole2): New peephole to optimize some adds.
14655 * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_P): Use 'I' constraint
14656 to represent -2 .. 2 small integer range.
14657
ae5b570e
SC
146582003-03-10 Stephane Carrez <stcarrez@nerim.fr>
14659
14660 * config/m68hc11/m68hc11.c (m68hc11_gen_rotate): Set carry before
14661 each 16-bit rotation.
14662
52999738
ZW
146632003-03-10 Zack Weinberg <zack@codesourcery.com>
14664
14665 * c-opts.c (add_prefixed_path): Don't use concat. When
14666 prefixing with cpp_GCC_INCLUDE_DIR, copy only the first
14667 cpp_GCC_INCLUDE_DIR_len characters.
14668
5c242421
SB
146692003-03-10 Segher Boessenkool <segher@koffie.nl>
14670
52999738 14671 * testsuite/gcc.dg/altivec-9.c: New file.
5c242421 14672
52999738
ZW
14673 * config/rs6000/rs6000.c (altivec_frame_fixup): Remove.
14674 (rs6000_emit_prologue): Use rs6000_frame_related instead.
5c242421 14675
b4053702
AH
146762003-03-10 Aldy Hernandez <aldyh@redhat.com>
14677
52999738
ZW
14678 * config/rs6000/spe.h: Define __ev64_*64__ to use single element
14679 vectors.
14680 (__ev_convert_u64): Remove macro. Define as inline.
14681 (__ev_convert_s64): Same.
b4053702 14682
c19de7aa
AH
146832003-03-10 Aldy Hernandez <aldyh@redhat.com>
14684
52999738
ZW
14685 * config/rs6000/rs6000.h (DWARF_FRAME_REGISTERS): Define.
14686 (rs6000_stack_t): Add spe_64bit_regs_used.
c19de7aa 14687
52999738
ZW
14688 * config/rs6000/rs6000.c (rs6000_stack_info): Calculate
14689 spe_64bit_regs_used, and use it to determine the size of the
14690 frame.
14691 (spe_func_has_64bit_regs_p): New.
14692 (spe_synthesize_frame_save): New.
14693 (rs6000_frame_related): Handle SPE synthetic registers.
14694 (rs6000_emit_prologue): Only save in 64-bits if the function used
14695 any registers in 64-bit mode.
14696 (rs6000_emit_epilogue): Same, but for restore.
c19de7aa 14697
29ad9694
RE
146982003-03-10 Richard Earnshaw <rearnsha@arm.com>
14699
14700 * arm.h (enum floating_point_type): Delete. Replace with...
14701 (enum fputype): ... new.
14702 (FPUTYPE_DEFAULT): Renamed from FP_DEFAULT. Values reworked.
14703 * linux-elf.h (FPUTYPE_DEFAULT): Likewise.
14704 * arm.md (attr fpu): Reworked for new underlying enum values.
14705 * arm.c (arm_fpu_arch): Now enum fputype.
14706 (arm_fpu_tune): Renamed from arm_fpu. Now enum fputype.
14707 (arm_override_options, arm_output_epilogue, arm_expand_prologue):
14708 Update uses of arm_fpu_arch and arm_fpu_tune.
14709
39811184
JZ
147102003-03-10 Josef Zlomek <zlomekj@suse.cz>
14711
52999738 14712 * cfgcleanup.c (outgoing_edges_match): Compare the jump tables.
39811184
JZ
14713 (try_crossjump_to_edge): Replace refereces to one jump table by
14714 references to identical jump table.
14715 * loop.c (load_mems): Moved setting the JUMP_LABEL to replace_label.
14716 (replace_label): Moved to rtlanal.c.
14717 (struct rtx_pair): Moved to rtl.h.
52999738 14718 * rtl.h (struct rtx_pair): Moved from loop.c.
39811184
JZ
14719 (replace_label): New extern function.
14720 (subrtx_p): New extern function.
14721 (tablejump_p): New extern function.
52999738 14722 * rtlanal.c (replace_label): Moved from loop.c.
39811184
JZ
14723 (subrtx_p_1): New static function.
14724 (subrtx_p): New function.
14725 (tablejump_p): New function.
14726
62c9aa5f 147272003-03-10 Jan Hubicka <jh@suse.cz>
ec3ae3da 14728
912b79e7
JH
14729 * cfgcleanup.c (try_optimize_cfg): Fix thinko in previous patch.
14730
ec3ae3da
JH
14731 * cfgcleanup.c (merge_blocks): Return where to iterate next.
14732 (try_optimize_cfg): Use return value of merge_blocks
14733
e0fd3e7a
MM
147342003-03-10 Michael Matz <matz@suse.de>
14735
14736 * cfg.c (unchecked_make_edge): New.
14737 (cached_make_edge): Use it.
14738 * basic-block.h (unchecked_make_edge): Declare.
14739 * cfglayout.c (cfg_layout_duplicate_bb): Use it.
14740
82955615
RE
147412003-03-10 Richard Earnshaw <rearnsha@arm.com>
14742
14743 * fpa.md: New file. Move all patterns relating to FPA co-processor
14744 to here...
14745 * arm.md: ... from here.
14746 (cirrus.md, fpa.md): Include at end of description.
14747 (divsf3, divdf3, modsf3, movdf3, sqrtsf2, sqrtdf2): New expands.
14748 (pic_load_addr_based): Remove register constraint from expander.
14749 (seq, sne, sgt, sle, slt, sge, sgeu, sleu, sgtu, sltu, sunordered)
14750 (sordered, sungt, sunle, sunge, sunlt): Likewise.
14751 (eh_epilogue, tablejump): Likewise.
14752
22672fc4
RK
147532003-03-09 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14754
14755 * tree.c (substitute_in_expr, case 'e'): Only make recursive call
14756 on operands if it has a PLACEHOLDER_EXPR.
14757
f7b3ab8a
DE
147582003-03-09 David Edelsohn <edelsohn@gnu.org>
14759 Mostafa Hagog
14760
14761 * config/rs6000/rs6000.md (movsi_update1): Add TARGET_UPDATE final
14762 condition.
14763
cc956ba2
NB
147642003-03-09 Neil Booth <neil@daikokuya.co.uk>
14765
14766 * config/frv/frv.h: Use TARGET_CPU_CPP_BUILTINS, not CPP_PREDEFINES.
14767 * config/ip2k/ip2k.h: Similarly.
14768 * config/m32r/m32r.h: Similarly.
14769 * config/m68hc11/m68hc11.h: Similarly.
14770 * config/mn10200/mn10200.h: Similarly.
14771 * config/mn10300/mn10300.h: Similarly.
14772 * config/pdp11/pdp11.h: Similarly.
14773 * config/v850/v850.h: Similarly.
14774 * config/rs6000/vxworks.h: Similarly for TARGET_OS_CPP_BUILTINS.
14775 * config/v850/retms.h: Similarly for TARGET_OS_CPP_BUILTINS.
14776 * config/mips/iris3.h: Remove #if 0 block.
14777
147782003-03-09 Roger Sayle <roger@eyesopen.com>
14779 Joern Rennecke <joern.rennecke@superh.com>
14780
14781 * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle
14782 pending argument upon return from handle_braces here.
14783 (do_spec_2): Instead handle it upon return from do_spec_1 here.
14784
6544fbcb
RS
147852003-03-09 Roger Sayle <roger@eyesopen.com>
14786 Joern Rennecke <joern.rennecke@superh.com>
14787
14788 * gcc.c (do_spec_1) ['{']: Revert 2003-02-24 patch. Don't handle
14789 pending argument upon return from handle_braces here.
14790 (do_spec_2): Instead handle it upon return from do_spec_1 here.
14791
e1a04212
FS
147922003-03-09 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14793
14794 * varasm.c (make_decl_one_only): Use declare_weak().
14795
4677862a
JDA
147962003-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14797
14798 PR middle-end/9986
14799 * c-common.c (c_common_nodes_and_builtins): Initialize target builtins
14800 after the common builtins.
14801 * pa-hpux.h (DONT_HAVE_FPUTC_UNLOCKED): Define.
14802 * pa.c (TARGET_INIT_BUILTINS): Define.
14803 (pa_init_builtins): New function.
14804
14805 * pa.md (call, call_value, sibcall, sibcall_value): When sufficient
14806 space has been allocated for the outgoing arguments, set the arg
14807 pointer for a call emitted after virtuals have been instantiated
14808 using the stack pointer offset, otherwise abort.
14809
2de12bc4
DD
148102003-03-09 DJ Delorie <dj@redhat.com>
14811
14812 * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH): Revert.
14813
17136dde
RE
148142003-03-09 Richard Earnshaw <rearnsha@arm.com>
14815
14816 * arm.md (fix_truncsfsi2, fix_truncdfsi2, arm_fix_truncsfsi2)
14817 (arm_fix_truncdfsi2): Add missing fix in floating point mode before
14818 conversion to integer.
14819 * cirrus.md (cirrus_truncsfsi2, cirrus_truncdfsi2): Likewise.
14820
f937d5e6
RS
148212003-03-09 Roger Sayle <roger@eyesopen.com>
14822
14823 * builtins.def: Fix typo and improve grammar.
14824 * loop-unroll.c (decide_peel_completely): Tidy log message.
14825
c5979bc6
KH
148262003-03-09 Kazu Hirata <kazu@cs.umass.edu>
14827
14828 * config/h8300/h8300.md (*tstsi_upper_bit): New.
14829 (*iorsi3_e2f): Likewise.
14830
4f4ebda3
KH
148312003-03-08 Kazu Hirata <kazu@cs.umass.edu>
14832
14833 * config/h8300/h8300.c (h8300_and_costs): Return the number of
14834 assembly instructions needed.
14835 (h8300_shift_costs): Likewise.
14836
c366ade5
HPN
148372003-03-09 Hans-Peter Nilsson <hp@bitrange.com>
14838
02af0d9b
HPN
14839 * config/cris/aout.h (ENDFILE_SPEC): Undef.
14840
a3600c71
HPN
14841 * optabs.c (gen_move_insn): Move logic for synthesizing MODE_CC
14842 moves from here ...
14843 * expr.c (emit_move_insn_1): ... to here.
14844
a6e464ae
HPN
14845 * config/cris/aout.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__AOUT__ to...
14846 (TARGET_OS_CPP_BUILTINS): New macro.
14847 * config/cris/cris.h (CRIS_CPP_SUBTARGET_SPEC): Move -D__ELF__ to...
14848 (TARGET_OS_CPP_BUILTINS): New macro.
14849 (CPP_PREDEFINES): Don't define. Move old definitions and...
14850 (CPP_SPEC): ...move -D__CRIS_ABI_version=2 to...
14851 (TARGET_CPU_CPP_BUILTINS): New macro.
14852 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Move constant
14853 definitions and the optional __PIC__, __pic__ and
14854 __NO_UNDERSCORES__ definitions to...
14855 (TARGET_OS_CPP_BUILTINS): New macro.
14856
d8a25128
HPN
14857 * flags.h (flag_leading_underscore): Declare.
14858
c366ade5
HPN
14859 * c-opts.c (c_common_post_options): On fopen failure, return
14860 false, not NULL.
14861
32b0bbaa
HPN
148622003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
14863
14864 * config/cris/cris_abi_symbol.c: #include tconfig.h and tm.h, not
14865 config.h.
14866 * config/cris/cris.h (HAVE_GAS_HIDDEN): Don't define here.
14867 * config/cris/aout.h (HAVE_GAS_HIDDEN): Undef.
14868
ad220576
NB
148692003-03-08 Neil Booth <neil@daikokuya.co.uk>
14870
14871 * config/sh/rtemself.h (TARGET_OS_CPP_BUILTINS): Use instead of
14872 CPP_PREDEFINES.
14873 * config/sh/rtems.h (TARGET_OS_CPP_BUILTINS): Use instead of
14874 CPP_PREDEFINES.
14875
4bfec483
NB
148762003-03-08 Neil Booth <neil@daikokuya.co.uk>
14877
14878 * c-common.h (c_common_init, c_common_post_options): Update.
14879 * c-objc-common.c (c_objc_common_init): Update for new prototype.
14880 * c-opts.c (saved_lineno): New.
14881 (c_common_post_options, c_common_init): Update prototypes,
14882 move call to cpp_read_main_file from latter to former.
14883 * c-tree.h (c_ojbc_common_init): Update.
14884 * langhooks-def.h (lhd_post_options): New.
14885 (LANG_HOOKS_INIT, LANG_HOOKS_POST_OPTIONS): Update.
14886 * langhooks.c (lhd_post_options): New.
14887 * langhooks.h (struct lang_hooks): Update post_options and init hooks.
14888 * toplev.c (no_backend): New.
14889 (process_options): Call post_options hook and set main_input_filename
14890 and input_filename here.
14891 (lang_dependent_init, do_compile): post_options hook moved to
14892 process_options.
14893 * objc/objc-act.c (objc_init): Update prototype.
14894 * objc/objc-act.h (objc_init): Update prototype.
14895
9dd04ab5
RS
148962003-03-08 Roger Sayle <roger@eyesopen.com>
14897
14898 * emit-rtl.c (gen_lowpart): Don't attempt to load a part of
14899 a complex or vector type, using a load in the original mode.
14900
62c9aa5f 149012003-03-08 Jan Hubicka <jh@suse.cz>
988d1653
JH
14902
14903 * Makefile.in (cgraph.o): Depend on gt-cgraph.h and varray.h.
14904 * gt-cgraph.h: New GC file.
14905 * cgraph.c (known_fns): New static variable.
14906 (cgraph_node): Add the decl into varray.
14907
73ba39fc
HPN
149082003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
14909
14910 * config/mmix/mmix.md ("*movcc_expanded"): Add missing alternatives.
14911
3b684012
RE
149122003-03-08 Richard Earnshaw <rearnsha@arm.com>
14913
14914 * arm.c (fpa_rhs_operand, fpa_add_operand, const_double_rtx_ok_for_fpa)
14915 (neg_const_double_ok_for_fpa, output_mov_long_double_fpa_from_arm)
14916 (output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm)
14917 (output_mov_double_arm_from_fpa): Renamed to use fpa instead of fpu.
14918 All callers changed.
14919 * arm.md, arm.h, arm-protos.h: Updated.
14920
14921 * arm.h (enum reg_class FPA_REGS): Renamed from FPU_REGS.
14922 (CLASS_MAX_NREGS, REGISTER_MOVE_COST, REG_CLASS_FROM_LETTER): Updated.
14923 * arm.c (arm_regno_class, f_register_operand): Updated.
14924
fa5848c7
HPN
149252003-03-08 Hans-Peter Nilsson <hp@bitrange.com>
14926
14927 * config/cris/cris.h: Remove EGCS references.
1fe668e5 14928 (CPP_SPEC): Remove "-$".
fa5848c7
HPN
14929 (INIT_CUMULATIVE_ARGS): Adjust parameter name to FNDECL.
14930
4555be98
NB
149312003-03-08 Neil Booth <neil@daikokuya.co.uk>
14932
14933 * config/stormy16/stormy16.h (TARGET_CPU_CPP_BUILTINS): Use in
14934 preference to CPP_PREDEFINES.
14935
39a91264
NB
149362003-03-08 Neil Booth <neil@daikokuya.co.uk>
14937
14938 * cppinit.c (cpp_finish_options): Set first_unused_line to -1.
14939
9571a6b9
KH
149402003-03-08 Kazu Hirata <kazu@cs.umass.edu>
14941
14942 * config/h8300/h8300.md (*extzv_16_8): New.
14943
62c9aa5f 149442003-03-08 Jan Hubicka <jh@suse.cz>
18d13f34
JH
14945
14946 * c-decl.c: (finish_function): Update call of tree_inlinable_function_p.
14947 * cgraph.h: (cgraph_local_info): Add can_inline_once
14948 (cgraph_global_info): Add inline_once.
14949 (cgraph_node): Add previous.
14950 (cgraph_remove_node): New.
14951 * cgraphunit.c (cgraph_mark_functions_to_inline_once): New static
14952 function.
14953 (cgraph_optimize): Call it.
14954 (cgraph_finalize_function): Set inlinable flags.
14955 (cgraph_finalize_compilation_unit): Actually remove the reclaimed nodes.
14956 (cgraph_mark_functions_to_output): Use new inlining heuristics flags.
14957 (cgraph_expand_function): Likewise.
52999738 14958 * cgraph.c
18d13f34
JH
14959 (cgraph_node): Put nodes into doubly linked chain.
14960 (cgraph_remove_node): New function.
14961 * flags.h (flag_inline_functions_called_once): Declare.
14962 * tree-inline.c: Include cgraph.h
14963 (inlinable_functions_p): Add extra argument to bypass limits.
14964 (expand_call_inline): Obey cgraph flag.
14965 * tree-inline.h (tree_inlinable_function_p): Update prototype.
14966
72b8d451
ZD
149672003-03-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14968
14969 * gcse.c (bypass_block, bypass_conditional_jumps): Do not create
14970 irreducible loops.
14971
14972 * loop-unroll.c (unroll_loop_runtime_iterations): Update irreducible
14973 loops info correctly.
14974
ed97aa66
EB
149752003-03-08 Eric Botcazou <ebotcazou@libertysurf.fr>
14976
14977 PR middle-end/7796
14978 * unroll.c (calculate_giv_inc): Handle constants being
14979 loaded with LSHIFTRT.
14980
d7b53ca4
DE
149812003-03-07 David Edelsohn <edelsohn@gnu.org>
14982
14983 * config/rs6000/rs6000.c (processor_target_table): Do not disable
14984 GP optional instructions on Power3, Power4, 620, and 630.
14985
3dc575ff
KH
149862003-03-07 Kazu Hirata <kazu@cs.umass.edu>
14987
14988 * calls.c: Fix comment formatting.
14989 * cfgloopanal.c: Likewise.
14990 * cfgloopmanip.c: Likewise.
14991 * combine.c: Likewise.
14992 * dwarf2out.c: Likewise.
14993 * ggc-common.c: Likewise.
14994 * langhooks.c: Likewise.
14995 * loop-unroll.c: Likewise.
14996 * loop.c: Likewise.
14997 * ra-build.c: Likewise.
14998 * sbitmap.c: Likewise.
14999 * toplev.c: Likewise.
15000
9bcd9715
JW
150012003-03-07 James E Wilson <wilson@tuliptree.org>
15002
ed97aa66 15003 * config/sh/sh.h (HARD_REGNO_NREGS): Round up the XD register count.
9bcd9715 15004
6e5c4eaf
GK
150052003-03-07 Geoffrey Keating <geoffk@apple.com>
15006
15007 * objc/lang-specs.h (objective-c-header): Use .gch not .pch;
15008 support -no-integrated-cpp.
15009
15010 * c-pch.c (get_ident): Use c_language_kind and flag_objc rather
15011 than langhooks.name.
15012
50aac998
MM
150132003-03-07 Michael Matz <matz@suse.de>
15014
15015 * df.h (enum df_ref_flags.DF_REF_STRIPPED): New.
15016 (DF_FOR_REGALLOC): New.
15017 * df.c (df_ref_record): Set DF_REF_STRIPPED.
15018 (read_modify_subreg_p): Simplify.
15019 (df_def_record_1, df_uses_record): Set DF_REF_MODE_CHANGE more often.
15020 Use DF_FOR_REGALLOC.
15021 * ra.h (struct web): New member subreg_stripped.
15022 (invalid_mode_change_regs): Declare.
15023 * ra.c (invalid_mode_change_regs): New.
15024 (init_ra): Initialize it.
15025 * ra-build.c (init_one_web_common, remember_web_was_spilled): Use it.
15026 Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
15027 (reinit_one_web, parts_to_web_1): Deal with subreg_stripped.
15028 * ra-colorize.c (colorize_one_web): Use invalid_mode_change_regs.
15029 Use CANNOT_CHANGE_MODE_CLASS as ifdef guard.
15030
37f74dcf
RE
150312003-03-07 Richard Earnshaw <rearnsha@arm.com>
15032
15033 * arm.md (addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, negsf2)
15034 (negdf2, abssi2, abssf2, absdf2, floatsisf2, floatsidf2)
15035 (fix_truncsfsi2, fix_truncdfsi2, truncdfsf2): Moved back into main
15036 machine description file from ...
15037 * cirrus.md: ... here.
15038
203b3521
KH
150392003-03-06 Kazu Hirata <kazu@cs.umass.edu>
15040
15041 * config/h8300/h8300.md (a peephole2): Don't use
15042 reg_overlap_mentioned_p.
15043
8643e92d
GK
150442003-03-06 Geoffrey Keating <geoffk@apple.com>
15045
15046 * c-pch.c: Include langhooks.h.
15047 (IDENT_LENGTH): New.
15048 (get_ident): New.
15049 (pch_ident): Delete.
15050 (pch_init): Use get_ident, IDENT_LENGTH.
15051 (c_common_valid_pch): Likewise. Also, use actual language
15052 in warning message.
15053 * Makefile.in (c-pch.o): Add langhooks.h to dependencies.
15054
15055 * objc/config-lang.in (gtfiles): Add objc-act.c. Remove duplicate
15056 c-parse.in.
15057 * objc/Make-lang.in (objc/objc-act.o): Add dependency on
15058 gt-objc-objc-act.h.
15059 (gt-objc-objc-act.h): New rule.
15060 * objc/lang-specs.h: Support PCH.
15061 * objc/objc-act.c: Include gt-objc-objc-act.h.
15062 (objc_add_static_instance): Move num_static_inst out, mark for PCH.
15063 (build_selector_reference_decl): Move idx out, mark for PCH.
15064 (build_class_reference_decl): Likewise.
15065 (build_objc_string_decl): Move *_idx out, mark for PCH.
15066 (build_tmp_function_decl): Move xxx out, mark for PCH.
15067
7f3d8013
DJ
150682003-03-06 Dale Johannesen <dalej@apple.com>
15069
15070 * config/rs6000/rs6000.c (rs6000_binds_local_p): Consider
15071 global functions for inlining on Darwin.
15072
14484a78
VM
150732003-03-06 Vladimir Makarov <vmakarov@redhat.com>
15074
15075 * haifa-sched.c (schedule_block): Don't call reorder when sorting
15076 is prohibited.
15077
9d10c9a9
NB
150782003-03-06 Neil Booth <neil@daikokuya.co.uk>
15079
15080 * Makefile.in (c-ppoutput.o): Update.
15081 * c-common.h (init_pp_output): New.
15082 (preprocess_file): Update.
15083 * c-lex.c (init_c_lex): Move mbchar initialization to cpplib.
15084 Register builtins.
15085 * c-opts.c (c_common_init): Call init_pp_output if preprocessing.
15086 Make call to cpp_read_main_file common to whether preprocessing
15087 or not. Don't register builtins.
15088 * c-ppoutput.c: Include c-pragma.h.
15089 (setup_callbacks): Rename init_pp_output.
15090 (preprocess_file): No longer setup callbacks or call
15091 cpp_read_main_file.
15092 * cpphash.h (_cpp_init_mbchar): New.
15093 * cppinit.c (init_library): Call _cpp_init_mbchar.
15094 * cpplex.c (_cpp_init_mbchar): New.
15095
37f5242b
RS
150962003-03-06 Roger Sayle <roger@eyesopen.com>
15097
15098 * emit-rtl.c (gen_lowpart): When requesting the low-part of a
15099 MEM, try loading the MEM into a register and taking the low-part
15100 of that, to help CSE see the use of the MEM in its true mode.
15101
c876997f 151022003-03-05 Tom Tromey <tromey@redhat.com>
f3922fd2
DD
15103
15104 * config/stormy16/stormy16.h (DWARF_LINE_MIN_INSTR_LENGTH):
15105 Define.
15106
c876997f 151072003-03-05 Nick Clifton <nickc@cambridge.redhat.com>
f3922fd2
DD
15108
15109 * config/stormy16/stormy16.md ("*eqbranchsi"): Remove '+' on
15110 operand 2.
15111 ("*ineqbranchsi"): Likewise.
15112
c876997f 151132003-03-05 Andrew Haley <aph@cambridge.redhat.com>
f3922fd2
DD
15114
15115 * config/stormy16/stormy16.c (xstormy16_expand_prologue): Delete
15116 mem_fake_push_rtx. Instead construct a SEQUENCE to show the
15117 register store followed by a stack increment.
15118
c876997f 151192003-03-05 Chris Moller <cmoller@redhat.com>
f3922fd2
DD
15120
15121 * config/stormy16/stormy16.c (REG_NEEDS_SAVE): added a term
15122 to inhibit saving CARRY_REGS.
15123
15124 * config/stormy16/stormy16.c (xs_hi_general_operand):
15125 added predicate to detect and error-out on out-of-range
15126 const_ints for movhi.
52999738 15127 * config/stormy16/stormy16.md (movhi): use
f3922fd2
DD
15128 xs_hi_general_operand.
15129
15130 * config/stormy16/stormy16.c (xstormy16_expand_prologue):
15131 added a check for local vbl size overflow.
15132 * config/stormy16/stormy16.c (xs_hi_nonmemory_operand):
15133 added predicate to detect and error-out on out-of-range
15134 const_ints for addhi and subhi.
52999738 15135 * config/stormy16/stormy16.md (addhi3, addchi4, addchi5,
f3922fd2
DD
15136 subhi3, subchi4, subchi5): used xs_hi_nonmemory_operand.
15137
15138 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
15139 add a term to accept PRE_MODIFY addresses.
15140 * config/stormy16/stormy16.c (xstormy16_expand_move):
15141 add code to expand PRE_MODIFY addresses to an add followed
15142 by a move.
15143
4c28216d
JM
151442003-03-06 Jason Merrill <jason@redhat.com>
15145
15146 * tree-inline.c (inlinable_function_p): Revert earlier change
15147 pending investigation.
15148
0135f343
KH
151492003-03-06 Kazu Hirata <kazu@cs.umass.edu>
15150
15151 * config/h8300/h8300.md (a new peephole2): New.
15152
62c9aa5f 151532003-03-06 Jan Hubicka <jh@suse.cz>
5c2e00ee
JH
15154
15155 * cgraph.c (cgraph_node): Do not confuse nested functions and methods.
15156
323658ea
ZD
151572003-03-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15158
15159 * dwarf2out.c (size_of_die): Compute size of external reference to
15160 die correctly.
15161
2b18b49b
HPN
151622003-03-06 Hans-Peter Nilsson <hp@bitrange.com>
15163
15164 * config/mmix/mmix.md ("*movcc_expanded"): New pattern.
15165 ("movcc", "movcc_uns", "movcc_fp", "movcc_fpeq", "movcc_fun"): New
15166 expanders.
15167
1a71a5b0
RS
151682003-03-05 Roger Sayle <roger@eyesopen.com>
15169
15170 * expr.h (lang_expand_expr): Delete obsolete prototype.
15171
26d249eb
KH
151722003-03-05 Kazu Hirata <kazu@cs.umass.edu>
15173
15174 * emit-rtl.c (gen_highpart_mode): Fix a comment typo.
15175
8b41a8da
KH
151762003-03-05 Kazu Hirata <kazu@cs.umass.edu>
15177
15178 * config/h8300/h8300.md (a peephole2): Generalize to
15179 accept a memory operand.
15180
62c9aa5f 151812003-03-05 Olivier Hainque <hainque@act-europe.fr>
39ee7fa9
OH
15182
15183 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Add '+'.
15184 * config/alpha/alpha.c (print_operand, case '+'): New.
15185 * config/alpha/alpha.md (call_osf_1_noreturn): Document and use.
15186 (call_value_osf_1_noreturn): Likewise.
15187
62c9aa5f 151882003-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
cda26058
RK
15189
15190 * stmt.c (fixup_gotos): Change meaning of DONT_JUMP_IN.
15191 (expand_end_bindings): Likewise.
15192
98857de8
JDA
151932003-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15194
15195 * pa.md (return_external_pic): Add !TARGET_PA_20 to constraint.
15196 (epilogue): Don't generate return_external_pic when emitting PA 2.0
15197 code.
15198
96714395
AH
151992003-03-05 Aldy Hernandez <aldyh@redhat.com>
15200
52999738 15201 * doc/tm.texi: Document TARGET_DWARF_REGISTER_SPAN.
96714395 15202
52999738 15203 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): New.
96714395 15204
52999738 15205 * hooks.c (hook_rtx_rtx_null): New.
96714395 15206
52999738 15207 * hooks.h (hook_rtx_rtx_null): Protoize.
96714395 15208
52999738
ZW
15209 * target-def.h (TARGET_DWARF_REGISTER_SPAN): New macro.
15210 (TARGET_INITIALIZER): Add TARGET_DWARF_REGISTER_SPAN.
96714395 15211
52999738 15212 * target.h (struct gcc_target): Add dwarf_register_span.
96714395 15213
52999738
ZW
15214 * dwarf2out.c (multiple_reg_loc_descriptor): New.
15215 (one_reg_loc_descriptor): New.
15216 (reg_loc_descriptor): Add support for values that span more than
15217 one register.
96714395 15218
62c9aa5f 152192003-03-05 Jan Hubicka <jh@suse.cz>
b255a036
JH
15220
15221 * Makefile.in (calls.o, toplev.o alias.o): Depend on cgraph.h
15222 * alias.c: Include cgraph.h
15223 (mark_constant_function): Use cgraph_rtl_info.
15224 * calls.c: Include cgraph.h
15225 (flags_from_decl_or_type): Use cgraph_rtl_info to find pure and const
15226 calls.
15227 (expand_call): Use cgraph_rtl_info to set preferred stack boundary.
15228 * cgraph.c (cgraph_rtl_info): New function.
15229 * cgraph.h (cgraph_rtl_info): Declare
15230 (cgraph_rtl_info): Likewise.
15231 * function.h (struct function): Add recursive_call_emit.
15232 * toplev.c: Include cgraph.h.
15233 (rest_of_compilation): Set preferred_incoming_stack_boundary.
15234
0eb933a0
KH
152352003-03-05 Kazu Hirata <kazu@cs.umass.edu>
15236
15237 * config/h8300/h8300.c (output_simode_bld): Clear the
15238 destination first if possible.
15239 * config/h8300/h8300.md (extzv_1_r_h8300hs): Add an
15240 alternative.
15241 (extzv_1_r_inv_h8300hs): Likewise.
15242
35b07080
ZD
152432003-03-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15244
15245 * basic-block.h (EDGE_IRREDUCIBLE_LOOP, EDGE_ALL_FLAGS): New.
15246 * cfg.c (dump_edge_info): Add EDGE_IRREDUCIBLE_LOOP flag dump.
15247 * cfgloop.c (flow_loop_free): Made global.
15248 (establish_preds): New static function.
15249 (flow_loop_tree_node_add): Handle subloops of added loop correctly.
15250 (get_loop_exit_edges): New.
15251 (verify_loop_structure): Verify EDGE_IRREDUCIBLE_LOOP flags.
15252 * cfgloop.h (flow_loop_free, get_loop_exit_edges, unloop): Declare.
15253 * cfgloopanal.c (mark_irreducible_loops): Mark edges in irreducible
15254 loops.
15255 * cfgloopmanip.c (loop_delete_branch_edge): Allow to test for
15256 removability of an edge.
15257 (fix_irreducible_loops): New static function.
15258 (find_path, remove_path): Add ability to remove enclosing loops.
15259 (unloop): New.
15260 (copy_bbs, duplicate_loop_to_header_edge): Use EDGE_IRREDUCIBLE_LOOP
15261 flags.
15262 * cfgrtl.c (verify_flow_info): Handle EDGE_IRREDUCIBLE_LOOP flag.
15263 * loop-unroll.c (peel_loops_completely): Do not duplicate loop if
15264 not neccessary.
15265 (decide_peel_completely, peel_loops_completely): Allow complete peeling
15266 of non-duplicable once rolling loops.
15267 * loop-unswitch.c (unswitch_loop): Update EDGE_IRREDUCIBLE_LOOP flags.
15268
62c9aa5f 152692003-03-05 J"orn Rennecke <joern.rennecke@superh.com>
bb182d23
R
15270
15271 * sh.h (OVERRIDE_OPTIONS): For TARGET_SHMEDIA, the minimum value
15272 for align_jumps is 4.
15273
15274 (SECONDARY_INPUT_RELOAD_CLASS): If reloading a PLUS into FPUL,
15275 use GENERAL_REGS.
15276
f2d0440f
SC
152772003-03-05 Stephane Carrez <stcarrez@nerim.fr>
15278
15279 * config/m68hc11/m68hc11.h (PAD_VARARGS_DOWN): Define and return
15280 according to va_arg type.
15281 (EXPAND_BUILTIN_VA_ARG): Remove.
15282 * config/m68hc11/m68hc11.c (m68hc11_va_arg): Remove.
15283 * config/m68hc11/m68hc11-protos.h (m68hc11_va_arg): Remove.
15284
165b263e
DE
152852003-03-05 David Edelsohn <edelsohn@gnu.org>
15286
15287 * config/rs6000/rs6000.c (rs6000_variable_issue): Remove unnecessary
15288 else clauses.
15289
8c38a24f
MM
152902003-03-05 Michael Matz <matz@suse.de>
15291
15292 * i386/i386.c (ix86_save_reg): Also test
15293 current_function_uses_const_pool.
15294
336d0d96
MM
152952003-03-05 Michael Matz <matz@suse.de>
15296
15297 * unwind.h: Add the GPL exception.
15298 * Makefile.in (USER_H): Add unwind.h.
15299
be2fa211
EB
153002003-03-05 Eric Botcazou <ebotcazou@libertysurf.fr>
15301
15302 PR c/9799
15303 * c-typeck.c (push_init_level): Add sanity check.
15304
62c9aa5f 153052003-03-05 Jan Hubicka <jh@suse.cz>
dafc5b82
JH
15306
15307 * toplev.c (rest_of_compilation): Deffer RTL compilation only when
15308 RTL inlining is done.
15309
15310 * cgraphunit.c (cgraph_mark_local_functions): New local function.
15311 (cgraph_optimize): Mark local functions.
15312 * i386-protos.h (init_cumulative_args): Update prototype.
15313 * i386.c (init_cumulative_args): Use register passing convention for
15314 local functions.
15315
15316 * cgraph.c (cgraph_global_info_ready): New global variable
15317 (cgraph_local_info, cgraph_global_info): New functions.
15318 * cgraph.h (struct cgraph_local_info, cgraph_global_info): New
15319 structures.
15320 (cgraph_local_info, cgraph_global_info, cgraph_global_info_ready):
15321 Declare.
15322 * cgraphunit.c (cgraph_finalize_function): Set inline_many.
15323 (cgraph_mark_functions_to_output): Use inline_many.
15324 (cgraph_expand_function): Free DECL_SAVED_TREE uncondtionally.
15325 (cgraph_expand_functions): Expand inline functions last.
15326 (cgraph_optimize): Do not emit uneeded functions.
15327
006c9f4a
SE
153282003-03-04 Steve Ellcey <sje@cup.hp.com>
15329
15330 * expr.c (convert_modes): Check for legal hard register.
15331
65ebbf81
TT
153322003-03-04 Tom Tromey <tromey@redhat.com>
15333
15334 * doc/sourcebuild.texi (Front End Directory): Document tags.
15335 * configure: Rebuilt.
15336 * configure.in (target_list): Added tags.
15337 * Makefile.in (TAGS): Depend on lang.clean. Include subdirectory
15338 TAGS files by reference.
15339 * objc/Make-lang.in (objc.tags): New target.
15340
ec4a0419
ZD
153412003-03-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15342
15343 * gcov-io.h (gcov_save_position, gcov_reserve_length, gcov_resync,
15344 gcov_skip, gcov_skip_string, gcov_write_unsigned, gcov_write_counter,
15345 gcov_write_string, gcov_read_unsigned, gcov_read_counter,
15346 gcov_read_string, gcov_write_length): Modified to enable reading/
15347 writing of whole .da file just once.
15348 (da_file_open, da_file_close, da_file_eof, da_file_error,
15349 da_file_position, da_file_seek, da_file_write, da_file_read): New
15350 functions.
15351 (actual_da_file, actual_da_file_position, actual_da_file_length,
15352 actual_da_file_buffer, actual_da_file_buffer_size): New static
15353 functions.
15354 * libgcov.c (gcov_exit): Modified to read/write the whole .da file at
15355 just once.
15356
15357
79dbeefc
AS
153582003-03-04 Andreas Schwab <schwab@suse.de>
15359
15360 * config/m68k/m68k.c (m68k_output_function_prologue): Fix CFA
15361 offset without frame pointer.
15362
3ac1a319
SE
153632003-03-04 Steve Ellcey <sje@cup.hp.com>
15364
15365 * expr.c (expand_expr): Call promote_mode to set unsignedp.
15366
db720d9a
DJ
153672003-03-04 Daniel Jacobowitz <drow@mvista.com>
15368
15369 * configure.in: Don't always define TARGET_SYSTEM_ROOT.
15370 * configure: Regenerated.
15371 * gcc.c: Check whether TARGET_SYSTEM_ROOT is defined.
15372
9a79ab7e
AJ
153732003-03-04 Andreas Jaeger <aj@suse.de>
15374
15375 * configure.in: Check for <memcheck.h>.
52999738 15376 * configure: Regenerated.
9a79ab7e
AJ
15377
15378 * config.in: Define HAVE_MEMCHECK_H.
15379
15380 * ggc-common.c: Use <memcheck.h> if available instead of
15381 <valgrind.h>.
15382 * ggc-page.c: Likewise.
15383 * cppfiles.c: Likewise.
15384
a8f0e848
KH
153852003-03-04 Kazu Hirata <kazu@cs.umass.edu>
15386
15387 * config/h8300/h8300.md (*extzv_8_8): Fix cc and lengths.
15388
2ad1815d
EB
153892003-03-04 Eric Botcazou <ebotcazou@libertysurf.fr>
15390
15391 PR c/9262
15392 * c-typeck.c (do_case): Attach the first case label to the SWITCH_BODY.
15393 (c_finish_case): Rechain the next statements to the SWITCH_STMT.
15394
62c9aa5f 153952003-03-04 Jan Hubicka <jh@suse.cz>
e2483ef7
JH
15396
15397 * doc/invoke.texi: Document that unit-at-a-time is enabled for -O3
15398 * toplev.c (parse_options_and_default_flags): Enable flag_unit_at_a_time
15399 for -O3.
15400
34a86c2b
NN
154012003-03-04 Nathanael Nerode <neroden@gcc.gnu.org>
15402
15403 * configure.in: Delete three unused variables. Move a variable
15404 definition closer to its use. Simplify use_collect2 logic. Start to
15405 organize. Simplify tests for in-tree gas and ld.
15406 * configure: Regenerate.
15407
63973df3
NB
154082003-03-04 Neil Booth <neil@daikokuya.co.uk>
15409
15410 * Makefile.in: Update.
15411 * c-common.c (flag_no_line_commands, flag_no_output,
15412 flag_dump_macros, flag_dump_includes): New.
15413 * c-common.h (flag_no_line_commands, flag_no_output,
15414 flag_dump_macros, flag_dump_includes, preprocess_file): New.
15415 (init_c_lex): Update prototype.
15416 * c-lex.c (init_c_lex): Update prototype; move some code to
15417 c_common_init.
15418 * c-opts.c (preprocess_file): Subsume into c_common_init.
15419 (c_common_decode_option): Update flags.
15420 (c_common_init): Move code from preprocess_file and init_c_lex.
15421 (sanitize_cpp_opts): Update.
15422 * c-ppoutput.c: New, cppmain.c almost verbatim.
15423 * cpphash.h (struct printer): Remove.
15424 (struct cpp_reader): Remove print.
15425 * cpplib.h (dump_none, dump_only, dump_names, dump_definitions,
15426 cpp_preprocess_file): Remove.
15427 (struct cpp_options): Remove no_output, no_line_commands, dump_macros
15428 and dump_includes.
15429 * cppmain.c: Remove.
15430 * doc/passes.texi: Update.
15431
95f3f59e
JDA
154322003-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15433
15434 * function.c (STACK_ALIGNMENT_NEEDED): New macro. Default to 1.
15435 (assign_stack_local_1): Perform overall stack alignment only when
6356f892 15436 STACK_ALIGNMENT_NEEDED is nonzero.
95f3f59e
JDA
15437 * doc/tm.texi (STACK_ALIGNMENT_NEEDED): Document.
15438
15439 * pa.c (compute_frame_size): Rename fsize to size. Account for
15440 alignment to a word boundary before general register save block. Only
15441 account for double-word alignment before floating point register save
15442 block if one or more are saved. Don't allocate space for %r3 when
15443 frame pointer is needed.
15444 (hppa_expand_prologue): Include alignment to word boundary in local
15445 frame size.
15446 * pa.h (STARTING_FRAME_OFFSET): Define to 8 on both 32 and 64-bit ports.
15447 (STACK_ALIGNMENT_NEEDED): Define.
15448
234c071b
KB
154492003-03-04 Kevin Buettner <kevinb@redhat.com>
15450
15451 * dwarf2out.c (rtl_for_decl_location): Don't return NULL_RTX for
15452 global register variables.
15453
f12448c8
AO
154542003-03-04 Alexandre Oliva <aoliva@redhat.com>
15455
15456 * reload.c (reload_adjust_reg_for_mode): New function.
15457 (subst_reloads): Call it.
15458 (operands_match_p): Adjust registers using HARD_REGNO_NREGS.
15459 * reload.h (reload_adjust_reg_for_mode): Declare.
15460 * reload1.c (emit_input_reload_insns, emit_output_reload_insns):
15461 Call it.
15462
f9d36a92
JW
154632003-03-03 James E Wilson <wilson@tuliptree.org>
15464
15465 * optabs.c (add_equal_note): Delete SUBREG_REG use.
15466 Fixes PR c/7872.
15467
8dfb356f
KH
154682003-03-03 Kazu Hirata <kazu@cs.umass.edu>
15469
15470 * config/h8300/h8300.md (*ixorsi3_ashift_16): New.
15471 (*ixorsi3_lshiftrt_16): New.
15472 (*iorsi3_ashift_16): Remove.
15473
0d9bf032
KH
154742003-03-03 Kazu Hirata <kazu@cs.umass.edu>
15475
15476 * config/h8300/h8300.md (*extzv_8_8): Use '?' to simplify the
15477 pattern.
15478
b89a3806
GK
154792003-03-03 Geoffrey Keating <geoffk@apple.com>
15480
15481 * doc/install.texi (Specific): Update entry for powerpc-darwin.
15482
568d661d
RH
154832003-03-03 Richard Henderson <rth@redhat.com>
15484
15485 * config/ia64/ia64.h (HAVE_AS_LTOFFX_LDXMOV_RELOCS): Default to 0.
15486
3317bab1
DE
154872003-03-03 David Edelsohn <edelsohn@gnu.org>
15488
15489 * config/rs6000/rs6000.c (rs6000_multipass_dfa_lookahead): Delete.
15490 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Delete.
15491 (rs6000_variable_issue): Do not return negative value.
15492 (rs6000_issue_rate): Uniformly set issue rate to 1 for first
15493 scheduling pass.
15494
03275f81
ZD
154952003-03-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15496
15497 * dwarf2out.c (dwarf2out_finish): Swap order of break_out_includes and
15498 prune_unused_types calls.
15499
d1a74aa7
JM
155002003-03-03 Jason Merrill <jason@redhat.com>
15501
15502 * tree-inline.c (find_builtin_longjmp_call): Save and restore
15503 lineno and input_filename.
15504 (find_alloca_call): Likewise.
15505 (inlinable_function_p): Run the langhook earlier.
15506
15507 * calls.c (compute_argument_addresses): Give the new MEMs a
15508 minimum alignment of PARM_BOUNDARY.
15509
62c9aa5f 155102003-03-03 J"orn Rennecke <joern.rennecke@superh.com>
d44cc404
R
15511
15512 * config/sh/sh.h (EXTRA_SPECS): Add subtarget_asm_relax_spec and
15513 subtarget_asm_isa_spec.
15514 (SUBTARGET_ASM_RELAX_SPEC, SUBTARGET_ASM_ISA_SPEC): Define.
15515 (ASM_SPEC): Define as SH_ASM_SPEC.
15516 (SH_ASM_SPEC): New; take the role of ASM_SPEC, but safe from svr4.h.
15517 Use subtarget_asm_relax_spec and subtarget_asm_isa_spec.
15518 * config/sh/elf.h (ASM_SPEC): Use SH_ASM_SPEC.
15519 (SUBTARGET_ASM_ISA_SPEC): Undef / define.
10f4f635
R
15520
15521 * sh.h (OVERRIDE_OPTIONS): Set default values for align_loops
15522 and align_jumps if not set.
15523 Force align_jumps to be at least 2.
15524 When relaxing, force align_functions to be at least the maximum of
15525 align_loops, align_jumps and 4.
15526 * sh.c (find_barrier, barrier_align): Honour align_jumps_log.
15527 (sh_loop_align): Honour align_loops_log.
15528
15529 * sh.md (length attribute): Use prev_nonnote_insn instead of PREV_INSN
15530 to check for indirect_jump_scratch.
15531 (indirect_jump_scratch): Add second set.
15532 * sh.c (output_far_jump): Use prev_nonnote_insn instead of PREV_INSN
15533 when looking for indirect_jump_scratch.
15534 Extract scratch register taking new structure of indirect_jump_scratch
15535 into account.
15536 (gen_block_redirect): Set INSN_SCOPE for indirect_jump_scratch.
15537
62c9aa5f 155382003-03-03 Jan Hubicka <jh@suse.cz>
f7da1e9a 15539
09e2bf48
JH
15540 * calls.c (rtx_for_function_call): Take the address as an argument
15541 (expand_call): Do not modify the expression.
15542
f7da1e9a
JH
15543 * toplev.c (rest_of_compilation): Avoid cfg_cleanup calls when not
15544 optimizing.
15545
426ace7f
KH
155462003-03-03 Kazu Hirata <kazu@cs.umass.edu>
15547
15548 * config/h8300/h8300.md (*ixorsi3_zext_hi): Restrict to
15549 TARGET_H8300H and TARGET_H8300S.
15550
6967a126
KH
155512003-03-03 Kazu Hirata <kazu@cs.umass.edu>
15552
15553 * config/h8300/h8300.md (a peephole2): New.
15554
1f7e8790
KH
155552003-03-03 Kazu Hirata <kazu@cs.umass.edu>
15556
15557 * config/h8300/h8300.md (*extzv_8_8): Use shorter code when
15558 operands[0] and operands[1] are different.
15559
155602003-03-03 Kazu Hirata <kazu@cs.umass.edu>
2807791e
KH
15561
15562 * reload1.c (reload_cse_move2add): Remove variable success.
15563
a2581175
KG
155642003-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15565
15566 * ggc-common.c (ggc_rlimit_bound): Cast RLIM_INFINITY to avoid
15567 warnings.
15568
ef1ecf87
RH
155692003-03-02 Richard Henderson <rth@redhat.com>
15570
15571 * configure.in (HAVE_AS_LTOFFX_LDXMOV_RELOCS): New ia64 test.
15572 * config.in, configure: Rebuild.
15573 * config/ia64/ia64.c (ia64_ld_address_bypass_p): Accept lo_sum.
9a79ab7e 15574 * config/ia64/ia64.md (load_symptr): Use high/lo_sum for the
ef1ecf87
RH
15575 paired ldtoffx and ldxmov annotations.
15576 (load_symptr_internal1): Remove.
15577 (load_symptr_high, load_symptr_low): New.
15578
82f6e3eb
NB
155792003-03-02 Neil Booth <neil@daikokuya.co.uk>
15580
15581 * c-incpath.c (add_path): Fix sysp assignment.
15582
bc522472
KG
155832003-03-02 Kurt Garloff <garloff@suse.de>
15584
15585 * params.def: Introduce parameter max-inline-insns-rtl for
15586 a separate limit for the RTL inliner.
15587 * params.h: Likewise.
15588 * integrate.c (function_cannot_inline_p): Use it.
9a79ab7e 15589 * toplev.c (decode_f_option): Set multiple parameters
bc522472
KG
15590 controlling inlining with -finline-limit.
15591 * params.def: Fix orthographic and typographic errors.
15592 * doc/invoke.texi: Document parameters controlling inlining
15593 and the way -finline-limit sets multiple of them.
15594
15595 * tree.h (struct tree_decl): Introduce inlined_function_flag,
15596 recording whether the function became eligible for inlining
15597 by a compiler flag rather than the declaration.
15598 Provide DID_INLINE_FUNC macro to access it.
15599 * c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
15600 * cp/decl.c (grokfndecl): Likewise.
15601 * toplev.c (rest_of_compilation): Likewise.
15602 * cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
15603 * print-tree.c (print_node): Report it.
15604 * params.def: Introduce new max-inline-insns-auto limit.
15605 * params.h: Likewise.
15606 * tree-inline.c (inlinable_function_p): Apply it to functions
15607 with DID_INLINE_FUNC set.
15608 * toplev.c (decode_f_option): Initialize it from -finline-limit
15609 value.
15610 * doc/invoke.texi: Document new parameter.
15611
b9f4b20a
GK
156122003-03-02 Geoffrey Keating <geoffk@apple.com>
15613
15614 * fix-header.c (read_scan_file): Don't reference simplify_path.
15615
97d322cc
SC
156162003-03-02 Stephane Carrez <stcarrez@nerim.fr>
15617
15618 * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't enable
15619 min/max instructions by default as may result in reload errors.
15620
65fb64fe
SC
156212003-03-02 Stephane Carrez <stcarrez@nerim.fr>
15622
15623 * config/m68hc11/m68hc11.md ("mulqi3"): Allow address register to
15624 avoid reload problems; define split for it.
15625
b45e9837
SC
156262003-03-02 Stephane Carrez <stcarrez@nerim.fr>
15627
15628 * config/m68hc11/m68hc11.c (m68hc11_shift_operator): New function.
15629 * config/m68hc11/m68hc11-protos.h (m68hc11_shift_operator): Declare.
15630 * config/m68hc11/m68hc11.h (PREDICATE_CODES): Register.
9a79ab7e 15631 * config/m68hc11/m68hc11.md ("rotrhi3", "rotlhi3"): New patterns for
b45e9837
SC
15632 rotatert and rotate.
15633 ("rotrhi3_const", "rotlhi3_const"): Rename of old 'rotrhi3' insns.
15634 ("*rotrhi3", "*rotlhi3"): New insn pattern for non-const rotatert.
15635 ("*rotrhi3_addr"): New split for shift insns on address register.
15636 ("*lshrhi3", "*ashrhi3", "*ashlhi3_2"): Use new split.
15637 * config/m68hc11/larith.asm (___rotlhi3): New asm function.
15638 (___rotrhi3): Likewise.
15639 * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build them.
15640
b1cbe78c
NB
156412003-03-02 Neil Booth <neil@daikokuya.co.uk>
15642
15643 * toplev.c (aux_base_name): Moved from toplev.h.
15644 (filename): Constify.
15645 (lang_dependent_init): Don't duplicate name.
15646 (process_options): Set aux_base_name here, not...
15647 (do_compile): ...here. Change protoype.
15648 (toplev_main): Move some code from do_compile.
15649 * toplev.h: Remove aux_base_name.
15650
b059c02a
KH
156512003-03-02 Kazu Hirata <kazu@cs.umass.edu>
15652
15653 * config/h8300/h8300-protos.h: Add a prototype for
15654 iorxor_operator.
15655 * config/h8300/h8300.c (print_operand): Handle 'c'.
15656 (iorxor_operator): New.
15657 * config/h8300/h8300.h (PREDICATE_CODES): Add iorxor_operator.
15658 * config/h8300/h8300.md (*iorhi3_zext): Remove.
15659 (*iorsi3_zexthi): Likewise.
15660 (*iorsi3_zextsi): Likewise.
15661 (*xorhi3_zextqi): Likewise.
15662 (*xorsi3_zexthi): Likewise.
15663 (*xorsi3_zextsi): Likewise.
15664 (*ixorhi3_zext): New.
15665 (*ixorsi3_zext_qi): Likewise.
15666 (*ixorsi3_zext_hi): Likewise.
15667
986b1f13
NB
156682003-03-02 Neil Booth <neil@daikokuya.co.uk>
15669
15670 * c-incpath.c (remove_component_p, simplify_path): Move back to
15671 cppfiles.c.
15672 (remove_duplicates): Use cpp_simplify_path.
15673 * c-incpath.h (simplify_path): Remove.
15674 * c-lex.c: Don't include c-incpath.h.
15675 (init_c_lex): Remove simplify_path.
15676 * cppfiles.c (remove_component_p, cpp_simplify_path): Restore.
15677 (find_or_create_entry, validate_pch): Revert.
15678
8a035a6b
AH
156792003-03-02 Ashif Harji <asharji@uwaterloo.ca>
15680
15681 * gcc.c (default_compilers): Add -no-integrated-cpp flag to invoke
15682 an external cpp during compilation.
15683 (option_map): Likewise.
15684 * objc/lang-specs.h (default_compilers): Similarly.
15685 * doc/invoke.texi: Document -no-integrated-cpp flag.
15686
23cdb465
KH
156872003-03-02 Kazu Hirata <kazu@cs.umass.edu>
15688
15689 * config/h8300/h8300.md (zero_extendqisi2): Change to an
15690 expander.
15691 (*zero_extendqisi2_h8300): New.
15692 (*zero_extendqisi2_h8300hs): New.
15693 (two splitters): New.
15694
29efb633
KG
156952003-03-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15696
15697 * fp-bit.h (float_to_usi): Fix condition wrapping prototype.
15698
36bf3f1b
KH
156992003-03-01 Kazu Hirata <kazu@cs.umass.edu>
15700
15701 * config/h8300/h8300.md (a peephole2): Remove dead code.
15702
08291658
RS
157032003-03-01 Roger Sayle <roger@eyesopen.com>
15704
15705 PR c++/9367
15706 * builtin-types.def (DEF_FUNCTION_TYPE_VAR_3): New macro.
15707 (BT_FN_INT_CONST_STRING_VALIST_ARG,
15708 BT_FN_INT_STRING_CONST_STRING_VALIST_ARG,
15709 BT_FN_INT_CONST_STRING_CONST_STRING_VALIST_ARG,
15710 BT_FN_INT_STRING_SIZE_CONST_STRING_VALIST_ARG,
15711 BT_FN_INT_STRING_CONST_STRING_VAR,
15712 BT_FN_INT_CONST_STRING_CONST_STRING_VAR,
15713 BT_FN_INT_STRING_SIZE_CONST_STRING_VAR): New built-in types.
15714 * builtin-attrs.def (ATTR_NONNULL_1, ATTR_NONNULL_2,
15715 ATTR_NONNULL_3): Also include the nothrow attribute.
15716 (sprintf, scanf, sscanf, vprintf, vsprintf, snprintf,
15717 vsnprintf, vscanf, vsscanf): Don't define attributes here.
15718 * builtins.def (putchar, puts): Make full C89 built-ins.
15719 (snprintf, sprintf, scanf, sscanf, vprintf, vscanf,
15720 vsscanf, vsnprintf, vsprintf): New built-ins.
15721 * c-common.c (c_common_nodes_and_builtins): Handle new macro
15722 DEF_FUNCTION_TYPE_VAR_3.
15723
15724 * doc/extend.texi: Document these new built-in functions.
15725
e5258f85
KH
157262003-03-01 Kazu Hirata <kazu@cs.umass.edu>
15727
15728 * config/h8300/h8300.md (a peephole2): New.
15729
85bb9c2a
RE
157302003-03-01 Richard Earnshaw <rearnsha@arm.com>
15731
15732 * predict.c (estimate_bb_frequencies): Correctly set
15733 real_values_initialized after initialization.
15734
5793b276
NB
157352003-03-01 Neil Booth <neil@daikokuya.co.uk>
15736
15737 * Makefile.in (C_AND_OBJC_OBJS, c-incpath.o, c-lex.o, LIBCPP_OBJS,
15738 cppinit.o, cppdefault.o, fix-header): Update.
15739 * c-incpath.c: New file.
15740 * c-incpath.h: New file.
15741 * c-lex.c: Include c-incpath.h.
15742 (init_c_lex): Register path simplifier.
15743 * c-opts.c: Include cppdefault.h and c-incpath.h.
15744 (TARGET_SYSTEM_ROOT, verbose, iprefix, sysroot, std_inc,
15745 std_cxx_inc, quote_chain_split, add_prefixed_path): New.
15746 (COMMAND_LINE_OPTIONS): Add more options from cpplib.
15747 (missing_arg, c_common_decode_option): Handle them.
15748 (c_common_post_options): Register include chains.
15749 (print_help): Update.
15750 * cppdefault.h (struct default include): Update.
15751 Move some macros to ...
15752 * cppdefault.c: ... here.
15753 (cpp_include_defaults): Add extra field add_sysroot.
15754 * cppfiles.c (include_file, search_from, find_or_create_entry,
15755 cpp_included, find_include_file, remap_filename): Update for
15756 renaming of search_path to cpp_path, and of the chain headers.
15757 (remove_component_p, _cpp_simplify_pathname): Move to c-incpath.c.
15758 * cpphash.h (struct search_path): Move to cpplib.h.
15759 (struct cpp_buffer, struct cpp_reader): Update.
15760 (_cpp_simplify_pathname): Remove.
15761 * cppinit.c: Don't include prefix.h and cppdefault.h.
15762 (INO_T_EQ, INO_T_COPY, path_include, append_include_chain,
15763 remove_dup_dir, remove_dup_nonsys_dirs, remove_dup_dirs,
15764 init_standard_includes, BRACKET, SYSTEM, AFTER, no_dir,
15765 no_pth, cpp_handle_options): Remove.
15766 (struct pending_option): Remove chain members.
15767 (cpp_destroy, cpp_read_main_file, COMMAND_LINE_OPTIONS,
15768 cpp_handle_option): Update.
15769 * cpplib.h (struct cpp_path, cpp_set_include_chains): New.
15770 (struct cpp_options): Remove quote_include, bracket_include,
15771 include_prefix, include_prefix_len, verbose, ignore_srcdir,
15772 no_standard_includes, no_standard_cplusplus_includes.
15773 (struct cpp_callbacks): Add simplify_path.
15774 (cpp_handle_options): Remove.
15775 * fix-header.c: Include c-incpath.h.
15776 (read_scan_file): Update to use c-incpath functionality.
15777 * doc/passes.texi: Update.
15778
6620997b
KH
157792003-03-01 Kazu Hirata <kazu@cs.umass.edu>
15780
15781 * config/h8300/h8300.c (bit_operand): Accept MEM only if it
15782 satisfies EXTRA_CONSTRAINT 'U'.
15783
82b4dc2e
KH
157842003-03-01 Kazu Hirata <kazu@cs.umass.edu>
15785
15786 * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Take a scratch
15787 register.
15788 (*tst_extzv_memqi_1_n): Change to a splitter.
15789 (a peephole2): Update.
15790
c4f6b78e
RE
157912003-03-01 Richard Earnshaw <rearnsha@arm.com>
15792
15793 * predict.c (estimate_bb_frequencies): Initialize the sreal
15794 constants once per compilation.
15795
9552a3e3
RH
157962003-02-28 Richard Henderson <rth@redhat.com>
15797
15798 * toplev.c (flag_eliminate_unused_debug_types): Enable by default.
15799
73c68f61
SS
158002003-02-28 scott snyder <snyder@fnal.gov>
15801
15802 * flags.h: Add flag_eliminate_unused_debug_types.
15803 * toplev.c: Add flag_eliminate_unused_debug_types.
15804 (f_options): Add -feliminate-unused-debug-types.
15805 * dwarf2out.c (struct file_table): Add emitted member.
15806 (splice_child_die): Fix the parent pointer for the child being
15807 spliced.
15808 (lookup_filename): Maintain file_table.emitted array. Don't
15809 output .file directive here.
15810 (maybe_emit_file): (new)
15811 (init_file_table): Set up file_table.emitted.
15812 (dwarf2out_source_line): Use maybe_emit_file.
15813 (dwarf2out_start_source_file): Use maybe_emit_file.
15814 (dwarf2out_init): Use maybe_emit_file.
15815 (prune_unused_types_walk_attribs): (new)
15816 (prune_unused_types_mark): (new)
15817 (prune_unused_types_walk): (new)
15818 (prune_unused_types_prune): (new)
15819 (prune_unused_types): (new)
15820 (dwarf2out_finish): Call prune_unused_types if
15821 flag_eliminate_unused_debug_types is set.
15822 * doc/invoke.texi (Option Summary): Add
15823 -feliminate-unused-debug-types.
15824 (Debugging Options): Likewise.
15825
d8fad4ea
GK
158262003-02-28 Geoffrey Keating <geoffk@apple.com>
15827
15828 * doc/invoke.texi: Change .pch to .gch.
15829 * cppfiles.c (open_file_pch): Likewise.
15830 * gcc.c (default_compilers): Likewise.
15831
9855905c
AH
158322003-02-28 Aldy Hernandez <aldyh@redhat.com>
15833
52999738 15834 * floatlib.c: Remove.
9855905c 15835
3695c25f
JM
158362003-02-28 Jason Merrill <jason@redhat.com>
15837
15838 * stor-layout.c (variable_size): Leave a "minus 1" outside the
15839 SAVE_EXPR.
15840
f8f0e566
DE
158412003-02-28 David Edelsohn <edelsohn@gnu.org>
15842
15843 * config/rs6000/power4.md: Add compare bypass.
15844
35501efe
JT
158452003-02-28 Jason Thorpe <thorpej@wasabisystems.com>
15846
15847 * config/netbsd.h: Update copyright years.
15848 (NETBSD_CPP_SPEC): Define _REENTRANT and _PTHREADS if
15849 -pthread is specified on the command line.
15850
8f7ee471
DJ
158512003-02-28 Dale Johannesen <dalej@apple.com>
15852
52999738 15853 * loop.c (struct movable): Add insert_temp, shrink savemode.
8f7ee471 15854 (scan_loop): Accept invariants that require copying; mark as
52999738 15855 insert_temp.
8f7ee471
DJ
15856 (combine_movables): Don't combine insert_temp movables.
15857 (move_movables): Insert copies for insert_temp movables.
15858 Don't record the info based on regno for insert_temp's.
15859
67c2b45f
JS
158602003-02-28 Joel Sherrill <joel@OARcorp.com>
15861
15862 PR 9638/other
9a79ab7e 15863 * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Ensure the
67c2b45f
JS
15864 this constant defaults to 1.
15865
066f1538
BW
158662003-02-28 Bob Wilson <bob.wilson@acm.org>
15867
15868 * config.gcc (xtensa-*-linux*): Add t-slibgcc-elf-ver to tmake_file.
15869
b8c53e96
RE
158702003-02-28 Richard Earnshaw <rearnsha@arm.com>
15871
9a79ab7e 15872 * arm.md (mulhisi3, mulhisi3addsi, mulhidi3adddi): Enable for any
b8c53e96
RE
15873 ARMv5e processor, not just for XScale. Instructions are predicable.
15874 (mulhisi3tb, mulhisi3bt, mulhisi3tt): New patterns for ARMv5e.
15875
b93828f3
NC
158762003-02-28 Nick Clifton <nickc@redhat.com>
15877
15878 * config/arm/arm.c (note_invalid_constants): Change parameter type
15879 from bool to int.
15880
3c042316
KH
158812003-02-28 Kazu Hirata <kazu@cs.umass.edu>
15882
15883 * config/h8300/h8300.md (*tst_extzv_bitqi_1_n): Accept the
15884 test of bit 7.
15885 (*tst_extzv_memqi_1_n): Likewise.
15886 (a peephole2): New.
15887
c876997f 158882003-02-28 Richard Sandiford <rsandifo@redhat.com>
28727f1f
RS
15889
15890 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Wrap in
15891 #ifndef __mips16.
15892
62c9aa5f 158932003-02-28 Jan Hubicka <jh@suse.cz>
10a3fdd9
JH
15894
15895 * combine.c (gen_lowpart_for_combine): Update handling of
15896 subregs_of_mode
15897 * flow.c (life_analysis, mark_used_regs): Likewise.
15898 * regclass.c (subregs_of_mode): Turn into single bitmap.
15899 (cannot_change-mode_set_regs, invalid_mode_change_p): Update
15900 dealing with subregs_of_mode
15901 * regs.h (subregs_of_mode): Update prototype.
15902
9d18e06b
JZ
159032003-02-28 Josef Zlomek <zlomekj@suse.cz>
15904
15905 * emit-rtl.c (set_reg_attrs_for_parm): New function.
15906 * rtl.h (set_reg_attrs_for_parm): New exported function.
15907 * function.c (assign_parms): Use set_reg_attrs_for_parm instead of
15908 set_reg_attrs_from_mem.
15909
95456d43
RS
159102003-02-27 Roger Sayle <roger@eyesopen.com>
15911 Zack Weinberg <zack@codesourcery.com>
15912
15913 * gcc.c (do_spec_1): Treat %U like %u for unique associations.
15914
28ae9fed
KH
159152003-02-27 Kazu Hirata <kazu@cs.umass.edu>
15916
15917 * reload1.c (sext_for_mode): Remove.
15918 (reload_cse_move2add): Use trunc_int_for_mode instead of
15919 sext_for_mode.
15920 (move2add_note_store): Likewise.
15921 Reset register information if we see a set in non-integer
15922 mode.
15923
d47719fd
DE
159242003-02-27 David Edelsohn <edelsohn@gnu.org>
15925
30e7f17e
DE
15926 * config/rs6000/aix43.h (ASM_SPEC): Only emit -mppc64 if no -mcpu
15927 option.
15928 (ASM_CPU_SPEC): Use -m620 for Power3, Power4, 620, 630.
15929 * config/rs6000/aix51.h: Same.
15930 * config/rs6000/aix52.h: Same.
d47719fd
DE
15931 * config/rs6000/power4.md: Additional VMX bypasses.
15932
7a69a172
GB
159332003-02-27 Geert Bosch <bosch@gnat.com>
15934
15935 * toplev.c (print_version): Add indentation for GGC heuristics and
15936 output after printing version information.
15937
678e68fc
JW
159382003-02-27 James E Wilson <wilson@tuliptree.org>
15939
15940 * combine.c (simplify_comparison): Require integral mode when
15941 permuting SUBREG with AND.
15942
986704f1
SE
159432003-02-27 Steve Ellcey <sje@cup.hp.com>
15944
15945 * config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.
15946
1e3af7f6
NC
159472003-02-27 Nick Clifton <nickc@redhat.com>
15948
15949 * config/arm/arm.md (extendsfdf2): Add pattern accidentally
15950 deleted when cirrus instructions were added.
15951
51b7c247
JT
159522003-02-27 Jason Thorpe <thorpej@wasabisystems.com>
15953
15954 * config.gcc (*-*-netbsd[2-9]*, *-*-netbsdelf[2-9]*): Enable
15955 POSIX thread support by default.
15956
3eae722d
RS
159572003-02-27 Roger Sayle <roger@eyesopen.com>
15958
15959 * config/i386/cygwin.h: Don't include any other files directly.
15960 * config/i386/mingw32.h: Don't include cygwin.h directly.
15961 * config.gcc (cygwin, mingw32, uwin): Instead make these files
15962 explicit in the tm_files variable.
15963
6fc19dc9
AM
159642003-02-27 Alan Modra <amodra@bigpond.net.au>
15965
15966 * config/rs6000/rs6000.md: Add TI constant splitter.
15967
c41536f5
AO
159682003-02-26 Alexandre Oliva <aoliva@redhat.com>
15969
65c04548
AO
15970 * builtins.c (purge_builtin_constant_p): Handle subreg of
15971 constant_p_rtx too.
15972
c41536f5
AO
15973 * function.c (assign_stack_local_1): Truncate constant added to
15974 frame_pointer_rtx or virtual_stack_vars_rtx for Pmode.
15975
dccd5213
DE
159762003-02-26 David Edelsohn <edelsohn@gnu.org>
15977
15978 * config.gcc: Add power4 to PowerPC with_cpu list.
15979
62c9aa5f 159802003-02-26 Jan Hubicka <jh@suse.cz>
47a5d8e7
JH
15981
15982 * objc-act.c: (mark_referenced_methods): Fix compilation problem.
15983
cb9e4555
ZD
159842003-02-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
15985
15986 * gcov-dump.c (print_prefix): Fix signedness warning.
15987 * gcov-io.h (struct counter_section, struct counter_section_data): New.
15988 (struct function_info): n_arc_counts field removed, n_counter_sections,
15989 counter_sections fields added.
15990 (struct gcov_info): arc_counts, n_arc_counts fields removed,
15991 n_counter_sections, counter_sections fields added.
15992 * libgcov.c (gcov_exit, __gcov_flush): Add support for multiple
15993 profile sections.
15994 * profile.h (MAX_COUNTER_SECTIONS): New.
15995 (struct section_info): New.
15996 (struct profile_info): count_instrumented_edges,
15997 count_edges_instrumented_now fields removed, n_sections, section_info
15998 fields added.
15999 (find_counters_section): Declare.
16000 * profile.c (struct function_list): count_edges field removed,
16001 n_counter_sections, counter_sections fields added.
16002 (set_purpose, label_for_tag, build_counter_section_fields,
16003 build_counter_section_value, build_counter_section_data_fields,
16004 build_counter_section_data_value, build_function_info_fields,
16005 build_function_info_value, build_gcov_info_fields,
16006 build_gcov_info_value): New static functions.
16007 (find_counters_section): New function.
16008 (instrument_edges, get_exec_counts, compute_branch_probabilities,
16009 branch_prob, create_profiler): Modified to support multiple profile
16010 sections.
16011
b0d7ef9a
JDA
160122003-02-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16013
16014 * pa.c (compute_frame_size): Don't assume PREFERRED_STACK_BOUNDARY
16015 is 8 * STACK_BOUNDARY.
16016 * pa.h (PREFERRED_STACK_BOUNDARY): Change to 128 on 64-bit port.
16017
f6e91562
MM
160182003-02-26 Michael Matz <matz@suse.de>
16019
16020 * ra-colorize.c (merge_moves): Fix list handling.
16021
f0375c66
NC
160222003-02-26 Nick Clifton <nickc@redhat.com>
16023
16024 * config/arm/arm.c (is_load_address): Rename to...
52999738
ZW
16025 (arm_memory_load_p) ... this and make it check for SUBREGs and
16026 constant loads that will be converted into loads from the
16027 minipool.
16028 (is_cirrus_insn): Rename to ...
16029 (arm_cirrus_insn_p): ... this, for consistency. Replace test
16030 of CIRRUS_NO with CIRRUS_NOT.
16031 (cirrus_reorg): Use renamed functions.
16032 (note_invalid_constants): Change from a void function to bool.
16033 Add an extra parameter, saying whether the fixups should be
16034 pushed. Return true if fixups are needed.
16035 (arm_reorg): Use renamed functions. Use INSN_P. Replace test
16036 of CIRRUS_NO with CIRRUS_NOT.
16037 * config/arm/arm.h (FLOAT_WORDS_BIG_ENDIAN): Mention that
16038 other floating point co-processors can also affect this.
16039 * config/arm/arm.md ("type" attribute): Add mav_farith and
16040 mav_dmult. Replace references to "cirrus_type" attribute with
16041 "type".
16042 * config/arm/cirrus.md ("cirrus_fpu" attribute): Delete.
16043 ("cirrus_type" attribute): Delete - use "type" instead.
16044 ("cirrus" attribute): Replace 'no' with 'not' and 'yes' with
16045 'normal'.
f0375c66 16046
62c9aa5f 160472003-02-25 Jan Hubicka <jh@suse.cz>
0d446150
JH
16048
16049 * objc-act.c: Include cgraph.h
16050 (mark_referenced_methods): New function.
16051 (objc_init): Call it.
16052 * objc-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Set.
16053
16054 * c-decl.c (finish_function): Honor can_defer_p even in unit-at-a-time
16055 mode.
16056
16057 * optabs.c (expand_fix): Do not widen the input operand.
16058
16059 * expr.c (emit_group_store): Fix crash when converting single
16060 register into complex register.
16061
16062 * Makefile.in (jump.o, regclass.o, alias.o): Add dependency on timevar.h
16063 * alias.c: Include timevar.h
16064 (init_alias_analysis): Set timevar
16065 * jump.c: Include timevar.h
16066 (rebuild_jump_labels): Set timevar
16067 * regcalss.c: Include timevar.h
16068 (reg_scan): Set timevar
16069 * timevar.def (TV_ALIAS_ANALYSIS, TV_REG_SCAN, TV_REBUILD_JUMP): New
16070
b17d5d7c
ZD
160712003-02-26 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
16072
16073 * cse.c (count_reg_usage): Fix handling of REG_EQUAL notes.
16074
16075 * Makefile.in (loop-unroll.o): New.
16076 * cfgloop.h (UAP_PEEL, UAP_UNROLL, UAP_UNROLL_ALL): New.
16077 (unroll_and_peel_loops): Declare.
16078 * alias.c (init_alias_analysis): Flag_unroll_loops renamed to
16079 flag_old_unroll_loops.
16080 * loop.c (loop_invariant_p): Ditto.
16081 * unroll.c (unroll_loop): Flag_unroll_all_loops renamed to
16082 flag_old_unroll_all_loops.
16083 * flags.h (flag_unroll_loops): Renamed to flag_old_unroll_loops.
16084 (flag_unroll_all_loops): Renamed to flag_old_unroll_all_loops.
16085 * params.def (PARAM_MAX_UNROLLED_INSNS): Default value changed.
16086 (PARAM_MAX_AVERAGE_UNROLLED_INSNS, PARAM_MAX_UNROLL_TIMES,
16087 PARAM_MAX_PEELED_INSNS, PARAM_MAX_PEEL_TIMES,
16088 PARAM_MAX_COMPLETELY_PEELED_INSNS, PARAM_MAX_COMPLETELY_PEEL_TIMES,
16089 PARAM_MAX_ONCE_PEELED_INSNS): New.
16090 * toplev.h (flag_old_unroll_loops, flag_old_unroll_all_loops): New.
16091 (flag_unroll_loops, flag_unroll_all_loops): Used for new unroller
16092 instead of old one.
16093 (flag_peel_loops): New.
16094 (lang_independent_options): The new flags added.
16095 (rest_of_compilation): Call new unroller.
16096 (process_options): Setup flags for coexistence of old and new unroller.
16097 * doc/invoke.texi: Document new options.
16098 * doc/passes.texi: Document new unroller pass.
16099
244f7aa9
DB
161002003-02-26 David Billinghurst <David.Billinghurst@riotinto.com>
16101
16102 * fixinc/fixincl.x: Regenerate
16103
1d14f992
JZ
161042003-02-26 Josef Zlomek <zlomekj@suse.cz>
16105
16106 * function.c (assign_parms): Set reg_attrs for parameters passed in
16107 registers.
16108
8ace9f18
AM
161092003-02-26 Alan Modra <amodra@bigpond.net.au>
16110
38a84391 16111 PR target/9681
8ace9f18
AM
16112 * tlink.c (scan_linker_output): Drop leading '.' from symbol names.
16113
9a29ee42
DE
161142003-02-25 David Edelsohn <edelsohn@gnu.org>
16115
16116 * config/rs6000/xcoff.h (ASM_FILE_START): Do not emit machine
16117 pseudo-op.
16118
8beccec8
RS
161192003-02-25 Roger Sayle <roger@eyesopen.com>
16120
16121 * combine.c (combine_simplify_rtx, simplfy_comparison): Use CC0_P.
16122 * cse.c (invalidate_skipped_set): Likewise.
16123 * integrate.c (subst_constants): Likewise.
16124 * jump.c (reversed_comparison_code_parts): Likewise.
16125 * loop.c (canonicalize_condition): Likewise.
16126 * simplify-rtx.c (simplify_relational_operation): Likewise.
16127
b052d8ee
RS
161282003-02-25 Roger Sayle <roger@eyesopen.com>
16129
16130 * builtins.def (DEF_LIB_ALWAYS_BUILTIN, DEF_UNUSED_BUILTIN): Delete.
16131 (abs, labs, fabs, fabsf, fabsl, abort, exit, _exit, _Exit): Use
16132 the appropriate macro to define built-in function.
16133 (fmod,fmodf,fmodl): New built-in functions.
16134
16135 * doc/extend.texi (fmod,fmodf,fmodl): Document new built-ins.
16136
8d454008
RH
161372003-02-25 Richard Henderson <rth@redhat.com>
16138
16139 * config/i386/i386.c (function_arg): Pass variable sized
16140 structures correctly on the stack.
16141
fc943f55
KH
161422003-02-25 Kazu Hirata <kazu@cs.umass.edu>
16143
16144 * reload1.c (reload_cse_move2add): Use STRICT_LOW_PART if PLUS
16145 does not reduce the cost of SET.
16146
14f00213
FS
161472003-02-25 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
16148
16149 PR target/9732
16150 * config/rs6000/rs6000.c (first_reg_to_save): Handle
16151 PIC_OFFSET_TABLE_REGNUM for -fPIC too.
16152 (rs6000_emit_prologue): Likewise.
16153 (rs6000_emit_epilogue): Likewise.
16154 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Make
16155 PIC_OFFSET_TABLE_REGNUM a fixed register for -fPIC.
16156
8164b171
RH
161572003-02-25 Richard Henderson <rth@redhat.com>
16158
16159 * real.c (real_to_integer2): Force overflow result only for
16160 unsigned overflow.
16161
9e48c409
KH
161622003-02-25 Kazu Hirata <kazu@cs.umass.edu>
16163
16164 * gcse.c (cprop_jump): Revert the 2003-02-23 change.
16165
3044064c 161662003-02-25 Vladimir Makarov <vmakarov@toke.toronto.redhat.com>
52999738 16167 Richard Henderson <rth@redhat.com>
3044064c
VM
16168
16169 * sched-ebb.c (add_deps_for_risky_insns): Add the dependence when
4e21585b 16170 there is no similar load.
3044064c 16171
15aab9c0 161722003-02-25 Vladimir Makarov <vmakarov@redhat.com>
52999738 16173 Richard Henderson <rth@redhat.com>
15aab9c0
VM
16174
16175 * sched-int.h (INSN_TRAP_CLASS, WORST_CLASS): Move them from
16176 sched-rgn.c.
16177 (add_forward_dependence): New function prototype.
16178
16179 * sched-rgn.c (INSN_TRAP_CLASS, WORST_CLASS): Move them to
16180 sched-init.h.
16181 (CONST_BASED_ADDRESS_P, may_trap_exp, haifa_classify_insn): Move
16182 them to haifa-sched.c.
16183
16184 * haifa-sched.c (CONST_BASED_ADDRESS_P, may_trap_exp,
16185 haifa_classify_insn): Move them from sched-rgn.c.
16186
16187 * sched-deps.c (add_dependence): Return flag of creating a new
16188 entry.
16189 (add_forward_dependence): New function.
16190 (compute_forward_dependences): Use the function.
9a79ab7e 16191
15aab9c0
VM
16192 * sched-ebb.c (earliest_block_with_similiar_load): New function.
16193 (add_deps_for_risky_insns): New function.
16194 (schedule_ebb): Call the function.
16195
161962003-02-20 Aldy Hernandez <aldyh@redhat.com>
c8e4f0e9 16197
52999738
ZW
16198 * doc/tm.texi: Document Rename TARGET_VECTOR_TYPES_COMPATIBLE to
16199 TARGET_VECTOR_OPAQUE_P. Document accordingly.
c8e4f0e9 16200
52999738
ZW
16201 * testsuite/gcc.dg/20030218-1.c: Check that initialization of
16202 opaque types fail.
c8e4f0e9 16203
52999738
ZW
16204 * c-typeck.c (comptypes): Change call to vector_types_compatible
16205 to vector_opaque_p.
16206 (convert_for_assignment): Call vector_opaque_p instead of
16207 vector_types_compatible.
16208 (really_start_incremental_init): Disallow initialization of opaque
16209 types.
c8e4f0e9 16210
52999738
ZW
16211 * target-def.h: Remove TARGET_VECTOR_TYPES_COMPATIBLE.
16212 Define TARGET_VECTOR_OPAQUE_P.
16213 (TARGET_INITIALIZER): Same.
c8e4f0e9 16214
52999738
ZW
16215 * target.h (struct gcc_target): Remove vector_types_compatible.
16216 Add vector_opaque_p.
c8e4f0e9 16217
52999738
ZW
16218 * config/rs6000/rs6000.c (rs6000_spe_vector_types_compatible):
16219 Remove.
16220 (is_ev64_opaque_type): Check for TARGET_SPE and make sure type is
16221 a vector type. Change return type to bool.
16222 (TARGET_VECTOR_TYPES_COMPATIBLE): Remove.
16223 (TARGET_VECTOR_OPAQUE_P): Define.
c8e4f0e9 16224
52999738
ZW
16225 * cp/parser.c (cp_parser_init_declarator): Call vector_opaque_p
16226 target hook.
16227 Include target.h.
16228 (cp_parser_init_declarator): Fix typo in function comments.
c8e4f0e9 16229
62c9aa5f 162302003-02-25 Jan Hubicka <jh@suse.cz>
fa1a0d02
JH
16231
16232 * Makefile.in (lcm.o): Add dependency on function.h
16233 * lcm.c (function.h): Include.
16234 * i386.c (machine_function, ix86_stack_locals,
16235 * ix86_save_varrargs_registers) : Move to
16236 ...
16237 * i386.h (machine_function, ix86_stack_locals,
16238 ix86_save_varrargs_registers): ... here; add optimize_mode_switching
16239 (ix86_optimize_mode_switching): New.
16240 * i386.md (fix patterns): Set ix86_optimize_mode_switching
16241
b103bfef
NC
162422003-02-25 Nick Clifton <nickc@redhat.com>
16243
16244 * config/d30v/d30v.c (d30v_init_cumulative_args): Fix typo. Name
16245 of fourth arg is 'fndecl' not 'indirect'. Update comment
16246 describing the function's parameters.
16247
62c9aa5f 162482003-02-24 Jan Hubicka <jh@suse.cz>
2d21f7d6
JH
16249
16250 * combine.c (simplify_shift_const): Fix previous patch.
16251
2bac97f7
JL
162522003-02-24 Jeff Law <law@redhat.com>
16253
16254 * i386.md (testdi_1_rex64): Discourage reload from using the %eax
16255 alternative.
16256 (testsi_1, testhi_1, testqi_1): Likewise.
16257
f8dc212b
RO
162582003-02-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16259
16260 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Rename
16261 __EXTERN_PREFIX to __PRAGMA_EXTERN_PREFIX.
16262 * doc/extend.texi (Tru64 Pragmas): Reflect this.
16263
16264 * fixinc/inclhack.def (alpha___extern_prefix): Indicate #pragma
9a79ab7e 16265 extern_prefix support for Tru64 UNIX V5 <sys/stat.h>.
f8dc212b
RO
16266 * fixinc/fixincl.x: Regenerate.
16267 * fixinc/tests/base/sys/stat.h [ALPHA___EXTERN_PREFIX_CHECK]: New
16268 testcase.
16269 Fixes PR c/5059, c/6126, other/9671.
9a79ab7e 16270
44ee6e9e
RS
162712003-02-24 Roger Sayle <roger@eyesopen.com>
16272
16273 * gcc.c (do_spec_1) ['{']: Handle pending argument upon return
16274 from handle_braces in "%{...}".
16275
463f02cd
KK
162762003-02-24 Kaz Kojima <kkojima@gcc.gnu.org>
16277
16278 * config/sh/sh.c (TARGET_HAVE_TLS): Conditionally define.
16279 (prepare_move_operands): Handle TLS operands.
16280 (tls_symbolic_operand): New.
16281 (nonpic_symbol_mentioned_p): Handle TLS UNSPECs.
16282 (legitimize_pic_address): Do nothing for the TLS symbol.
16283 (sh_encode_section_info): Handle TLS case.
16284 (sh_strip_name_encoding): Drop TLS encoding.
16285 * config/sh/sh-protos.h (tls_symbolic_operand): Add prototype.
16286 * config/sh/sh.h (SH_TLS_ENCODING): Define.
16287 (TLS_SYMNAME_P, STRIP_TLS_ENCODING): Likewise.
16288 (ASM_OUTPUT_LABELREF): Drop TLS encoding.
16289 (OUTPUT_ADDR_CONST_EXTRA): Handle TLS UNSPECs.
16290 * config/sh/sh.md: Define TLS UNSPEC constants.
16291 (type): Add tls_load.
16292 ("tls_global_dynamic", "tls_local_dynamic"): New insns.
16293 ("sym2DTPOFF", "symDTPOFF2reg", "sym2GOTTPOFF"): New expanders.
16294 ("tls_initial_exec"): New insn.
16295 ("sym2TPOFF", "symTPOFF2reg"): New expanders.
16296 ("load_gbr"): New insn.
16297
16298 * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
52999738 16299 * configure: Regenerate.
463f02cd 16300
8403445a
AM
163012003-02-24 Alan Modra <amodra@bigpond.net.au>
16302
6fc19dc9 16303 PR 9297, PR 9722
8403445a
AM
16304 * calls.c (store_one_arg): Revert 1999-02-16 change. Revert
16305 2000-12-17 change. Pass EXPAND_STACK_PARM to expand_expr.
16306 * expr.h (enum expand_modifier): Define EXPAND_STACK_PARM.
16307 (enum block_op_methods): Reorder for better store_expr optimization.
16308 * expr.c (store_expr): Test bit 1 of "want_value" for call param
16309 stores, test bit 0 for original want_value meaning. Pass
16310 BLOCK_OP_CALL_PARM to emit_block_move when bit 1 set. Adjust
16311 recursive calls, and calls to expand_param.
16312 (expand_expr): Handle EXPAND_STACK_PARM modifier. When cse
16313 expected, set target to 0 rather than to subtarget. Formatting.
16314
ef906381
KH
163152003-02-23 Kazu Hirata <kazu@cs.umass.edu>
16316
16317 * gcse.c (cprop_jump): Use the REG_EQUAL note if available.
16318
16226f1e
KG
163192003-02-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16320
16321 * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Document
16322 new default behavior.
16323 * ggc-common.c: Include sys/resource.h.
16324 (ggc_rlimit_bound): New function.
16325 (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Update
16326 defaults to account for rlimits.
16327
9e555526
RH
163282003-02-22 Richard Henderson <rth@redhat.com>
16329
16330 * i386.c, i386.h (TUNEMASK): Rename from CPUMASK.
16331
163322003-02-22 Kelley Cook <kelley@dwhoops.info>
16333
52999738 16334 * i386.h, i386.c, i386.md (ix86_tune): Rename from ix86_cpu.
9e555526
RH
16335 (ix86_tune_string): Rename from ix86_cpu_string.
16336
9d913bbf
KC
163372003-02-22 Kelley Cook <kelleycook@comcast.net>
16338
52999738
ZW
16339 * config/i386/i386.c: Replace "mcpu" with "mtune".
16340 * config/i386/i386.h (TARGET_OPTIONS): Likewise.
16341 (CC1_CPU_SPEC): Likewise. New warning for "-mcpu".
16342 * doc/invoke.texi (i386 and x86-64 Options): Replace "mcpu"
16343 with "mtune". Note that "mcpu" is a deprecated synonym for "mtune".
9d913bbf 16344
d2c172bf
AS
163452003-02-23 Andreas Schwab <schwab@suse.de>
16346
16347 * config.gcc: Delete references to m68k/t-linux and
16348 m68k/t-linux-aout.
16349 * config/m68k/t-linux, config/m68k/t-linux-aout: Removed.
16350
62c9aa5f 163512003-02-22 Jan Hubicka <jh@suse.cz>
b3de7382
JH
16352
16353 * toplev.c (rest_of_compilation): Apply fotgotten hunk
16354 of track scheduling patch.
16355
62c9aa5f 163562003-02-22 Jan Hubicka <jh@suse.cz>
90b8be73
JH
16357
16358 * config/linux.h (TARGET_HAS_F_SETLKW): Define.
16359 * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Likewise
16360
62c9aa5f 163612003-02-22 Jan Hubicka <jh@suse.cz>
764c4414
JH
16362
16363 * c-decl.c (c_expand_body_1): Fix.
16364
62c9aa5f 163652003-02-22 Jan Hubicka <jh@suse.cz>
1c4a429a
JH
16366
16367 * expmed.c (expand_divmod): Undo sign extensions for unsigned operands
16368
16369 * cfgcleanup.c (try_forward_edges): Don't check loop structures
16370 when not optimizing.
16371 (cleanup_cfg): Do not iterate trought delete_trivially_dead_insns
16372 when not expensive.
16373 * toplev.c (rest_of_compilation): Duplicate loop headers only when
16374 optimizing; Delete trivially dead insns early; fix optimize check.
16375
16376 * Makefile.in (c-decl.o, c-objc-common.o, cgraph.o, tree-inline.o): Add
16377 dependency on cgraph.h
16378 * c-decl.c: Include cgraph.h
16379 (finish_function): Update call of tree_inlinable_function_p.
16380 * c-objc-common.c: Include cgraph.h
16381 * cgraph.h: New file.
16382 * cgraphunit.c: New file.
16383 * cgraph.c (cgraph_node, cgraph_edge): Move into cgraph.h
16384 (cgraph_nodes, cgraph_n_nodes): Globalize.
16385 (cgraph_finalize_function, cgraph_finalize_compilation_unit
16386 cgraph_create_edges, cgraph_optimize, cgraph_mark_needed_node):
16387 Move into cgraphunit.c
16388 * tree-inline.c: Include cgraph.h
16389 * tree-inline.c: Include cgraph.h
16390
1e2115dc
JZ
163912003-02-22 Josef Zlomek <zlomekj@suse.cz>
16392
16393 * config/i386/i386.md: Use gen_lowpart instead of gen_rtx_REG
16394 for copying a register.
16395
26182e15
SB
163962003-02-22 Steven Bosscher <s.bosscher@student.tudelft.nl>
16397
16398 PR other/3782
16399 * toplev.c (process_options): If flag_detailed_statistics is set,
16400 then set time_report as well.
16401
b6553814
SB
16402 PR c/8828
16403 * jump.c (never_reached_warning): Don't fall through BARRRIER
26182e15
SB
16404 insns. Update comments to reflect what the function really does.
16405
c0a47a61
RS
164062003-02-21 Roger Sayle <roger@eyesopen.com>
16407
16408 * fold-const.c (omit_one_operand): No longer static.
16409 * tree.h (omit_one_operand): Prototype here.
16410 (div_and_round_double): Keep fold-const.c prototypes together.
16411 * builtins.c (builtin_mathfn_code): Handle binary built-in
16412 funtions, such as "pow" and "atan2".
16413 (fold_builtin): Optimize both pow(x,0.0) and pow(1.0,y) to 1.0.
16414 Simplify optimizations using "type" the builtin's return type.
16415
51928907
HPN
164162003-02-22 Hans-Peter Nilsson <hp@axis.com>
16417
5b296d93
HPN
16418 * config/cris/cris.c (cris_rtx_costs): Blockify dangling else.
16419 Fix functionalization typo.
16420
51928907
HPN
16421 * regmove.c (optimize_reg_copy_1): Do not replace a hard register
16422 in an asm.
16423
9ac121af
KG
164242003-02-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
16425
16426 * Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
16427 * doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
16428 documentation.
16429 * ggc-common.c: Include params.h
16430 (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
16431 init_ggc_heuristics): New functions.
16432 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
16433 init_ggc_heuristics): Prototype.
16434 * toplev.c (print_version): Output GGC heuristics.
16435 (parse_options_and_default_flags): Call init_ggc_heuristics.
16436
62c9aa5f 164372003-02-22 Jan Hubicka <jh@suse.cz>
453ee231
JH
16438
16439 * i386.c (def_builtin): Special case 64bit builtins.
16440 (MASK_SSE164, MASK_SSE264): New constants.
16441 (builtin_description): Add 64bit builtins.
16442 (ix86_init_mmx_sse_builtins): Likewise.
16443 * i386.h (enum ix86_builtins): Likewise.
16444 * i386.md (cvtss2siq, cvttss2siq, cvtsd2siq, cvttsd2siq, cvtsi2sdq,
16445 sse2_movq2dq_rex64, sse2_movsq2q_rex64): New.
16446 (sse2_movq2dq, sse2_movsq2q): Disable for 64bit.
16447 * mmintrin.h (_mm_cvtsi64x_si64, _mm_set_pi64x, _mm_cvtsi64_si64x): New.
16448 * xmmintrin.h (_mm_cvtss_si64x, _mm_cvttss_si64x, _mm_cvtsi64x_ss,
16449 _mm_set_epi64x, _mm_set1_epi64x, _mm_cvtsd_si64x, _mm_cvttsd_si64x,
16450 _mm_cvtsi64x_sd, _mm_cvtsi64x_si128, _mm_cvtsi128_si64x): New.
16451
62c9aa5f 164522003-02-22 Jan Hubicka <jh@suse.cz>
d50672ef
JH
16453
16454 * i386.c (builtin_description): Add __builtin_ia32_paddq and
16455 __builtin_ia32_psubq. Fix __builtin_ia32_paddq128
16456 and __builtin_ia32_psubq128.
16457 * i386.h (IX86_BUILTIN_PADDQ, IX86_BUILTIN_PSUBQ): New.
16458 * i386.md (addv*, mmx_ior*, mmx_xoe*, mmx_and*): Add missing '%'.
16459 (mmx_adddi3, mmx_subdi3): New.
16460 * mmintrin.h (_mm_add_si64, _mm_sub_si64): New.
16461 * xmmintrin.h (_mm_movepi64_pi64): New.
16462 (_mm_add_epi64, _mm_sub_epi64): fix.
16463 (_mm_mul_pu16): Rename to...
16464 (_mm_mul_su32): ... this one.
16465
16466 * builtins.c (expand_builtin_expect): Do not predict
16467 flag_guess_branch_prob is not set.
16468 * c-semantics.c (expand_stmt): Likewise.
16469 * predict.c (predict_insn): Likewise.
16470 * stmt.c (expand_continue_loop): Likewise.
16471 * toplev.c (rest_of_compilation): Do not call
16472 note_prediction_to_br_prob and note_prediction_to_br_prob
16473 when not optimizing.
16474
62c9aa5f 164752003-02-21 Jan Hubicka <jh@suse.cz>
9809a362
JH
16476
16477 * cfgrtl.c (commit_edge_insertions): Call
16478 find_many_sub_basic_block only when some code has been emitted.
16479 (commit_edge_insertions_watch_calls): Bring into sync with
16480 commit_edge_insertions
16481
62c9aa5f 164822003-02-21 J"orn Rennecke <joern.rennecke@superh.com>
a93d1ba2
R
16483
16484 * sh.h (OVERRIDE_OPTIONS): Fix code that clears 'e' register class.
16485
16486 * sh.md (binary_sf_op): Use extra constant operand instead of
16487 negating constant operand 4.
16488 * sh.c (sh_expand_binop_v2sf): Supply it.
16489
a8d0ddaf
ZW
164902003-02-21 Zack Weinberg <zack@codesourcery.com>
16491
16492 * cpphash.h (struct lexer_state): Add directive_wants_padding.
16493 * cpplib.c (_cpp_handle_directive): Set directive_wants_padding
16494 for directives of type INCL.
16495 (glue_header_name, parse_include): Use get_token_no_padding.
16496 * cppmacro.c (replace_args): If directive_wants_padding,
16497 provide padding tokens.
16498
902ac719
KH
164992003-02-21 Kazu Hirata <kazu@cs.umass.edu>
16500
16501 * config/h8300/h8300.md (a peephole2): New.
16502
62c9aa5f 165032003-02-21 Jan Hubicka <jh@suse.cz>
9dca2ad5
JH
16504
16505 * cfgrtl.c (commit_one_edge_insertion): Only mark BB for splitting.
16506 (commit_edge_insertions): Call find_many_sub_basic_blocks
16507
16508 * reg-stack.c (convert_regs): Cleax aux for blocks.
16509
62c9aa5f 165102003-02-21 Jan Hubicka <jh@suse.cz>
64465d27
JH
16511
16512 * toplev.c (parse_options_and_default_flags): Undo accidental commit.
16513
9e7d0b92
GN
165142003-02-21 Glen Nakamura <glen@imodulo.com>
16515
16516 PR optimization/8613
16517 * builtins.c (expand_builtin): Emit postincrements before expanding
16518 builtin functions.
16519
a7582c8c
BE
165202003-02-21 Ben Elliston <bje@redhat.com>
16521
16522 PR other/5634
16523 * doc/install.texi (Configuration): Explain using $HOME instead of
16524 the ~ metacharacter when referring to home directories.
16525
91710e62
AO
165262003-02-20 Alexandre Oliva <aoliva@redhat.com>
16527
16528 * configure.in (TARGET_SYSTEM_ROOT): Set default to
16529 ${exec_prefix}/${target_alias}/sys-root. Match explicit
16530 '${exec_prefix}' (in addition to the expansion thereof) as
16531 relocatable.
16532 * configure: Rebuilt.
16533
d64f6f86
KH
165342003-02-20 Kazu Hirata <kazu@cs.umass.edu>
16535
16536 * config/h8300/h8300.md (addhi3_incdec): Change the name to
16537 *addhi3_incdec.
16538 (addsi3_incdec): Change the name to *addsi3_incdec.
16539
fd7acc30
RS
165402003-02-20 Roger Sayle <roger@eyesopen.com>
16541
16542 * explow.c (force_reg): Avoid useless REG_EQUAL notes.
16543
1c2de642
TM
165442003-02-20 Toon Moene <toon@moene.indiv.nluug.nl>
16545
16546 PR fortran/9038
16547 * c-opts.c (sanitize_cpp_opts): Add Fortran front end
16548 options to be ignored.
16549 (c_common_decode_option): Ignore them when preprocessing.
16550
62c9aa5f 165512003-02-20 Jan Hubicka <jh@suse.cz>
b9422b69 16552
fd7acc30
RS
16553 * toplev.c (flag_sched2_use_superblocks, flag_sched2_use_traces): New
16554 global variables.
16555 (lang_independent_options): Add -fsched2-use-superblocks
16556 -fsced2-use-traces.
b9422b69
JH
16557 (rest_of_compilation): Deal with it.
16558 * invoke.texi (-fsched2-use-traces, fsched2-use-superblocks): Declare.
fd7acc30
RS
16559 * flags.h (flag_sched2_use_superblocks, flag_sched2_use_traces):
16560 Declare.
b9422b69
JH
16561 * rtl.h (reg_to_stack): Update prototype.
16562 * reg-stack.c (reg_to_stack): Return when something has changed;
16563 update liveness when executing after superblock scheduling.
16564
16565 * combine.c (simplify_shift_const): Simplify few special cases
16566 into constants.
16567
a62bfff2
DE
165682003-02-20 David Edelsohn <edelsohn@gnu.org>
16569
16570 * config/rs6000/rs6000.md: (attr "type"): Add fast_compare.
16571 (add.,subf.,neg.): Change attribute to fast_compare.
16572 All DFA descriptions updated.
16573
dbbf88d1
NS
165742003-02-20 Nathan Sidwell <nathan@codesourcery.com>
16575
16576 Change base class access representation.
16577 * tree.h (TREE_VIA_PUBLIC, TREE_VIA_PROTECTED,
16578 TREE_VIA_PRIVATE): Remove.
16579 (BINFO_BASEACCESSES): New binfo elt.
16580 (BINFO_BASEACCESS): New accessor.
16581 (BINFO_ELTS): Increase.
16582 (TI_ACCESS_PUBLIC, TI_ACCESS_PROTECTED, TI_ACCESS_PRIVATE): New.
16583 (access_public_node, access_protected_node,
16584 access_private_node): New global nodes.
16585 * tree.c (build_common_tree_nodes_2): Initialize access nodes.
16586 * dbxout.c (dbxout_type): Adjust.
16587 * dwarf2out.c (gen_inheritance_die): Add access parameter.
16588 (gen_member_die): Adjust.
16589 * dwarfout.c (output_inheritance_die): ARG is array of two trees.
16590 (output_type): Adjust.
16591 * tree-dump.c (dequeue_and_dump): Adjust binfo dumping.
16592
16593 Change base class access representation. Share virtual base
16594 binfos.
16595 * cp/call.c (build_special_member_call): Remove binfo_for_vbase
16596 call.
16597 * cp/class.c (build_base_path): Likewise.
16598 (build_primary_vtable): Adjust BINFO_NEW_VTABLE_MARKED use.
16599 (build_secondary_vtable): Remove FOR_TYPE arg. Adjust.
16600 (make_new_vtable): Adjust.
16601 (force_canonical_binfo_r): Delete.
16602 (force_canonical_binfo): Delete.
16603 (mark_primary_virtual_base): Delete.
16604 (dfs_unshared_virtual_bases): Delete.
16605 (mark_primary_bases): Adjust.
16606 (maybe_warn_about_overly_private_class): Adjust.
16607 (dfs_base_derived_from): Delete.
16608 (base_derived_from): Follow the inheritance chain.
16609 (struct find_final_overrider_data): Add vpath member.
16610 (dfs_find_final_overrider): Adjust.
16611 (dfs_find_final_overrider_q, dfs_find_final_overrider_post): New.
16612 (find_final_overrider): Adjust.
16613 (update_vtable_entry_for_fn): Adjust.
16614 (modify_all_vtables): Adjust.
16615 (walk_subobject_offsets): Adjust.
16616 (layout_nonempty_base_or_field): Adjust.
16617 (layout_empty_base): Remove last parameter. Adjust.
16618 (build_base_field): Adjust.
16619 (build_base_fields): Adjust.
16620 (propagate_binfo_offsets): Remove last parameter. Adjust.
16621 (dfs_set_offset_for_unshared_vbases): Delete.
16622 (layout_virtual_bases): Adjust.
16623 (finish_struct_1): Adjust.
16624 (init_class_processing): Don't init access nodes.
16625 (dfs_get_primary_binfo): Delete.
16626 (get_primary_binfo): Adjust.
16627 (dump_class_hierarchy_r): Remove most derived arg, add IGO
16628 parameter. Adjust.
16629 (dump_class_hierarchy): Adjust.
16630 (finish_vtbls): Adjust.
16631 (get_original_base): Delete.
16632 (build_vtt_inits): Adjust.
16633 (dfs_build_secondary_vptr_vtt_inits): Adjust.
16634 (dfs_ctor_vtable_bases_queue_p): Adjust.
16635 (build_ctor_vtbl_group): Adjust.
16636 (dfs_accumulate_vtbl_inits): Adjust.
16637 (build_vtbl_initializer): Adjust.
16638 (build_vbase_offset_vtbl_entries): Adjust.
16639 (add_vcall_offset_vtbl_entries_1): Adjust.
16640 * cp/cp-tree.h (CPTI_ACCESS_*): Remove.
16641 (access_*_node): Remove.
16642 (CANONICAL_BINFO): Delete.
16643 (BINFO_UNSHARED_MARKED): Remove.
16644 (BINFO_MARKED): Set LANG_FLAG_0 directly.
16645 (SET_BINFO_MARKED, CLEAR_BINFO_MARKED): Delete.
16646 (BINFO_VTABLE_PATH_MARKED): Set LANG_FLAG_3 directly.
16647 (SET_BINFO_VTABLE_PATH_MARKED, CLEAR_BINFO_VTABLE_PATH_MARKED):
16648 Delete.
16649 (BINFO_NEW_VTABLE_MARKED): Set LANG_FLAG_4 directly.
16650 (SET_BINFO_NEW_VTABLE_MARKED): Adjust.
16651 (SET_BINFO_PUSHDECLS_MARKED, CLEAR_BINFO_PUSHDECLS_MARKED):
16652 Delete.
16653 (BINFO_DEPENDENT_BASE_P): New.
16654 (dfs_walk, dfs_walk_real): Queue function takes derived binfo and
16655 index.
16656 (markedp, unmarkedp): Adjust.
16657 (dfs_unmarked_real_bases_queue_p, dfs_marked_real_bases_queue_p,
16658 dfs_skip_vbases, marked_vtable_pathp, unmarked_vtable_pathp,
16659 find_vbase_instance, binfo_for_vbase): Delete.
16660 (copied_binfo, original_binfo): Declare.
16661 (finish_base_specifier): Add virtual_p arg.
16662 (unshare_base_binfos): Delete.
16663 (copy_base_binfos): Declare.
16664 (reverse_path): Delete.
16665 * cp/decl.c (xref_basetypes): Access and virtuality passed
16666 differently. Don't copy direct base binfos here. Call
16667 copy_base_binfos.
16668 * cp/init.c (dfs_initialize_vtbl_ptrs): Adjust.
16669 (initialize_vtbl_ptrs): Adjust.
16670 (expand_member_init): Adjust.
16671 * cp/parser.c (cp_parser_base_specifier): Adjust.
16672 * cp/pt.c (instantiate_class_template): Adjust.
16673 (get_template_base_recursive): Adjust.
16674 * cp/rtti.c (get_pseudo_ti_init): Adjust.
16675 (get_pseudo_ti_desc): Adjust.
16676 * cp/tree.c (unshare_base_binfos): Rename to ...
16677 (copy_base_binfos): ... here, reimplement.
16678 (make_binfo): Set BINFO_DEPENDENT_BASE_P.
16679 (reverse_path): Remove.
16680 * cp/typeck.c (get_delta_difference): Adjust error messages.
16681 * cp/semantics.c (finish_base_specifier): Add virtual arg, adjust.
16682 * cp/search.c (lookup_base_r): Adjust.
16683 (dynamic_cast_base_recurse): Adjust.
16684 (canonical_binfo): Remove.
16685 (dfs_canonical_queue): Remove.
16686 (dfs_assert_unmarked_p): Remove.
16687 (assert_canonical_unmarked): Remove.
16688 (shared_marked_p, shared_unmarked_p): Remove.
16689 (BINFO_ACCESS, SET_BINFO_ACCESS): Use TREE_PUBLIC & TREE_PRIVATE.
16690 (dfs_access_in_type): Adjust.
16691 (access_in_type): Adjust.
16692 (dfs_accessible_queue_p): Adjust.
16693 (dfs_accessible_p): Adjust.
16694 (is_subobject_of_p_1, is_subobject_of_p): Remove.
16695 (struct lookup_field_info): Remove from_dep_base_p field.
16696 (lookup_field_queue_p): Adjust, test BINFO_DEPENDENT_BASE_P.
16697 (lookup_field_r): Remove dependent base code.
16698 (lookup_member): Likewise.
16699 (dfs_walk, dfs_walk_real): Add access arg to queue fn.
16700 (dfs_unmarked_real_bases_queue_p): Remove.
16701 (dfs_marked_real_bases_queue_p): Remove.
16702 (dfs_skip_vbases): Remove.
16703 (dfs_get_pure_virtuals): Adjust.
16704 (markedp, unmarkedp): Adjust.
16705 (marked_vtable_pathp, unmarked_vtable_pathp): Remove.
16706 (marked_pushdecls_p, unmarked_pushdecls_p): Adjust.
16707 (dfs_unmark): Adjust.
16708 (dfs_get_vbase_types):Remove.
16709 (dfs_build_inheritance_graph_order): Remove.
16710 (get_vbase_types): Remove
16711 (dfs_find_vbase_instance): Remove.
16712 (find_vbase_instance): Remove.
16713 (dfs_debug_unmarkedp): Adjust.
16714 (dependent_base_p): Remove.
16715 (dfs_push_type_decls): Adjust.
16716 (dfs_push_decls): Adjust.
16717 (dfs_no_overlap_yet): Adjust.
16718 (copied_binfo): New function.
16719 (original_binfo): New function.
16720 (binfo_for_vbase): Remove.
16721
16722 Change base class access representation.
16723 * java/class.c (set_super_info): Don't set TREE_VIA_PUBLIC.
16724 (add_interface_do): Likewise.
16725
6d6ab190
DE
167262003-02-20 David Edelsohn <edelsohn@gnu.org>
16727
a8d0ddaf
ZW
16728 * config/rs6000/sysv4.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
16729 * config/rs6000/power4.md (power4-store,power4-vecstore): New
6d6ab190
DE
16730 insn reservations.
16731 (power4-fpstore): Compact.
16732
2dd5df7c
KH
167332003-02-20 Kazu Hirata <kazu@cs.umass.edu>
16734
16735 * config/h8300/h8300.md (*iorsi3_w): New.
16736
8fa08316
JZ
167372003-02-20 Josef Zlomek <zlomekj@suse.cz>
16738
16739 * combine.c (distribute_notes): Kill REG_EXEC_COUNT.
16740 * rtl.c (reg_note_name): Likewise.
16741 * rtl.h (enum reg_note): Likewise.
16742 * doc/invoke.texi: Likewise.
16743 * doc/rtl.texi: Likewise.
16744
c8717368
JZ
167452003-02-20 Josef Zlomek <zlomekj@suse.cz>
16746
16747 * bb-reorder.c (find_traces_1_round): Fix comment typo.
16748
3bc400cd
RS
167492003-02-19 Roger Sayle <roger@eyesopen.com>
16750
16751 * fold-const.c (fold_real_zero_addition_p): Don't fold a zero
16752 addition in the presence of signaling NaNs.
16753
b5a49c0b
KW
167542003-02-19 Krister Walfridsson <cato@df.lth.se>
16755
16756 * tm.texi (INIT_CUMULATIVE_ARGS): Fix typo.
16757
472f2723
KH
167582003-02-19 Kazu Hirata <kazu@cs.umass.edu>
16759
16760 * config/h8300/h8300.c (output_logical_op): Optimize or.l when
16761 ORing with 0xffff??00 with the highest bit of the ?? part set.
16762 (compute_logical_op_length): Update.
16763 (compute_logical_op_cc): Likewise.
16764
6d9cc15b
JZ
167652003-02-19 Josef Zlomek <zlomekj@suse.cz>
16766
16767 * bb-reorder.c (find_traces_1_round): Fixed condition for small
16768 destination block with multiple predecessors.
16769 (connect_traces): Check whether the block is a start of trace.
16770
62c9aa5f 167712003-02-19 Jan Hubicka <jh@suse.cz>
563a317a
JH
16772
16773 * calls.c (expand_call): Update call of INIT_CUMULATIVE_ARGS
16774 * function.c (assign_params): Likewise.
16775 * arm-protos.h (arm_init_cumulative_args): Update prototype.
16776 * arm.c (arm_init_cumulative_args): Update function.
16777 * arm.h (INIT_CUMULATIVE_ARGS): Update.
16778 * avr-protos.h (init_cumulative_args): Update prototype.
16779 * avr.c (init_cumulative_args): Update function.
16780 * avr.h (INIT_CUMULATIVE_ARGS): Update.
16781 * d30v-protos.h (d30v_init_cumulative_args): Update prototype.
16782 * d30v.c (d30v_init_cumulative_args): Update function.
16783 * d30v.h (INIT_CUMULATIVE_ARGS): Update.
16784 * frv-protos.h (frv_init_cumulative_args): Update prototype.
16785 * frv.c (frv_init_cumulative_args): Update function.
16786 * frv.h (INIT_CUMULATIVE_ARGS): Update.
16787 * mips.c (mips_expand_prolgue): Update call of INIT_CUMULATIVE_ARGS.
16788 * pa.h (INIT_CUMULATIVE_ARGS): Update.
16789 * sparc-protos.h (init_cumulative_args): Update prototype.
16790 * sparc.c (init_cumulative_args): Update function.
16791 * sparc.h (INIT_CUMULATIVE_ARGS): Update.
16792 * tm.texi (INIT_CUMULATIVE_ARGS): Update documentation.
16793
be9d08c2
KH
167942003-02-19 Kazu Hirata <kazu@cs.umass.edu>
16795
16796 * config/h8300/h8300.md (*iorsi3_two_qi_sext): New.
16797 (*ashiftsi_sextqi_7): Likewise.
16798
f23147fe
RO
167992003-02-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
16800
16801 * config/mips/iris6.h (TARGET_OS_CPP_BUILTINS): Define __c99 for
16802 ISO C99 and C++.
16803
16804 * fixinc/inclhack.def (irix___restrict): Don't change __restrict
16805 for C++ on IRIX 6.5.1[89].
16806 * fixinc/tests/base/internal/sgimacros.h: New file.
16807
16808 * fixinc/inclhack.def (irix_wcsftime): Use XPG5 variant for C99.
16809 * fixinc/tests/base/internal/wchar_core.h: New file.
a8d0ddaf 16810
f23147fe
RO
16811 * fixinc/inclhack.def (irix_socklen_t): Fix broken IRIX 6.5.1[78]
16812 socklen_t definition.
16813 * fixinc/fixincl.x: Regenerate.
16814 * fixinc/tests/base/sys/socket.h: New file.
16815 Fixes PR libgcj/9652.
16816
62c9aa5f 168172003-02-19 Jan Hubicka <jh@suse.cz>
30e4d9d4
JH
16818
16819 * i386.md (movsfcc_1, movdfcc_1): Fix constrains.
16820
2792d578
DE
168212003-02-19 David Edelsohn <edelsohn@gnu.org>
16822
16823 * config/rs6000/rs6000.c (rs6000_override_options): Initialize
16824 align_jumps_max_skip and align_loops_max_skip.
16825
168262003-02-19 Thierry Moreau <thierry.moreau@connotech.com>
16827
16828 * config/rs6000/rs6000.c (rs6000_encode_section_info): Do not
16829 test size if named section.
16830
48a5f2fa
DJ
168312003-02-19 Daniel Jacobowitz <drow@mvista.com>
16832
16833 * expr.c (expand_expr): Use gen_int_mode for the argument
16834 to gen_rtx_MULT.
16835
62c9aa5f 168362003-02-19 Jan Hubicka <jh@suse.cz>
9e889775
JH
16837
16838 * i386.md (cosxf2): Fix conditional.
16839
f4c07fbf
KH
168402003-02-19 Kazu Hirata <kazu@cs.umass.edu>
16841
16842 * config/h8300/h8300.md (extendqisi2): Change to an expander.
16843 (*extendqisi2_h8300): New.
16844 (*extendqisi2_h8300hs): Likewise.
16845
590734b6
KH
168462003-02-19 Kazu Hirata <kazu@cs.umass.edu>
16847
16848 * config/h8300/h8300-protos.h: Update the prototype for
16849 split_adds_subs. Remove the prototypes for
16850 const_int_le_2_operand and const_int_le_6_operand.
16851 * config/h8300/h8300.c (split_adds_sub): Don't output inc/dec.
16852 (const_int_le_2_operand): Remove.
16853 (const_int_le_6_operand): Likewise.
16854 * config/h8300/h8300.h (PREDICATE_CODES): Remove the entries
16855 for const_int_le_2_operand and const_int_le_6_operand.
16856 * config/h8300/h8300.md: Update all uses of split_adds_subs.
16857 (a peephole2): New.
16858
62c9aa5f 168592003-02-18 Jan Hubicka <jh@suse.cz>
c001c39b
JH
16860
16861 * cgraph.c (NPREDECESORC, SET_NPREDECESORS): Kill.
16862 (cgraph_expand_function): Rewrite.
16863
2f51bb1d 168642003-02-18 Matt Austern <austern@apple.com>
3bc400cd 16865
2f51bb1d 16866 * toplev.c, langhooks.c, langhooks-def.h: Move
a8d0ddaf 16867 write_global_declarations from toplev.c to langhooks.c.
3bc400cd 16868
ff6e1a2f
KH
168692003-02-18 Kazu Hirata <kazu@cs.umass.edu>
16870
16871 * config/h8300/h8300.c (general_operand_src): Always check
16872 MODE.
16873 (general_operand_dst): Likewise.
16874
78bd5210
RS
168752003-02-18 Roger Sayle <roger@eyesopen.com>
16876
16877 * convert.c (convert_to_real): Also optimize (float)log(x) into
16878 logf(x) where x is a float, i.e. also handle BUILT_IN_LOG{,L}.
16879
9f3a9a08
KK
168802003-02-18 Kaz Kojima <kkojima@gcc.gnu.org>
16881
a8d0ddaf 16882 * config/sh/sh.c (unspec_caller_rtx_p): New.
9f3a9a08 16883 (sh_cannot_copy_insn_p): New.
a8d0ddaf 16884 (TARGET_CANNOT_COPY_INSN_P): New.
9f3a9a08 16885
d7ddbe24
RH
168862003-02-18 Richard Henderson <rth@redhat.com>
16887
16888 * c-common.c (handle_used_attribute): Accept static data too.
16889
168902003-02-18 Nick Clifton <nickc@redhat.com>
a8d0ddaf 16891 Aldy Hernandez <aldyh@redhat.com>
22d324c1 16892
a8d0ddaf 16893 * testsuite/gcc.dg/20030218-1.c: New.
22d324c1 16894
a8d0ddaf 16895 * doc/tm.texi: Document TARGET_VECTOR_TYPES_COMPATIBLE.
22d324c1 16896
a8d0ddaf
ZW
16897 * target-def.h (TARGET_INITIALIZER): Add
16898 TARGET_VECTOR_TYPES_COMPATIBLE.
16899 (TARGET_VECTOR_TYPES_COMPATIBLE): New macro.
22d324c1 16900
a8d0ddaf 16901 * target.h (struct gcc_target): Add field vector_types_compatible.
22d324c1 16902
a8d0ddaf
ZW
16903 * c-typeck.c (comptypes): Take into account
16904 TARGET_VECTOR_TYPES_COMPATIBLE.
16905 (convert_for_assignment): Same.
22d324c1 16906
a8d0ddaf
ZW
16907 * config/rs6000/rs6000.c (is_ev64_opaque_type): New.
16908 (rs6000_spe_vector_types_compatible): New.
16909 (TARGET_VECTOR_TYPES_COMPATIBLE): Define.
22d324c1 16910
e5378e8d
AS
169112003-02-19 Andreas Schwab <schwab@suse.de>
16912
16913 * Makefile.in (toplev.o): Depend on $(LANGHOOKS_DEF_H).
16914 * toplev.c: Include langhooks-def.h.
16915
fcc11c35
CD
169162003-02-18 Chris Demetriou <cgd@broadcom.com>
16917
16918 * config/mips/mips.h (enum processor_type): Sort entries
16919 alphabetically.
16920 * config/mips/mips.md (define_attr cpu): Sync with processor_type
16921 enum values, including adding entries that were missing.
16922
62c9aa5f 169232003-02-18 J"orn Rennecke <joern.rennecke@superh.com>
29db2a1e 16924
3bc400cd
RS
16925 * sh.c (calc_live_regs): Also check GET_CODE when checking if
16926 initial value for PR_REG is still the PR_REG register.
29db2a1e 16927
582d11e6
JW
169282003-02-18 Jim Wilson <wilson@redhat.com>
16929
16930 * config/ia64/ia64.md (floatdidf2, floatdisf2): Add %, before second
16931 instruction in output template.
16932 (bsp_value): Change output template from string to C code, add %,
16933 before actual instruction.
16934 (flushrs): Mark as not predicable.
16935
3edc4b23
KW
169362003-02-18 Krister Walfridsson <cato@df.lth.se>
16937
16938 * inclhack.def (netbsd_bogus_semicolon): New fix.
16939 * fixincl.x: Rebuilt.
16940 * tests/base/ctype.h: Update.
16941
080ea642
RS
169422003-02-18 Roger Sayle <roger@eyesopen.com>
16943
16944 * fold-const.c (negate_expr_p): New function to determine whether
16945 an expression can be negated cheaply.
16946 (fold) [MINUS_EXPR]: Use it to determine whether to transform
16947 -A - B into -B - A for floating point types.
16948
e360ab39
RS
169492003-02-18 Roger Sayle <roger@eyesopen.com>
16950
16951 * sbitmap.c (sbitmap_resize): New function.
16952 * sbitmap.h (sbitmap_resize): Prototype here.
16953 * recog.c (split_all_insns): Use sbitmap_resize.
16954
6b00cbc7
KH
169552003-02-18 Kazu Hirata <kazu@cs.umass.edu>
16956
16957 * config/h8300/h8300.md (*zero_extendhisi2_h8300): Fix the
16958 insn length.
16959 (extendqisi2): Likewise.
16960 (*extendhisi2_h8300): Likewise.
16961
2b59501b 169622003-02-18 Matt Austern <austern@apple.com>
a8d0ddaf 16963
2b59501b
MA
16964 * langhooks.h, langhooks-def.h: introduce new langhook,
16965 final_write_globals, with write_global_declarations as default.
16966 * toplev.c: Move invocation of wrapup_global_declarations from
16967 compile_file to new function, write_global_declarations. Change
16968 compile_file to use final_write_globals hook. Change
16969 wrapup_global_declarations so writing to DECL_DEFER_OUTPUT is
a8d0ddaf
ZW
16970 conditional.
16971
131efcd8
JDA
169722003-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16973
16974 * pa.md: Correct and enhance comment.
16975
e17aafd1
GK
169762003-02-18 Geoffrey Keating <geoffk@apple.com>
16977
16978 * gcc.c (validate_switches): Don't scan past closing '}'.
16979
f57a2e3a
BE
169802003-02-18 Ben Elliston <bje@redhat.com>
16981
16982 PR c++/1607
16983 * doc/extend.texi (Function Attributes): Document the effect of
16984 the C++ "this" parameter on the counting of arguments for the
16985 "format" and "format_arg" attributes.
16986
9b0c0e9f
AH
169872003-02-17 Aldy Hernandez <aldyh@redhat.com>
16988
a8d0ddaf
ZW
16989 * config/rs6000/spe.h (__ev_stdd): Cast 2nd arg.
16990 (__ev_stdw): Same.
16991 (__ev_stdh): Same.
9b0c0e9f 16992
62c9aa5f 169932003-02-17 Jan Hubicka <jh@suse.cz>
35a3fa09
JH
16994
16995 * recog.c (split_all_insns): Fix memory overflow.
16996
6dc50366
KH
169972003-02-17 Kazu Hirata <kazu@cs.umass.edu>
16998
16999 * config/h8300/h8300.md (cmpqi): Remove mode from compare.
17000 (cmphi): Likewise.
17001 (*cmphi_h8300): Likewise.
17002 (*cmphi_h8300hs): Likewise.
17003 (cmpsi): Likewise.
17004 (7 peephole2): Likewise.
17005
62c9aa5f 170062003-02-16 Jan Hubicka <jh@suse.cz>
096daf41
JH
17007
17008 * c-typeck.c (build_c_cast): Fold constant variables into
17009 initial values.
17010
35113fde
GP
170112003-02-16 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17012
17013 * doc/install.texi (Specific): Fix link for m68k-att-sysv.
17014 (Binaries): Ditto for Sinix/Reliant Unix.
17015
3a1944a6
RE
170162003-02-16 Richard Earnshaw <rearnsha@arm.com>
17017
17018 * arm.c (arm_reload_in_hi): Ensure that the scratch register does
17019 not overlap the final result register.
17020
cdd4b0d4
AB
170212003-02-16 Arend Bayer <arend.bayer@web.de>
17022 Richard Henderson <rth@redhat.com>
17023
ddb9eedd 17024 PR c/8068
cdd4b0d4
AB
17025 * fold-const.c (extract_muldiv_1): Rename from extract_muldiv;
17026 rearrange mult arguments for less recursion.
17027 (extract_muldiv): New. Prevent runaway recursion.
17028
616f273a
DS
170292003-02-16 Danny Smith <dannysmith@users.sourceforge.net>
17030
17031 * config/i386/cygwin.h (TARGET_SUBTARGET_DEFAULT): Set
17032 MASK_ALIGN_DOUBLE.
17033
881b2a96
RS
170342003-02-15 Roger Sayle <roger@eyesopen.com>
17035
17036 * config/i386/i386.c (x86_ext_80387_constants): Use 80387 insns
17037 to load mathematical constants on K6, Athlon, Pentium 4 and PPro.
17038 (ext_80387_constants_table): Global table of 80387 special constants
17039 guarded by ext_80387_constants_init flag when not initialized.
17040 (init_ext_80387_constants): New function to initialize this table.
17041 (standard_80387_constant_p): Extend to recognize extra 80387
17042 constants, in XFmode, on processors where this is a win.
17043 (standard_80387_constant_opcode): New function to return the
17044 opcode associated with standard_80387_constant_p.
17045 (standard_80387_constant_rtx): New function to return the XFmode
17046 CONST_DOUBLE associated with standard_80387_constant_p.
17047 (ix86_rtx_costs): Give the new constants the same cost as 1.0.
17048
17049 * config/i386/i386-protos.h (standard_80387_constant_opcode):
17050 Prototype here.
17051 (standard_80387_constant_rtx): Likewise.
17052
17053 * config/i386/i386.md (*movsf1, *movsf1_nointerunit, *movdf_nointeger,
17054 *movdf_integer, *movxf_nointeger, *movtf_nointeger, *movxf_integer,
17055 *movtf_integer): Simplify using new standard_80387_constant_opcode.
17056
d203738b
GK
170572003-02-15 Geoffrey Keating <geoffk@apple.com>
17058
17059 * doc/invoke.texi (Optimize Options): Correct @option syntax.
17060
0b077eac
RH
170612003-02-15 Richard Henderson <rth@redhat.com>
17062
17063 * Makefile.in (cfglayout.o): Depend on TARGET_H.
17064 * cfglayout.c: Include target.h.
17065 (cfg_layout_can_duplicate_bb_p): Check targetm.cannot_copy_insn_p.
17066 * target-def.h (TARGET_CANNOT_COPY_INSN_P): New.
17067 * target.h (struct gcc_target): Add cannot_copy_insn_p.
17068
17069 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): New.
17070 (TARGET_CANNOT_COPY_INSN_P): New.
17071 (override_options): Revert 2003-02-08 hack.
17072
9a71ece1
RH
170732003-02-15 Richard Henderson <rth@redhat.com>
17074
17075 * gcse.c (bypass_block): Use BLOCK_FOR_INSN for resolving LABEL_REFs.
17076 (bypass_conditional_jumps): Accept computed_jump_p insns as well.
17077
b54cf83a
DE
170782003-02-15 David Edelsohn <edelsohn@gnu.org>
17079
17080 * config/rs6000/rs6000.h (processor_type): Add PPC440.
17081 * config/rs6000/rs6000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
17082 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
17083 TARGET_SCHED_VARIABLE_ISSUE): Define.
17084 (rs6000_use_dfa_pipeline_interface): New function.
17085 (rs6000_multipass_dfa_lookahead): New Function.
17086 (rs6000_variable_issue): New function.
17087 (rs6000_adjust_cost): Add CMP and DELAYED_CR types.
17088 (rs6000_issue_rate): Add PPC440.
17089 * config/rs6000/rs6000.md (unspec list): Correct typo.
17090 (attr "type"): Add load_ext, load_ext_u, load_ext_ux, load_u,
17091 store_ux, store_u, fpload_ux, fpload_u, fpstore_ux, fpstore_u,
17092 cmp, delayed_cr, mfcr, mtcr.
17093 (automata_option): Set "ndfa".
17094 (extendMMNN2): Update attributes.
17095 (movcc_internal1): Discourage move to non-cr0. Update
17096 attributes.
17097 (movMM_update): Update attributes.
17098 (cmpMM_internal): Update attributes.
17099 (sCC CR materialization): Update attributes.
17100 (branch patterns): Do not discourage non-cr0.
17101 (cr logical patterns): Prefer destructive register allocation.
17102 Update attributes.
17103 (movesi_from_cr): Update attribute.
17104 (mtcrf_operation): Update attribute.
17105 (mtcrfsi): Update attribute.
17106 * config/rs6000/40x.md: New file.
17107 * config/rs6000/603.md: New file.
17108 * config/rs6000/6xx.md: New file.
17109 * config/rs6000/7450.md: New file.
17110 * config/rs6000/7xx.md: New file.
17111 * config/rs6000/mpc.md: New file.
17112 * config/rs6000/power4.md: New file.
17113 * config/rs6000/rios1.md: New file.
17114 * config/rs6000/rios2.md: New file.
17115 * config/rs6000/rs64.md: New file.
17116 [Some DFA descriptions based on work by Michael Hayes]
17117
99dc7277
RH
171182003-02-15 Richard Henderson <rth@redhat.com>
17119
17120 * bb-reorder.c (find_traces_1_round): Don't connect easy to copy
17121 successors with multiple predecessors.
17122 (connect_traces): Try harder to copy traces of length 1.
17123
17124 * function.h (struct function): Add computed_goto_common_label,
17125 computed_goto_common_reg.
17126 * function.c (free_after_compilation): Zap them.
a8d0ddaf 17127 * stmt.c (expand_computed_goto): Use them to produce one
99dc7277
RH
17128 indirect branch per function.
17129
5f24e0dc
RH
171302003-02-15 Richard Henderson <rth@redhat.com>
17131
17132 * cfgcleanup.c: Include params.h.
17133 (try_crossjump_bb): Use PARAM_MAX_CROSSJUMP_EDGES. Fix test for
17134 too many outgoing edges from a block.
17135 * Makefile.in (cfgcleanup.o): Depend on PARAMS_H.
17136 * params.def (max-crossjump-edges): New.
17137 * doc/invoke.texi: Document it.
17138
9381bbc9
RH
171392003-02-15 Richard Henderson <rth@redhat.com>
17140
a8d0ddaf
ZW
17141 * recog.c (split_all_insns): Include new blocks in life update;
17142 do a global life update.
9381bbc9 17143
e898926c
DS
171442003-02-15 Danny Smith <dannysmith@users.sourceforge.net>
17145
17146 * config/i386/mingw32.h (LIBGCC_SPEC): Add libmingwex.a.
17147 Update copyright.
17148 * config/i386/cygwin.h (LIBGCC_SPEC): Add libmingwex.a for
17149 -mno-cygwin case.
17150
ce65116b
FH
171512003-02-14 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
17152
17153 PR optimization/7702
17154 * reload1.c (reload_cse_simplify_set): Honor
17155 CANNOT_CHANGE_MODE_CLASS.
17156
fe7496dd
AO
171572003-02-14 Alexandre Oliva <aoliva@redhat.com>
17158
17159 * config/mn10300/mn10300.c (mn10300_wide_const_load_uses_clr): New
17160 function.
17161 * config/mn10300/mn10300-protos.h: Declare it.
17162 * config/mn10300/mn10300.md (movdi, movdf): Use it to compute
17163 attribute cc of instructions that may use clr.
17164
6017c719
KH
171652003-02-14 Kazu Hirata <kazu@cs.umass.edu>
17166
17167 * simplify-rtx.c (simplify_binary_operation): Simplify ~y when
17168 (x - (x & y)) is found.
17169
9fb28a67
RO
171702003-02-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
17171
17172 * configure.in: Fix typo.
17173 * configure: Regenerate.
17174
60f469fa
KH
171752003-02-14 Kazu Hirata <kazu@cs.umass.edu>
17176
17177 * config/h8300/h8300.md (*iorsi2_and_1_lshiftrt_1): New.
17178
8fd73754 171792003-02-13 Adam Nemet <anemet@lnxw.com>
60f469fa 17180
a8d0ddaf 17181 PR opt/2391
ce65116b
FH
17182 * combine.c: Fix spelling in comment.
17183 (cached_nonzero_bits): New function.
17184 (cached_num_sign_bit_copies): New function.
8fd73754
AN
17185 (nonzero_bits_with_known): New macro.
17186 (num_sign_bit_copies_with_known): New macro.
ce65116b 17187 (nonzero_bits1): Rename from nonzero_bits. Add three new
8fd73754
AN
17188 arguments. Change calls from nonzero_bits to
17189 nonzero_bits_with_known.
ce65116b 17190 (num_sign_bit_copies1): Rename from num_sign_bit_copies. Add
8fd73754
AN
17191 three new arguments. Change calls from num_sign_bit_copies to
17192 num_sign_bit_copies_with_known.
ce65116b
FH
17193 (nonzero_bits): New macro.
17194 (num_sign_bit_copies): New macro.
17195 (update_table_tick): Don't traverse identical subexpression more
8fd73754 17196 than once.
ce65116b 17197 (get_last_value_validate): Likewise.
8fd73754 17198
ddb0ae00
ZW
171992003-02-13 Zack Weinberg <zack@codesourcery.com>
17200
17201 * emit-rtl.c (init_emit): Use ggc_alloc for regno_reg_rtx.
17202 * function.h (struct emit_status): Length of regno_pointer_align
17203 and x_regno_reg_rtx as seen by gengtype is only x_reg_rtx_no,
17204 not regno_pointer_align_length (i.e. length actually used, not
17205 length as allocated)
17206
17207 * config/i386/i386.c (struct stack_local_entry): New.
17208 (struct machine_function): Replace huge array with alist.
17209 (assign_386_stack_local): Change to match.
17210
c20b55c0
JDA
172112003-02-13 John David Anglin <dave.anglin@nrc-crnc.gc.ca>
17212
17213 * inclhack.def (hpux_long_double): Tighten select and add bypass
17214 regexp.
17215 * fixincl.x: Rebuilt.
17216
ffc8f11e
JZ
172172003-02-13 Josef Zlomek <zlomekj@suse.cz>
17218
17219 * cfgcleanup.c (outgoing_edges_match): When there is single outgoing
17220 edge and block ends with a jump insn it must be simple jump.
17221
047d636f
DJ
172222003-02-13 Daniel Jacobowitz <drow@mvista.com>
17223
17224 * Makefile.in (PREPROCESSOR_DEFINES): Add
17225 @TARGET_SYSTEM_ROOT_DEFINE@.
17226 * configure.in (PREFIX_INCLUDE_DIR): Don't define if $with_sysroot
17227 is specified or if building a cross compiler.
17228 (TARGET_SYSTEM_ROOT_DEFINE): Add TARGET_SYSTEM_ROOT_RELOCATABLE
17229 if the sysroot is under $exec_prefix.
17230 * configure: Regenerated.
17231 * cppdefault.h: Use native include paths if TARGET_SYSTEM_ROOT is
17232 defined.
17233 (struct default_include): Add add_sysroot field.
17234 (cpp_SYSROOT): Declare.
17235 * cppdefault.c (cpp_include_defaults): Fill in add_sysroot
17236 field.
17237 (cpp_SYSROOT): New variable.
17238 * cppinit.c (cpp_create_reader): Initialize
17239 CPP_OPTION (pfile, sysroot).
17240 (init_standard_includes): Handle add_sysroot. Do not
17241 add unrelocated copies of relocated directories.
17242 (COMMAND_LINE_OPTIONS): Add -isysroot.
17243 (cpp_handle_option): Handle -isysroot.
17244 * cpplib.h (struct cpp_options): Add sysroot member.
17245 * gcc.c (The Specs Language): Update description of %I.
17246 (target_system_root_changed): New variable.
17247 (process_command): Conditionalize make_relative_prefix call
17248 on !VMS and TARGET_SYSTEM_ROOT_RELOCATABLE. Set
17249 target_system_root_changed.
17250 (do_spec_1): Add -isysroot to %I.
17251 * doc/invoke.texi (Spec Files): Update description of %I.
17252 * doc/install.texi (--with-sysroot): Update comment about
17253 relocation.
17254
4302db79
KH
172552003-02-13 Kazu Hirata <kazu@cs.umass.edu>
17256
17257 * config/h8300/h8300.md (a peephole2): New.
17258
e0d9cc77 172592003-02-13 Robert Lipe <robertlipe@usa.net>
ddb0ae00 17260 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
e0d9cc77
RL
17261
17262 * doc/install.texi (Specific): Update three SCO-related URLs.
17263
9fb93b00
AS
172642003-02-13 Andreas Schwab <schwab@suse.de>
17265
17266 * cgraph.c (SET_NPREDECESORS): Add intermediate cast to size_t.
17267 Parenthesize properly.
17268 (NPREDECESORS): Parenthesize properly.
17269
22ffcc6f
GDR
172702003-02-13 Gabriel Dos Reis <gdr@integrable-solutions.net>
17271
17272 * timevar.h (POP_TIMEVAR_AND_RETURN): New macro.
17273
1fb54135
RS
172742003-02-12 Roger Sayle <roger@eyesopen.com>
17275
17276 * config/i386/i386.md (UNSPEC_FPATAN): New UNSPEC constant.
17277 (atan2sf3, atan2df3, atan2xf3, atan2tf3): New patterns.
17278
17279 * reg-stack.c (subst_stack_regs_pat): Add support for binary
17280 UNSPEC instructions (e.g. "fpatan").
17281
19a7414e
MS
172822003-02-12 Mike Stump <mrs@apple.com>
17283
17284 * varray.c (element_size): Remove.
17285 (uses_ggc): Remove.
17286 (element): Add.
17287 (varray_init): Use new interface.
17288 (varray_grow): Use new interface.
17289 (varray_clear): Use new interface.
17290
e589cc6e
AH
172912003-02-12 Aldy Hernandez <aldyh@redhat.com>
17292
ddb0ae00
ZW
17293 * config/rs6000/spe.h: Add casts to the arguments of the following
17294 macros: evfsabs, evfsnabs, evfsneg, evfsadd, evfssub, evfsmul,
17295 evfsdiv, evfscfui, evfscfsi evfscfuf evfscfsf, evfsctui, evfsctsi,
17296 evfsctuf, evfsctsf, evfsctuiz, evfsctsiz, __ev_get_upper*,
17297 __ev_get_lower*, __ev_get_u32, __ev_get_s32, __ev_get_fs,
17298 __ev_get_u16, __ev_get_s16.
e589cc6e 17299
2bbfc542
KH
173002003-02-12 Kazu Hirata <kazu@cs.umass.edu>
17301
17302 * config/h8300/h8300.md (a peephole2): New.
17303
62c9aa5f 173042003-02-12 Jan Hubicka <jh@suse.cz>
e72fcfe8
JH
17305
17306 * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-unit-at-a-time
17307 (OBJS): Add callgraph.o
17308 (callgraph.o): New.
17309 * c-decl.c (expand_body_1): Break out from ...
17310 (expand_body): This one; change calling convention
17311 (finish_function): Move some of expand_body logic here.
17312 (c_expand_deferred_function): Update call of expand_body
17313 (c_expand_stmt): Use c_expand_body_1.
17314 * c-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Define.
17315 * c-objc-commin.c (c_objc_common_finish_file): Use callgraph code.
17316 * c-tree.h (c_expand_body): Declare.
17317 * callgraph.c: New file.
17318 * flags.h (flag_unit_at_a_time): Declare.
17319 * langhooks.h (LANG_HOOKS_CALLGRAPH_LOWER_FUNCTION,
17320 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION,
17321 LANG_HOOKS_CALLGRAPH_INITIALIZER): New macros.
17322 * langhooks.h (struct lang_hooks_for_callgraph): New.
17323 (struct lang_hooks): Add callgraph field.
17324 * toplev.c (flag_unit_at_a_time): New.
17325 (lang_independent_options): Add flag_unit_at_a_time.
17326 (process_options): Disable unit-at-a-time mode for frontends not
17327 supporting callgraph.
17328 * tree-inline.c (typedef struct inline_data): Add "decl"
17329 (expand_call_inline): Update callgraph.
17330 (optimize_inline_calls): Set id.decl.
17331 * tree.h (cgraph_finalize_function, cgraph_finalize_compilation_unit,
17332 cgraph_create_edges, dump_cgraph, cgraph_optimize, cgraph_remove_call
17333 cgraph_calls_p): Declare.
17334 * invoke.texi (-funit-at-a-time): Document
17335
9037b0c7
AH
173362003-02-12 Aldy Hernandez <aldyh@redhat.com>
17337
ddb0ae00
ZW
17338 * config/rs6000/spe.h: Fix misc formatting.
17339 (__ev_create_ufix32_fs): Cast ev argument.
17340 (__ev_create_sfix32_fs): Same.
17341 (__ev_get_sfix32_fs_internal): Cast arguments to builtins.
17342 (__ev_get_ufix32_fs_internal): Same.
9037b0c7 17343
55ae46b1
RM
173442003-02-12 Ranjit Mathew <rmathew@hotmail.com>
17345
17346 * doc/tm.texi (MODIFY_JNI_METHOD_CALL): Document.
17347 * config/i386/cygwin.h (MODIFY_JNI_METHOD_CALL): New macro.
17348
3963c2e0
ZW
173492003-02-12 Zack Weinberg <zack@codesourcery.com>
17350
17351 * cpplib.c (do_include_common): Move warnings for
17352 #include_next and #import out to callers. Use early-return
17353 instead of nested ifs. Don't do check_eol here.
17354 (parse_include): Do check_eol here with the rest of the
17355 parsing stuff.
17356 (do_include_next, do_import): Now handle warnings.
17357
d1a86812
GP
173582003-02-11 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
17359
17360 * doc/install.texi (Specific): Update AVR- and Darwin-related URLs.
17361
62c9aa5f 173622003-02-12 Jan Hubicka <jh@suse.cz>
6efcd268
JH
17363
17364 * predict.c (estimate_probability): Fix roundoff error.
17365
9083b5da
KH
173662003-02-12 Kazu Hirata <kazu@cs.umass.edu>
17367
17368 * config/h8300/h8300.md (a peephole2): Don't handle 65535.
17369 (two peephole2): New.
17370
86bc9b19
KH
173712003-02-12 Kazu Hirata <kazu@cs.umass.edu>
17372
17373 * config/h8300/h8300.md (several peephole2): Replace
17374 find_regno_note with peep2_reg_dead_p.
17375
ceda50e9
RH
173762003-02-11 Richard Henderson <rth@redhat.com>
17377
17378 * gcse.c (lookup_set): Remove unused argument PAT. Update
17379 both callers.
17380
886e0865
GK
173812003-02-11 Geoffrey Keating <geoffk@apple.com>
17382
17383 * diagnostic.c (real_abort): New.
17384 (diagnostic_report_diagnostic): Call real_abort on error.
17385 * diagnostic.h (diagnostic_abort_on_error): New.
17386 (struct diagnostic_context): Add abort_on_error field.
17387 * toplev.c (setup_core_dumping): New.
17388 (decode_d_option): Handle 'H' case.
17389 * doc/invoke.texi (Debugging Options): Document -dH.
17390
76438597
NN
173912003-02-11 Nathanael Nerode <neroden@gcc.gnu.org>
17392
17393 * Makefile.in: Remove pointless setting of CXXFLAGS for dejagnu
17394 which refers to obsolete directories.
17395
09b568fc
RH
173962003-02-11 Richard Henderson <rth@redhat.com>
17397
17398 * config/alpha/linux.h (TARGET_C99_FUNCTIONS): New.
17399
62c9aa5f 174002002-10-21 Jan Hubicka <jh@suse.cz>
8b978a57
JH
17401
17402 * i386.c (contains_128bit_aligned_vector_p): New function.
17403 (ix86_function_arg_boundary): Properly align vector modes.
17404
a3259be8
BW
174052003-02-11 Bob Wilson <bob.wilson@acm.org>
17406
17407 * config/xtensa/xtensa.md (set_frame_ptr): Change rtl to set reg a7.
17408 * config/xtensa/xtensa.c (xtensa_reorg): Search for UNSPECV_SET_FP
17409 as a SET pattern.
17410
da52a069
RS
174112003-02-11 Roger Sayle <roger@eyesopen.com>
17412
17413 * builtins.c: Fix failure caused by commiting wrong patch.
17414
d58f6584
DJ
174152003-02-11 Dale Johannesen <dalej@apple.com>
17416 * ra-build.c (compare_and_free_webs): Relax checking.
17417 * config/rs6000/darwin.h (HOT_TEXT_SECTION_NAME): Define.
17418 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
17419
22fd5743
FH
174202003-02-11 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
17421
17422 PR optimization/9651
17423 * rtlanal.c (may_trap_p): Handle FIX.
17424
3462df62
DJ
174252003-02-11 Dave Jones <davej@codemonkey.org.uk>
17426
17427 * config/i386/i386.c (override_options): Define c3-2 as a 686 with SSE.
17428 * doc/invoke.texi: Extra alias.
17429
a693fbb9
GK
174302003-02-11 Geoffrey Keating <geoffk@apple.com>
17431
17432 * config/rs6000/host-darwin.c: Fix comment.
17433
bb157ff4
DE
174342003-02-11 David Edelsohn <edelsohn@gnu.org>
17435
17436 * config/rs6000/rs6000.md (divmodsi4): Use register_operand
17437 predicate for mod result.
17438
16ddb599
JDA
174392003-02-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17440
17441 * inclhack.def (hpux_long_double, hpux10_ctype_declarations1,
17442 hpux10_ctype_declarations2, hpux_ctype_macros): New hacks.
17443 * fixincl.x: Rebuilt.
17444 * tests/base/stdlib.h: Update.
17445 * tests/base/ctype.h: New file.
17446
62c9aa5f 174472003-02-11 Jan Hubicka <jh@suse.cz>
6f0d3566
JH
17448
17449 * emit-rtl.c (emit_copy_of_insn_after): Copy insn recog cache too.
17450
d0a5295a
RH
174512003-02-11 Richard Henderson <rth@redhat.com>
17452
17453 * config/i386/i386.c (ix86_expand_movstr): Fail if esi or edi
17454 appropriated as globals.
17455 (ix86_expand_clrstr): Similarly.
17456 * config/i386/i386.md (cmpstrsi): Similarly.
17457
9672132f
KH
174582003-02-11 Kazu Hirata <kazu@cs.umass.edu>
17459
17460 * config/h8300/h8300.md (a peephole2): Add a case of 255.
17461
b5e01d4b
RS
174622003-02-11 Roger Sayle <roger@eyesopen.com>
17463
17464 * optabs.h (enum optab_index): Add new OTI_pow and OTI_atan2.
17465 (pow_optab, atan2_optab): Define corresponding macros.
17466 * optabs.c (init_optabs): Initialize pow_optab and atan2_optab.
17467 * genopinit.c (optabs): Implement pow_optab and atan2_optab
17468 using pow?f3 and atan2?f3 patterns.
17469 * builtins.c (expand_errno_check): New function to update errno
17470 if necessary, split out from expand_builtin_mathfn.
17471 (expand_builtin_mathfn): Use expand_errno_check.
17472 (expand_builtin_mathfn_2): New function to handle expanding binary
17473 math functions, reusing the code in expand_errno_check.
17474 (expand_builtin): Handle the pow and atan2 math built-ins,
17475 BUILT_IN_{POW,POWF,POWL,ATAN2,ATAN2F,ATAN2L} via the new function
17476 expand_builtin_mathfn_2.
17477
17478 * doc/md.texi: Document new pow?f3 and atan2?f3 patterns.
17479
62c9aa5f 174802003-02-11 Jan Hubicka <jh@suse.cz>
cb119f82
JH
17481
17482 * combine.c (combine_simplify_rtx): Fix folding of
17483 nested float_truncates.
17484
a05566a3
KH
174852003-02-11 Kazu Hirata <kazu@cs.umass.edu>
17486
17487 * config/h8300/h8300.md (a peephole2): Fix a typo.
17488
20ae4500
RE
174892003-02-11 Richard Earnshaw <rearnsha@arm.com>
17490
17491 * arm.mc (return_address_mask): Use CC_REGNUM for the condition code
17492 register number.
17493
717d8b71
KH
174942003-02-11 Kazu Hirata <kazu@cs.umass.edu>
17495
17496 * config/h8300/h8300-protos.h: Add a prototype for
17497 gtuleu_operator.
17498 * config/h8300/h8300.c (gtuleu_operator): New.
17499 * config/h8300/h8300.h (PREDICATE_CODES): Add gtuleu_operator.
17500 * config/h8300/h8300.md (a peephole2): New.
17501
62c9aa5f 175022003-02-11 Jan Hubicka <jh@suse.cz>
e36e8f52
JH
17503
17504 * sched-ebb.c (schedule_ebbs): Do not verify_flow_info.
17505
62c9aa5f 175062003-02-11 Jan Hubicka <jh@suse.cz>
c728da61
JH
17507
17508 * predict.c (choose_function_section): Choose sections correctly.
17509
4cc0fdd2
JDA
175102003-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17511
17512 * reload1.c (first_label_num): New.
17513 (reload): Index offsets_known_at and offsets_at using difference of
17514 label number and first label number. Don't use offset pointers.
17515 (set_label_offsets, set_initial_label_offsets): Likewise.
17516
44b1fa11
RS
175172003-02-10 Roger Sayle <roger@eyesopen.com>
17518
17519 * mips-tfile.c (init_file): Add missing initializers in the
17520 "#ifdef __alpha" case.
17521 (file_offset, max_file_offset): Declare as unsigned long.
17522 (write_varray): Cast to "unsigned long" in comparisons against
17523 either file_offset or max_file_offset.
17524 (write_object): Likewise.
17525 (read_seek): Likewise.
17526 (copy_object): Likewise. Declare "ifd" as int to match its use
17527 in add_ext_symbol, and avoid signed/unsigned conditional warning.
17528
2948ade7 175292003-02-10 Nick Clifton <nickc@redhat.com>
3963c2e0 17530 Aldy Hernandez <aldyh@redhat.com>
2948ade7 17531
3963c2e0
ZW
17532 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Do not
17533 override options which have been specified on the command line.
2948ade7 17534
2a4e6df4
KH
175352003-02-10 Kazu Hirata <kazu@cs.umass.edu>
17536
17537 * config/h8300/h8300.md (abssf2): New.
17538 (*abssf2_h8300): Likewise.
17539 (*abssf2_h8300hs): Likewise.
17540
411e2759
PE
175412003-02-10 Phil Edwards <pme@gcc.gnu.org>
17542
17543 * tree.c (build_tree_list): Fix parameter names in comment.
17544
2b24fc41
JJ
175452003-02-10 Janis Johnson <janis187@us.ibm.com>
17546
17547 * config/rs6000/ppc64-fp.c: New file.
17548 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add ppc64-fp.c.
17549
aa634f11
JZ
175502003-02-10 Josef Zlomek <zlomekj@suse.cz>
17551
17552 * Makefile.in (bb-reorder.o): Add dependency on $(FIBHEAP_H).
3963c2e0 17553 * bb-reorder.c (make_reorder_chain): Deleted.
aa634f11
JZ
17554 (make_reorder_chain_1): Deleted.
17555 (find_traces): New function.
17556 (rotate_loop): New function.
17557 (mark_bb_visited): New function.
17558 (find_traces_1_round): New function.
17559 (copy_bb): New function.
17560 (bb_to_key): New function.
17561 (better_edge_p): New function.
17562 (connect_traces): New function.
17563 (copy_bb_p): New function.
17564 (get_uncond_jump_length): New function.
17565 (reorder_basic_blocks): Use new functions (Software Trace Cache).
17566 * cfgcleanup.c (outgoing_edges_match): Enable crossjumping across loop
17567 boundaries.
17568
17edbda5
AH
175692003-02-10 Aldy Hernandez <aldyh@redhat.com>
17570
17571 * config/rs6000/rs6000.c (bdesc_2arg): Change spe_evxor to xorv2si3.
17572
57116c34
DN
175732003-02-09 Dan Nicolaescu <dann@ics.uci.edu>
17574
17575 * tree.h (struct tree_decl): Remove unused live_range_rtl field.
3963c2e0 17576 (DECL_LIVE_RANGE_RTL): Remove.
57116c34 17577
4f448245
NC
175782003-02-10 Nick Clifton <nickc@redhat.com>
17579
17580 * config/arm/aof.h, config/arm/aout.h, config/arm/arm-modes.def,
17581 config/arm/arm-protos.h, config/arm/arm.c, config/arm/arm.h,
17582 config/arm/arm.md, config/arm/cirrus.md, config/arm/coff.h,
17583 config/arm/conix-elf.h, config/arm/ecos-elf.h, config/arm/elf.h,
17584 config/arm/freebsd.h, config/arm/linux-elf.h,
17585 config/arm/linux-gas.h, config/arm/netbsd-elf.h,
17586 config/arm/netbsd.h, config/arm/pe.c, config/arm/pe.h,
17587 config/arm/rtems-elf.h, config/arm/semi.h, config/arm/semiaof.h,
17588 config/arm/strongarm-coff.h, config/arm/strongarm-elf.h,
17589 config/arm/strongarm-pe.h, config/arm/uclinux-elf.h,
17590 config/arm/unknown-elf-oabi.h, config/arm/unknown-elf.h,
17591 config/arm/xscale-elf.h: Replace occurances of "GNU CC" with "GCC"
17592 and reformat as appropriate.
17593
19190d27
KH
175942003-02-10 Kazu Hirata <kazu@cs.umass.edu>
17595
17596 * config/h8300/clzsi2.c: Remove.
17597 * config/h8300/ctzsi2.c: Likewise.
17598 * config/h8300/paritysi2.c: Likewise.
17599 * config/h8300/popcountsi2.c: Likewise.
17600 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Remove clzsi2,
17601 ctzsi2, paritysi2, and popcountsi2.
17602
ecf92f82 176032003-02-10 Eric Botcazou <ebotcazou@libertysurf.fr>
3963c2e0 17604 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
ecf92f82
EB
17605
17606 PR c/7741
17607 * c-decl.c (duplicate_decls): Discard the initializer of the
17608 new decl when the types are conflicting.
17609
ac5e69da
JZ
176102003-02-10 Josef Zlomek <zlomekj@suse.cz>
17611
17612 * Makefile.in (sreal.o): Added.
17613 (predict.o): Depends on sreal.h instead of real.h.
17614 * sreal.c: New file.
17615 * sreal.h: New file.
17616 * predict.c: Use sreal.c instead of real.c.
17617
9b6b54e2
NC
176182003-02-10 Nick Clifton <nickc@redhat.com>
17619
17620 * Contributed support for the Cirrus EP9312 "Maverick"
17621 floating point co-processor. Written by Aldy Hernandez
3963c2e0 17622 <aldyh@redhat.com>.
9b6b54e2
NC
17623 (config/arm/arm.c): Add Cirrus support.
17624 (config/arm/arm.h): Likewise.
17625 (config/arm/aout.h): Likewise.
17626 (config/arm/arm.md): Likewise.
17627 (config/arm/arm-protos.h): Likewise.
17628 (config.gcc): Likewise.
17629 (doc/invoke.texi): Describe new -mcpu value and new
17630 -mcirrus-fix-invalid-insns switch,
17631 (cirrus.md): New file.
17632
62c9aa5f 176332003-02-10 Jan Hubicka <jh@suse.cz>
949824fe
JH
17634
17635 * combine.c (combine_simplify_rtx): Simplify using
17636 (float_truncate (float x)) is (float x)
17637 (float_extend (float_extend x)) is (float_extend x).
17638
546ff777
AM
176392003-02-10 Alan Modra <amodra@bigpond.net.au>
17640
17641 * calls.c (try_to_integrate): Tidy stack_usage_map access.
17642 (emit_library_call_value_1): Likewise. Formatting.
17643 (store_one_arg): Likewise.
17644
626098f9 176452003-02-09 Nick Clifton <nickc@redhat.com>
3963c2e0 17646 Aldy Hernandez <aldyh@redhat.com>
626098f9 17647
3963c2e0
ZW
17648 * config/rs6000/spe.md: spe_evlhhesplat, spe_evlhhossplat,
17649 spe_evlhhousplat, spe_evlwhsplat, spe_evlwwsplat, spe_evldd,
17650 spe_evldh, spe_evldw, spe_evlwhe, spe_evlwhos, spe_evlwhou,
17651 spe_evstdd, spe_evstdh, spe_evstdw, spe_evstdwx, spe_evstwhe,
17652 spe_evstwho, spe_evstwwe, spe_evstwwo: Fix syntax to match newest
17653 docs. Add range test for immediate value.
626098f9
AH
17654
176552003-02-09 Aldy Hernandez <aldyh@redhat.com>
17656
3963c2e0
ZW
17657 Rename spe_evxor to xorv2si3.
17658 (xorv4hi3): New.
17659 (xorv1di3): New.
626098f9 17660
8d23a2c8 176612003-02-10 Glen Nakamura <glen@imodulo.com>
3963c2e0 17662
8d23a2c8
GN
17663 * doc/extend.texi (C++98 Thread-Local Edits): Add missing @item
17664 tag.
17665
62c9aa5f 176662003-02-10 Jan Hubicka <jh@suse.cz>
fdc4b40b
JH
17667
17668 * i386.c (vector_move_operand): New predicate.
17669 (ix86_expand_vector_move): Be happy about 0.
17670 * i386.h (PREDICATE_CODES): Add sse-move_operand.
17671 * i386.md (mov*_internal): Add 'C' alternative.
17672
62c9aa5f 176732003-02-09 Jan Hubicka <jh@suse.cz>
35c28a13
JH
17674
17675 * i386.md (floathi*): Deal with SSE.
17676
62c9aa5f 176772003-02-09 Jan Hubicka <jh@suse.cz>
852c8ba1
JH
17678
17679 * simplify-rtx.c (simplify_unary_operation,
17680 simplify_binary_operation): Deal with vector modes
17681 (simplify_ternary_operation): Deal with no-op VEC_MERGE.
17682
c876997f 176832003-02-09 Richard Sandiford <rsandifo@redhat.com>
2382b79f
RS
17684
17685 * toplev.c (rest_of_compilation): Recompute register usage after
17686 split_all_insns.
17687
8275b011
RH
176882003-02-09 Richard Henderson <rth@redhat.com>
17689
17690 * libgcc-std.ver (__clztf2): New.
17691 (__ctztf2, __popcounttf2, __paritytf2): New.
17692 * libgcc2.c (__clzSI2, __clzDI2, __ctzSI2, __ctzDI2, __popcountSI2,
17693 __popcountDI2, __paritySI2, __parityDI2): Use UWmode and UDWmode;
17694 adjust code to match the different type sizes.
17695 * libgcc2.h (__clzSI2, __ctzSI2, __popcountSI2, __paritySI2,
17696 __clzDI2, __ctzDI2, __popcountDI2, __parityDI2): New macros.
17697
17698 * optabs.c (init_integral_libfuncs): Don't hard-code SImode and
17699 TImode; select word_mode and twice that.
17700 (init_floating_libfuncs): Don't hard-code SFmode and TFmode;
17701 select the modes from float, double, and long double.
17702 (init_optabs): Remove duplicate initializations.
17703
794aca5d
WB
177042003-02-09 Wolfgang Bangerth <bangerth@ticam.utexas.edu>
17705
17706 * doc/install.texi: Squeeze and streamline section on
17707 testing and regression checking.
17708
62c9aa5f 177092003-02-09 Jan Hubicka <jh@suse.cz>
d9deed68
JH
17710
17711 * i386.md (ahi?v*3): Set third operand type to TImode.
17712 * i386.c (ix86_expand_binop_builtin): Extend operand when needed.
17713
17714 * simplify-rtx.c (simplify_subreg): Fix conversion from vector into
17715 integer mode.
17716
17717 * rtl.def (VEC_MERGE, VEC_SELECT, VEC_CONCAT, VEC_DUPLICATE):
17718 Change code so they are arithmetic expressions now.
17719 * simplify-rtx.c (simplify_unary_operation, simplify_binary_operation,
17720 simplify_ternary_operation): Deal with VEC_* expressions.
17721
17722 * i386.md (vmaskcmp, pinsrw, movd patterns): Fix RTL representation.
17723
62c9aa5f 177242003-02-08 Jan Hubicka <jh@suse.cz>
83fd323c
JH
17725
17726 * cfgrtl.c (verify_flow_info): Use control_flow_insn_p.
17727 * reload1.c (fixup_abnormal_edges): Split basic blocks when EH edges
17728 possibly got duplicated.
17729
4ee7aa60
RH
177302003-02-08 Richard Henderson <rth@redhat.com>
17731
17732 * config/alpha/alpha.c (override_options): Turn off explicit
17733 relocs until post-peep2 code duplication resolved.
17734
c117dddc
KH
177352003-02-08 Kazu Hirata <kazu@cs.umass.edu>
17736
17737 * optabs.c (expand_unop): Widen clz properly when clz is done
17738 via libcall.
17739
8aa063fb
KH
177402003-02-08 Kazu Hirata <kazu@cs.umass.edu>
17741
17742 * config/h8300/clzsi2.c: Replace "GNU CC" with "GCC".
17743 * config/h8300/crti.asm: Likewise.
17744 * config/h8300/crtn.asm: Likewise.
17745 * config/h8300/ctzsi2.c: Likewise.
17746 * config/h8300/fixunssfsi.c: Likewise.
17747 * config/h8300/h8300-protos.h: Likewise.
17748 * config/h8300/h8300.c: Likewise.
17749 * config/h8300/h8300.h: Likewise.
17750 * config/h8300/h8300.md: Likewise.
17751 * config/h8300/paritysi2.c: Likewise.
17752 * config/h8300/popcountsi2.c: Likewise.
17753 * config/h8300/rtems.h: Likewise.
17754
01a132bb
ZD
177552003-02-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17756
17757 * doc/invoke.texi: Documentation for my previous commit.
17758 * doc/passes.texi: Ditto.
17759
617b465c
ZD
177602003-02-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17761
17762 * cfgloop.h (fix_loop_placement, can_duplicate_loop_p,
17763 duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
17764 Declare.
17765 (DLTHE_FLAG_UPDATE_FREQ): New.
17766 * cfgloopmanip.c (duplicate_loop, duplicate_subloops, copy_loops_to,
17767 loop_redirect_edge, loop_delete_branch_edge, copy_bbs, remove_bbs,
17768 rpe_enum_p, find_branch, alp_enum_p, add_loop, fix_loop_placements,
17769 fix_bb_placement, fix_bb_placements, place_new_loop,
17770 scale_loop_frequencies, scale_bbs_frequencies, record_exit_edges):
17771 New static functions.
17772 (fix_loop_placement, can_duplicate_loop_p,
17773 duplicate_loop_to_header_edge, loopify, remove_path, split_loop_bb):
17774 New functions.
17775
17776 * cfgloop.h (loop_optimizer_init, loop_optimizer_finalize,
17777 unswitch_loops): Declare.
17778 * loop-init.c: New file.
17779 * loop-unswitch.c: New file.
17780 * Makefile.in (loop-init.o, loop-unswitch.o): New.
17781 * params.def (PARAM_MAX_UNSWITCH_INSNS, PARAM_MAX_UNSWITCH_LEVEL): New.
17782 * toplev.c (DFI_loop2): New dump.
17783 (flag_unswitch_loops): New.
17784 (lang_independent_options): Add it.
17785 (rest_of_compilation): Call new loop optimizer.
17786 (parse_options_and_default_flags): Turn flag_unswitch_loops on with -O3.
17787
3bd03194
KH
177882003-02-08 Kazu Hirata <kazu@cs.umass.edu>
17789
17790 * config/h8300/clzsi2.c: New.
17791 * config/h8300/ctzsi2.c: Likewise.
17792 * config/h8300/paritysi2.c: Likewise.
17793 * config/h8300/popcountsi2.c: Likewise.
17794 * config/h8300/t-h8300 (LIB2FUNCS_EXTRA): Add above files.
17795
d865b122
DE
177962003-02-07 David Edelsohn <edelsohn@gnu.org>
17797
17798 * config/rs6000/rs6000.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
17799 * config/rs6000/rs6000.md (clzsi2): Rename from cntlzw2.
94993909 17800 (ctzsi2): New pattern.
d865b122
DE
17801 (ffssi2): Use clz instead of unspec.
17802 (clzdi2): Rename from cntlzd2.
94993909 17803 (ctzdi2): New pattern.
d865b122
DE
17804 (ffsdi2): Use clz instead of unspec.
17805
8f37dd98
LR
178062003-02-07 Loren James Rittle <ljrittle@acm.org>
17807
17808 * config/alpha/freebsd.h (LINK_SPEC): Weaken error to notice.
17809 * config/ia64/freebsd.h (LINK_SPEC): Likewise.
17810 * config/sparc/freebsd.h (LINK_SPEC): Likewise.
17811 * config/i386/freebsd.h (LINK_SPEC): Add clause to mirror other arches.
17812
83205b9b
WB
178132003-02-07 Wolfgang Bangerth <bangerth@ticam.utexas.edu>
17814
17815 * doc/trouble.texi: Document pitfalls of two-stage name lookup.
17816
710ee3ed
RH
178172003-02-07 Richard Henderson <rth@redhat.com>
17818
17819 PR 9226
3963c2e0
ZW
17820 * gcse.c (local_cprop_find_used_regs): New.
17821 (local_cprop_pass): Use it.
710ee3ed 17822
3ef879d2
FF
178232003-02-07 Fred Fish <fnf@intrinsity.com>
17824
17825 * mips-tfile.c (parse_def): Parenthesize assignments to fix
3963c2e0 17826 precedence bugs.
3ef879d2 17827
a0f0e963 178282003-02-07 Segher Boessenkool <segher@koffie.nl>
3ef879d2 17829
3963c2e0 17830 * genoutput.c (output_get_insn_name): Handle NOOP_MOVE_INSN_CODE.
a0f0e963 17831
46847aa6
RS
178322003-02-07 Roger Sayle <roger@eyesopen.com>
17833
17834 * builtin-types.def (BT_FN_FLOAT_FLOAT_FLOAT): New built-in type.
17835 (BT_FN_LONG_DOUBLE_LONG_DOUBLE_LONG_DOUBLE): Likewise.
17836 (BT_FN_DOUBLE_DOUBLE_DOUBLE): Likewise.
17837 * builtins.def: Define pow, powf, powl, atan2, atan2f and atan2l
17838 builtin functions (and their __builtin_* variants).
17839 * builtins.c (mathfn_built_in): Handle missing log{,f,l} cases.
17840 (expand_builtin): Don't expand log{,f,l}, pow{,f,l} or atan2{,f,l}
17841 when not optimizing.
17842
17843 * doc/extend.texi: Document new pow and atan2 builtins, and
17844 their float and long double variants. Realphabetize builtins.
17845
62c9aa5f 178462003-02-07 Jan Hubicka <jh@suse.cz>
c48d6750
JH
17847
17848 * i386.md (sse2_nandv2di3): Fix.
17849
5e062767
DS
178502003-03-07 Danny Smith <dannysmith@users.sourceforge.net>
17851
17852 * config/i386/i386.h (MS_AGGREGATE_RETURN): New define.
17853 * config/i386/cygwin.h (MS_AGGREGATE_RETURN): Override default
17854 definition.
17855 * config/i386/i386.h (ix86_return_in_memory): Return aggregate
17856 types of up to 8 bytes via registers if MS_AGGREGATE_RETURN.
17857
62c9aa5f 178582003-02-07 Jan Hubicka <jh@suse.cz>
3f755ed0
JH
17859
17860 * i386.md (movdi_rex64_1): Fix mmx<->int move opcode.
17861
0816bcd2
DB
178622003-02-07 Daniel Berlin <dberlin@dberlin.org>
17863
17864 * cfg.c (dump_flow_info): Add back accidently deleted line.
17865
7bf0a593
AP
178662003-02-07 Andrey Petrov <petrov@netbsd.org>
17867
17868 * optabs.c (expand_float): Search wider integer modes first.
17869
01e4596e
BW
178702003-02-07 Bob Wilson <bob.wilson@acm.org>
17871
17872 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Set this
17873 based on preprocessor flag.
17874
fbef91d8
RS
178752003-02-07 Roger Sayle <roger@eyesopen.com>
17876 Richard Henderson <rth@redhat.com>
17877
17878 * gcse.c (implicit_sets): New.
17879 (compute_hash_table_work): Include them in hash table.
17880 (find_implicit_sets, fis_get_condition): New.
17881 (one_cprop_pass): Allocate and free implicit_sets; call
17882 find_implicit_sets before building hash table.
17883
6713831e
JT
178842003-02-07 Jason Thorpe <thorpej@wasabisystems.com>
17885
17886 * config/t-netbsd (USER_H): Revert previous change.
17887
10d2dbe2
GG
178882003-02-07 Gabor Greif <ggreif@lucent.com>
17889
17890 * doc/c-tree.texi (Namespaces): Fix typo.
17891
62c9aa5f 178922003-02-07 Jan Hubicka <jh@suse.cz>
d1d3c9a6
JH
17893
17894 * regrename.c (do_replace, find_oldest_value_reg,
17895 copyprop_hardreg_forward_1): Update register attributes.
17896
1b1f249d
VM
178972003-02-06 Vladimir Makarov <vmakarov@redhat.com>
17898
17899 * genautomata.c (VLA_PTR_CREATE, VLA_PTR_EXPAND, VLA_PTR_ADD,
17900 VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD): Use temporay
17901 variables starting with underscore.
17902 (struct unit_usage): New structure.
17903 (unit_usages, cycle_alt_unit_usages): New global variables.
17904 (check_unit_distribution_in_reserv): Remove it.
17905 (store_alt_unit_usage): New function.
17906 (check_regexp_units_distribution): Rewrite it.
17907
90330d31
JDA
179082003-02-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17909
17910 * config.gcc (hppa*-*-linux*): Set MASK_NO_SPACE_REGS in
17911 target_cpu_default.
17912 * pa.c (attr_length_call): Add 8 to call length (long indirect PA 1.X)
17913 if not MASK_NO_SPACE_REGS.
17914 (output_call): Adjust return pointer, don't load new space register
17915 into %sr0, and use %sr4 for call if TARGET_NO_SPACE_REGS is true.
17916 (pa_asm_output_mi_thunk): Don't load new space register into %sr0 if
17917 TARGET_NO_SPACE_REGS is true.
17918 * pa.md (return_external_pic): Add TARGET_NO_SPACE_REGS to insn
17919 conditions.
17920 (epilogue): Always use return_internal if TARGET_NO_SPACE_REGS is true.
17921 (interspace_jump): Add new pattern for when TARGET_NO_SPACE_REGS is
17922 true. Use bve when TARGET_64BIT is true.
17923
d1164330
RH
179242003-02-06 Richard Henderson <rth@redhat.com>
17925
17926 * combine.c (nonzero_bits): Fix double break.
17927
5fbf0217 179282003-02-06 Eric Botcazou <ebotcazou@libertysurf.fr>
3963c2e0 17929 Richard Henderson <rth@redhat.com>
5fbf0217
EB
17930
17931 PR c/9530
17932 * config/i386/i386.c (ix86_function_ok_for_sibcall): Forbid sibcalls
17933 from functions that return a float to functions that don't.
17934
62c9aa5f 179352003-02-06 Jan Hubicka <jh@suse.cz>
8f62128d
JH
17936
17937 * i386.c (x86_inter_unit_moves): New variable.
17938 (ix86_secondary_memory_needed): Fix 64bit case, honor
17939 TARGET_INTER_UNIT_MOVES
17940 * i386.h (x86_inter_unit_moves): Declare.
17941 (TARGET_INTER_UNIT_MOVES): New macro.
17942 * i386.md (movsi_1): Cleanup constraints; disable
17943 when not doing inter-unit moves.
17944 (movsi_1_nointernunit): New.
17945 (movdi_1_rex64): Fix constraints; deal with SSE->GPR moves.
17946 (movdi_1_rex64_nointerunit): New.
17947 (mivsf_1): disable when not doing inter-unit moves.
17948 (movsf_1_nointerunit): New.
17949
17950 * basic-block.h (inside_basic_block_p): Declare.
17951 * cfgbuild.c (inside_basic_block_p): Make global.
ed446835 17952 * haifa-sched.c (unlink_other_notes): Deal with NOT_INSN_BASIC_BLOCK.
8f62128d
JH
17953 * scheudle-ebb.c (schedule_ebb): Return last basic block of trace;
17954 update CFG.
17955 (fix_basic_block_boundaries, add_missing_bbs): New.
17956 (rank): Use profile.
17957 (scheudle_ebbs): Rely on CFG; update coments.
17958
476d9098
GK
179592003-02-05 Geoffrey Keating <geoffk@apple.com>
17960
17961 * Makefile.in (host_hook_obj): New.
17962 (OBJS): Add $(host_hook_obj).
17963 (host_default.o): New rule.
17964 * config.gcc (host_hook_obj): New, default to host-default.o.
17965 (powerpc-*-darwin*): Use host-darwin.o.
17966 (out_host_hook_obj): New.
17967 * configure: Regenerate.
17968 * configure.in: Print information about out_host_hook_obj, substitute
17969 into output files.
17970 * host-default.c: New file.
17971 * hosthooks.h: New file.
17972 * toplev.c (general_init): Call host_hooks.extra_signals.
17973 * config/rs6000/host-darwin.c: New file.
17974 * config/rs6000/x-darwin: New file.
17975 * doc/hostconfig.texi: Add documentation for new host hook.
17976 Rearrange existing documentation.
17977
69bd9368
RS
179782003-02-05 Roger Sayle <roger@eyesopen.com>
17979
17980 * dwarf2out.c (mem_loc_descriptor): Replace ASM_SIMPLIFY_DWARF_ADDR
17981 with *targetm.delegitimize_address.
17982 (rtl_for_decl_location): Likewise.
17983 * dwarfout.c (output_mem_loc_descriptor): Likewise. Include target.h.
17984 * Makefile.in (dwarf2out.c, dwarfout.c): Depend upon $(TARGET_H)
17985
17986 * config/i386/i386.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
17987 * config/i386/i386-protos.h (i386_simplify_dwarf_addr): Remove
17988 prototype.
17989 * config/i386/i386.c (ix86_delegitimize_address): Renamed from
17990 i386_simplify_dwarf_addr. Made static. Prototyped.
17991 (TARGET_DELEGITIMIZE_ADDRESS): Update definition from
17992 i386_simplify_dwarf_addr to ix86_delegitimize_address.
17993 (ix86_find_base_term): Likewise.
17994 (maybe_get_pool_constant): Likewise.
17995
17996 * config/s390/s390.h (ASM_SIMPLIFY_DWARF_ADDR): Remove definition.
17997 * config/s390/s390-protos.h (s390_simplify_dwarf_addr): Remove
17998 prototype.
17999 * config/s390/s390.c (s390_delegitimize_address): Renamed from
18000 s390_simplify_dwarf_addr. Made static. Prototyped.
18001 (TARGET_DELEGITIMIZE_ADDRESS): Define as s390_delegitimize_address.
18002
7127fd58
RH
180032003-02-05 Richard Henderson <rth@redhat.com>
18004
8dde7a2c 18005 PR c/8602
3963c2e0
ZW
18006 * integrate.c (output_inline_function): Reset input_filename
18007 and lineno from the decl before rest_of_compilation.
7127fd58 18008
7dba8395
RH
180092003-02-05 Richard Henderson <rth@redhat.com>
18010
18011 * defaults.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
18012 (CTZ_DEFINED_VALUE_AT_ZERO): New.
18013 * doc/rtl.texi, doc/tm.texi: Document them.
18014
18015 * combine.c (nonzero_bits) [CLZ, CTZ]: Handle the definedness
18016 of the value at zero properly.
18017 * fold-const.c (tree_expr_nonnegative_p): Likewise.
18018 * simplify-rtx.c (simplify_unary_operation): Likewise.
18019
18020 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
18021 (CTZ_DEFINED_VALUE_AT_ZERO): New.
18022
18023 * config/arm/arm.c (TARGET_INIT_BUILTINS): Remove.
18024 (TARGET_EXPAND_BUILTIN): Remove.
18025 (def_builtin, arm_init_builtins, arm_expand_builtin): Remove.
18026 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): New.
18027 (enum arm_builtins): Remove.
18028 * config/arm/arm.md (UNSPEC_CLZ): Remove.
18029 (clzsi2): Rename from clz; use clz instead of unspec.
18030 (ctzsi2): New.
18031 * config/arm/arm-protos.h: Update.
18032
62c9aa5f 180332003-02-05 Jan Hubicka <jh@suse.cz>
8d705469
JH
18034
18035 * i386-protos.h (x86_emit_floatuns): Declare.
18036 * i386.c (x86_emit_floatuns): New global function.
18037 * i386.md (floatunssisf2, floatunsdisf2,
18038 floatunsdidf2): New patterns.
18039
bc810602
ZD
180402003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
18041
18042 * cfgloopmanip.c (force_single_succ_latches): Fix missindentation.
18043
07938cec
HB
180442003-02-05 Hans Boehm <Hans.Boehm@hp.com>
18045
18046 * config/ia64/unwind-ia64.c: include coretypes.h, tm.h to get
18047 config/ia64/linux.h
18048
c876997f 180492003-02-05 Roger Sayle <roger@eyesopen.com>
ca9398d1
RS
18050
18051 * cfgloop.h (flow_bb_inside_loop_p): Correct prototype again.
18052
4f6ae35d
JJ
180532003-02-05 Jakub Jelinek <jakub@redhat.com>
18054
18055 PR optimization/8555
18056 * config/i386/i386.md (sse_mov?fcc split): Handle op2 == op3 case
18057 instead of aborting.
18058
8acfdd43
RH
180592003-02-04 Richard Henderson <rth@redhat.com>
18060
18061 * config/i386/i386.md (UNSPEC_BSF): Remove.
18062 (ffssi2): Split into cmove and no_cmove insns and splitters;
18063 lose pentium float trick for now.
18064 (ffssi_1): Add * to name; use CTZ instead of UNSPEC.
18065 (ctzsi2, clzsi2, bsr): New.
18066
c407570a
RH
180672003-02-04 Richard Henderson <rth@redhat.com>
18068
18069 * config/ia64/ia64.c (rtx_needs_barrier): Handle POPCOUNT,
18070 UNSPEC_GETF_EXP; remove UNSPEC_POPCNT.
18071 * config/ia64/ia64.md (UNSPEC_POPCNT): Remove.
18072 (ffsdi2): Use popcount instead of unspec.
18073 (popcountdi2): Rename from *popcnt.
18074 (ctzdi2, clzdi2, getf_exp_tf): New.
18075
4b3cf522
KH
180762003-02-04 Kazu Hirata <kazu@cs.umass.edu>
18077
18078 * genconfig.c (main): Generate CC0_P.
18079 * rtl.h (CC0_P): Remove.
18080
dfff898c
RH
180812003-02-04 Richard Henderson <rth@redhat.com>
18082
18083 * libgcc2.h, libgcc2.c (__ffsSI2): New.
18084 (__ffsDI2): Rename from __ffsdi2.
18085 * mklibgcc.in (lib2funcs): Add _ffssi2.
18086
0c9ed856
RH
180872003-02-04 Richard Henderson <rth@redhat.com>
18088
18089 * libgcc2.c (__paritysi2, __paritydi2): Replace last two reduction
18090 rounds with a "bit table" lookup.
18091
9537511b
UW
180922003-02-04 Ulrich Weigand <uweigand@de.ibm.com>
18093
18094 * reload.c (find_reloads): Do not use the mode specified in the insn
3ef879d2 18095 pattern as reload mode for address operands. Do not generate optional
9537511b
UW
18096 reloads for operands where a mandatory reload was already pushed.
18097
1efd0b97
RH
180982003-02-04 Richard Henderson <rth@redhat.com>
18099
18100 * longlong.h [alpha] (count_leading_zeros, count_trailing_zeros): Use
18101 builtins instead of inline assembly.
18102
087fc75a 181032003-02-04 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
3ef879d2 18104
087fc75a
FH
18105 PR c/9376
18106 * libgcc2.c (__subvdi3): Fix typo.
18107
62c9aa5f 181082003-02-04 Jan Hubicka <jh@suse.cz>
f0f0d98e
JH
18109
18110 * i386.md (movti_rex64): Fix constraint.
18111
62c9aa5f 181122003-02-04 Jan Hubicka <jh@suse.cz>
09f26fb5
JH
18113
18114 * i386.md (vector push splitters): Fix typo in resolving conflict.
18115
ff6e2d3e
RB
181162003-02-04 Rodney Brown <rbrown64@csc.com.au>
18117
18118 * config/i386/i386.c (x86_function_profiler): Fix typo in format.
18119
9e80ada7
PE
181202003-02-04 Phil Edwards <pme@gcc.gnu.org>
18121
18122 * doc/install.texi (*-*-linux-gnu): Mention glibc requirements
18123 for recent libstdc++. Remove formatting cruft.
18124
79c758fb
JJ
181252003-02-04 Jakub Jelinek <jakub@redhat.com>
18126
18127 * dwarf2out.c (dwarf2out_finish): Add AT_comp_dir
18128 attribute even if input file name is absolute, but one of the
18129 includes is relative.
18130
b3a8389d
JM
181312003-02-04 Joseph S. Myers <jsm@polyomino.org.uk>
18132
18133 * doc/gcc.texi, doc/gccint.texi, doc/gcov.texi,
18134 doc/include/fdl.texi, doc/invoke.texi: Update to GFDL 1.2.
18135 * doc/install.texi: Update copyright dates. Update to GFDL 1.2.
18136
dabb3f04
RH
181372003-02-03 Richard Henderson <rth@redhat.com>
18138
18139 * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
18140 __popcountsi2, __popcountdi2, __paritysi2, __paritydi2): Change
18141 return type to "int". Shuffle declarations and undef int trap.
18142 * libgcc2.h: Remove their declarations.
18143 * optabs.c (expand_unop): Force outmode to int for bitops.
18144
985d0d50
BW
181452003-02-03 Bob Wilson <bob.wilson@acm.org>
18146
18147 * config/xtensa/xtensa.c (order_regs_for_local_alloc): Order the
18148 coprocessor registers before floating-point registers.
18149 * config/xtensa/xtensa.h (REG_ALLOC_ORDER): Adjust register numbers
18150 to account for a previously removed register.
18151 (SPEC_REG_FIRST, SPEC_REG_LAST, SPEC_REG_NUM, COUNT_REGISTER_REGNUM):
18152 Delete unused macros.
18153
62c9aa5f 181542003-02-03 Jan Hubicka <jh@suse.cz>
7f0e57bd
JH
18155
18156 * i386.c (ix86_expand_store_builtin): Always force op1 to register.
18157 (mov*_internal): Fix predicates; require one of operands to not be
18158 memory.
18159 (SSE?MMX move expanders): Fix predicates; force one of operands to
18160 register.
18161 (SSE/MMX push patterns): Reorganize; fix x86-64 code generation.
18162 (movups/movupd/movdqu patterns): Force one of operands to not be
18163 memory.
18164
c876997f 181652003-02-03 Roger Sayle <roger@eyesopen.com>
7daebb7a
RS
18166
18167 * hooks.c (hook_rtx_rtx_identity): Generic hook function that
18168 takes a single rtx and returns it unmodified.
18169 * hooks.h (hook_rtx_rtx_identity): Prototype here.
ff6e2d3e 18170 * target.h (struct gcc_target): Add "delegitimize_address"
7daebb7a
RS
18171 field to target structure.
18172 * target-def.h (TARGET_DELEGITIMIZE_ADDRESS): Provide default
18173 for delegitimize_address target using hook_rtx_rtx_identity.
18174 (TARGET_INITIALIZER): Initialize delegitimize_address field
18175 using TARGET_DELEGITIMIZE_ADDRESS macro.
18176 * simplify-rtx.c (avoid_constant_pool_reference): Handle float
18177 extensions of constant pool references. Use delegitimize_address
18178 to undo the obfuscation of "-fpic".
18179 * Makefile.in (simplify-rtx.o): Add dependency on target.h.
18180
18181 * config/i386/i386.c (TARGET_DELEGITIMIZE_ADDRESS): Define as
18182 i386_simplify_dwarf_addr.
18183 (ix86_find_base_term): Simplify using i386_simplify_dwarf_addr.
26182e15 18184 (maybe_get_pool_constant): Likewise.
7daebb7a 18185
62c9aa5f 181862003-02-03 Jan Hubicka <jh@suse.cz>
84520a20
JH
18187
18188 * i386.c (ix86_expand_int_movcc): Fix setcc sign bit case.
18189
62c9aa5f 181902003-02-03 Jan Hubicka <jh@suse.cz>
035b2a34
JH
18191
18192 * regclass.c (cannot_change_mode_set_regs): Correct argument order.
18193
1f143d5a
KG
181942003-02-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
18195
18196 * mips/_tilib.c: Don't include tsystem.h or defaults.h. Don't
18197 define LIBGCC2_WORDS_BIG_ENDIAN. Include coretypes.h and tm.h.
18198
4b550d9f
AS
181992003-02-02 Andreas Schwab <schwab@suse.de>
18200
18201 * varasm.c (asm_output_aligned_bss): Declare as possibly unused.
18202
0732a089
RE
182032003-02-02 Richard Earnshaw <rearnsha@arm.com>
18204
18205 * arm.md (sibcall_epilogue): Set the "conds" to "clob".
18206 (epilogue_insns): Likewise.
18207
f269f54f
JDA
182082003-02-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18209
18210 * doc/install.texi (hppa*-hp-hpux11*): Update installation notes.
18211
611ad29e
JDA
182122003-02-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18213
18214 * pa-protos.h (attr_length_millicode_call): Remove second argument.
18215 (attr_length_indirect_call, attr_length_indirect_call,
18216 attr_length_save_restore_dltp): New prototypes.
18217 * pa.c (attr_length_millicode_call): Remove second argument. Check
18218 INSN_ADDRESSES_SET_P in distance calculation.
18219 (output_millicode_call): Check INSN_ADDRESSES_SET_P before using
18220 INSN_ADDRESSES.
18221 (attr_length_call): Check INSN_ADDRESSES_SET_P in distance calculation.
18222 (output_call): Check INSN_ADDRESSES_SET_P before using INSN_ADDRESSES.
18223 Call attr_length_call directly.
18224 (attr_length_indirect_call, output_indirect_call,
18225 attr_length_save_restore_dltp): New functions.
18226 * pa.md (attr_length_millicode_call): Drop second argument from all
18227 patterns.
18228 (return_internal_pic): Delete.
18229 (return_external_pic): Remove use of PIC register and pic operand and
18230 flag checks.
18231 (epilogue): Use return_internal for both normal and pic code.
18232 (call, call_value): Emit new 32-bit pic patterns for symref and
18233 indirect calls. Remove uses for arg pointer and pic register.
18234 (call_symref_pic, call_symref_pic_post_reload, call_reg_pic,
18235 call_reg_pic_post_reload, call_val_symref_pic,
18236 call_val_symref_pic_post_reload, call_val_reg_pic,
18237 call_val_reg_pic_post_reload): New pre and post reload insn patterns.
18238 Implement define_split and define_peephole2 patterns for pre reload
18239 patterns.
18240 (call_symref_64bit, call_internal_reg_64bit, call_value_symref_64bit,
18241 call_value_internal_reg_64bit): Shorten names.
18242 (all call patterns): Explicitly indicate registers used and clobbered.
18243 Use attr_length_indirect_call and attr_length_save_restore_dltp for
18244 attribute length calculation. Move code generation for indirect calls
18245 to output_indirect_call.
18246 (sibcall, sibcall_value): Don't restore PIC register.
18247 (exception_receiver, builtin_setjmp_receiver): Add blockage after PIC
18248 register retore.
18249
8cacda7c
GP
182502003-02-02 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
18251
18252 * doc/install.texi (Testing): Simplify and compress instructions
18253 concerning Dejagnu.
18254
cbc158bb
JDA
182552003-02-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18256
18257 * collect2.c (pexecute_pid): Rename to pid.
18258 (collect_wait, collect_execute, scan_prog_file, scan_libraries): Use
18259 pid.
18260
dcef1843
GK
182612003-02-01 Geoffrey Keating <geoffk@apple.com>
18262
18263 * doc/extend.texi (Function Attributes): Remove documentation
18264 for PowerPC Windows NT function attributes..
18265
5d7bed9d
DJ
182662003-02-01 Daniel Jacobowitz <drow@mvista.com>
18267
18268 * dwarf2out.c (gen_type_die): Check for typedefs before calling
18269 for TYPE_MAIN_VARIANT.
18270
53585c36
RH
182712003-02-01 Richard Henderson <rth@redhat.com>
18272
18273 * libgcc2.c: Include auto-host.h.
18274 (ATTRIBUTE_HIDDEN): New.
18275 (__clz_tab): Don't declare here for clz and ctz.
18276 (__clzsi2, __clzdi2): Use count_leading_zeros.
18277 (__ctzsi2, __ctzdi2): Use count_trailing_zeros.
18278 (__popcount_tab): Mark ATTRIBUTE_HIDDEN.
18279 (__paritysi2, __paritydi2): Use shifts instead of __popcount_tab.
18280 * longlong.h (__clz_tab): Mark ATTRIBUTE_HIDDEN.
18281
bc8a6d63
RH
182822003-02-01 Richard Henderson <rth@redhat.com>
18283
18284 * config/i386/i386.md (addsi_1_zext splitter): Add TARGET_64BIT
18285 to the conditional.
18286 (ashlsi3_1_zext splitter): Likewise.
18287
2928cd7a
RH
182882003-02-01 Richard Henderson <rth@redhat.com>
18289
18290 * optabs.c (expand_unop): Use word_mode for outmode of bit scaners.
18291 * libgcc2.c (__ffsdi2, __clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
18292 __popcountsi2, __popcountdi2, __paritysi2 __paritydi2): Change
18293 return type to Wtype.
18294
18295 * libgcc-std.ver (GCC_3.4): Fix inheritance.
18296
18297 * config/i386/i386.md (ffssi2): Use nonimmediate_operand for
18298 expander input constraint.
18299
183002003-02-01 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
18301
ff6e2d3e
RB
18302 * optabs.h (optab_index): Add OTI_clz, OTI_ctz, OTI_popcount and
18303 OTI_parity.
18304 (clz_optab, ctz_optab, popcount_optab, parity_optab): New.
18305 * optabs.c (widen_clz, expand_parity): New.
18306 (expand_unop): Handle clz and parity. Hardcode SImode as outmode
18307 for libcalls to clz, ctz, popcount, and parity.
18308 (init_optabs): Init clz_optab, ctz_optab, popcount_optab and
18309 parity_optab, and set up libfunc handlers.
18310 * libgcc2.c (__clzsi2, __clzdi2, __ctzsi2, __ctzdi2,
18311 __popcountsi2, __popcountdi2, __paritysi2 __paritydi2,
18312 __popcount_tab): New.
18313 * libgcc2.h: Declare them.
18314 * libgcc-std.ver (GCC_3.4): Add new functions from libgcc2.c.
18315 * genopinit.c (optabs): Add clz_optab, ctz_optab, popcount_optab
18316 and parity_optab.
18317 * builtin-types.def (BT_FN_INT_LONG, BT_FN_INT_LONGLONG): New.
18318 * builtins.def (BUILT_IN_CLZ, BUILT_IN_CTZ, BUILT_IN_POPCOUNT,
18319 BUILT_IN_PARITY, BUILT_IN_FFSL, BUILT_IN_CLZL, BUILT_IN_CTZL,
18320 BUILT_IN_POPCOUNTL, BUILT_IN_PARITYL, BUILT_IN_FFSLL,
18321 BUILT_IN_CLZLL, BUILT_IN_CTZLL, BUILT_IN_POPCOUNTLL,
18322 BUILT_IN_PARITYLL): New.
18323 * builtins.c (expand_builtin_unop): Rename from expand_builtin_ffs
18324 and add optab argument.
18325 (expand_builtin): Expand BUILT_IN_{FFS,CLZ,POPCOUNT,PARITY}*.
18326 * tree.def (CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR, PARITY_EXPR): New.
18327 * expr.c (expand_expr): Handle them.
18328 * fold-const.c (tree_expr_nonnegative_p): Likewise.
18329 * rtl.def (CLZ, CTZ, POPCOUNT, PARITY): New.
18330 * reload1.c (eliminate_regs): Handle them.
18331 (elimination_effects): Likewise.
18332 * function.c (instantiate_virtual_regs_1): Likewise
18333 * genattrtab.c (check_attr_value): Likewise.
18334 * simplify-rtx.c (simplify_unary_operation): Likewise.
18335 * c-common.c (c_common_truthvalue_conversion): Handle POPCOUNT_EXPR.
18336 * combine.c (combine_simplify_rtx): Handle POPCOUNT and PARITY.
18337 (nonzero_bits): Handle CLZ, CTZ, POPCOUNT and PARITY.
18338 * config/alpha/alpha.md (clzdi2, ctzdi2, popcountdi2): New.
18339 * config/arm/arm.c (arm_init_builtins): Rename __builtin_clz to
18340 __builtin_arm_clz.
18341 * Makefile.in (LIB2FUNCS_1, LIB2FUNCS_2): Move...
18342 * mklibgcc.in (lib2funcs): ...here and merge. Add new members.
18343 * doc/extend.texi (Other Builtins): Add new builtins.
18344 * doc/md.texi (Standard Names): Add new patterns.
2928cd7a 18345
112f7223
UW
183462003-02-01 Ulrich Weigand <uweigand@de.ibm.com>
18347
18348 * reload.c: Revert 2003-01-31 change.
18349
62c9aa5f 183502003-02-01 Jan Hubicka <jh@suse.cz>
434c87d4
JH
18351
18352 * combine.c (combine_simplify_rtx): Use reversed_comparison_code_parts.
18353
271bd540
RS
183542003-02-01 Richard Sandiford <rsandifo@redhat.com>
18355
18356 * flags.h (flag_volatile): Remove declaration.
18357 (flag_volatile_global, flag_volatile_static): Likewise.
18358 * c-typeck.c (build_indirect_ref): Don't check flag_volatile.
18359 * toplev.c (flag_volatile): Remove definition.
18360 (flag_volatile_global, flag_volatile_static): Likewise.
18361 (f_options): Remove corresponding entries here.
18362 * varasm.c (make_decl_rtl): Don't check flag_volatile_global
18363 or flag_volatile_static.
18364 * doc/invoke.texi: Remove documentation of -fvolatile,
18365 -fvolatile-global and -fvolatile-static.
18366
17e6098e
JDA
183672003-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18368
18369 * pa.c (pa_output_function_prologue, pa_output_function_epilogue): Move
18370 updating of total_code_bytes from prologue to epilogue.
18371
2f278625
UW
183722003-01-31 Ulrich Weigand <uweigand@de.ibm.com>
18373
18374 * reload.c (find_reloads): Do not use the mode specified in the insn
18375 pattern as reload mode for address operands. Do not generate optional
18376 reloads for operands where a mandatory reload was already pushed.
18377 Generate optional reloads only in the final pass though find_reloads.
18378 (have_replacement_p): New function.
18379
05c425a9
GP
183802003-01-31 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
18381
18382 * doc/install.texi (Testing): Remove a reference to our obsolete
18383 /testresults web pages and strip redundant information concerning
18384 test results.
18385 (Binaries): Refer to Microsoft Windows instead of listing all
18386 possible variants.
18387
62c9aa5f 183882003-02-01 Jan Hubicka <jh@suse.cz>
b0c42aed
JH
18389
18390 * loop.c (emit_prefetch_instructions): Do conversion at right place in
18391 RTL chain.
18392
18393 * combine.c (simplify_set): Reverse order of ragumetns to
18394 REG_CANNOT_CHANGE_MODE_P
18395 * df.c (df_def_record_1): Likewise.
18396 * recog.c (register_operand): Likewise.
18397 * simplify-rtx.c (simplify_subreg): Likewise.
18398 * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Update use of
18399 CANNOT_CHANGE_MODE_CLASS.
18400 * regclass.c (cannot_change_mode_set_regs, invalid_mode_change_p):
18401 Likewise.
18402 * reload.c (push_reload): Likewise.
18403 * alpha.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18404 * ia64.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18405 * mips.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18406 * mips-protos.h (mips_cannot_change_mode_class): Update prototype.
18407 * mips.c (mips_cannot_change_mode_class): Update.
18408 * pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18409 * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18410 * s390.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18411 * sh.h (CANNOT_CHANGE_MODE_CLASS): Update definition.
18412 * sh-protos.h (sh_cannot_change_mode_class): Update prototype.
18413 * sh.c (sh_cannot_change_mode_class): Update.
18414 * i386.h (CANNOT_CHANGE_MODE_CLASS): New.
18415 * tm.texi (CANNOT_CHANGE_MODE_CLASS): Update documentation.
18416
1f61a15d
GK
184172003-01-31 Geoffrey Keating <geoffk@apple.com>
18418
18419 * config/darwin.h (LINK_COMMAND_SPEC): Update for Nathan's recent
18420 change to LINK_COMMAND_SPEC in gcc.c.
18421
7c712dcc
LR
184222003-01-31 Jan Hubicka <jh@suse.cz>
18423
18424 PR c/9506
18425 * i386.c (override_options): Use DEFAULT_PCC_STRUCT_RETURN.
18426
e137391e
JDA
184272003-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18428
18429 * pa32-regs.h (REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Delete
18430 duplicated code.
18431
1824b90d
NS
184322003-01-31 Nathan Sidwell <nathan@codesourcery.com>
18433
18434 * tree.h (TYPE_BINFO_SIZE, TYPE_BINFO_SIZE_UNIT): Remove.
18435 (BINFO_ELTS): New #define.
18436 * stor-layout.c (finalize_record_size): Don't set them.
18437 * cp/cp-tree.h (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX,
18438 BINFO_PRIMARY_BASE_OF): Use BINFO_ELTS.
18439 (BINFO_LANG_ELTS): New #define.
18440 * cp/tree.c (make_binfo): Use BINFO_LANG_ELTS.
18441 * java/class.c (make_class): Use BINFO_ELTS.
18442 (set_super_info): Likewse.
18443 (add_interface_do): Likewise.
18444 * objc/objc-act.c (start_class): Use BINFO_ELTS.
18445
8f9a402c
DS
184462003-01-31 Danny Smith <dannysmith@users.sourceforge.net>
18447
18448 * timevar.c (getrusage): Don't ever declare if not HAVE_GETRUSAGE.
18449 (times): Don't ever declare if not HAVE_TIMES.
18450 (clock): Don't ever declare if not HAVE_CLOCK.
18451
cdd1f01b
RH
184522003-01-30 Richard Henderson <rth@redhat.com>
18453
18454 * flow.c (update_life_info): Zap life info after cleanup_cfg.
18455 (regno_uninitialized): Use correct live at function entry set.
18456 (regno_clobbered_at_setjmp): Likewise.
18457
18458 * expr.c (store_expr): Promote all MEM intermediates to regs.
18459
6bc82793
KH
184602003-01-30 Kazu Hirata <kazu@cs.umass.edu>
18461
18462 * config/arm/arm.c: Fix comment typos.
18463 * config/arm/arm.h: Likewise.
18464 * config/arm/netbsd-elf.h: Likewise.
18465 * config/arm/netbsd.h: Likewise.
18466
f099d360
GK
184672003-01-30 Geoffrey Keating <geoffk@apple.com>
18468
18469 * gengtype.c (struct walk_type_data): Add needs_cast_p.
18470 (walk_type): Set needs_cast_p in walk_type_data.
18471 (write_types_process_field): Supply casts when required to suppress
18472 warnings.
18473 (write_root): Cast gt_pch_n_S to suppress warning.
18474 * Makefile.in: Remove -Wno-error from gtype-desc.o and c-decl.o.
f099d360
GK
18475 * config/rs6000/rs6000.c (print_operand): Mask off high bits only
18476 when they might exist.
18477 * config/rs6000/t-rs6000: Remove -Wno-error from varasm.o,
18478 insn-conditions.o, and rs6000.o.
18479
52895e1a
RH
184802003-01-30 Richard Henderson <rth@redhat.com>
18481
18482 * ggc-page.c (G.context_depth_allocations): New.
18483 (G.context_depth_collections): New.
18484 (alloc_page): Set G.context_depth_allocations.
18485 (ggc_collect): Set G.context_depth_collections.
18486 (ggc_push_context): Limit to HOST_BITS_PER_LONG contexts.
18487 (ggc_pop_context): Early exit for no allocations or collections.
18488
c35c7e52
RH
184892003-01-30 Richard Henderson <rth@redhat.com>
18490
18491 * tree-inline.c (walk_tree): Streamline duplicate hash table lookup.
18492
e43dd89d
RE
184932003-01-30 Richard Earnshaw <rearnsha@arm.com>
18494
18495 * arm.c (arm_compute_initial_elimination_offset): If optimizing for
18496 size, the link register is always saved if any other register is
18497 saved.
18498
87a902e4
KH
184992003-01-30 Kazu Hirata <kazu@cs.umass.edu>
18500
18501 * config/h8300/h8300-protos.h: Update the prototype for
18502 compute_plussi_cc.
18503 (cpp_reader): Declare before it is used.
18504 * config/h8300/h8300.c (compute_plussi_cc): Change the return
18505 type to int.
18506 * config/h8300/h8300.md (monitor_prologue): Call abort() if we
18507 see an unknown H8 variant.
18508
185092003-01-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
0186a143 18510
ff6e2d3e 18511 PR target/9316
0186a143
RC
18512 * config/rs6000/rtems.h: Add CPP_OS_DEFAULT_SPEC.
18513 * config/rs6000/sysv4.h: Add CPP_OS_RTEMS_SPEC.
18514 * config/rs6000/t-rtems: New file. multilib variants to match OS.
18515 * config.gcc (powerpc-*-rtems*): Use rs6000/t-rtems instead of
18516 rs6000/t-ppcgas so we get the desired multilibs.
18517
f55d7103
NC
185182003-01-30 Nick Clifton <nickc@redhat.com>
18519
18520 * config/arm/arm.c (arm_output_epilogue): Update stack pointer
18521 when popping saved IP register off the stack.
18522
b6d08ca1
KH
185232003-01-30 Kazu Hirata <kazu@cs.umass.edu>
18524
18525 * config/rs6000/aix43.h: Fix comment typos.
18526 * config/rs6000/aix51.h: Likewise.
18527 * config/rs6000/aix52.h: Likewise.
18528 * config/rs6000/altivec.h: Likewise.
18529 * config/rs6000/rs6000.c: Likewise.
18530 * config/rs6000/rs6000.h: Likewise.
18531 * config/rs6000/rs6000.md: Likewise.
18532 * config/rs6000/spe.md: Likewise.
18533
14d22dd6
MM
185342003-01-29 Mark Mitchell <mark@codesourcery.com>
18535
18536 * c-common.c (builtin_define_float_constants): Define
18537 __<TYPE>_HAS_INFINITY__ and __<TYPE>_HAS_QUIET_NAN__.
18538
825db093
KH
185392003-01-30 Kazu Hirata <kazu@cs.umass.edu>
18540
18541 * config/sh/lib1funcs.asm: Fix comment typos.
18542 * config/sh/linux.h: Likewise.
18543 * config/sh/sh.c: Likewise.
18544 * config/sh/sh.md: Likewise.
18545
f1d5271a
LR
185462003-01-30 Loren James Rittle <ljrittle@acm.org>
18547
18548 * objc/Make-lang.in (objc-parse.y): Find c-parse.in in $(srcdir).
18549
266a9ef1
AO
185502003-01-30 Alexandre Oliva <aoliva@redhat.com>
18551
18552 * config/fp-bit.h (__make_dp): Declare if TMODES.
18553
0889116d
KH
185542003-01-29 Kazu Hirata <kazu@cs.umass.edu>
18555
18556 * config/h8300/h8300.h (PREDICATE_CODES): Add entries for
18557 general_operand_src and general_operand_dst.
18558
c8c99a68
DE
185592003-01-29 David Edelsohn <edelsohn@gnu.org>
18560
18561 * config/rs6000/rs6000.c (function_arg_pass_by_reference):
18562 Return true for variable sized types.
18563 (rs6000_va_arg): Handle variable sized types passed by reference
18564 on non-SVR4 ABI.
18565
ccf4d512
RE
185662003-01-29 Richard Earnshaw <rearnsha@arm.com>
18567
18568 * arm.c (arm_legtimize_address): New function.
18569 * arm-protos.h (arm_legtimize_address): Add prototype.
18570 * arm.h (ARM_LEGITIMIZE_ADDRESS): Use arm_legitimize_address.
18571 (LEGITIMIZE_ADDRESS, THUMB_LEGITIMIZE_ADDRESS): Wrap with
18572 do ... while (0)
18573
0889116d 185742003-01-29 Joel Sherrill <joel@OARcorp.com>
0680c8fb 18575
7429b411 18576 PR bootstrap/9296
0680c8fb 18577 * gthr-rtems.h: Define __GTHREAD_MUTEX_INIT. Apparently no code
7429b411 18578 depended on it being defined until now.
0680c8fb 18579
7429b411 185802003-01-29 Joel Sherrill <joel@OARcorp.com>
c934274a 18581
7429b411 18582 PR target/9295
c934274a
JS
18583 * config/mips/rtems.h: Predefine __USE_INIT_FINI__ so generic
18584 RTEMS code knows which C++ initialization style the toolset
7429b411 18585 configuration is using.
c934274a 18586
0889116d 185872003-01-29 Joel Sherrill <joel@OARcorp.com>
2e327e6e 18588
7429b411 18589 PR bootstrap/9293
ff6e2d3e 18590 * config/m68k/t-crtstuff: Replace spaces with tabs, add
2e327e6e 18591 $(MULTILIB_CFLAGS) as compiler option and multilib crtbegin/end.o.
2e327e6e 18592
0889116d 185932003-01-29 Joel Sherrill <joel@OARcorp.com>
64abe03e 18594
7429b411 18595 PR bootstrap/9292
64abe03e
JS
18596 * config.gcc (hppa1.1-rtems): Did not include t-rtems nor enable
18597 RTEMS threads.
18598 * config/pa/rtems.h (LIB_SPEC): Use -N when linking.
64abe03e 18599
2f12fb2b
NC
186002003-01-29 Nick Clifton <nickc@redhat.com>
18601
18602 * Makefile.in (c-parse.o): Locate source file in $(parsedir)
18603 not $(srcdir).
18604
cf0150b9
AH
186052003-01-29 Andrew Haley <aph@redhat.com>
18606
18607 * tree-inline.c (walk_tree): Add CHAR_TYPE.
18608
62c9aa5f 186092003-01-29 Jan Hubicka <jh@suse.cz>
9b74f3ea
JH
18610
18611 * i386.md (subdi3_carry_rex64): Fix typo.
18612
e150159c
SS
186132003-01-28 Stan Shebs <shebs@apple.com>
18614
18615 * coretypes.h (cpp_reader): Forward declare struct.
18616 * c-pragma.h (cpp_reader): Remove forward declaration.
18617 * hashtable.h (cpp_reader): Likewise.
18618 * scan.h (cpp_reader): Likewise.
18619 * tree.h (cpp_reader): Likewise.
18620 * config/darwin-protos.h (cpp_reader): Likewise.
18621 * config/arm/arm-protos.h (cpp_reader): Likewise.
18622 * config/rs6000/rs6000-protos.h: Remove GCC_CPPLIB_H ifdef, use
18623 struct cpp_reader in prototypes.
18624
53b50ac1
CC
186252003-01-28 Christian Cornelssen <ccorn@cs.tu-berlin.de>
18626
18627 * doc/install.texi: Add documentation for installation into
18628 tooldirs and with DESTDIR.
18629
021aa6ed
RH
186302003-01-28 Richard Henderson <rth@redhat.com>
18631
18632 * config.gcc (ia64*-*-aix*): Remove.
18633 * config/ia64/aix.h, config/ia64/t-aix: Remove file.
18634 * config/ia64/unwind-aix.c: Remove file.
18635
c1c1d123
AS
186362003-01-28 Andreas Schwab <schwab@suse.de>
18637
ff6e2d3e
RB
18638 * config/m68k/m68k.md (tablejump+2): Don't sign extend an address
18639 register.
18640 * config/m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Likewise.
18641 * config/m68k/coff.h (ASM_RETURN_CASE_JUMP): Likewise.
18642 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Likewise.
18643 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
18644 * config/m68k/mot3300.h (ASM_RETURN_CASE_JUMP): Likewise.
18645 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
18646 * config/m68k/pbb.h (ASM_RETURN_CASE_JUMP): Likewise.
c1c1d123 18647
6d09ef27
RS
186482003-01-28 Richard Sandiford <rsandifo@redhat.com>
18649
18650 * combine.c (nonzero_bits): Fix check for negative divide operands.
18651
1e1bd14e
RH
186522003-01-28 Richard Henderson <rth@redhat.com>
18653
18654 * config/ia64/ia64.c (ia64_rwreloc_section_type_flags): New.
18655 * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): New.
18656
e37135f7
RH
186572003-01-28 Richard Henderson <rth@redhat.com>
18658
18659 * cse.c (find_best_addr): Kill !ADDRESS_COST code.
18660
75642f32
RH
18661 * config/cris/cris.c (cris_address_cost): Make static.
18662 (TARGET_RTX_COSTS, TARGET_ADDRESS_COST): New.
18663 * config/cris/cris.h (ADDRESS_COST): Remove.
18664 * config/cris/cris-protos.h: Update.
18665
e37135f7 186662003-01-23 Mike Stump <mrs@apple.com>
1f80c9ef
MS
18667
18668 * regclass.c (init_reg_autoinc): New function.
18669 (regclass): Move initialization of forbidden_inc_dec_class from
26182e15 18670 here...
1f80c9ef 18671 (init_regs): to here. Avoids reinitialization for each function,
26182e15 18672 saving compilation time.
1f80c9ef 18673
9fbd3e41
JM
186742003-01-28 Jason Merrill <jason@redhat.com>
18675
18676 * cpplib.h (struct cpp_options): Add warn_deprecated field.
18677 * cppinit.c (cpp_create_reader): Turn it on by default.
18678 * c-opts.c (c_common_decode_option): Set it.
18679 * cpplib.c (do_pragma_once): Only complain about #pragma once
18680 if warn_deprecated is set.
18681
fe352c29 186822003-01-28 Dale Johannesen <dalej@apple.com>
9fbd3e41 18683
1e1bd14e
RH
18684 * emit-rtl.c (const_double_htab_hash): Use mode in the hash.
18685 * loop.c (scan_loop): Move movables on -Os rich-register targets.
18686 * config/rs6000/rs6000.md (sibcall*): Use match_operand for LR.
fe352c29 18687
dcefdf67
RH
186882003-01-28 Richard Henderson <rth@redhat.com>
18689
18690 * target.h (targetm.address_cost): New.
18691 * target-def.h (TARGET_ADDRESS_COST): New.
18692 (TARGET_RTX_COSTS): Uncomment. Oops.
18693 * cse.c (address_cost): Use new target hook.
18694 (default_address_cost): New.
18695 * output.h (default_address_cost): Declare.
18696 * hooks.c (hook_int_rtx_0): New.
18697 * hooks.h (hook_int_rtx_0): Declare.
18698 * loop.c (combine_givs_p): Remove if 0 code.
18699 * system.h (ADDRESS_COST): Poison.
18700
18701 * config/alpha/alpha.c, config/alpha/alpha.h, config/d30v/d30v.c,
18702 config/d30v/d30v.h, config/ia64/ia64.c, config/ia64/ia64.h,
18703 config/m32r/m32r.c, config/m32r/m32r.h, config/mcore/mcore.c,
18704 config/mcore/mcore.h, config/mmix/mmix.c, config/mmix/mmix.h,
18705 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/sparc/sparc.c,
18706 config/sparc/sparc.h, config/v850/v850.c, config/v850/v850.h,
18707 config/xtensa/xtensa.c, config/xtensa/xtensa.h
18708 (TARGET_ADDRESS_COST): Define as hook_int_rtx_0.
18709 (ADDRESS_COST): Remove.
18710
18711 * config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
18712 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
18713 config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
18714 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
18715 config/dsp16xx/dsp16xx.h, config/i386/i386-protos.h,
18716 config/i386/i386.c, config/i386/i386.h, config/i960/i960-protos.h,
18717 config/i960/i960.c, config/i960/i960.h, config/ip2k/ip2k-protos.h,
18718 config/ip2k/ip2k.c, config/ip2k/ip2k.h, config/mips/mips-protos.h,
ff6e2d3e 18719 config/mips/mips.c, config/mips/mips.h,
dcefdf67 18720 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
ff6e2d3e 18721 config/m68hc11/m68hc11.h, config/ns32k/ns32k-protos.h,
dcefdf67
RH
18722 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa-protos.h,
18723 config/pa/pa.c, config/pa/pa.h, config/s390/s390-protos.h,
18724 config/s390/s390.c, config/s390/s390.h, config/vax/vax-protos.h,
18725 config/vax/vax.c, config/vax/vax.h
18726 (foo_address_cost): Make static.
18727 (TARGET_ADDRESS_COST): New.
18728 (ADDRESS_COST): Remove.
18729
18730 * config/arm/arm.h, config/arm/arm.c, config/m88k/m88k.h,
18731 config/m88k/m88k.c, config/romp/romp.h, config/romp/romp.c,
18732 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
18733 config/stormy16/stormy16.h
18734 (ADDRESS_COST): Move code ...
18735 (foo_address_cost): ... here.
18736 (TARGET_ADDRESS_COST): New.
18737
18738 * config/m32r/m32r.c (m32r_address_cost): Remove.
18739 * config/m32r/m32r-protos.h: Update.
18740
18741 * config/mmix/mmix.c (mmix_address_cost): Remove.
18742 * config/mmix/mmix-protos.h: Update.
18743
18744 * config/mn10300/mn10300.c (mn10300_address_cost_1): Rename from
18745 mn10300_address_cost; move unsig allocation ...
18746 (mn10300_address_cost): ... here.
18747 (TARGET_ADDRESS_COST): New.
18748 * config/mn10300/mn10300-protos.h: Update.
18749 * config/mn10300/mn10300.h (ADDRESS_COST): Remove.
18750
75642f32
RH
18751 * doc/tm.texi: Update.
18752
58fb7809
VM
187532003-01-28 Vladimir Makarov <vmakarov@redhat.com>
18754
18755 * haifa-sched.c (schedule_insn): Return necessary cycle advance
18756 after issuing the insn.
18757 (rank_for_schedule): Make a insn with /S the highest priority
18758 insn.
18759 (move_insn): Ignore schedule groups. Clear SCHED_GROUP_P.
18760 (choose_ready): Check SCHED_GROUP_P.
18761 (schedule_block): Advance cycle after issuing insn if it is
18762 necessary. Don't reorder insns if there is an insn with /S.
18763 (set_priorities): Ignore schedule groups.
18764
18765 * sched-deps.c (remove_dependence, group_leader): Remove the
18766 functions.
18767 (add_dependence): Ignore schedule groups.
18768 (set_sched_group_p): Don't make copy of dependencies from previous
18769 insn of the schedule group. Add anti-dependency to the previous
18770 insn of the schedule group.
18771 (compute_forward_dependences): Ignore schedule groups.
18772
18773 * sched-ebb.c (init_ready_list): Ignore schedule groups.
18774
18775 * sched-rgn.c (init_ready_list): Ditto.
18776 (can_schedule_ready_p): Ditto.
ff6e2d3e 18777
371c988b
VM
187782003-01-28 Vladimir Makarov <vmakarov@redhat.com>
18779
18780 * config/i386/i386.md (*movsi_1): Use movdqa to move one xmm
18781 register to another one.
18782
40cdfd5a
RH
187832003-01-28 Richard Henderson <rth@redhat.com>
18784
18785 * calls.c (default_must_pass_in_stack): Fix typo in !type case.
18786
a77b7e32
RS
187872003-01-28 Roger Sayle <roger@eyesopen.com>
18788
18789 * cse.c (cse_insn): Avoid redundant REG_EQUAL notes.
18790
3620944c
RS
187912003-01-28 Richard Sandiford <rsandifo@redhat.com>
18792
18793 * config/sh/sh.h (CLASS_MAX_NREGS): If TARGET_SHMEDIA, and the given
18794 class contains a floating-point register, return the size of the
18795 mode in half words.
18796
62c9aa5f 187972003-01-28 Jan Hubicka <jh@suse.cz>
e6e81735 18798
26182e15
SB
18799 * i386.c (ix86_carry_flag_operator): New predicate.
18800 (fcmov_operator): Fix whitespace.
18801 (ix86_expand_carry_flag_compare): Deal with floating point.
18802 (ix86_expand_int_movcc): Deal with fp; update insn expansion
18803 (ix86_expand_int_addcc): Likewise.
18804 (ix86_expand_strlensi_unroll_1): likewsie.
18805 * i386.h (PREDICATE_CODES): Add ix86_carry_flag_operator.
18806 * i386.md (add?i_carry_rex64): Use new predicate.
18807 (sub?i3_carry_rex64): Likewise.
18808 (x86_mov?icc_0_m1*): Likewise.
e6e81735 18809
43196589
AS
188102003-01-28 Andreas Schwab <schwab@suse.de>
18811
32214c32
AS
18812 * cfgloopmanip.c (create_preheader): Initialize src to avoid
18813 warning.
18814
18815 * expmed.c (emit_store_flag): Fix cast to avoid sign
18816 comparison warning.
18817
43196589
AS
18818 * combine.c (force_to_mode): Add cast to fix warning when
18819 STORE_FLAG_VALUE is negative.
18820
3c50106f
RH
188212003-01-27 Richard Henderson <rth@redhat.com>
18822
18823 * Makefile.in (cse.o): Depend on TARGET_H.
18824 * cse.c (rtx_cost): Use targetm.rtx_costs.
18825 * system.h (CONST_COSTS RTX_COSTS DEFAULT_RTX_COSTS): Poison.
18826 * doc/tm.texi: Update.
ff6e2d3e 18827
3c50106f
RH
18828 * target.h (targetm.rtx_costs): New.
18829 * target-def.h (TARGET_RTX_COSTS): New.
18830 * hooks.c (hook_bool_rtx_int_int_intp_false): New.
18831 * hooks.h: Update.
18832
18833 * config/alpha/alpha.c (alpha_rtx_cost_data): New.
18834 (alpha_rtx_costs, TARGET_RTX_COSTS): New.
18835 * config/alpha/alpha.h (PROCESSOR_MAX): New.
18836 (CONST_COSTS, RTX_COSTS): Remove.
18837
18838 * config/arc/arc.c, config/arc/arc.h, config/c4x/c4x.c,
18839 config/c4x/c4x.h, config/cris/cris.c, config/cris/cris.h,
18840 config/d30v/d30v.c, config/d30v/d30v.h, config/dsp16xx/dsp16xx.c,
18841 config/dsp16xx/dsp16xx.h, config/frv/frv.c, config/frv/frv.h,
18842 config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
18843 config/i370/i370.h, config/i386/i386.c, config/i386/i386.h,
18844 config/i960/i960.c, config/i960/i960.h, config/ia64/ia64.c,
18845 config/ia64/ia64.h, config/m32r/m32r.c, config/m32r/m32r.h,
18846 config/m68k/m68k.c, config/m68k/m68k.h, config/m88k/m88k.c,
18847 config/m88k/m88k.h, config/mcore/mcore.c, config/mcore/mcore.h,
18848 config/mips/mips.c, config/mips/mips.h, config/mn10200/mn10200.c,
18849 config/mn10200/mn10200.h, config/mn10300/mn10300.c,
18850 config/mn10300/mn10300.h, config/ns32k/ns32k.c, config/ns32k/ns32k.h,
18851 config/pa/pa.c, config/pa/pa.h, config/pdp11/pdp11.c,
18852 config/pdp11/pdp11.h, config/romp/romp.c, config/romp/romp.h,
18853 config/rs6000/rs6000.c, config/rs6000/rs6000.h, config/s390/s390.c,
18854 config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
18855 config/stormy16/stormy16.c, config/stormy16/stormy16.h,
18856 config/v850/v850.c, config/v850/v850.h,
18857 config/xtensa/xtensa.c, config/xtensa/xtensa.h
18858 (CONST_COSTS, RTX_COSTS): Move code ...
18859 (foo_rtx_costs, TARGET_RTX_COSTS): ... here.
18860
18861 * config/arm/arm.c (arm_rtx_costs_1): Rename from arm_rtx_costs.
18862 (arm_rtx_costs, TARGET_RTX_COSTS): New.
18863 * config/arm/arm-protos.h: Update.
18864 * config/arm/arm.h (DEFAULT_RTX_COSTS): Remove.
18865
18866 * config/avr/avr.h (CONST_COSTS): Move code ...
18867 * config/avr/avr.c (avr_rtx_costs): ... here.
18868 (default_rtx_costs): Make static.
18869 * config/avr/avr-protos.h: Update.
18870
18871 * config/h8300/h8300.c (const_costs): Make static.
18872 (h8300_and_costs, h8300_shift_costs): Likewise.
18873 * config/h8300/h8300-protos.h: Update.
18874
18875 * config/ip2k/ip2k.h (DEFAULT_RTX_COSTS): Remove.
18876 (CONST_COSTS): Move code ...
18877 * config/ip2k/ip2k.c (ip2k_rtx_costs): ... here. Rename from
18878 default_rtx_costs; update for signature change.
18879 * config/ip2k/ip2k-protos.h: Update.
18880
18881 * config/m68hc11/m68hc11.h (RTX_COSTS): Remove.
18882 (CONST_COSTS): Move code ...
18883 * config/m68hc11/m68hc11.c (m68hc11_rtx_costs): ... here.
18884 (TARGET_RTX_COSTS): New.
18885 (m68hc11_rtx_costs_1): Rename from m68hc11_rtx_costs; make static.
18886 * config/m68hc11/m68hc11-protos.h: Update.
18887
18888 * config/m68k/m68k.c (const_int_cost): Make static.
18889 * config/m68k/m68k-protos.h: Update.
18890
18891 * config/mcore/mcore.c (mcore_const_costs): Make static.
18892 (mcore_and_cost, mcore_ior_cost): Likewise.
18893 * config/mcore/mcore-protos.h: Update.
18894
18895 * config/mmix/mmix.c (mmix_rtx_costs, TARGET_RTX_COSTS): New.
18896 (mmix_rtx_cost_recalculated): Remove.
18897 * config/mmix/mmix.h (DEFAULT_RTX_COSTS): Remove.
18898 * config/mmix/mmix-protos.h: Update.
18899
18900 * config/sh/sh.c (shiftcosts): Make static.
18901 (addsubcosts, andcosts, multcosts): Likewise.
18902 * config/sh/sh-protos.h: Update.
18903
18904 * config/sparc/sparc.c (TARGET_RTX_COSTS): New.
18905 (sparc_rtx_costs): Make static; update for change in signature.
18906 * config/sparc/sparc.h (RTX_COSTS_CASES, RTX_COSTS): Remove.
18907 * config/sparc/sparc-protos.h: Update.
18908
18909 * config/v850/v850.c (const_costs): Make static.
18910 * config/v850/v850-protos.h: Update.
18911
18912 * config/vax/vax.h (RTX_COSTS): Remove.
18913 (CONST_COSTS): Move code ...
18914 * config/vax/vax.c (vax_rtx_costs_1): ... here; rename
18915 from vax_rtx_cost.
18916 (vax_rtx_costs, TARGET_RTX_COSTS): New.
18917
b9962e0a
RH
189182003-01-27 Richard Henderson <rth@redhat.com>
18919
18920 * config/vax/vax.h (ASM_OUTPUT_MI_THUNK): Remove. Really.
5ca98980 18921 * config/vax/vax-protos.h: Update. Really.
b9962e0a 18922
8a381273
AO
189232003-01-28 Alexandre Oliva <aoliva@redhat.com>
18924
18925 * config/mips/mips.h (UNITS_PER_HWFPVALUE): Renamed from...
18926 (UNITS_PER_FPVALUE): Defined as the width of a long double, or
18927 zero if no hardware floating point.
18928 (LONG_DUBLE_TYPE_SIZE): Set to 128 on N32 and N64.
18929 (MAX_FIXED_MODE_SIZE): Define to LONG_DOUBLE_TYPE_SIZE.
18930 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define.
18931 (BIGGEST_ALIGNMENT): Same as LONG_DOUBLE_TYPE_SIZE.
18932 (FUNCTION_VALUE_REGNO_P): Set for FP_RETURN+2 on N32 and N64.
18933 * config/mips/mips.c (mips_arg_info): Pass TFmode values in
18934 even FP registers on N32 and N64.
18935 (mips_setup_incoming_varargs): Use UNITS_PER_HWFPVALUE.
18936 (mips_va_start): Adjust alignment of ARG_POINTER_REGNUM.
18937 (mips_va_arg): Use UNITS_PER_HWFPVALUE. Impose additional
18938 even-register-like alignment to 128-bit arguments.
18939 (save_restore_insns): Use UNITS_PER_HWFPVALUE.
18940 (mips_function_value): Likewise. Return TFmode in $f0 and $f2
18941 on N32 or N64.
18942 * config/mips/_tilib.c (__negti2, __ashlti3, __lshrti3): New.
18943 * config/mips/t-iris6 (LIB2FUNCS_EXTRA): Add _tilib.c.
18944 (TPBIT): Set to tp-bit.c.
18945 (tp-bit.c): Create out of fp-bit.c.
18946
820e01be
GDR
189472003-01-28 Gabriel Dos Reis <gdr@integrable-solutions.net>
18948
18949 * c-parse.in: Remove '%expect 32' directive in objc mode.
18950
23af32e6
NS
189512003-01-27 Nathan Sidwell <nathan@codesourcery.com>
18952
18953 * Makefile.in (LIB2FUNCS_ST): Remove _gcov.
18954 (LIBGCOV): New variable.
18955 (libgcc.mk): Add LIBGCOV.
18956 (LIBGCC_DEPS): Add libgcov.c.
18957 (libgcov.a): New target.
18958 (clean): Remove libgcov.a.
18959 (install-libgcc): Do libgcov too.
18960 (stage1-start, stage2-start, stage3-start, stage4-start): Deal
18961 with libgcov.a.
18962 * libgcc2.c (L_gcov): Move into ...
18963 * libgcov.c: ... here. New file.
18964 * mklibgcc.in: Add libgcov rules.
18965 * gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
18966
18967 * doc/invoke.texi (profile-arcs, test-coverage): Update and
18968 clarify.
ff6e2d3e 18969
23af32e6
NS
18970 * profile.c (index_counts_file): Remove duplicate check for open file.
18971
9fe42917 189722003-01-27 Jerry Quinn <jlquinn@optonline.net>
d4463dfc
JQ
18973
18974 * gcc/doc/invoke.texi (Optimization Options): Group together
18975 optional and experimental flags. Move trapv and bounds-check
95fcd0ab 18976 out of this section. Group floating point flags together.
d4463dfc
JQ
18977 (Code Gen Options): Move trapv and bounds-check to here.
18978
244d05fb
JZ
189792003-01-27 Josef Zlomek <zlomekj@suse.cz>
18980
18981 * gcse.c (constprop_register): Check NEXT_INSN (insn) != NULL.
18982
c552c146
RE
189832003-01-27 Richard Earnshaw <rearnsha@arm.com>
18984
18985 PR optimization/9090
18986 * function.c (purge_addressof_1): After pushing an addressed register
18987 onto the stack, simplify the result.
18988
90a21764
VR
189892003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
18990
18991 * doc/extend.texi: Fix typo.
18992
9a376494
VR
189932003-01-27 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
18994
18995 * doc/cppopts.texi: Fix typo.
18996 * doc/objc.texi: Likewise.
18997 * doc/passes.texi: Likewise.
18998
f004e5f3
AO
189992003-01-27 Alexandre Oliva <aoliva@redhat.com>
19000
19001 * real.c (ibm_extended_format): Add 53 to minimum exponent.
19002 (encode_ibm_extended): Adjust.
19003
58c60e52
GDR
190042003-01-26 Gabriel Dos Reis <gdr@soliton.integrable-solutions.net>
19005
19006 * timevar.def (TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION): New
19007 timevar_id enumerations.
19008
e869aa39
KH
190092003-01-26 Kazu Hirata <kazu@cs.umass.edu>
19010
19011 * combine.c: Fix formatting.
19012
74fb4811
KH
190132003-01-26 Kazu Hirata <kazu@cs.umass.edu>
19014
19015 * doc/gccint.texi: Update the copyright.
19016
3bcf1b13
KH
190172003-01-26 Kazu Hirata <kazu@cs.umass.edu>
19018
19019 * doc/cpp.texi: Fix typos.
19020 * doc/extend.texi: Likewise.
19021 * doc/gty.texi: Likewise.
19022 * doc/install.texi: Likewise.
19023 * doc/passes.texi: Likewise.
19024 * doc/rtl.texi: Likewise.
19025 * doc/tm.texi: Likewise.
19026
9e4f94de
KH
190272003-01-26 Kazu Hirata <kazu@cs.umass.edu>
19028
19029 * config/ia64/fde-glibc.c: Fix comment typos.
19030 * config/ia64/hpux.h: Likewise.
19031 * config/ia64/ia64.c: Likewise.
19032 * config/ia64/ia64.h: Likewise.
19033 * config/ia64/unwind-ia64.c: Likewise.
19034
4aae8a9a
KH
190352003-01-26 Kazu Hirata <kazu@cs.umass.edu>
19036
19037 * config/i386/i386-modes.def: Fix comment typos.
19038 * config/i386/i386.c: Likewise.
19039 * config/i386/i386.md: Likewise.
19040
35d8c8e2
SB
190412003-01-26 Steven Bosscher <s.bosscher@student.tudelft.nl>
19042
19043 * config/avr/avr.h, config/cris/aout.h, config/elfos.h,
19044 config/i386/freebsd-aout.h, config/mips/iris6.h: Undefine
19045 ASM_FINISH_DECLARE_OBJECT before defining it.
19046 * toplev.c (rest_of_decl_compilation): Don't define
19047 ASM_FINISH_DECLARE_OBJECT. Only use it if it is defined.
19048 (rest_of_type_compilation): Don't ATTRIBUTE_UNUSED function
19049 parameters for DWARF2 targets because they _are_ used.
19050
ea976606
AO
190512003-01-26 Alexandre Oliva <aoliva@redhat.com>
19052
b44cf3d9
AO
19053 * fp-bit.h: Define macros for TFmode floating-point constants
19054 in IBM-extended TFmode types.
19055 (TMODES): Define if __LDBL_MANT_DIG__ has the newly-supported
19056 widths.
19057 * config/fp-bit.c (pack_d, unpack_d): Support IBM-extended
19058 TFmode type.
19059
ea976606
AO
19060 * config/fp-bit.h: Define macros for TFmode floating-point
19061 constants in IEEE quad TFmode type. Declare functions according
19062 to L_ macros.
19063 (TMODES): Define if __LDBL_MANT_DIG__ is 113.
19064 (TFtype, TItype, UTItype): Define if TMODES is defined.
19065 (MAX_UDI_INT, MAX_DI_INT, BITS_PER_DI): Likewise.
19066 (F_T_BITOFF, D_T_BITOFF): Define.
19067 (IMPLICIT_1, IMPLICIT_2): Cast constants to types that are
19068 guaranteed to be wide enough.
19069 * config/fp-bit.c: Check for L_ macros for tf functions.
19070 (__thenan_tf): New.
19071 (nan): Adjust.
19072 (pack_d, unpack_d): Support IEEE 854 quad type.
19073 (_fpmul_parts): Support TFmode. Compute exponent adjustment
19074 from FRAC_NBITS, FRAC_BITS and NGARDS.
19075 (usi_to_float): Cast constants to be shifted to fractype
19076 instead of assuming long long is wide enough.
19077 (sf_to_tf, df_to_tf, __make_tp, tf_to_df, tf_to_sf): New.
19078
fd7fd61e
AJ
190792003-01-26 Andreas Jaeger <aj@suse.de>
19080
19081 * df.c: Remove prototype of unused function df_regno_rtl_debug.
19082
8ae91fc0
AO
190832003-01-26 Alexandre Oliva <aoliva@redhat.com>
19084
88e83acb
AO
19085 * Makefile.in (FPBIT_FUNCS): Added _sf_to_tf.
19086 (DBBIT_FUNCS): Added _df_to_tf.
19087 (TPBIT_FUNCS): New.
19088 (libgcc.mk): Pass TPBIT and TPBIT_FUNCS down.
19089 (LIBGCC_DEPS): Added TPBIT.
19090 * mklibgcc.in: Support TPBIT and TPBIT_FUNCS.
19091
2cd622c3
AO
19092 * optabs.c (expand_binop) <add, sub>: Return xtarget if we haven't
19093 been able to move the result to target.
19094
8ae91fc0
AO
19095 * expr.c (emit_group_store): Initialize dst with CONST0_RTX
19096 for the appropriate mode.
19097
c3297561
AO
19098 * calls.c (emit_library_call_value_1): Handle return values
19099 in a PARALLEL.
19100
187515f5
AO
19101 * rtl.c (get_mode_alignment): Moved to...
19102 * stor-layout.c: ... here.
19103
6ebd2ef4
AO
19104 * print-rtl.c (print_rtx): Don't print MEM details in
19105 GENERATOR_FILEs.
19106
7890e8f3
MH
191072003-01-26 Michael Hayes <mph@paradise.net.nz>
19108
19109 * df.h: Update comments, tidy formatting.
19110 (DF_FORWARD, DF_REVERSE, DF_UNION, DF_INTERSECTION): Rename from FORWARD,
19111 REVERSE, UNION, INTERSECTION. All uses updated.
19112 (OLD_DF_INTERFACE): Remove.
19113 (struct insn_info): Remove commented out insn field.
19114 * df.c: Update comments, tidy formatting.
19115 (df_def_table_realloc): Remove.
19116
19117
b820d2b8
AM
191182003-01-26 Alan Modra <amodra@bigpond.net.au>
19119
19120 * calls.c (save_fixed_argument_area): Tidy.
19121 (restore_fixed_argument_area): Tidy. Set alignment of stack_area.
19122 (expand_call): Comment typo fixes. Don't init low_to_save. Start
19123 call chain loop at 1 if !try_tail_call. Formatting.
19124 (emit_library_call_value_1): Don't init low_to_save or high_to_save.
19125 Use save_fixed_argument_area and restore_fixed_argument_area.
19126
42510de4
MH
191272003-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19128
19129 * df.c (df_uses_record): Handle CC0.
19130
acf9fa5f
UW
191312003-01-25 Ulrich Weigand <uweigand@de.ibm.com>
19132
1e1bd14e
RH
19133 * reload.c (maybe_memory_address_p): New function.
19134 (find_reloads_address): Use it instead of memory_address_p.
acf9fa5f 19135
5a09edba
KK
191362003-01-25 Kaz Kojima <kkojima@gcc.gnu.org>
19137
19138 * final.c (shorten_branches): Align the address of code label
1e1bd14e 19139 when computing initial lengths and addresses.
5a09edba 19140
f5818c0c
KH
191412003-01-25 Kazu Hirata <kazu@cs.umass.edu>
19142
19143 * config/m68hc11/m68hc11.md: Fix a comment typo.
19144
21ff35fb
AJ
191452003-01-25 Andreas Jaeger <aj@suse.de>
19146
19147 * config/i386/i386.c (x86_output_mi_thunk): Correct test for
19148 TARGET_MACHO.
19149
7821bfc7
RS
191502003-01-25 Roger Sayle <roger@eyesopen.com>
19151
19152 * gcse.c (bypass_last_basic_block): New global variable.
19153 (bypass_block): Use redirect_edge_and_branch_force to redirect
19154 fall-through edges. Use bypass_last_basic_block to determine
19155 which blocks have valid PRE information.
19156 (bypass_conditional_jumps): Initialize bypass_last_basic_block.
19157
62c9aa5f 191582003-01-25 Jan Hubicka <jh@suse.cz>
5f0bea72
JH
19159
19160 * gcse.c (local_cprop_pass): Update reg_sets table when needed.
19161
62c9aa5f 191622003-01-25 Jan Hubicka <jh@suse.cz>
1649d92f
JH
19163 Eric Botcazou <ebotcazou@libertysurf.fr>
19164 PR opt/8492
19165 * gcse.c (one_cprop_pass): Delete unreachable blocks.
19166
6ca86a1a
RH
191672003-01-25 Richard Henderson <rth@redhat.com>
19168
19169 * config/ia64/ia64.c (ia64_rwreloc_select_rtx_section): Rename
19170 from ia64_aix_select_rtx_section.
19171 (ia64_rwreloc_select_section): Simlarly; use default*_1 function
19172 instead of saving and restoring flag_pic.
19173 (ia64_rwreloc_unique_section): Similarly.
19174 * config/ia64/aix.h (TARGET_ASM_SELECT_SECTION,
19175 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Update.
19176 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
19177 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): New.
19178
aa2fb4dd
KH
191792003-01-25 Kazu Hirata <kazu@cs.umass.edu>
19180
19181 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Update a
19182 comment.
19183
c876997f 191842003-01-25 Richard Henderson <rth@redhat.com>
1125849a
RH
19185
19186 * config/m68k/m68k-none.h (ASM_SPEC): Adjust inter-option spacing.
19187
c876997f 191882003-01-25 Kelley Cook <kelleycook@comcast.net>
3900a23b
KC
19189
19190 * ggc-simple.c (debug_ggc_tree): Add PTR cast.
19191
72e42e26
SB
191922003-01-25 Segher Boessenkool <segher@koffie.nl>
19193
19194 * bitmap.h (BITMAP_WORD): New typedef: fundamental storage
19195 type for bitmaps. Use unsigned long.
19196 (nBITMAP_WORD_BITS): New macro.
19197 (BITMAP_WORD_BITS): New macro.
19198 (rest of file): Use it.
19199 * bitmap.c: Use it.
19200
8324663f
RH
192012003-01-25 Richard Henderson <rth@redhat.com>
19202
19203 2002-02-19 Robert Lipe <robertlipe@usa.net>
19204 * config/i386/t-sco5gas: (CRTSTUFF_T_CFLAGS_S): Delete -mcoff.
19205
c876997f 192062003-01-25 Roger Sayle <roger@eyesopen.com>
2adc9b0f
RS
19207
19208 * builtins.c (purge_builtin_constant_p): Scan insn stream
19209 sequentially rather than by basic block.
19210 * function.c (purge_addressof): Simplify test with INSN_P.
19211
ad487c38
KH
192122003-01-25 Kazu Hirata <kazu@cs.umass.edu>
19213
8324663f 19214 * combine.c (simplify_comparison, case AND): Remove a redundant test.
ad487c38 19215
c876997f 192162003-01-25 Roger Sayle <roger@eyesopen.com>
07d9b20d
RS
19217
19218 * function.h (struct function): New field calls_constant_p.
19219 (current_function_calls_constant_p): New macro for above.
19220 * function.c (prepare_function_start): Initialize calls_eh_return
19221 and calls_constant_p.
19222 * builtins.c (expand_builtin_constant_p): Set calls_constant_p.
19223 * toplev.c (rest_of_compilation): Only call purge_builtin_constant_p
19224 when the current_function_calls_constant_p.
19225 * integrate.c (expand_inline_function): Set calls_constant_p if
19226 the function being inlined has calls_constant_p set.
19227
c876997f 192282003-01-25 Roger Sayle <roger@eyesopen.com>
41559112
RS
19229
19230 * cse.c (fold_rtx): Instantiate CONSTANT_P_RTX to 0 when not
19231 optimizing, even if flag_gcse is true.
19232 * toplev.c (rest_of_compilation): purge_builtin_constant_p
19233 only needs to be called when "optimize > 0 && flag_gcse".
19234
9bb231fd
RS
192352003-01-25 Roger Sayle <roger@eyesopen.com>
19236
19237 * stmt.c (emit_case_bit_tests): New routine to implement suitable
19238 switch statements using the equivalent of "if ((1<<x) & cst) ... ".
19239 (case_bit_test_cmp): New comparison function for "qsort" to order
19240 case_bit_tests by decreasing number of destination nodes.
19241 (lshift_cheap_p): New function to determine if "1 << x" is cheap.
19242 (expand_end_case_type): Use emit_case_bit_tests to implement
19243 suitable switch statments.
19244 (CASE_USE_BIT_TESTS): New target macro to disable the above.
19245 * Makefile.in (stmt.o): Add dependency on optab.h.
19246 * doc/tm.texi (CASE_USE_BIT_TESTS): Document new target macro.
19247
a073323c
AS
192482003-01-23 Andreas Schwab <schwab@suse.de>
19249
19250 * config/ia64/crtend.asm [HAVE_INITFINI_ARRAY]: Make
19251 __do_global_ctors_aux hidden global and don't put it in
19252 .init_array.
19253 * config/ia64/crtbegin.asm [HAVE_INITFINI_ARRAY]: Put it here
19254 instead so that it comes first.
19255
62c9aa5f 192562003-01-25 Jan Hubicka <jh@suse.cz>
36ddc6b0
JH
19257
19258 * df.c (read_modify_subreg_p): When osize == UNITS_PER_WORD,
19259 subreg is read/modify.
19260
62c9aa5f 192612003-01-25 Jan Hubicka <jh@suse.cz>
26771da7
JH
19262
19263 * i386.c (ix86_expand_movstr, ix86_expand_clrstr): Consistently
19264 do libcall for large blocks.
19265 * i386.md (comi patterns): Set type to ssecomi.
19266 (sse2_unpck?pd): Fix mode of vec_select.
19267
19268 * cse.c: Include except.h
19269 (cse_set_around_loop): Do not create new basic blocks.
19270 * Makefile.in (cse.o): Add dependnecy on except.h
19271
62c9aa5f 192722003-01-25 Jan Hubicka <jh@suse.cz>
27a6aa72
JH
19273
19274 * builtins.c (fold_trunc_transparent_mathfn): New function.
19275 (fold_builtin): Use it.
19276 * convert.c (convert_to_real): Re-enable code to convert
19277 math functions; add support for floor familly functions.
19278
cd68f4e4
ZD
192792003-01-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19280
19281 * Makefile.in (cfgloop.o, cfgloopanal.o, cfgloopmanip.o): Add
19282 dependencies on coretypes.h and $(TM_H).
19283
62c9aa5f 192842003-01-25 Jan Hubicka <jh@suse.cz>
67945f2e
JH
19285
19286 * builtins.c (fold_trunc_transparent_mathfn): Undo accidental commit.
19287
c876997f 192882003-01-24 Stuart Hastings <stuart@apple.com>
095fa594 19289
08f0414b 19290 * config/i386/i386.c (x86_output_mi_thunk): Add Darwin/x86 support.
095fa594 19291
1e4c04e0
MH
192922003-01-25 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
19293
19294 * config/c4x/c4x.md (UNSPEC_BU): New constants.
19295 (UNSPEC_RPTS, UNSPEC_LSH, UNSPEC_CMPHI, UNSPEC_RCPF): Likewise.
19296 (UNSPEC_RND, UNSPEC_RPTB_FILL, UNSPEC_LOADHF_INT): Likewise.
19297 (UNSPEC_STOREHF_INT, UNSPEC_RSQRF, UNSPEC_LOADQF_INT): Likewise.
19298 (UNSPEC_STOREQF_INT, UNSPEC_LDIV, UNSPEC_PUSH_ST): Likewise.
19299 (UNSPEC_POP_ST, UNSPEC_PUSH_DP, UNSPEC_POP_DP): Likewise.
19300 (UNSPEC_POPQI, UNSPEC_POPQF, UNSPEC_ANDN_ST): Likewise.
19301 (UNSPEC_RPTB_INIT, UNSPEC_TOIEEE, UNSPEC_FRIEEE): Likewise.
19302
62c9aa5f 193032003-01-24 Jan Hubicka <jh@suse.cz>
a560d4d4 19304
08f0414b 19305 * emit-rtl.c (reg_attrs_htab): New static variable.
a560d4d4
JH
19306 (reg_attrs_htab_hash, reg_attrs_htab_eq, get_reg_attrs): New static
19307 functions.
19308 (reg_rtx): Do not maintain regno_decl.
19309 (gen_rtx_REG_offset, set_reg_attrs_from_mem, set_delc_rtx,
19310 set_mem_attrs_from_reg): New global function.
19311 (init_emit): Do not initialize regno_decl.
19312 (init_emit_once): initialize reg_attrs_htab.
19313 * final.c (alter_subreg): Do not replace REG by SUBREG.
19314 (gen_mem_expr_from_op): Improve output.
19315 (output_asm_operands): Likewise.
19316 * function.c (assign_params): Do not set REGNO_DECL.
19317 * function.h (struct function): Kill regno_decl.
19318 (REGNO_DECL): Kill.
19319 * gengtype.c (adjust_field_rtx_def): Handle new field of reg.
19320 * print_rtl.c (print_rtx): Output REG information.
19321 * regclass.c (reg_scan_mark_refs): Update attrs.
19322 * reload1.c (alter_reg): Likewise.
19323 * simplify_rtx.c (simplify_subreg): Likewise.
19324 * stmt.c (expand_decl): Likewise.
19325 * rtl.def (REG): Add new field.
19326 * rtl.h (struct reg_attrs): New.
19327 (rtunion_def): At rtreg.
19328 (X0MEMATTR): Add checking.
19329 (X0REGATTR, REG_ATTRS, REG_EXPR, REG_OFFSET): New macro.
19330 (set_reg_attrs_from_mem, set_mem_attrs_from_reg, gen_rtx_REG_offset):
19331 Declare.
19332 * tree.h (SET_DECL_RTL): Call set_decl_rtl.
19333
1d0ea52e
BW
193342003-01-24 Bob Wilson <bob.wilson@acm.org>
19335
19336 * config/xtensa/xtensa.c: Remove unused include of machmode.h.
19337 (xtensa_emit_call, print_operand): Fix printf format strings
19338 to avoid compile warnings.
19339 (xtensa_function_prologue, xtensa_function_epilogue): Change type
19340 of "size" argument to HOST_WIDE_INT to fix compile warnings.
19341 * config/xtensa/xtensa-protos.h
19342 (xtensa_function_prologue, xtensa_function_epilogue): Ditto.
19343
62c9aa5f 193442003-01-24 Jan Hubicka <jh@suse.cz>
272f51a3
JH
19345
19346 * builtins.c (DEF_BUILTIN): Accept 10 arguments.
19347 (implicit_built_in_decls): New global array.
19348 (mathfn_built_in): New global function.
19349 (fold_trunc_transparent_mathfn): New static function
19350 (expand_builtin_strstr, expand_bultin_strchr,
19351 expand_builtin_strpbrk, expand_builtin_strcpy,
19352 expand_builtin_strncpy, expand_bultin_strcmp,
19353 expand_bultin_strncat, expand_builtin_fputs): Use
19354 implicint_built_in_decls.
19355 (fold_builtin): Fold floor/trunc/round/ceil/nearbyint.
19356 * builtins.def: Fix comments.
19357 (DEF_GCC_BUILTIN, DEF_FALLBACK_BUILTIN, DEF_EXT_FALLBACK_BUILTIN,
19358 DEF_LIB_BUILTIN, DEF_LIB_ALWAYS_BUILTIN, DEF_EXT_LIB_BUILTIN,
19359 DEF_C99_BULTIN, DEF_FRONT_END_LIB_BUILTIN,
19360 DEF_EXT_FRONT_END_LIB_BUILTIN): Pass implicit as needed.
19361 (DEF_C99_C90RES_BULTIN): New.
19362 (*f, *l builtins): Update.
19363 * c-common.c (DEF_BUILTIN): Initialize implicit array.
19364 (c_expand_builtin_printf, c_expand_builtin_fprintf): Update.
19365 * convert.c (strip_float_extensions): New global function.
19366 * tree.h (DEF_BUILTIN): Accept 10 arguments.
19367 (implicit_built_in_decls, mathfn_built_in, strip_float_extension):
19368 Declare.
19369 * java/builtins.c (define_builtin): Handle implicit.
19370 (DEF_BUILTIN): Update.
19371 * tm.texi (TARGET_C99_FUNCTIONS): Document.
19372 * defaults.h (TARGET_C99_FUNCTIONS): Default to 0.
19373 * config/linux.h (TARGET_C99_FUNCTIONS): Default to 1
19374 when using glibc2.
19375
1f37a5b2
BW
193762003-01-24 Bob Wilson <bob.wilson@acm.org>
19377
19378 * config.gcc (xtensa-*-elf*): Removed assignments to with_newlib,
19379 extra_parts, and fixincludes. Add xtensa/t-elf tmake_file.
19380 (xtensa-*-linux*): Add xtensa/t-linux tmake_file.
19381 * config/xtensa/crti.asm: New file.
19382 * config/xtensa/crtn.asm: New file.
19383 * config/xtensa/t-elf: New file.
19384 * config/xtensa/t-linux: New file.
19385 * config/xtensa/t-xtensa: Add rules for crti.o and crtn.o.
19386 Move various CFLAGS settings to new t-elf file.
19387
84f5e1b1
RH
193882003-01-24 Richard Henderson <rth@redhat.com>
19389
19390 PR optimization/4382
19391 * tree-inline.c (find_builtin_longjmp_call_1): New.
19392 (find_builtin_longjmp_call): New.
19393 (inlinable_function_p): Use it.
19394
09b2e78d
ZD
193952003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19396
19397 * config/i386/i386-protos.h (function_arg_pass_by_reference): Declare.
19398 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use it.
19399 * config/i386/i386.c (function_arg_pass_by_reference): New.
19400 (ix86_va_arg): Support arguments passed by reference.
19401
3d436d2a
ZD
194022003-01-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19403
19404 * cfgloopanal.c: New file.
19405 * cfgloopmanip.c: New file.
19406 * Makefile.in (cfgloopanal.o, cfgloopmanip.o): New.
19407 (toplev.o, loop.o, doloop.o, unroll.o, cfgloop.o, predict.o,
19408 cfglayout.o): Add dependency on cfgloop.h.
19409 (cfgloop.o): Add flags.h dependency.
19410 * basic-block.h (BB_IRREDUCIBLE_LOOP, BB_SUPERBLOCK): New flags.
19411 (VLS_EXPECT_PREHEADERS, VLS_EXPECT_SIMPLE_LATCHES): Removed.
19412 (struct loop, struct loops, flow_loops_find, flow_loops_update,
19413 flow_loops_free, flow_loops_dump, flow_loop_dump,
19414 flow_loop_scan, flow_loop_tree_node_add, flow_loop_tree_node_remove,
19415 LOOP_TREE,,LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
19416 LOOP_ALL, flow_loop_outside_edge_p, flow_loop_nested_p,
19417 flow_bb_inside_loop_p, get_loop_body, loop_preheader_edge,
19418 loop_latch_edge, add_bb_to_loop, remove_bb_from_loops,
19419 find_common_loop, verify_loop_structure): Declarations moved to ...
19420 * cfgloop.h: New file.
19421 * bb-reorder.c (reorder_basic_blocks): Modified.
19422 * cfglayout.c: Include cfgloop.h.
19423 (cleanup_unconditional_jumps, cfg_layout_redirect_edge,
19424 cfg_layout_duplicate_bb, cfg_layout_initialize): Update loop structure.
19425 (break_superblocks): New static function.
19426 (cfg_layout_finalize): Use it.
19427 (cfg_layout_split_block): New function.
19428 * cfglayout.h (struct reorder_block_def): Add copy and duplicated
19429 fields.
19430 (cfg_layout_initialize, cfg_layout_redirect_edge): Declaration
19431 changed.
19432 (cfg_layout_split_block): Declare.
19433 * cfgloop.c: Include cfgloop.h and flags.h.
19434 (flow_loop_dump, flow_loops_free, flow_loop_exit_edges_find,
19435 get_loop_body): Avoid signed versus unsigned comparison warnings.
19436 (make_forwarder_block, flow_loops_find, loop_preheader_edge,
19437 loop_latch_edge): Modified.
19438 (verify_loop_structure): Modified to use flags stored in loop structure;
19439 check irreducible loops.
19440 (cancel_loop, cancel_loop_tree): New functions.
19441 (estimate_probability): Use loop analysis code for predictions.
19442 (estimate_loops_at_level): Avoid signed versus unsigned comparison
19443 warnings.
19444 * doloop.c: Include cfgloop.h.
19445 * loop.c: Include cfgloop.h.
19446 * predict.c: Include cfgloop.h.
19447 * toplev.c: Include cfgloop.h.
19448 * unroll.c: Include cfgloop.h.
19449 * tracer.c (tracer): Modified.
19450
a38b3eea
KH
194512003-01-24 Kazu Hirata <kazu@cs.umass.edu>
19452
19453 * config/h8300/h8300.c (get_shift_alg): Fix a typo.
19454
fd3cd001
UW
194552003-01-24 Ulrich Weigand <uweigand@de.ibm.com>
19456
19457 * configure.in (HAVE_AS_TLS): Add s390-*-* and s390x-*-* cases.
19458 * configure: Regenerate.
19459
19460 * config/s390/s390-protos.h (tls_symbolic_operand): Add prototype.
19461 (tls_symbolic_reference_mentioned_p): Add prototype.
19462 (s390_tls_get_offset): Add prototype.
19463 (emit_pic_move): Remove prototype, replace by ...
19464 (emit_symbolic_move): .. this new prototype.
19465
19466 * config/s390/s390.c (TARGET_HAVE_TLS): Conditionally define.
19467 (tls_model_chars): New global variable.
19468 (s390_encode_section_info): Encode TLS model.
19469 Use targetm.binds_local_p to check for local symbols.
19470 (s390_strip_name_encoding): New function.
19471 (TARGET_STRIP_NAME_ENCODING): Define.
19472
19473 (get_thread_pointer): New function.
21ff35fb 19474 (legitimize_tls_address): New function.
fd3cd001
UW
19475 (legitimize_address): Call it.
19476 (emit_pic_move): Remove, replace by ...
19477 (emit_symbolic_move): ... this new function.
19478
19479 (larl_operand): Handle TLS operands.
19480 (legitimate_constant_p): Likewise.
19481 (s390_decompose_address): Likewise.
19482 (s390_cannot_force_const_mem): New function.
19483 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
19484
19485 (s390_output_symbolic_const): Handle TLS unspecs.
19486 (print_operand): New code 'J'.
19487 (machine_function): Add struct member 'some_ld_name'.
19488 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
19489
19490 (enum s390_builtin): New type.
19491 (code_for_builtin_64, code_for_builtin_31): New global variables.
19492 (s390_init_builtins, s390_expand_builtin): New functions.
19493 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
19494
19495 * config/s390/s390.h (TLS_SYMBOLIC_CONST): New macro.
19496 (ASM_OUTPUT_LABELREF): Define.
19497 (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Handle TLS constants.
19498
19499 * config/s390/s390.md: Define TLS UNSPEC constants.
19500 ("movdi", "movsi"): Handle TLS operands.
19501 ("get_tp_64", "get_tp_31", "set_tp_64", "set_tp_31"): New insns.
19502 ("*tls_load_64", "*tls_load_31"): New insns.
19503 ("call_value_tls", "call_value_tls_exp"): New expanders.
21ff35fb 19504 ("brasl_tls", "bras_tls", "basr_tls_64", "basr_tls_31",
fd3cd001
UW
19505 "bas_tls_64", "bas_tls_31"): New insns.
19506
01f4962d
NS
195072003-01-24 Nathan Sidwell <nathan@codesourcery.com>
19508
19509 * config/rs6000/rs6000.c (rs6000_parse_abi_options): Make sure
19510 spe ABI is configured, if requested.
19511
70b91854
VR
195122003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
19513
19514 * doc/passes.texi: Fix typo.
19515
b8089d8d
AS
195162003-01-24 Andreas Schwab <schwab@suse.de>
19517
19518 * stor-layout.c (excess_unit_span): Only define if used.
19519
38df970e
JQ
195202003-01-24 Jerry Quinn <jlquinn@optonline.net>
19521
19522 * gcc/doc/invoke.texi (Optimization Options): List -O levels
19523 for each optimization flag.
19524
dff23a65
KH
195252003-01-24 Kazu Hirata <kazu@cs.umass.edu>
19526
19527 * config/h8300/h8300.md (*andsi3_ashift_n_lower): New.
19528
05739753
VR
195292003-01-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
19530
19531 * doc/bugreport.texi: Use @command instead of @code for commands.
19532 * doc/collect2.texi: Likewise.
19533 * doc/headerdirs.texi: Likewise.
19534 * doc/invoke.texi: Likewise.
19535 * doc/standards.texi: Likewise.
19536 * doc/tm.texi: Likewise.
19537 * doc/trouble.texi: Likewise.
19538
06bea5aa
NC
195392003-01-24 Nick Clifton <nickc@redhat.com>
19540
19541 * config/arm/arm.c (use_return_insn): Do not use a single return
19542 instruction for interrupt handelrs which have to create a stack
19543 frame.
19544 (arm_expand_prologue): Do not pre-bias the return address of
19545 interrupt handlers which create a stack frame.
19546
195472003-01-24 Nick Clifton <nickc@redhat.com>
19548
19549 * Add sh2e support:
19550
19551 2002-08-12 Alexandre Oliva <aoliva@redhat.com>
19552
19553 * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle
19554 med_cbranches. Fix logic in short_cbranches.
19555
19556 2002-04-03 Alexandre Oliva <aoliva@redhat.com>
19557
19558 * config/sh/sh.md (delay for cbranch): Don't annul delay
19559 slots on SH2e.
19560 * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for
19561 cbranch with unfilled delay slot on SH2e.
19562 (output_branch): Fill with a nop the delay slot of a
19563 branch that required a delay slot but didn't get one.
19564
19565 2002-04-02 Alexandre Oliva <aoliva@redhat.com>
19566
19567 * doc/invoke.texi (SH options): Document -m2e.
19568 * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__.
19569 * config/sh/lib1funcs.asm: Likewise.
19570 * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E.
19571 * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and
19572 not __sh1__.
19573 (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from
19574 SH2E up.
19575 (SH3E_BIT): Renamed to...
19576 (SH_E_BIT): ... this. Replace all uses.
19577 (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2.
19578 Replace all uses of TARGET_SH3E with TARGET_SH2E.
19579 (TARGET_SWITCHES): Added 2e.
19580 (OVERRIDE_OPTIONS): Set sh_cpu for SH2E.
19581 (processor_type): Added PROCESSOR_SH2E.
19582 * config/sh/sh.md: Replace all uses of TARGET_SH3E with
19583 TARGET_SH2E, except in sqrtsf2_i.
19584 (attribute cpu): Added sh2e.
19585 * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e.
19586 (MULTILIB_MATCHES): Use m2e multilib for m3e.
19587 * config.gcc: Add sh2e target support.
19588
65ca2d60
PE
195892003-01-24 Phil Edwards <pme@gcc.gnu.org>
19590
19591 Rename -W to -Wextra.
19592 * c-decl.c: Update comments.
19593 * c-typeck.c: Likewise.
19594 * flags.h: Likewise.
19595 * function.c: Likewise.
19596 * stmt.c: Likewise.
19597 * toplev.c: Update comments.
19598 (W_options): Add 'extra'.
19599 (display_help): Remove '-W'.
19600 (decode_W_option): Special warn_uninitialized treatment in the case
19601 of -Wextra.
19602 * doc/invoke.texi: Update with new entries.
19603
3de9c088
RH
196042003-01-23 Richard Henderson <rth@redhat.com>
19605
8324663f
RH
19606 * ifcvt.c (noce_process_if_block): Re-add check vs X being changed
19607 in no-else-block case. Add commentary.
3de9c088 19608
49691411
KG
196092003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19610
b4862477
KG
19611 * configure.in: Revert last change.
19612
196132003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19614
19615 * configure.in: Don't include ansidecl.h in tconfig.h.
ed446835 19616 * gcov-io.h (PARAMS, ATTRIBUTE_UNUSED): Define if IN_LIBGCC2.
49691411
KG
19617 * unwind-dw2-fde.h (last_fde): Use __attribute__, not
19618 ATTRIBUTE_UNUSED.
19619
19620 * configure: Regenerate.
19621
c4db7ecb
FS
196222003-01-23 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
19623
19624 PR java/6748
19625 * config/rs6000/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Don't destroy
19626 regs->nip. Fix rt_sigreturn frame layout. Add support for newer
19627 kernels.
19628
fc69c47c
KG
196292003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19630
19631 * cpplex.c (cpp_interpret_charconst): Squelch warning with cast.
19632
adbe6dfd
UW
196332003-01-23 Ulrich Weigand <uweigand@de.ibm.com>
19634
19635 * genattrtab.c (write_attr_get): Mark 'insn' paramter
19636 as ATTRIBUTE_UNUSED.
19637
76a318e9
RE
196382003-01-23 Richard Earnshaw <rearnsha@arm.com>
19639
19640 * arm.c (thumb_base_register_rtx_p): New function.
19641 (thumb_index_register_rtx_p): New function.
19642 (thumb_legitimate_address_p): New function.
19643 (thumb_legitimate_offset_p): New function.
19644 * arm.h (REG_STRICT_P): Define according to setting of REG_OK_STRICT.
8891b787 19645 (ARM_GO_IF_LEGITIMATE_ADDRESS): Use REG_STRICT_P to avoid duplicate
76a318e9
RE
19646 definitions.
19647 (THUMB_GO_IF_LEGITIMATE_ADDRESS): Use thumb_legitimate_address_p.
19648 (THUMB_LEGITIMATE_OFFSET): Delte.
19649 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use thumb_legitimate_offset.
19650 * arm-protos.h (thumb_legitimate_address_p): Add prototype.
19651 (thumb_legitimate_offset_p): Likewise.
19652
9a600d0c
AS
196532003-01-23 Andreas Schwab <schwab@suse.de>
19654
19655 * unwind.h (_Unwind_GetTextRelBase): Mark parameter as unused.
19656
2d110c0a
KG
196572003-01-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19658
19659 * fixinc/Makefile.in (FL_LIST): Revert last change.
19660
2d1d9215
VR
196612003-01-23 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
19662
19663 PR other/7341
19664 * invoke.texi (ftest-coverage): Fix broken cross-reference.
19665 Change @code to @command for gcov command.
19666
19667 * gcc.texi: Adjust title of gcov section.
19668 Adjust copyright.
19669 * gcov.texi: Likewise.
19670
34ee7f82
RS
196712003-01-22 Roger Sayle <roger@eyesopen.com>
19672
19673 PR optimization/8423
19674 * cse.c (fold_rtx): Only eliminate a CONSTANT_P_RTX to 1 when
19675 its argument is constant, or 0 if !flag_gcse.
19676 * simplify-rtx.c (simplify_rtx): Convert CONSTANT_P_RTX to 1
19677 if it's argument is constant.
19678 * gcse.c (want_to_gcse_p): Ignore CONSTANT_P_RTX nodes.
19679 (hash_scan_set): Don't record CONSTANT_P_RTX expressions.
19680 (do_local_cprop): Don't propagate CONSTANT_P_RTX constants.
19681 * builtins.c (purge_builtin_constant_p): New function to force
19682 instantiation of any remaining CONSTANT_P_RTX nodes.
19683 * rtl.h (purge_builtin_constant_p): Prototype here.
19684 * toplev.c (rest_of_compilation): Invoke purge_builtin_constant_p
19685 pass after GCSE and before loop.
19686 (flag_gcse): No longer static.
19687 * flags.h (flag_gcse): Prototype here.
19688
bab0b43b
UW
196892003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
19690
19691 * config/s390/s390.h (HARD_REGNO_MODE_OK): Fix warning regression
19692 introduced by last change.
19693
7e657a61
AS
196942003-01-22 Andreas Schwab <schwab@suse.de>
19695
19696 * ra-rewrite.c (rewrite_program2): Initialize bb to avoid warning.
19697
75a3503b
KH
196982003-01-22 Kazu Hirata <kazu@cs.umass.edu>
19699
19700 * config/h8300/h8300.c (h8300_shift_needs_scratch_p): Don't
19701 request a scratch reg on H8S when the shift count is 8.
19702
4888ec5d
UW
197032003-01-22 Ulrich Weigand <uweigand@de.ibm.com>
19704
19705 * config/s390/s390-protos.h (preferred_la_operand_p):
19706 Remove second parameter.
19707 * config/s390/s390.c (preferred_la_operand_p): Likewise.
19708 * config/s390/s390.h (FRAME_REGNO_P, FRAME_REG_P): New macros.
19709 (HARD_REGNO_MODE_OK): Use FRAME_REGNO_P.
19710 * config/s390/s390.md ("*la_cc_64", "*la_cc_31", splitters): Remove.
19711 Add peepholes to transform ADD to LOAD ADDRESS.
19712
6b990f6b
RE
197132003-01-22 Richard Earnshaw <rearnsha@arm.com>
19714
19715 * arm.c (arm_address_register_rtx_p): New function.
19716 (arm_legitimate_address_p): New function.
19717 (arm_legitimate_index_p): New function.
19718 (legitimize_pic_address): Use arm_legitimate_index_p.
19719 * arm-protos.h (arm_legtimate_address_p): Add prototype.
19720 * arm.h (ARM_GO_IF_LEGITIMATE_INDEX): Delete.
19721 (ARM_GO_IF_LEGITIMATE_ADDRESS): Call arm_legitimate_address_p.
19722
f0bf1270
HP
197232003-01-22 Hartmut Penner <hpenner@de.ibm.com>
19724
19725 * config/s390/s390.md (floatdfdi2): Insn has type 'itof'.
19726 * config/s390/2064.md (define_bypass): Correct 'Load' and
19727 'Load-address' bypass values.
21ff35fb 19728
fcb6a0f5
AS
197292003-01-22 Andreas Schwab <schwab@suse.de>
19730
19731 * config/ia64/t-ia64 (insn-attrtab.o-warn): Define as -Wno-error.
19732
c24b8026
ZW
197332003-01-21 Zack Weinberg <zack@codesourcery.com>
19734
19735 * genautomata.c (output_internal_insn_latency_func,
19736 output_print_reservation_func): Short circuit when there is no
19737 automaton to generate code for.
19738
38afe605
KG
197392003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19740
19741 * Makefile.in (ssa-ccp.o): Depend on coretypes.h $(TM_H).
19742 (df.o): Delete duplicate dependency on coretypes.h $(TM_H).
19743
d24652ee
GK
197442003-01-21 Geoffrey Keating <geoffk@apple.com>
19745
19746 * config/rs6000/rs6000.md: Remove warning.
19747 (builtin_setjmp_receiver): Likewise.
19748 * config/darwin.c (update_stubs): Slightly improve terrible hack
19749 with identifiers. Add comment pointing out problems with it.
19750 (update_non_lazy_ptrs): Likewise.
19751
1c99d804
RH
197522003-01-21 Richard Henderson <rth@redhat.com>
19753
19754 * dwarf2out.c (lookup_filename): Fix printf format warning.
19755 * system.h (fread_unlocked, fwrite_unlocked): Undef.
19756
19757 * fixinc/Makefile.in (FL_LIST): Add $($@-warn) hook.
19758 (fixincl.o-warn, gnu-regex.o-warn): New.
19759 * fixinc/fixfixes.c (FIX_PROC_HEAD): Mark parameters unused.
19760 * fixinc/fixtests.c (TEST_FOR_FIX_PROC_HEAD): Likewise.
19761 * fixinc/fixincl.c (process): Fix printf format warning.
19762
f0b886ab
UW
197632003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
19764
19765 * dwarf2out (output_file_names): Don't crash if called
19766 with empty file_table.
19767
490c57bb
ZW
197682003-01-21 Zack Weinberg <zack@codesourcery.com>
19769
19770 * genautomata.c (output_internal_insn_latency_func): Add
19771 missing break statement to generated code.
19772
100e3acb
RS
197732003-01-21 Roger Sayle <roger@eyesopen.com>
19774
19775 * stmt.c (same_case_target_p): New function to determine whether
19776 two case labels branch to the same target. Split out from...
19777 (group_case_nodes): ... here. Use same_case_target_p instead.
19778 (strip_default_case_nodes): Remove explicit case nodes
19779 that branch to the default destination.
19780 (expand_end_case_type): Call strip_default_case_nodes after
19781 group_case_nodes, to simplify the case-list before we count it.
19782 Only generate table_label RTX when actually needed. Try to share
19783 thiscase->exit_label and thiscase->data.case_stmt.default_label
19784 when a switch has no explicit default case. Simplify test for
19785 constant index.
19786
e8e8c1e5
KH
197872003-01-21 Kazu Hirata <kazu@cs.umass.edu>
19788
19789 * config/h8300/h8300.md (*negsf2_h8300): Use \\t instead of
19790 \t.
19791 (*negsf2_h8300hs): Likewise.
19792 (*addsi3_lshiftrt_16_zexthi): Likewise.
19793 (*iorhi3_lshiftrt_8): Likewise.
19794
044b4de3
UW
197952003-01-21 Ulrich Weigand <uweigand@de.ibm.com>
19796
19797 * dwarf2out.c (fde_table_in_use): Mark GTY.
19798 (dwarf2out_cfi_label_num): New variable, marked GTY.
19799 (dwarf2out_cfi_label): Use it instead of static label_num.
19800 * emit-rtl.c (label_num): Mark GTY.
19801
cfedf91b
KH
198022003-01-21 Kazu Hirata <kazu@cs.umass.edu>
19803
19804 * config/h8300/h8300.c (output_plussi): Support H8/300.
19805 (compute_plussi_length): Likewise.
19806 (compute_plussi_cc): Likewise.
19807 * config/h8300/h8300.md (addsi_h8300): Use output_plussi to
19808 output assembly instructions.
19809
dd859b8a
KG
198102003-01-21 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19811
1f5b3282
KG
19812 * calls.c (fix_unsafe_tree): Prototype.
19813
dd859b8a
KG
19814 * Makefile.in (GCC_WARN_CFLAGS): Add $(WERROR) $($@-warn)
19815 (gtype-desc.o-warn, c-decl.o-warn, varasm.o-warn, gcc.o-warn,
19816 insn-conditions.o-warn, out_object_file, gengtype-yacc.o-warn,
19817 c-parse.o-warn): Add -Wno-error.
19818 (STAGE2_FLAGS_TO_PASS): Add WERROR="@WERROR@".
19819
19820 * configure.in (--enable-werror): Add new flag.
19821 * doc/install.texi (--enable-werror): Document.
19822 * configure: Regenerate.
19823
19824 * objc/Make-lang.in (objc/objc-parse.o-warn): Add -Wno-error.
19825
4f9365e2
AS
198262003-01-21 Andreas Schwab <schwab@suse.de>
19827
19828 * genautomata.c (output_internal_insn_latency_func): Fix missing
19829 close paren in output.
19830
a543eb5e
ZW
198312003-01-21 Zack Weinberg <zack@codesourcery.com>
19832
19833 * genautomata.c: Space savings in generated code:
19834 (output_dfa_insn_code_func): Split out the table-enlargement
19835 path to an out-of-line static function, dfa_insn_code_enlarge.
19836 (output_internal_insn_latency_func): Use a lookup table for the
19837 default latencies.
19838 (output_print_reservation_func): Use a lookup table for the
19839 strings.
19840
292e35a3
CE
198412003-01-21 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
19842
19843 PR opt/7507
19844 * calls.c (fix_unsafe_tree): Split out from ...
19845 (expand_call): ... here. Use it on the function address too.
19846
d8d0f5af
RH
198472003-01-20 Richard Henderson <rth@redhat.com>
19848
19849 * expr.h (default_must_pass_in_stack): Move decl outside ifdef.
19850
5b50aa9d
RH
198512003-01-20 Richard Henderson <rth@redhat.com>
19852
515e1c9f 19853 PR opt/7154
5b50aa9d
RH
19854 * stmt.c (expand_asm_operands): Validize memory operands.
19855
7a174a15
RH
198562003-01-20 Richard Henderson <rth@redhat.com>
19857
19858 PR opt/8848
19859 * ifcvt.c (noce_process_if_block): Correct arguments to
19860 modified_between_p for no-else-block case.
19861
9ac7ebba
KH
198622003-01-20 Kazu Hirata <kazu@cs.umass.edu>
19863
19864 * config/h8300/h8300.c (const_costs): Remove a warning.
19865 (output_plussi): Likewise.
19866 (compute_plussi_length): Likewise.
19867 (compute_plussi_cc): Likewise.
19868
309c52b5
KH
198692003-01-20 Kazu Hirata <kazu@cs.umass.edu>
19870
19871 * config/h8300/h8300.md (addsi_h8300): Remove the last
19872 alternative.
19873
b30686ec
KH
198742003-01-20 Kazu Hirata <kazu@cs.umass.edu>
19875
19876 * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
19877
87608693
KG
198782003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19879
19880 * system.h (__NO_STRING_INLINES): Define.
19881
475c8250
JDA
198822003-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19883
19884 * ifcvt.c (noce_emit_store_flag): Don't emit store flag if mode of x
19885 is not a scalar int mode.
19886
dbaff908
RS
198872003-01-20 Roger Sayle <roger@eyesopen.com>
19888
19889 * cse.c (cse_insn): Avoid RTL sharing when updating the RETVAL
19890 insn's notes following a substitution inside a libcall.
19891
da8a6064
ZW
198922003-01-20 Zack Weinberg <zack@codesourcery.com>
19893
19894 * configure.in: Check for system-provided 'uchar' type.
a12b5bd9 19895 * configure, config.in: Regenerate.
da8a6064
ZW
19896 * cpphash.h: Only typedef 'uchar' if the system doesn't.
19897
a4b1b92a
RH
198982003-01-20 Richard Henderson <rth@redhat.com>
19899
19900 * expr.h (MUST_PASS_IN_STACK): Move implementation...
19901 * calls.c (default_must_pass_in_stack): ... here.
19902
d530b07f
VM
199032003-01-20 Vladimir Makarov <vmakarov@redhat.com>
19904
da8a6064
ZW
19905 * genattrtab.h (INSN_ALTS_FUNC_NAME): Move it from genautomata.c.
19906
d530b07f
VM
19907 * genautomata.c (INSN_ALTS_FUNC_NAME): Move it into genattrtab.h.
19908
19909 * genattr.c (main): Output default definition of AUTOMATON_ALTS.
19910 Wrap up definition of `insn_alts'.
19911
19912 * genattrtab.c (main): Wrap up `insn_alts'.
19913
351df804
KG
199142003-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19915
19916 * collect2.c (ldgetname): Check HAVE_DECL_LDGETNAME before
19917 prototyping.
19918 * configure.in: Check for <ldfcn.h> and ldgetname() prototype.
da8a6064 19919
351df804
KG
19920 * config.in, configure: Regenerate.
19921
e3289412
NC
199222003-01-20 Nick Clifton <nickc@redhat.com>
19923
19924 * config/arm/arm.md (sibcall_epilogue): Add an
19925 UNSPEC_PROLOGUE_USE to prevent the link register from being
19926 considered dead.
19927
62c9aa5f 199282003-01-20 Jan Hubicka <jh@suse.cz>
5794139a
JH
19929
19930 * i386.md (SSE cmov splitter): Handle memory operand in operand 5.
19931
0a18ddf9
AS
199322003-01-20 Andreas Schwab <schwab@suse.de>
19933
19934 * system.h: Don't declare strsignal if the decl test hasn't been
19935 run yet.
19936
d99c740f
KH
199372003-01-20 Kazu Hirata <kazu@cs.umass.edu>
19938
19939 * config/h8300/h8300.c (notice_update_cc): Don't assume that
19940 recog_data.operands[0] is always associated with cc0.
19941
825c5408
DE
199422003-01-19 David Edelsohn <edelsohn@gnu.org>
19943
19944 * collect2.c (ldgetname): Expand declaration to prototype.
19945 * read-rtl.c (atoll): Add prototype.
da3e0142 19946 * system.h (strsignal): Also declare if no declaration found.
825c5408 19947
3bd6d4c4
AO
199482003-01-19 Alexandre Oliva <aoliva@redhat.com>
19949
19950 * config.gcc (mips64*-*-linux*): Added.
19951 * config/mips/linux64.h, config/mips/t-linux64: New file.
19952 * config/mips/iris6.h (MIPS_TFMODE_FORMAT): Define.
19953 * config/mips/mips.c (override_options): Use it.
19954 * config/mips/mips.h (TARGET_SWITCHES): Added...
19955 (SUBTARGET_TARGET_SWITCHES): New, empty by default.
19956 * Makefile.in (SPECS): New.
19957 (STAGESTUFF, specs, mostlyclean, install-common): Use it.
19958 * gcc.c (process_command): Move self-spec processing past spec
19959 file loading.
19960 * doc/tm.texi (DRIVER_SELF_SPECS): Document the change.
19961 * doc/fragments.texi (MULTILIB_EXTRA_OPTS): Document need for
19962 CRTSTUFF_T_CFLAGS.
19963 (SPECS): Document.
19964 * doc/invoke.texi (-mabi-fake-default): Document.
19965
e9f13564
SC
199662003-01-19 Stephane Carrez <stcarrez@nerim.fr>
19967
19968 * config/m68hc11/m68hc11.c (stack_push_word, stack_pop_word,
19969 z_reg, z_reg_qi): Declare static and GTY().
19970 (da_reg): Remove.
19971 (create_regs_rtx): Don't create da_reg.
19972 ("gt-m68hc11.h"): Include for GTY roots.
19973 * config/m68hc11/m68hc11.h (ix_reg, iy_reg, d_reg): Declare extern
19974 and GTY() here.
19975 (m68hc11_compare_op0, m68hc11_compare_op1): Likewise.
19976 (m68hc11_soft_tmp_reg): Likewise.
19977 * config/m68hc11/m68hc11-protos.h: Remove above declarations.
19978
32dd366d
KH
199792003-01-18 Kazu Hirata <kazu@cs.umass.edu>
19980
19981 * basic-block.h: Fix comment formatting.
19982 * calls.c: Likewise.
19983 * combine.c: Likewise.
19984 * convert.c: Likewise.
19985 * gcov.c: Likewise.
19986 * haifa-sched.c: Likewise.
19987 * libgcc2.c: Likewise.
19988 * loop.c: Likewise.
19989 * profile.c: Likewise.
19990 * system.h: Likewise.
19991
bc3cb712
RS
199922003-01-18 Roger Sayle <roger@eyesopen.com>
19993
19994 * config/pa/pa.md (muldi3): Avoid invalid sharing of SUBREG RTXs.
19995
25e42e9d
KG
199962003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
19997
19998 * ra-build.c (undef_to_size_word): Avoid `switch' warning.
19999
6f9c81f5
DJ
200002003-01-17 Dale Johannesen <dalej@apple.com>
20001
da8a6064 20002 * config/rs6000/rs6000.md (*floatsidf2_internal): Add earlyclobbers.
6f9c81f5
DJ
20003 (*floatunssidf2_internal): Ditto.
20004
95bd1dd7
KH
200052003-01-17 Kazu Hirata <kazu@cs.umass.edu>
20006
20007 * alias.c: Fix comment typos.
20008 * basic-block.h: Likewise.
20009 * c-common.c: Likewise.
20010 * c-common.h: Likewise.
20011 * c-decl.c: Likewise.
20012 * c-opts.c: Likewise.
20013 * c-pragma.c: Likewise.
20014 * c-pretty-print.h: Likewise.
20015 * cfg.c: Likewise.
20016 * cfganal.c: Likewise.
20017 * cfgbuild.c: Likewise.
20018 * cfgcleanup.c: Likewise.
20019 * cfglayout.c: Likewise.
20020 * cfgrtl.c: Likewise.
20021 * convert.c: Likewise.
20022 * cpphash.h: Likewise.
20023 * cpplex.c: Likewise.
20024 * cpplib.h: Likewise.
20025 * df.h: Likewise.
20026 * diagnostic.c: Likewise.
20027 * diagnostic.h: Likewise.
20028 * dwarf2.h: Likewise.
20029
d5840e09
SS
200302003-01-17 Stan Shebs <shebs@apple.com>
20031
20032 * config/darwin-protos.h: Forward-declare struct cpp_reader.
20033
e607534b
DR
200342003-01-17 Douglas B Rupp <rupp@gnat.com>
20035
20036 * config/alpha/alpha.c (alpha_need_linkage): Fix obvious
20037 mistake in last checkin.
20038
fbe5a4a6
KH
200392003-01-17 Kazu Hirata <kazu@cs.umass.edu>
20040
20041 * et-forest.c: Fix comment typos.
20042 * et-forest.h: Likewise.
20043 * except.c: Likewise.
20044 * expr.c: Likewise.
20045 * flags.h: Likewise.
20046 * flow.c: Likewise.
20047 * gcc.c: Likewise.
20048 * gcse.c: Likewise.
20049 * genattrtab.c: Likewise.
20050 * genautomata.c: Likewise.
20051 * gengtype.c: Likewise.
20052 * genrecog.c: Likewise.
20053 * global.c: Likewise.
20054 * gthr-rtems.h: Likewise.
20055
095f9093
KG
200562003-01-17 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20057
20058 * i386.c (x86_function_profiler): Fix format specifier.
20059
084087e1
RH
200602003-01-17 Richard Henderson <rth@redhat.com>
20061
20062 * gengtype.c (walk_type): Allow paramN_is.
20063
4a13592e
NC
200642003-01-17 Nick Clifton <nickc@redhat.com>
20065
20066 * config/i960/t-960bare (i960-c.o): Add missing newline escape.
20067
01193617
RH
200682003-01-16 Richard Henderson <rth@redhat.com>
20069
20070 * config/alpha/linux-elf.h (LIB_SPEC): Adjust inter-option spacing.
20071
f030826a
RH
200722003-01-16 Richard Henderson <rth@redhat.com>
20073
20074 * config/alpha/alpha.c (alpha_sr_alias_set): Mark GTY.
20075 (alpha_next_sequence_number): Likewise.
20076 (alpha_this_literal_sequence_number): Likewise.
20077 (alpha_this_gpdisp_sequence_number): Likewise.
20078 (struct alpha_funcs, alpha_funcs_num): Likewise.
20079 (struct alpha_links): Fix branch merge error.
20080 (alpha_need_linkage, alpha_use_linkage): Use GC for alpha_funcs.
20081
e1551d47
AO
200822003-01-17 Alexandre Oliva <aoliva@redhat.com>
20083
20084 * config/mips/mips.h: Don't use #elif. Reported by Kaveh
20085 R. Ghazi.
20086
3d042e77
KH
200872003-01-16 Kazu Hirata <kazu@cs.umass.edu>
20088
20089 * ifcvt.c: Fix comment typos.
20090 * lcm.c: Likewise.
20091 * libgcc2.c: Likewise.
20092 * local-alloc.c: Likewise.
20093 * loop.c: Likewise.
20094 * predict.c: Likewise.
20095 * ra-build.c: Likewise.
20096 * ra.c: Likewise.
20097 * ra-colorize.c: Likewise.
20098 * ra.h: Likewise.
20099 * ra-rewrite.c: Likewise.
20100 * regmove.c: Likewise.
20101 * reload.h: Likewise.
20102 * rtlanal.c: Likewise.
20103 * toplev.c: Likewise.
20104 * tree.h: Likewise.
20105 * unwind-dw2-fde-glibc.c: Likewise.
20106 * vmsdbgout.c: Likewise.
20107
c4274b22
RH
201082003-01-16 Richard Henderson <rth@redhat.com>
20109
20110 * dwarf2out.c (struct file_table): Remove.
20111 (FILE_TABLE_INCREMENT): Remove.
20112 (file_table): Make a varray; mark for GC. Update all users.
20113 (file_table_last_lookup_index): Extract from struct file_table.
20114 (output_file_names): Fix unsigned compare warnings.
20115 (add_name_attribute): Remove inline marker.
20116 (add_comp_dir_attribute): Split out from gen_compile_unit_die.
20117 (lookup_filename): Don't manage size of file_table.
20118 (init_file_table): Allocate file_table with GC.
20119 (dwarf2out_init): Don't record main_input_filename here.
20120 (dwarf2out_finish): Do it here instead.
20121
19162d0e
BK
201222003-01-16 Bruce Korb <bkorb@gnu.org>
20123
20124 * gcc/fixinc/inclhack.def(limits_ifndef): QNX needs a bypass, too.
20125
f1e2239f
KK
201262003-01-16 Kaz Kojima <kkojima@gcc.gnu.org>
20127
da8a6064
ZW
20128 * config/sh/sh.c (sh_initialize_trampoline): Emit rotrdi3_mextr
20129 instead of rotldi3_mextr.
f1e2239f 20130
cda1f765
VM
201312003-01-16 Vladimir Makarov <vmakarov@redhat.com>
20132
20133 * haifa-sched.c (move_insn): Restore moving all schedule group.
20134 (set_priorities): Restore taking SCHED_GROUP_P into account.
20135
20136 * sched-deps.c (add_dependence): Restore processing the last group
20137 insn.
20138 (remove_dependence, group_leader): Restore the functions.
20139 (set_sched_group_p): Restore adding dependencies from previous insn
20140 in the group.
20141 (compute_forward_dependences): Restore usage of group_leader.
20142
20143 * sched-ebb.c (init_ready_list): Restore taking SCHED_GROUP_P into
20144 account.
20145
20146 * sched-rgn.c (init_ready_list): Restore taking SCHED_GROUP_P into
20147 account.
20148 (can_schedule_ready_p): Ditto.
20149 (add_branch_dependences): Restore skipping over the group insns.
da8a6064 20150
200097cc
SC
201512003-01-16 Stephane Carrez <stcarrez@nerim.fr>
20152
20153 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix handling
20154 68HC12 pre/post inc/dec side effects.
20155
f411c739
SC
201562003-01-16 Stephane Carrez <stcarrez@nerim.fr>
20157
20158 * config/m68hc11/m68hc11.h (MASK_M6812): Define.
20159
62c9aa5f 201602003-01-16 J"orn Rennecke <amylaar@onetel.net.uk>
08c43ea7
R
20161
20162 * sh.md (mshflo_w_x): Fix description of operation.
20163
07488f32
ZW
201642003-01-16 Zack Weinberg <zack@codesourcery.com>
20165
20166 * config/rs6000/rs6000.h: Mention Altivec registers in
20167 commentary. Fix typo.
20168
27dc0551
DE
201692003-01-16 David Edelsohn <edelsohn@gnu.org>
20170
20171 * config/rs6000/rs6000.md (movti_string): Remove clobber.
20172 * config/rs6000/rs6000.c (rs6000_emit_move, TImode): Explicitly
20173 generate PARALLEL with clobber for TARGET_POWER.
20174
0334ef47
KG
201752003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20176
20177 * ra-colorize.c (colorize_one_web): Initialize variable.
20178 * regmove.c (fixup_match_1): Likewise.
20179 * reload1.c (reload_as_needed): Likewise.
20180 * sdbout.c (SET_KNOWN_TYPE_TAG): Add cast.
20181
16f2b86a
ZD
201822003-01-16 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
20183
20184 * cfgloop.c (flow_loops_find): Fix handling of abnormal edges.
20185
fc555370
KG
201862003-01-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20187
93d8c755
KG
20188 * dbxout.c (lastfile, cwd): Fix `unused' warning.
20189 * dwarf2out.c (fde_table_in_use, current_funcdef_fde,
20190 dw_cfi_oprnd1_desc, dw_cfi_oprnd2_desc, next_die_offset,
20191 is_main_source, file_table, decl_die_table_in_use,
20192 abbrev_die_table_in_use, line_info_table_in_use,
20193 separate_line_info_table_in_use, pubname_table_in_use,
20194 arange_table_in_use, ranges_table_in_use,
20195 current_function_has_inlines): Likewise.
20196 * flow.c (life_analysis): Likewise.
20197 * genemit.c (gen_insn): Likewise.
20198 * protoize.c (cplus_suffix): Likewise.
20199
0c2ca901
KG
20200 * arm.c (ROUND_UP_WORD): Renamed from ROUND_UP.
20201 * arm.h (ROUND_UP_WORD): Likewise.
20202
fc555370
KG
20203 * arm.h (CONDITIONAL_REGISTER_USAGE): Avoid signed/unsigned
20204 warning.
20205 * emit-rtl.c (gen_rtx_REG, set_mem_attributes_minus_bitpos,
20206 init_emit_once): Likewise.
20207 * flow.c (mark_regs_live_at_end, calculate_global_regs_live):
20208 Likewise.
20209 * function.c (assign_stack_temp_for_type): Likewise.
20210 * loop.c (loop_invariant_p): Likewise.
20211 * recog.c (push_operand): Likewise.
20212 * regclass.c (init_reg_sets_1): Likewise.
20213 * reload.c (update_auto_inc_notes): Likewise.
20214 * reload1.c (reload_as_needed, emit_input_reload_insns): Likewise.
20215 * stmt.c (expand_asm_operands): Likewise.
20216 * stor-layout.c (start_record_layout): Likewise.
20217
64510a4f
HB
202182003-01-16 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
20219
07488f32 20220 * config/c4x/c4x.md (epilogue): Correct last patch.
64510a4f 20221
77480b0b
RH
202222003-01-15 Richard Henderson <rth@redhat.com>
20223
20224 * config/alpha/alpha.c (find_lo_sum_using_gp): Rename from find_lo_sum;
20225 also check that GP is being used.
20226 (alpha_find_lo_sum_using_gp): New.
20227 (alpha_does_function_need_gp): Use get_attr_usegp.
20228 * config/alpha/alpha-protos.h: Update.
20229 * config/alpha/alpha.md (attr usegp): New. Annotate patterns
20230 as needed.
20231
a0134312
RS
202322003-01-15 Roger Sayle <roger@eyesopen.com>
20233
20234 * gcse.c (one_cprop_pass): Change function arguments to take both
20235 cprop_jumps and bypass_jumps flags instead of just alter_jumps.
20236 (gcse_main): Update calls to one_cprop_pass, disabling bypassing.
20237 (bypass_jumps): New function to perform separate jump bypassing pass.
20238 * rtl.h (bypass_jumps): Add function prototype.
20239 * timevar.def (TV_BYPASS): New timing variable.
20240 * toplev.c (enum dump_file_index): Add new entry DFI_bypass.
20241 (dump_file): New entry for the bypass RTL dump file.
20242 (rest_of_compilation): Insert new jump bypassing optimization
20243 pass after loop.
20244 * doc/passes.texi: Document new pass.
20245
4af6a063
JDA
202462003-01-15 John David Anglin <dave@hiauly1.hia.nrc.ca>
20247
20248 * som.h (SUPPORTS_WEAK, SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY,
20249 ASM_WEAKEN_LABEL, GTHREAD_USE_WEAK): Define.
20250 * pa.h (TARGET_SOM_SDEF): Define.
20251 * pa-hpux11.h (TARGET_SOM_SDEF): Define.
20252
51e13b71
SC
202532003-01-16 Stephane Carrez <stcarrez@nerim.fr>
20254
07488f32 20255 * config/m68hc11/m68hc11.c (expand_prologue): Use push/pop to
51e13b71
SC
20256 allocate 4-bytes of locals on 68HC11.
20257 (expand_epilogue): Likewise.
20258 (m68hc11_memory_move_cost): Increase cost of HI/QI soft registers.
20259
f077f169
SC
202602003-01-15 Stephane Carrez <stcarrez@nerim.fr>
20261
20262 * config/m68hc11/m68hc11.h (ASM_SPEC): Handle -m68hcs12; Pass -mshort
20263 and -mshort-double to the assembler to specify the ABI.
20264 (LINK_SPEC): Likewise.
20265 (CPP_SPEC): Pass HCS12 specific define.
20266 (MASK_M68S12): New define.
20267 (TARGET_M68S12): Likewise.
20268 (TARGET_SWITCHES): New options -m68hcs12 and -m68S12.
20269 (TARGET_VERSION): Update.
20270 * config/m68hc11/m68hc12.h (CPP_SPEC): Pass HCS12 specific define.
20271 (LINK_SPEC): Update.
20272 (ASM_SPEC): Update.
20273 * config/m68hc11/m68hc11.c (m68hc11_asm_file_start): Update.
20274 * doc/invoke.texi (M68hc1x Options): Document -m68hcs12.
20275
c0f684dc
SC
202762003-01-15 Stephane Carrez <stcarrez@nerim.fr>
20277
20278 * config/m68hc11/m68hc11.md ("return"): Use emit_jump_insn to emit
20279 the return code.
20280
6982ae15
JZ
202812003-01-15 Josef Zlomek <zlomekj@suse.cz>
20282
20283 * cfganal.c (set_edge_can_fallthru_flag): Clear the EDGE_CAN_FALLTHRU
20284 flag before setting it.
20285
8cadeff1
RS
202862003-01-15 Roger Sayle <roger@eyesopen.com>
20287
20288 * c-semantics.c (genrtl_while_stmt): Improve initial RTL generation
20289 when loop condition is known true, i.e. "while (1) { ... }".
20290 (genrtl_for_stmt): Similarly for "for" statements.
20291
03cd8aba
RS
202922003-01-15 Roger Sayle <roger@eyesopen.com>
20293
20294 * real.c (real_sqrt): Return a bool result indicating whether
20295 a floating point exception or trap should be raised.
20296 * real.h (real_sqrt): Update function prototype.
20297 * builtins.c (fold_builtin): Only fold non-trapping square
20298 roots unless we're ignoring errno and trapping math.
20299
4da78214
JDA
203002003-01-15 John David Anglin <dave.anglin@nrc.gc.ca>
20301
20302 * expr.h (emit_conditional_add): Add PARAMS to declaration.
20303 * gengtype-lex.l (malloc, realloc): Move defines after include of
20304 system.h. Remove duplicate include of system.h.
20305
9ee0a442
RS
203062003-01-15 Roger Sayle <roger@eyesopen.com>
20307
20308 PR middle-end/9009
20309 * optabs.c (expand_unop): When manipulating the FP sign bit
20310 using integer operations, account for targets with different
20311 integer and FP word orders.
20312 (expand_abs): Likewise.
20313
e3981aab
DE
203142003-01-15 David Edelsohn <edelsohn@gnu.org>
20315
20316 * config/rs6000/rs6000.c (rs6000_gen_section_name): Do not include
20317 file extension in section name.
20318
89c4b810
RE
203192003-01-15 Richard Earnshaw <rearnsha@arm.com>
20320
20321 * flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
20322 constant offset.
20323
3cd45774
RE
203242003-01-15 Richard Earnshaw <rearnsha@arm.com>
20325
20326 * arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.
20327 (HAVE_POST_MODIFY_DISP, HAVE_POST_MODIFY_REG): Define.
20328 (ARM_GO_IF_LEGITIMATE_ADDRESS): Handle pre/post-modify addresses.
20329 (ARM_PRINT_OPERAND_ADDRESS): Likewise.
20330
62c9aa5f 203312003-01-15 Jan Hubicka <jh@suse.cz>
b1a6f8db
JH
20332
20333 PR f/9258
07488f32 20334 * global.c (struct allocno): Add no_stack_reg.
b1a6f8db
JH
20335 (global_conflicts): Set no_stack_reg.
20336 (find_reg): Use it.
20337
20338 * convert.c (convert_to_real): Fold - and abs only when profitable.
20339 * fold-const.c (fold): Fold truncates in - and abs.
20340
d18c7e59
JZ
203412003-01-15 Josef Zlomek <zlomekj@suse.cz>
20342
20343 Segher Boessenkool <segher@koffie.nl>
fbe3b30b
SB
20344
20345 * predict.c (real_inv_br_prob_base): New variable.
20346 (propagate_freq): Use multiply by reciprocal instead of
20347 division. Don't divide by 1.0 at all.
20348 (estimate_bb_frequencies): Similar.
20349
027faee7
AO
203502003-01-15 Alexandre Oliva <aoliva@redhat.com>
20351
20352 * configure.in (libgcc_visibility): Force disabled on IRIX 6 too.
20353 * configure: Rebuilt.
20354
077dab3b 203552003-01-15 Hartmut Penner <hpenner@de.ibm.com>
3c0121e4 20356
077dab3b
HP
20357 * config/s390/s390.c (s390_safe_attr_type): New function.
20358 (s390_use_dfa_pipeline_interface): New function, return true for z900.
20359 (s390_issue_rate): New function.
20360 (s390_agen_dep_p): New function.
20361 (addr_generation_dependency_p): Use 's390_safe_attr_type'.
20362 (s390_adjust_cost): Return 'cost' if new DFA is used.
20363 (s390_adjust_priority): Delete function.
20364 * config/s390/s390-protos.h: (s390_agen_dep_p): New prototype.
20365 * config/s390/s390.md (atype attribute): Attribute 'atype' default
20366 determined by 'op_type'.
20367 (type attribute): Added more type attributes.
20368 * config/s390/2064.md: New DFA description for z900 pipeline.
07488f32 20369
077dab3b 203702003-01-15 Alexandre Oliva <aoliva@redhat.com>
2b28d405 20371
acfa9d9f
AO
20372 * config/i386/i386.c (ix86_expand_vector_move): Validize constant
20373 forced to memory. Fixes PR bootstrap/9036.
20374
3c0121e4
AO
20375 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Define so as
20376 to set $gp before the call.
20377
553eb139
RH
203782003-01-14 Richard Henderson <rth@redhat.com>
20379
20380 * config/alpha/alpha.c (alpha_expand_mov): Use correct mode
20381 for force_const_mem.
20382
dd1b7476
KG
203832003-01-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20384
20385 * genattr.c (main): Rearrange output to avoid prototype warning.
20386 * genautomata.c (transform_3): Fix ambiguous-else warning.
20387 * local-alloc.c (requires_inout): Add parentheses around
20388 assignment used as truth-value.
20389 * timevar.c: Move system includes above local includes. Include
20390 toplev.h
20391 * Makefile.in (timevar.o): Depend on toplev.h.
20392
6028880a
DC
203932003-01-14 Denis Chertykov <denisc@overta.ru>
20394
20395 * config/ip2k/ip2k.h (VALID_MACHINE_DECL_ATTRIBUTE): Remove.
20396 (VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
20397
20398 * config/ip2k/ip2k.c (ip2k_attribute_table): New table of
07488f32 20399 attributes.
6028880a
DC
20400 (TARGET_ATTRIBUTE_TABLE): New macro.
20401 (valid_machine_type_attribute): Remove.
20402 (valid_machine_decl_attribute): Remove.
20403 (ip2k_handle_progmem_attribute): New function.
20404 (ip2k_handle_fndecl_attribute): New function.
20405
4a2953e4 204062003-01-10 Andrew Haley <aph@redhat.com>
a686ea5b
AH
20407
20408 * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Rename
20409 registers to be in correct order. Add rip.
20410
4d77fda2
KH
204112003-01-14 Kazu Hirata <kazu@cs.umass.edu>
20412
20413 * config/h8300/h8300.md (*andsi3_lshiftrt_9_sb): New.
20414 (*iorsi3_and_lshiftrt_9_sb): Likewise.
20415
62c9aa5f 204162003-01-14 Jan Hubicka <jh@suse.cz>
77f9af81
JH
20417
20418 * convert.c (strip_float_extensions): Look for narrowest type handling
20419 FP constants.
20420
20421 * fold-const.c (fold): Fold (double)float1 CMP (double)float2 into
20422 float1 CMP float2.
20423 * convert.c (strip_float_extensions): Make global.
20424 * tree.h (strip_float_extensions): Declare.
20425
fd371a93
GDR
204262003-01-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
20427
20428 * timevar.def: define TV_NAME_LOOKUP.
20429 * timevar.c (timevar_pop): Be verbose when aborting.
20430
dcd1c2b8
AS
204312003-01-13 Andreas Schwab <schwab@suse.de>
20432
20433 * Makefile.in ($(parsedir)/gengtype-lex.c): Don't change to
20434 $(parsedir), just move the temporary file at the end.
20435 ($(parsedir)/gengtype-yacc.c): Likewise.
20436
eb4b5f93
AO
204372003-01-13 Alexandre Oliva <aoliva@redhat.com>
20438
20439 * aclocal.m4 (gcc_AC_PROG_GNAT): Don't try to prepend
20440 ${ac_tool_prefix} to ADAC or CC. Protect them from word
20441 splitting.
20442 * configure: Rebuilt.
20443
f7835768
KG
204442003-01-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20445
20446 * config/sparc/gmon-sol2.c (moncontrol, monstartup, _mcleanup,
20447 internal_mcount): Don't use PARAMS.
20448 (monstartup, _mcleanup, internal_mcount, moncontrol): Convert to
20449 ISO C style.
20450 (internal_mcount): Use __attribute__, not ATTRIBUTE_UNUSED.
20451
38a3dbbb
AS
204522003-01-13 Andreas Schwab <schwab@suse.de>
20453
20454 * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Output type
20455 directive.
20456
98dc53e3
KH
204572003-01-13 Kazu Hirata <kazu@cs.umass.edu>
20458
20459 * config/h8300/h8300.md (*andsi3_lshift_n_sb): New.
20460 (*iorsi3_and_lshiftrt_n_sb): Likewise.
20461
e8f2b18d
MM
204622003-01-12 Mark Mitchell <mark@codesourcery.com>
20463
20464 PR c++/9264
20465 * c-lex.c (c_lex): Set the token value to error_mark_node for
20466 invalid numeric constants.
20467
70f8b89f
KG
204682003-01-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
20469
20470 * c-pch.c (asm_file_startpos): Change to `long'.
20471 (pch_init): Use ftell, not ftello.
20472 (c_common_write_pch): Use ftell/fseek, not ftello/fseeko.
20473 Use `long' instead of `off_t'.
20474 (c_common_read_pch): Likewise.
20475 * ggc-common.c (gt_pch_save): Use long/ftell instead of
20476 off_t/ftello.
20477
8e37cba8
AM
204782003-01-12 Alan Modra <amodra@bigpond.net.au>
20479
20480 * expr.c (expand_expr <RDIV_EXPR>): Correct recursive call args.
20481
04f08c8e
RE
204822003-01-11 Richard Earnshaw (rearnsha@arm.com)
20483
20484 * arm-protos.h (struct cpp_reader): Add declaration.
20485
62c9aa5f 204862003-01-11 Jan Hubicka <jh@suse.cz>
a5cf80f0
JH
20487
20488 PR target/9068
20489 * i386.c (output_fp_compare): Fix typo.
20490
bbfb86aa
DE
204912003-01-10 David Edelsohn <edelsohn@gnu.org>
20492
20493 * config/rs6000/rs6000.c (common_mode_defined): Mark for PCH.
20494
223b87b6
GK
204952003-01-10 Geoffrey Keating <geoffk@apple.com>
20496
3859c32a
GK
20497 * Makefile.in (parsedir): New variable.
20498 (docobjdir): New variable.
07488f32 20499 (c-parse.o, c-parse.c, c-parse.y, gengtype-lex.o, gengtype-yacc.o,
3859c32a
GK
20500 gengtype-lex.c, gengtype-yacc.c): Use parsedir.
20501 (info, cpp.info, gcc.info, gccint.info, gccinstall.info,
20502 cppinternals.info, generated-manpages, gcov.1, cpp.1, gcc.1, gfdl.7,
07488f32 20503 gpl.7, fsf-funding.7, maintainer-clean, install-info, install-man):
3859c32a
GK
20504 Use docobjdir.
20505 * objc/Make-lang.in (objc/objc-parse.c, objc/objc-parse.y,
20506 objc.maintainer-clean): Use parsedir.
20507
63af3bd1
GK
20508 * varasm.c (struct constant_descriptor_rtx): Remove unused
20509 `label' field.
20510
223b87b6
GK
20511 * toplev.c (documented_lang_options): Document -Winvalid-pch.
20512
fbadafbc
RH
205132003-01-10 Richard Henderson <rth@redhat.com>
20514
20515 * config/alpha/alpha.h (NO_PROFILE_COUNTERS): Set.
20516 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Kill.
20517
ab5ecb01
RH
205182003-01-10 Richard Henderson <rth@redhat.com>
20519
20520 * combine.c (make_compound_operation): Use SCALAR_INT_MODE_P,
20521 not INTEGRAL_MODE_P when widening extensions.
20522
7f24e7c5
RH
205232003-01-10 Richard Henderson <rth@redhat.com>
20524
20525 * config/alpha/alpha.c (decl_has_samegp): True for !TREE_PUBLIC.
20526
6dd05d08
GK
205272003-01-10 Geoffrey Keating <geoffk@apple.com>
20528
19cc0dd4
GK
20529 * ggc-page.c (ggc_collect): Avoid overflow computing
20530 min_expand.
20531
6dd05d08
GK
20532 * Makefile.in (RANLIB_FOR_TARGET): Use RANLIB when native.
20533 (RANLIB_TEST_FOR_TARGET): Delete. Don't pass down to sub-makes.
20534 Remove calls.
20535 * mklibgcc.in: Remove uses of RANLIB_TEST_FOR_TARGET.
20536
62c9aa5f 205372003-01-10 Jan Hubicka <jh@suse.cz>
5f1355ef
JH
20538
20539 * ifcvt.c (noce_try_addcc): Do not call emit_conditional_add
20540 with weird operands.
20541
0cdca92b 205422003-01-10 Dale Johannesen <dalej@apple.com>
6dd05d08
GK
20543
20544 * calls.c (load_register_parameters): Add is_sibcall, sibcall_failure
20545 parameters. Call check_sibcall_argument_overlap if indicated.
20546 (check_sibcall_argument_overlap): Add mark_stored_args_map
20547 parameter. Don't mark parameter area as clobbered if not set.
20548 (expand_call): Adjust calls to above.
20549
205502003-01-10 Kelley Cook <kelleycook@comcast.net>
6cd656d0
KC
20551
20552 * configure.in (linker read-only and read-write section mixing):
20553 Squelch some assembler warnings.
20554 * configure: Likewise.
20555
be2c2a4b
HP
205562003-01-10 Hartmut Penner <hpenner@de.ibm.com>
20557
21ff35fb 20558 * doc/invoke.texi: Document -mtune, delete -mcpu
be2c2a4b
HP
20559 option for S/390 and zSeries.
20560 * config/s390/s390.c (s390_tune_string) New variable.
20561 (s390_cpu_string) Delete variable.
20562 (override_options): Use s390_tune_string instead of
20563 s390_cpu_string.
20564 * config/s390/s390.h: (TARGET_OPTIONS) '-mtune' instead of '-mcpu'.
20565
1f450138
KH
205662003-01-10 Kazu Hirata <kazu@cs.umass.edu>
20567
20568 * config/h8300/h8300.md (*iorsi3_ashift_31): New.
20569
d330ce15
JZ
205702003-01-10 Josef Zlomek <zlomekj@suse.cz>
20571
20572 * jump.c (next_nonnote_insn_in_loop): New function.
20573 (copy_loop_headers): Use next_nonnote_insn_in_loop instead of
20574 next_nonnote_insn.
20575 (duplicate_loop_exit_test). Likewise.
20576
17211ab5
GK
205772003-01-09 Geoffrey Keating <geoffk@apple.com>
20578
20579 Merge from pch-branch:
20580
20581 2003-01-06 Geoffrey Keating <geoffk@apple.com>
20582
20583 * ggc-page.c (ggc_pch_read): Update the statistics after a PCH
20584 load.
20585
20586 2002-12-24 Geoffrey Keating <geoffk@apple.com>
20587
20588 * cpplib.c (count_registered_pragmas): New function.
20589 (save_registered_pragmas): New function.
20590 (_cpp_save_pragma_names): New function.
20591 (restore_registered_pragmas): New function.
20592 (_cpp_restore_pragma_names): New function.
20593 * cpphash.h (_cpp_save_pragma_names): Prototype.
20594 (_cpp_restore_pragma_names): Likewise.
20595 * cpppch.c (struct save_macro_item): Split from save_macro_data.
20596 (struct save_macro_data): New field 'saved_pragmas'.
20597 (save_macros): Update for changes to struct save_macro_data.
20598 (cpp_prepare_state): Call _cpp_save_pragma_names, update
20599 for changes to struct save_macro_data.
20600 (cpp_read_state): Call _cpp_restore_pragma_names, update
20601 for changes to struct save_macro_data.
20602
20603 * cpppch.c (cpp_read_state): Restore the hashtable references
20604 in the cpp_reader.
07488f32 20605
17211ab5
GK
20606 * tree.h (built_in_decls): Mark for PCH.
20607
20608 * dbxout.c (lastfile): Don't mark for PCH.
20609
20610 * ggc.h: Document PCH calls into memory managers.
20611
20612 2002-12-18 Geoffrey Keating <geoffk@apple.com>
20613
20614 * doc/invoke.texi (Precompiled Headers): Document the
20615 directory form of PCH.
20616 * cppfiles.c (validate_pch): New function.
20617 (open_file_pch): Search suitably-named directories for PCH files.
20618
20619 2002-12-14 Geoffrey Keating <geoffk@apple.com>
20620
20621 * doc/gty.texi (GTY Options): Document chain_next, chain_prev,
20622 reorder options.
20623 (Type Information): Mention that the information is also
20624 used to implement PCH.
20625 * doc/passes.texi (Passes): Improve documentation of
20626 language-specific files.
20627
20628 2002-12-11 Geoffrey Keating <geoffk@apple.com>
20629
20630 * gengtype.c (struct write_types_data): Add reorder_note_routine field.
20631 (struct walk_type_data): Add reorder_fn field.
20632 (walk_type): Process 'reorder' option.
20633 (write_types_process_field): Reorder parameters to gt_pch_note_object,
20634 call reorder_note_routine.
20635 (write_func_for_structure): Reorder parameters to gt_pch_note_object.
20636 (ggc_wtd): Update for change to struct write_types_data.
20637 (pch_wtd): Likewise.
20638 * ggc.h (gt_pch_note_object): Reorder parameters.
20639 (gt_handle_reorder): New definition.
20640 (gt_pch_note_reorder): New prototype.
20641 * ggc-common.c (struct ptr_data): Add reorder_fn.
20642 (gt_pch_note_object): Reorder parameters.
20643 (gt_pch_note_reorder): New.
20644 (gt_pch_save): Call reorder_fn.
20645 * stringpool.c (gt_pch_n_S): Update for change to gt_pch_note_object.
20646
20647 * dbxout.c (cwd): Don't mark for PCH.
20648
20649 2002-12-09 Geoffrey Keating <geoffk@apple.com>
20650
20651 * gengtype.c (finish_root_table): Fix some warnings.
20652 (write_root): Handle TYPE_STRING.
20653 * ggc.h (gt_ggc_m_S): Add prototype.
20654 * stringpool.c (gt_ggc_m_S): New function.
20655
20656 2002-11-30 Geoffrey Keating <geoffk@apple.com>
20657
20658 * dwarf2out.c (dw2_string_counter): New.
20659 (AT_string_form): Use it.
20660 (same_dw_val_p): Update for removal of hashtable.h hash tables.
20661
20662 2002-11-22 Geoffrey Keating <geoffk@apple.com>
20663
20664 * dbxout.c: Include gt-dbxout.h.
20665 (lastfile): Mark for PCH/GGC.
20666 (cwd): Likewise.
20667 (struct typeinfo): Likewise.
20668 (typevec): Likewise.
20669 (typevec_len): Likewise.
20670 (next_type_number): Likewise.
20671 (struct dbx_file): Likewise.
20672 (current_file): Likewise.
20673 (next_file_number): Likewise.
20674 (dbxout_init): Allocate typevec, struct dbx_file with GGC.
20675 (dbxout_start_source_file): Allocate struct dbx_file with GGC.
20676 (dbxout_end_source_file): Don't free struct dbx_file.
20677 (dbxout_type): Use GGC to allocate typevec.
20678 * Makefile.in (dbxout.o): Depend on gt-dbxout.h, $(GGC_H).
20679 (GTFILES): Add dbxout.c.
20680 (gt-dbxout.h): New rule.
07488f32 20681
17211ab5
GK
20682 * Makefile.in (c-pch.o): Add debug.h as dependency.
20683 * c-pch.c: Include debug.h.
20684 (pch_init): Call start_source_file to keep nesting right.
20685 (c_common_read_pch): Add orig_name parameter. Call
20686 start_source_file debug hook. Call end_source_file debug hook.
20687 * c-common.h (c_common_read_pch): Update prototype.
20688 * cpplib.h (struct cpp_callbacks): Add fourth field to read_pch
20689 callback.
20690 * cppfiles.c (struct include_file): Add new field `header_name'.
20691 (find_or_create_entry): Default it to `name'.
20692 (open_file_pch): Set it to the original header file searched for.
20693 (stack_include_file): Don't stack an empty buffer, just handle
20694 PCH files immediately. Pass header_name field to read_pch callback.
20695
20696 2002-11-19 Geoffrey Keating <geoffk@apple.com>
20697
20698 * function.c (funcdef_no): Mark to be saved in a PCH.
20699
20700 2002-11-15 Geoffrey Keating <geoffk@apple.com>
20701
20702 * ggc-page.c (ggc_pch_read): Remove unused 'bmap_size'.
20703
20704 * cpppch.c (cpp_read_state): Correct size reallocated for 'defn'.
20705
20706 2002-11-14 Geoffrey Keating <geoffk@apple.com>
20707
20708 * optabs.h (code_to_optab): Add GTY marker.
20709
20710 2002-11-13 Geoffrey Keating <geoffk@apple.com>
20711
20712 * Makefile.in (GTFILES): Add cpplib.h.
20713 * c-common.h (struct c_common_identifier): Don't skip 'node' field.
20714 * c-decl.c (build_compound_literal): Don't use var_labelno.
20715 * cpplib.h (struct cpp_hashnode): Use gengtype to mark.
20716 * dwarf2asm.c (dw2_force_const_mem): Don't use const_labelno.
20717 * varasm.c (const_labelno): Use gengtype to mark.
20718 (var_labelno): Likewise.
20719 (in_section): Likewise.
20720 (in_named_name): Likewise.
20721 (struct in_named_entry): Likewise.
20722 (in_named_htab): Likewise.
20723 (set_named_section_flags): Use GGC to allocate struct in_named_entry.
20724 (init_varasm_once): Use GGC to allocate in_named_htab.
20725 * config/darwin.c (current_pic_label_num): Mark for PCH.
20726
20727 2002-11-11 Geoffrey Keating <geoffk@apple.com>
20728
20729 * ggc-simple.c (init_ggc_pch): New stub procedure.
20730 (ggc_pch_count_object): Likewise.
20731 (ggc_pch_total_size): Likewise.
20732 (ggc_pch_this_base): Likewise.
20733 (ggc_pch_alloc_object): Likewise.
20734 (ggc_pch_prepare_write): Likewise.
20735 (ggc_pch_write_object): Likewise
20736 (ggc_pch_finish): Likewise.
20737 (ggc_pch_read): Likewise.
20738
20739 2002-11-08 Geoffrey Keating <geoffk@apple.com>
20740
20741 * c-pch.c (c_common_write_pch): Write the macro definitions after
20742 the GCed data.
20743 (c_common_read_pch): Call cpp_prepare_state. Restore the macro
20744 definitions after the GCed data.
20745 * cpplib.c (save_macros): New.
20746 (reset_ht): New.
20747 (cpp_write_pch_deps): Split out of cpp_write_pch.
20748 (cpp_write_pch_state): Split out of cpp_write_pch.
20749 (cpp_write_pch): Delete.
20750 (struct save_macro_data): Delete.
20751 (cpp_prepare_state): New.
20752 (cpp_read_state): Erase and restore initial macro definitions.
20753 * cpplib.h (struct save_macro_data): Forward-declare.
20754 (cpp_write_pch_deps): Prototype.
20755 (cpp_write_pch_state): Prototype.
20756 (cpp_write_pch): Delete prototype.
20757 (cpp_prepare_state): Prototype.
20758 (cpp_read_state): Add fourth argument.
20759
20760 2002-11-04 Geoffrey Keating <geoffk@apple.com>
20761
20762 * gengtype.c (adjust_field_rtx_def): Don't use skip on valid fields.
20763 (write_array): Remove warning.
20764
20765 * gengtype.c (contains_scalar_p): New.
20766 (finish_root_table): Add the table to all languages, even if it's
20767 empty.
20768 (write_roots): Output gt_pch_scalar_rtab.
20769 * ggc-common.c (gt_pch_save): Write out scalars.
20770 (gt_pch_restore): Read scalars back.
20771
20772 * ggc-page.c (OBJECTS_IN_PAGE): New macro.
20773 (struct page_entry): Delete pch_page field.
20774 (ggc_recalculate_in_use_p): Use OBJECTS_IN_PAGE.
20775 (clear_marks): Likewise.
20776 (sweep_pages): Likewise.
20777 (poison_pages): Likewise.
20778 (ggc_print_statistics): Likewise.
20779 (ggc_pch_read): Don't free objects read from a PCH.
20780 Properly set up in_use_p and page_tails.
20781
20782 2002-10-25 Geoffrey Keating <geoffk@apple.com>
20783
20784 * gengtype.c (struct write_types_data): New.
20785 (struct walk_type_data): Make `cookie' const; add extra
20786 prev_val item; add `orig_s' field.
20787 (walk_type): Update prev_val[3].
20788 (write_types_process_field): New.
20789 (write_func_for_structure): Take write_types_data structure.
20790 (write_types): New.
20791 (ggc_wtd): New.
20792 (pch_wtd): New.
20793 (write_types_local_process_field): New.
20794 (gc_mark_process_field): Delete.
20795 (write_local_func_for_structure): New.
20796 (gc_mark_func_name): Delete.
20797 (write_gc_types): Delete.
20798 (write_local): New.
20799 (finish_root_table): Don't include 'ggc_' in PFX.
20800 (write_root): Rename from write_root. Fill pchw field of structures.
20801 (write_array): New.
20802 (write_roots): Rename from write_gc_roots. Split out to write_array.
20803 Update to changes to other routines. Write gt_pch_cache_rtab table.
20804 (main): Write PCH walking routines.
20805 * ggc-common.c: Include toplev.h, sys/mman.h.
20806 (ggc_mark_roots): For cache hashtables, also mark the hash table
20807 and the array of entries.
20808 (saving_htab): New.
20809 (struct ptr_data): New.
20810 (POINTER_HASH): New.
20811 (gt_pch_note_object): New.
20812 (saving_htab_hash): New.
20813 (saving_htab_eq): New.
20814 (struct traversal_state): New.
20815 (call_count): New.
20816 (call_alloc): New.
20817 (compare_ptr_data): New.
20818 (relocate_ptrs): New.
20819 (write_pch_globals): New.
20820 (struct mmap_info): New.
20821 (gt_pch_save): New.
20822 (gt_pch_restore): New.
20823 * ggc-page.c (ROUND_UP_VALUE): New.
20824 (ROUND_UP): New.
20825 (struct page_entry): Add field `pch_page'.
20826 (init_ggc): Use ROUND_UP.
20827 (struct ggc_pch_data): Declare.
20828 (init_ggc_pch): New.
20829 (ggc_pch_count_object): New.
20830 (ggc_pch_total_size): New.
20831 (ggc_pch_this_base): New.
20832 (ggc_pch_alloc_object): New.
20833 (ggc_pch_prepare_write): New.
20834 (ggc_pch_write_object): New.
20835 (ggc_pch_finish): New.
20836 (ggc_pch_read): New.
20837 * ggc.h (gt_pointer_operator): New.
20838 (gt_note_pointers): New.
20839 (gt_pch_note_object): New prototype.
20840 (gt_pointer_walker): New.
20841 (struct ggc_root_tab): Use gt_pointer_walker, add `pchw' field.
20842 (LAST_GGC_ROOT_TAB): Update.
20843 (gt_pch_cache_rtab): Declare.
20844 (gt_pch_scalar_rtab): Declare.
20845 (struct ggc_cache_tab): Use gt_pointer_walker, add `pchw' field.
20846 (LAST_GGC_CACHE_TAB): Update.
20847 (gt_pch_save_stringpool): Declare.
20848 (gt_pch_restore_stringpool): Declare.
20849 (gt_pch_p_S): Declare.
20850 (gt_pch_n_S): Declare.
20851 (struct ggc_pch_data): Forward-declare.
20852 (init_ggc_pch): Declare.
20853 (ggc_pch_count_object): Declare.
20854 (ggc_pch_total_size): Declare.
20855 (ggc_pch_this_base): Declare.
20856 (ggc_pch_alloc_object): Declare.
20857 (ggc_pch_prepare_write): Declare.
20858 (ggc_pch_write_object): Declare.
20859 (ggc_pch_finish): Declare.
20860 (ggc_pch_read): Declare.
20861 (gt_pch_save): Declare.
20862 (gt_pch_restore): Declare.
20863 * fold-const.c (size_int_type_wide): Allocate size_htab using GGC.
20864 * emit-rtl.c (init_emit_once): Allocate const_int_htab,
20865 const_double_htab, mem_attrs_htab using GGC.
20866 * c-pch.c: Include ggc.h.
20867 (pch_init): Allow reading PCH file back.
20868 (c_common_write_pch): Call gt_pch_save.
20869 (c_common_read_pch): Call gt_pch_restore.
20870 * c-parse.in (init_reswords): Delete now-untrue comment.
20871 Allocate ridpointers using GGC.
20872 * c-objc-common.c (c_objc_common_finish_file): Write PCH before
20873 calling expand_deferred_fns.
20874 * c-common.h (ridpointers): Mark for GTY machinery.
20875 * Makefile.in (stringpool.o): Update dependencies.
20876 (c-pch.o): Update dependencies.
20877 (ggc-common.o): Update dependencies.
20878 * stringpool.c: Include gt-stringpool.h.
20879 (gt_pch_p_S): New.
20880 (gt_pch_n_S): New.
20881 (struct string_pool_data): New.
20882 (spd): New.
20883 (gt_pch_save_stringpool): New.
20884 (gt_pch_restore_stringpool): New.
20885 * tree.c (init_ttree): Make type_hash_table allocated using GC.
07488f32 20886
17211ab5
GK
20887 2002-10-04 Geoffrey Keating <geoffk@apple.com>
20888
20889 * gengtype.c (adjust_field_rtx_def): Don't pass size_t to printf.
20890 (output_mangled_typename): Don't pass size_t to printf.
20891
20892 * tree.h (union tree_type_symtab): Add tag to `address' field.
20893 (union tree_decl_u2): Add tag to 'i' field.
20894 * varasm.c (union rtx_const_un): Add tags to all fields.
20895 * gengtype.c (struct walk_type_data): New.
20896 (output_escaped_param): Take struct walk_type_data parameter.
20897 (write_gc_structure_fields): Delete.
20898 (walk_type): New.
20899 (write_gc_marker_routine_for_structure): Delete.
20900 (write_func_for_structure): New.
20901 (gc_mark_process_field): New.
20902 (gc_mark_func_name): New.
20903 (gc_counter): Delete.
20904 (write_gc_types): Use write_func_for_structure.
20905 (write_gc_roots): Use walk_type.
20906
20907 2002-10-02 Geoffrey Keating <geoffk@apple.com>
20908
20909 * ggc-common.c (ggc_mark_roots): Delete 'x'.
20910 (ggc_splay_dont_free): Fix warning about unused 'x'.
20911 (ggc_print_common_statistics): Remove warnings.
20912
20913 2002-10-01 Mike Stump <mrs@apple.com>
20914
07488f32
ZW
20915 * ggc-common.c (ggc_splay_alloc): Actually return the allocated area.
20916 * gengtype.c (write_gc_structure_fields): Handle param[digit]_is.
17211ab5
GK
20917
20918 2002-09-01 Geoffrey Keating <geoffk@redhat.com>
20919 Catherine Moore <clm@redhat.com>
20920
20921 * Makefile (c-pch.o): Update dependencies.
20922 (LIBCPP_OBJS): Add cpppch.o.
20923 (cpppch.o): New.
20924 * c-common.c (c_common_init): Don't call pch_init here.
20925 * c-common.h (c_common_read_pch): Update prototype.
20926 * c-lex.c (c_common_parse_file): Call pch_init here.
20927 * c-opts.c (COMMAND_LINE_OPTIONS): Add -Winvalid-pch, -fpch-deps.
20928 (c_common_decode_option): Handle them.
20929 * c-pch.c: Include c-pragma.h.
20930 (save_asm_offset): Delete.
20931 (pch_init): Move contents of save_asm_offset into here, call
20932 cpp_save_state.
20933 (c_common_write_pch): Call cpp_write_pch.
20934 (c_common_valid_pch): Warn only when -Winvalid-pch. Call
20935 cpp_valid_state.
20936 (c_common_read_pch): Add NAME parameter. Call cpp_read_state.
07488f32 20937 * cppfiles.c (stack_include_file): Update for change to
17211ab5
GK
20938 parameters of cb.read_pch.
20939 * cpphash.h (struct cpp_reader): Add `savedstate' field.
20940 * cpplib.h (struct cpp_options): Add `warn_invalid_pch' and
20941 `restore_pch_deps' fields.
20942 (struct cpp_callbacks): Add NAME parameter to `read_pch'.
20943 (cpp_save_state): Prototype.
20944 (cpp_write_pch): Prototype.
20945 (cpp_valid_state): Prototype.
20946 (cpp_read_state): Prototype.
20947 * cpppch.c: New file.
20948 * flags.h (version_flag): Remove prototype.
20949 * mkdeps.c (deps_save): New.
20950 (deps_restore): New.
20951 * mkdeps.h (deps_save): Prototype.
20952 (deps_restore): Prototype.
20953 * toplev.c (late_init_hook): Delete.
20954 (version_flag): Make static again.
20955 (compile_file): Don't call late_init_hook.
20956 * toplev.h (late_init_hook): Delete.
20957 * doc/cppopts.texi: Document -fpch-deps.
20958 * doc/invoke.texi (Warning Options): Document -Winvalid-pch.
20959
20960 2002-08-27 Geoffrey Keating <geoffk@redhat.com>
20961
20962 * c-pch.c (c_common_write_pch): Rename from c_write_pch, change
20963 callers.
20964 (c_common_valid_pch): Rename from c_valid_pch, change callers.
20965 (c_common_read_pch): Rename from c_read_pch, change callers.
20966
20967 * c-opts.c (COMMAND_LINE_OPTIONS): Allow -output-pch= to have
20968 a space between it and its argument.
20969
20970 2002-08-24 Geoffrey Keating <geoffk@redhat.com>
20971
20972 * c-pch.c: New file.
20973 * toplev.h (late_init_hook): Declare.
20974 * toplev.c (late_init_hook): Define.
20975 (version_flag): Make globally visible.
20976 (compile_file): Call late_init_hook.
20977 (init_asm_output): Make output file seekable.
20978 * gcc.c (default_compilers): Update c-header rule.
20979 * flags.h (version_flag): Declare.
20980 * cpplib.h (struct cpp_callbacks): Add 'valid_pch' and 'read_pch'
20981 fields.
20982 * cppfiles.c (struct include_file): Add 'pch' field.
20983 (INCLUDE_PCH_P): New.
20984 (open_file_pch): New.
20985 (stack_include_file): Handle PCH files specially.
20986 (find_include_file): Call open_file_pch instead of open_file.
20987 (_cpp_read_file): Explain why open_file is used instead of
20988 open_file_pch.
20989 * c-opts.c (c_common_decode_option): Correct OPT__output_pch case.
20990 * c-objc-common.c (c_objc_common_finish_file): Call c_write_pch.
20991 * c-lex.c (init_c_lex): Set valid_pch and read_pch fields
20992 in cpplib callbacks.
20993 * c-common.c (pch_file): Correct comment.
20994 (allow_pch): Define.
20995 (c_common_init): Call pch_init.
20996 * c-common.h (allow_pch): Declare.
20997 (pch_init): Declare.
20998 (c_valid_pch): Declare.
20999 (c_read_pch): Declare.
21000 (c_write_pch): Declare.
21001 * Makefile.in (c-pch.o): New.
21002 (C_AND_OBJC_OBJS): Add c-pch.o.
21003 * doc/invoke.texi (Precompiled Headers): Add index entries,
21004 complete truncated paragraph.
21005
21006 2002-08-17 Geoffrey Keating <geoffk@redhat.com>
21007
21008 * c-common.c: (pch_file): Define.
21009 * c-common.h (pch_file): Declare.
21010 * c-opts.c (COMMAND_LINE_OPTIONS): Add --output-pch=.
21011 (missing_arg): Require --output-pch= to have an argument.
21012 (c_common_decode_option): Handle --output-pch=.
21013 * gcc.c: Document new %V.
21014 (default_compilers): Handle compiling C header files.
21015 (do_spec_1): Implement %V.
21016 (main): Handle "gcc foo.h" without trying to run linker.
21017 * doc/invoke.texi (Invoking GCC): Add new menu item for PCH.
21018 (Overall Options): Document what the driver does with header files,
21019 document new -x option possibilities.
21020 (Invoking G++): More documentation for PCH.
21021 (Precompiled Headers): New.
21022
21023 2002-08-09 Geoffrey Keating <geoffk@redhat.com>
21024
21025 * ggc.h: Don't include varray.h. Rearrange functions to be more
21026 organized.
21027 (ggc_add_root): Delete.
21028 (ggc_mark_rtx): Delete.
21029 (ggc_mark_tree): Delete.
21030 (struct ggc_statistics): Remove contents.
21031 * ggc-common.c: Remove unneeded includes.
21032 (struct ggc_root): Delete.
21033 (roots): Delete.
21034 (ggc_add_root): Delete.
21035 (ggc_mark_roots): Don't mark `roots'. Call ggc_mark_stringpool.
21036 (ggc_print_common_statistics): Remove most of the contents.
21037 * Makefile.in (GGC_H): No longer uses varray.h.
21038 (ggc-common.o): Update dependencies.
21039 (c-parse.o): Add varray.h to dependencies.
21040 (c-common.o): Add varray.h.
21041 * stringpool.c (mark_ident): Use mangled name for tree marker routine.
21042 (mark_ident_hash): Rename to ggc_mark_stringpool.
21043 (init_stringpool): Don't use ggc_add_root.
21044 * c-parse.in: Include varray.h.
21045 * c-common.c: Include varray.h.
21046 * objc/Make-lang.in (objc-act.o): Add varray.h.
21047 * objc/objc-act.c: Include varray.h.
21048
21049 2002-07-25 Geoffrey Keating <geoffk@redhat.com>
21050
21051 * dwarf2out.c (dw_cfi_oprnd2_desc): Fix ISO-only function definition.
21052 (dw_cfi_oprnd1_desc): Likewise.
21053
21054 2002-07-17 Geoffrey Keating <geoffk@redhat.com>
21055
21056 * config/alpha/alpha.c (struct alpha_links): Use gengtype to mark;
21057 move out of ifdef.
21058 (alpha_links): Use gengtype to mark; move out of ifdef.
21059 (mark_alpha_links_node): Delete.
21060 (mark_alpha_links): Delete.
21061 (alpha_need_linkage): Use GGC to allocate splay tree, struct
21062 alpha_links, strings. Don't use ggc_add_root.
21063 * ggc-common.c (ggc_splay_alloc): New.
21064 (ggc_splay_dont_free): New.
21065 * ggc.h (ggc_mark_rtx): Update for changed name mangling.
21066 (ggc_mark_tree): Likewise.
21067 (splay_tree_new_ggc): New.
21068 (ggc_splay_alloc): Declare.
21069 (ggc_splay_dont_free): Declare.
21070 * dwarf2asm.c: Include gt-dwarf2asm.h.
21071 (mark_indirect_pool_entry): Delete.
21072 (mark_indirect_pool): Delete.
21073 (indirect_pool): Use gengtype to mark.
21074 (dw2_force_const_mem): Don't use ggc_add_root.
21075 * Makefile.in (dwarf2asm.o): Depend on gt-dwarf2asm.h.
21076 (GTFILES): Add SPLAY_TREE_H, dwarf2asm.c.
21077 (gt-dwarf2asm.h): Depend on s-gtype.
21078
21079 2002-07-08 Geoffrey Keating <geoffk@redhat.com>
21080
21081 * tree.h (union tree_type_symtab): Mark `die' field.
21082 * Makefile.in (dwarf2out.o): Update dependencies.
21083 * dwarf2out.c: Use GGC to allocate all structures. Convert to htab_t
21084 hash tables.
21085 (dw_cfi_oprnd1_desc): New function.
21086 (dw_cfi_oprnd2_desc): New function.
21087 (indirect_string_alloc): Delete.
21088 (debug_str_do_hash): New function.
21089 (debug_str_eq): New function.
21090 (mark_limbo_die_list): Delete.
21091 (dwarf2out_init): Don't call ggc_add_root.
21092
30028c85
VM
210932003-01-09 Vladimir Makarov <vmakarov@redhat.com>
21094
21095 The following changes are merged from itanium-sched-branch:
21096
21097 2003-01-08 David Edelsohn <edelsohn@gnu.org>
21098
21099 * doc/md.texi: Clarify assignment of units to automata description.
21100
21101 2003-01-08 Vladimir Makarov <vmakarov@redhat.com>
21102
21103 * genautomata.c (unit_decl): Remove members
21104 `the_same_automaton_unit' and
21105 `the_same_automaton_message_reported_p'.
21106 (process_unit_to_form_the_same_automaton_unit_lists,
21107 form_the_same_automaton_unit_lists_from_regexp,
21108 form_the_same_automaton_unit_lists, the_same_automaton_lists):
21109 Remove them.
21110 (annotation_message_reported_p): New global variable.
21111 (check_unit_distribution_in_reserv,
21112 check_regexp_units_distribution): New functions.
21113 (check_unit_distributions_to_automata): Rewrite it.
21114
21115 2003-01-04 Vladimir Makarov <vmakarov@redhat.com>
21116
21117 * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
21118 Use continue instead of break if cycle is too big.
21119
21120 2002-12-20 Vladimir Makarov <vmakarov@redhat.com>
21121
21122 * genautomata.c (check_unit_distributions_to_automata): Output at
21123 most one message for a unit.
21124 (process_unit_to_form_the_same_automaton_unit_lists): Check
21125 automaton of units instead of units themself.
21126
21127 * doc/md.texi: Describe the constraint about assigning unit to
21128 automata.
21129
21130 2002-12-20 Jan Hubicka <jH@suse.cz>
21131 Vladimir Makarov <vmakarov@redhat.com>
21132
21133 * genautomata.c (unit_decl): Add new members `min_occ_cycle_num'
21134 and `in_set_p'.
21135 (gen_cpu_unit): Initialize the new members.
21136 (process_regexp_cycles): Calculate minimal finish cycle too. Set
21137 up `min_occ_cycle_num'.
21138 (evaluate_max_reserv_cycles): Change the function call.
21139 (CLEAR_BIT): New macro.
21140 (states_union, state_shift): Use the mask.
21141 (initiate_excl_sets, form_reserv_sets_list): Set up `in_set_p'.
21142 (form_reservs_matter): New function.
21143 (make_automaton): Call the function and use the mask.
21144 (estimate_one_automaton_bound): Take `min_occ_cycle_num' into
21145 account.
07488f32 21146
30028c85
VM
21147 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
21148
21149 * config/ia64/itanium2.md (lfetch): Change the insn reservation.
21150
21151 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
21152
21153 * config/ia64/ia64.c (bundling): Try to insert 2 nops for M insn
21154 for Itanium.
21155
21156 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
21157
21158 * config/ia64/ia64.c (ia64_override_options): Make itanium2 as
21159 default cpu.
21160
21161 2002-12-17 Vladimir Makarov <vmakarov@redhat.com>
21162 2002-10-31 Dale Johannesen <dalej@apple.com>
21163
21164 * haifa-sched.c (find_set_reg_weight): New function.
21165 (find_insn_reg_weight): Use the new function.
21166 (schedule_block): Do sorting ready queue always
21167 after insn issue.
21168
21169 2002-11-27 Vladimir Makarov <vmakarov@redhat.com>
21170
21171 * config/ia64/ia64.c (bundling): Use MFI template instead of MLX.
21172
21173 2002-11-19 Vladimir Makarov <vmakarov@redhat.com>
21174
21175 * haifa-sched.c (choice_entry): New structure.
21176 (choice_stack, cycle_issued_insns): New variables.
21177 (max_issue): Rewrite it.
21178 (choose_ready): Set up ready_try for unknown insns too.
21179 (schedule_block): Allocate and free choice_stack. Set up
21180 and modify cycle_issued_insns.
21181
21182 * config/ia64/ia64.c (issue_nops_and_insn): Combine insn issue
21183 with and without filling the bundle.
21184 (bundling): Combine calls of issue_nops_and_insn.
07488f32 21185
30028c85
VM
21186 2002-10-17 Vladimir Makarov <vmakarov@redhat.com>
21187
21188 * config/ia64/itanium1.md: New file.
21189
21190 * config/ia64/itanium2.md: New file.
21191
21192 * config/ia64/ia64.md: Move DFA descriptions into the new files.
21193 Remove the old pipeline description.
07488f32 21194
30028c85
VM
21195 * config/ia64/ia64.c (ia64_override_options): Add aliases of
21196 itanium processor names.
07488f32 21197
30028c85
VM
21198 2002-10-16 Vladimir Makarov <vmakarov@redhat.com>
21199
21200 * config/ia64/ia64.c (bundling): Print states for Itanium2 too.
21201 (ia64_reorg): Set up queried unit codes for Itanium2 too.
21202
21203 * config/ia64/ia64.md: Add descriptions for Itanium2.
21204
21205 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
21206
21207 * config/ia64/ia64.h (processor_type): New enumeration.
21208 (ia64_tune, ia64_tune_string): New external declarations.
21209 (TARGET_OPTIONS): Add option `tune='.
21210
21211 * config/ia64/ia64.c (ia64_tune, ia64_tune_string): New global
21212 variables.
21213 (ia64_override_options): Set up `ia64_tune'.
21214 (ia64_sched_reorder2): Set up `clocks' only for Itanium.
21215 (ia64_dfa_new_cycle): Set up `add_cycles' only for Itanium.
21216 (bundling): Add nops for MM-insns only for Itanium.
21217 (ia64_reorg): Allocate and free `clocks' and `add_cycles' only for
21218 Itanium.
21219
21220 * config/ia64/ia64.md (cpu): New attribute.
21221 (DFA description): Enable it only for Itanium.
07488f32 21222
30028c85
VM
21223 2002-10-08 Vladimir Makarov <vmakarov@redhat.com>
21224 Richard Henderson <rth@redhat.com>
21225
21226 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS): Rename it to
21227 MASK_EARLY_STOP_BITS.
21228 (TARGET_TUNE_STOP_BITS): Rename it to TARGET_EARLY_STOP_BITS.
21229 (TARGET_SWITCHES): Rename option `tune-stop-bits' to
21230 `early-stop-bits'.
07488f32 21231
30028c85
VM
21232 * config/ia64/ia64.c (ia64_dfa_new_cycle,
21233 final_emit_insn_group_barriers): Use TARGET_EARLY_STOP_BITS
21234 instead of TARGET_TUNE_STOP_BITS.
07488f32 21235
30028c85
VM
21236 * doc/invoke.texi: Rename option `-mtune-stop-bits' to
21237 `-mearly-stop-bits'.
21238
21239 * config/ia64/ia64.c (automata_option "v"): Comment it.
07488f32 21240
30028c85
VM
21241 2002-10-07 Vladimir Makarov <vmakarov@redhat.com>
21242
07488f32 21243 * config/ia64/ia64.h (MASK_TUNE_STOP_BITS, TARGET_TUNE_STOP_BITS):
30028c85
VM
21244 New macros.
21245 (TARGET_SWITCHES): Add entries for the new option.
07488f32 21246
30028c85
VM
21247 * config/ia64/ia64.c (dfa_stop_insn, last_scheduled_insn, rtx
21248 dfa_pre_cycle_insn, ia64_nop): Don't make them as roots for GC.
21249 (stops_p, stop_before_p, clocks_length, clocks, add_cycles): New
21250 global variables.
21251 (ia64_sched_reorder2): Set up `clocks'.
21252 (ia64_variable_issue): Set up `stops_p' and reset `stop_before_p'.
21253 (ia64_dfa_new_cycle): Set up add_cycle. Permit sorting ready
21254 queue when TARGET_TUNE_STOP_BITS.
21255 (bundling): Insert additional nops for MM-insns.
21256 (final_emit_insn_group_barriers): Add insertion of stop bits
21257 according `stops_p'.
21258 (ia64_reorg): Initiate the new varibales.
21259
21260 * doc/invoke.texi: Add description of option `-mtune-stop-bits'.
07488f32 21261
30028c85
VM
21262 2002-10-02 Vladimir Makarov <vmakarov@redhat.com>
21263
21264 * haifa-sched.c (schedule_block): Modify INSN_TICK of depended
21265 insns at the end of block insn scheduling.
21266
21267 2002-09-30 Vladimir Makarov <vmakarov@redhat.com>
21268
21269 * sched-deps.c (remove_dependence, group_leader): Remove it.
21270 (add_dependence): Add dependence to group leader to.
21271 (set_sched_group_p): Add dependence to the first insn of the
21272 schedule group too.
21273 (sched_analyze_insn): Make dependence to jump as anti-dependence.
21274 Change true dependence by anti-dependence when
21275 `reg_pending_barrier'.
21276
21277 * sched-rgn.c (init_ready_list, can_schedule_ready_p,
21278 add_branch_dependences): Ignore schedule groups.
21279
21280 * sched-ebb.c (init_ready_list): Ditto.
21281
21282 * (move_insn, set_priorities): Ditto.
21283
21284 * config/ia64/ia64.c (ia64_sched_init): Check that schedule group
21285 flag is clear after reload.
21286 (adjust_cost): Change cost only for output dependencies.
07488f32 21287
30028c85 21288 * config/ia64/ia64.md: Add more insns into bypass for MM-insns.
07488f32 21289
30028c85
VM
21290 2002-09-26 Vladimir Makarov <vmakarov@redhat.com>
21291
21292 * Makefile.in (sched-ebb.o): Add `$(TARGET_H)' to the entry.
21293
21294 * target.h (gcc_target): Add member
21295 `dependencies_evaluation_hook'.
21296
21297 * target-def.h (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New
21298 macro.
21299 (TARGET_SCHED): Add initiatialization of the new member.
21300
21301 * sched-ebb.c: Include `target.h'.
21302 (schedule_ebb): Call `dependencies_evaluation_hook'.
21303
21304 * sched-rgn.c (schedule_region): Call
21305 `dependencies_evaluation_hook'.
21306
21307 * config/ia64/ia64.c (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
21308 New macro.
21309 (ia64_dependencies_evaluation_hook): New function.
21310
21311 * doc/tm.texi (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK):
21312 Describe the new hook.
07488f32 21313
30028c85
VM
21314 2002-09-25 Vladimir Makarov <vmakarov@redhat.com>
21315
21316 * target.h (gcc_target): Add members
21317 `first_cycle_multipass_dfa_lookahead_guard' and `dfa_new_cycle'.
21318
21319 * target-def.h (TARGET_SCHED_DFA_NEW_CYCLE,
21320 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): New
21321 macros.
21322 (TARGET_SCHED): Add initiatialization of the new members.
21323
21324 * haifa-sched.c (schedule_insn): Update last_clock_var for the 1st
21325 insn scheduling too.
21326 (choose_ready): Use `first_cycle_multipass_dfa_lookahead_guard' to
21327 initialize `ready_try'.
21328 (schedule_block): Use `dfa_new_cycle'. Sort `ready' only unless
21329 `dfa_new_cycle' says not to do it.
07488f32 21330
30028c85
VM
21331 * config/ia64/ia64.md: Add DFA Itanium 1 description for insn
21332 bundling.
21333
21334 * config/ia64/ia64.h (CPU_UNITS_QUERY): New macro.
21335
21336 * config/ia64/ia64.c: Include `hashtab.h'.
21337 (ia64_first_cycle_multipass_dfa_lookahead_guard,
21338 ia64_dfa_new_cycle, final_emit_insn_group_barriers,
21339 ia64_dfa_sched_reorder, get_free_bundle_state, free_bundle_state,
21340 initiate_bundle_states, finish_bundle_states, bundle_state_hash,
21341 bundle_state_eq_p, insert_bundle_state,
21342 initiate_bundle_state_table, finish_bundle_state_table,
21343 try_issue_nops, try_issue_insn, issue_nops_and_insn, get_max_pos,
21344 get_template, get_next_important_insn, bundling): New functions.
21345 (ia64_internal_sched_reorder): Remove it.
21346 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
21347 TARGET_SCHED_DFA_NEW_CYCLE): New macros.
21348 (ia64_safe_itanium_requires_unit0): Remove it.
21349 (group_barrier_needed_p): Place group barrier right before a real
21350 insn.
21351 (bundle, ia64_packet, NR_PACKETS, type_names, packets, packets):
21352 Remove them.
21353 (bundle_name): New variable.
21354 (_0mii_, _0mmi_, _0mfi_, _0mmf_, _0bbb_, _0mbb_, _0mib_, _0mmb_,
21355 _0mfb_, _0mlx_, _1mii_, _1mmi_, _1mfi_, _1mmf_, _1bbb_, _1mbb_,
21356 _1mib_, _1mmb_, _1mfb_, _1mlx_, pos_1, pos_2, pos_3, pos_4, pos_5,
21357 pos_6, dfa_stop_insn, last_scheduled_insn, dfa_state_size,
21358 temp_dfa_state, prev_cycle_state): New global variables.
21359 (insn_matches_slot, maybe_rotate, finish_last_head,
21360 rotate_one_bundle, rotate_one_bundles, nop_cycles_until,
21361 cycle_end_fill_slots, packet_matches_p, get_split, find_best_insn,
21362 find_best_packet, itanium_reorder, dump_current_packet,
21363 schedule_stop, gen_nop_type, ia64_emit_nops): Remove them.
21364 (sched_data, sched_ready, sched_types): Remove them.
21365 (ia64_sched_init): Initiate only `last_scheduled_insn' and call
21366 `init_insn_group_barriers'.
21367 (ia64_sched_reorder, ia64_sched_reorder2): Call
21368 ia64_dfa_sched_reorder.
21369 (ia64_variable_issue): Rewrite it.
21370 (bundle_state): New structure.
21371 (index_to_bundle_states, bundle_states_num,
21372 allocated_bundle_states_chain, free_bundle_state_chain): New
21373 global variables.
21374 (ia64_sched_finish): Add stop bits and call `bundling' after the
21375 2nd insn scheduling.
21376 (ia64_use_dfa_pipeline_interface): Return zero always.
21377 (ia64_first_cycle_multipass_dfa_lookahead): Return 6 for the 2nd
21378 insn scheduling.
21379 (ia64_init_dfa_pre_cycle_insn): Initialize `dfa_state_size',
21380 `temp_dfa_state', `prev_cycle_state', and `dfa_stop_insn'.
21381 (ia64_reorg): Add bundling insns.
21382
21383 * doc/tm.texi
21384 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD,
21385 TARGET_SCHED_DFA_NEW_CYCLE): Describe the new hooks.
07488f32 21386
30028c85
VM
21387 2002-09-23 Vladimir Makarov <vmakarov@redhat.com>
21388
21389 * config/ia64/ia64.md: Add Itanium1 DFA description.
21390 (itanium_class): Add `nop' and `pre_cycle'. Add
21391 define_function_unit for `nop'.
21392 (nop): Change attribute `itanium_class'.
21393 (pre_cycle): New define_insn.
21394
21395 * config/ia64/ia64-protos.h (bundling_p): New external variable.
21396 (ia64_st_address_bypass_p, ia64_ld_address_bypass_p,
21397 ia64_produce_address_p): New function prototypes.
21398
21399 * config/ia64/ia64.c (bundling_p): New global variable.
21400 (ia64_use_dfa_pipeline_interface,
21401 ia64_first_cycle_multipass_dfa_lookahead,
21402 ia64_init_dfa_pre_cycle_insn, ia64_dfa_pre_cycle_insn): New
21403 functions.
21404 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
21405 TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
21406 TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
21407 TARGET_SCHED_DFA_PRE_CYCLE_INSN): New macros.
21408 (ia64_sched_init, ia64_sched_reorder, ia64_sched_reorder2,
21409 ia64_variable_issue, ia64_sched_finish): Do nothing before reload.
21410 (dfa_pre_cycle_insn): New variable.
07488f32 21411
30028c85
VM
21412 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
21413
21414 * rtl.def (FINAL_PRESENCE_SET, FINAL_ABSENCE_SET): New
21415 constructions.
21416
21417 * genattrtab.h (gen_final_presence_set, gen_final_absence_set):
21418 New function prototypes.
21419
21420 * genattrtab.c (main): Process the new constructions.
21421
21422 * genautomata.c (gen_presence_absence_set,
21423 process_presence_absence_names, process_presence_absence_patterns,
21424 add_presence_absence, check_absence_pattern_sets): Add parameter
21425 `final_p'.
21426 (unit_decl): Add new members `final_presence_list' and
21427 `final_absence_list'.
21428 (unit_pattern_rel_decl): Add new member `final_p'.
21429 (gen_final_presence_set, gen_final_absence_set): New functions.
21430 (process_decls): Use member `final_p'.
21431 (temp_reserv): New global variable.
21432 (reserv_sets_are_intersected): Add processing `final_presence_set'
21433 and `final_absence_set'.
21434 (initiate_states): Allocate `temp_reserv'.
21435 (unit_final_presence_set_table, unit_final_absence_set_table): New
21436 gloabal variables.
21437 (initiate_presence_absence_pattern_sets): Initiate them.
21438 (NDFA_to_DFA): Fix typo.
21439 (output_description): Output `final_presence_set' and
21440 `final_absence_set'.
21441
21442 * doc/md.texi (final_presence_set, final_absence_set): Describe
21443 them.
07488f32 21444
30028c85
VM
21445 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
21446
21447 * genautomata.c (transform_3): Process a missing case (nothing on
21448 unit place).
21449
21450 2002-09-20 Vladimir Makarov <vmakarov@redhat.com>
21451
21452 * rtl.def (DEFINE_QUERY_CPU_UNIT, AUTOMATA_OPTION): Change
21453 comments about queried units and the minimization.
07488f32 21454
30028c85 21455 * doc/md.texi: Ditto.
07488f32 21456
30028c85
VM
21457 * genautomata.c (create_composed_state): Return nonzero if the new
21458 state has been created.
21459 (first_cycle_unit_presence): New function.
21460 (state_is_differed): Add new parameter. Use the new function.
21461 Take queried units into account.
21462 (partition_equiv_class): Pass additional parameter to
21463 `state_is_differed'.
21464 (merge_states): Process composed states too.
21465 (build_automaton, create_automata, output_min_issue_delay_table,
21466 output_tables, output_statistics): Output more information.
21467 (output_reserved_units_table): Use function
21468 `first_cycle_unit_presence'.
21469 (output_tables): Output table of queried units even if the
21470 minimization is switched on.
21471 (write_automata): Output code for querying units even if the
21472 minimization is switched on.
07488f32 21473
30028c85
VM
21474 2002-09-19 Vladimir Makarov <vmakarov@redhat.com>
21475
21476 * rtl.def (PRESENCE_SET, ABSENCE_SET): Add comments about extended
21477 syntax of the constructions.
07488f32 21478
30028c85
VM
21479 * doc/md.texi (PRESENCE_SET, ABSENCE_SET): Add description of
21480 extended syntax of the constructions.
07488f32 21481
30028c85
VM
21482 * genautomata.c (unit_rel_decl): Rename it to
21483 `unit_pattern_rel_decl'.
21484 (pattern_set_el, pattern_reserv): New structures.
21485 (pattern_set_el_t, pattern_reserv_t): New types.
21486 (gen_presence_absence_set): New function.
21487 (process_presence_absence): Remove it.
21488 (process_presence_absence_names,
21489 process_presence_absence_patterns): New functions.
21490 (get_presence_absence_set): Remove it.
21491 (initiate_presence_absence_sets): Rename it on
21492 `initiate_presence_absence_pattern_sets'. Use new function
21493 `form_reserv_sets_list'.
21494 (form_reserv_sets_list, check_presence_pattern_sets,
21495 check_absence_pattern_sets, output_pattern_set_el_list): New
21496 functions.
21497 (unit_decl): Change types of members `presence_list' and
21498 `absence_list'.
21499 (unit_rel_decl): Rename member `names_num' to `all_names_num'.
21500 (decl): Change types of members `excl', `presence', and `absence'.
21501 (get_str_vect): Rename `par_flag' to `paren_p'. Add null element
21502 at the end of the vector.
21503 (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
21504 gen_automaton, gen_regexp_repeat, gen_regexp_allof,
21505 gen_regexp_oneof, gen_regexp_sequence): Use boolean values.
21506 (gen_presence_set, gen_absence_set): Use new function
21507 `gen_presence_absence_set'.
21508 (add_presence_absence): Process `pattern_list' instead of
21509 `source_list'.
21510 (process_decls): USe new functions
21511 `process_presence_absence_names' and
21512 `process_presence_absence_patterns'.
21513 (reserv_sets_are_intersected): Use new function
21514 `check_presence_pattern_sets'.
21515 (presence_set, absence_set): Remove them.
21516 (unit_presence_set_table, unit_absence_set_table): New global
21517 variables.
21518 (output_description): Use new function
21519 `output_pattern_set_el_list'.
21520 (generate): Use `initiate_presence_absence_pattern_sets'.
07488f32 21521
30028c85
VM
21522 2002-09-18 Vladimir Makarov <vmakarov@redhat.com>
21523
21524 * genattr.c (main): Add output of prototype of new interface
21525 function `dfa_clean_insn_cache'.
21526
21527 * genautomata.c (output_dfa_clean_insn_cache_func): New function.
21528 (DFA_CLEAN_INSN_CACHE_FUNC_NAME): New macro.
21529 (output_dfa_start_func): Use function `dfa_clean_insn_cache' in
21530 the generated code.
21531 (write_automata): Call the new function.
07488f32 21532
62c9aa5f 215332003-01-09 Jan Hubicka <jh@suse.cz>
cb297538 21534
17211ab5
GK
21535 * i386.md (unit, prefix_0f, memory attributes): Hanlde sseicvt
21536 correctly.
cb297538 21537
3a6e2189
PC
215382003-01-09 Paolo Carlini <pcarlini@unitus.it>
21539
21540 * doc/tm.texi (EXTRA_ADDRESS_CONSTRAINT): Fix typo.
21541
62c9aa5f 215422003-01-09 J"orn Rennecke <joern.rennecke@superh.com>
97488870
R
21543
21544 * defaults.h (EXTRA_MEMORY_CONSTRAINT): Add STR argument.
21545 (EXTRA_ADDRESS_CONSTRAINT): Likewise.
21546 (CONSTRAINT_LEN): Provide default definition.
21547 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
21548 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Likewise.
21549 (EXTRA_CONSTRAINT_STR): Likewise.
21550 (REG_CLASS_FROM_CONSTRAINT): Define.
21551 * genoutput.c (check_constraint_len, constraint_len): New functions.
21552 (validate_insn_alternatives): Check CONSTRAINT_LEN for each
21553 constraint / modifier.
21554 (gen_insn): Call check_constraint_len.
21555 * local-alloc.c (block_alloc): Update to use new macros / pass
21556 second argument to EXTRA_{MEMORY,ADDRESS}_CONSTRAINT.
21557 * ra-build.c (handle_asm_insn): Likewise.
21558 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
21559 (constrain_operands, peep2_find_free_register): Likewise.
21560 * regclass.c (record_operand_costs, record_reg_classes): Likewise.
21561 * regmove.c (find_matches): Likewise.
21562 * reload.c (push_secondary_reload, find_reloads): Likewise.
21563 (alternative_allows_memconst): Likewise.
21564 * reload1.c (maybe_fix_stack_asms): Likewise.
21565 (reload_cse_simplify_operands): Likewise.
21566 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
21567 * doc/tm.texi (CONSTRAINT_LEN, REG_CLASS_FROM_CONSTRAINT): Document.
21568 (CONST_OK_FOR_CONSTRAINT_P): Likewise.
21569 (CONST_DOUBLE_OK_FOR_CONSTRAINT_P, EXTRA_CONSTRAINT_STR): Likewise.
21570 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Add STR argument.
21571 * config/s390/s390.h (EXTRA_MEMORY_CONSTRAINT): Likewise.
e2c734c1
R
21572
21573 * sh.h (OVERRIDE_OPTIONS): Allow first scheduling pass for SH5.
21574
fc182093
KH
215752003-01-09 Kazu Hirata <kazu@cs.umass.edu>
21576
21577 * config/h8300/h8300.md (*extzv_1_r_h8300): Correct the insn
21578 length.
21579 (*extzv_1_r_h8300hs): Likewise.
21580 (*extzv_1_r_inv_h8300): Likewise.
21581 (*extzv_1_r_inv_h8300hs): Likewise.
21582
3b1c9927
KH
215832003-01-09 Kazu Hirata <kazu@cs.umass.edu>
21584
21585 * config/h8300/h8300.h (PREDICATE_CODES): New.
21586
867504e6
KH
215872003-01-09 Kazu Hirata <kazu@cs.umass.edu>
21588
21589 * config/h8300/h8300.md (*addsi3_upper): New.
21590 (*iorsi3_shift): Likewise.
21591 (two splitters): Likewise.
21592 (*addsi3_shift): Likewise.
21593 (two splitters): Likewise.
21594
4a69cf79
JZ
215952003-01-09 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
21596
21597 * Makefile.in (optabs.o): Add dependency on basic-block.h.
21598 * basic-block.h (control_flow_insn_p): Fuction was exported.
21599 * cfgbuild.c (control_flow_insn_p): Fuction was made non-static.
21600 * optabs.c (emit_libcall_block): Emit REG_LIBCALL and REG_RETVAL
21601 notes only when the region is contained in a single basic block.
21602
4c46ea23
EB
216032003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
21604
21605 PR inline-asm/8832
21606 * tree.h (expand_asm): New prototype.
21607 * stmt.c (expand_asm): Set the MEM_VOLATILE_P flag if instructed
21608 to do so.
21609 * c-semantics (genrtl_asm_stmt): Pass the RID_VOLATILE qualifier
21610 down to expand_asm.
21611 * c-typeck.c (simple_asm_stmt): Set the RID_VOLATILE qualifier.
21612 * rtlanal.c (volatile_insn_p) [ASM_INPUT]: Test the MEM_VOLATILE_P flag.
21613 (volatile_refs_p) [ASM_INPUT]: Likewise.
21614 (side_effects_p) [ASM_INPUT]: Likewise.
21615
62c9aa5f 216162003-01-09 Jan Hubicka <jh@suse.cz>
f56e86bd
JH
21617
21618 * i386.md (*mul*): FIx constraints; remove confused comment; fix
21619 athlon_decode attributes
21620 (imul/k8 optimization peep2s): New.
21621
21622 * athlon.md (athlon_ssecmp*): Handle ssecomi as well.
21623 * i386.md (type attribute): Add ssecomi.
21624 (unit, memory, prefix attributes): Handle ssecomi.
21625 (cvt?2? patterns): Fix athlon_decode attribute
21626 (comi patterns): Set attribute to ssecomi.
21627
21628 PR target/8343
21629 * m68k.md (umulsidi, mulsidi expanders): Use register operand.
21630
98c29f71
RS
216312003-01-09 Richard Sandiford <rsandifo@redhat.com>
21632
21633 * config/mips/mips.h (PREDICATE_CODES): Add ADDRESSOF for predicates
21634 that match register_operands.
21635 * config/mips/mips.c (reg_or_0_operand, true_reg_or_0_operand): Make
21636 register_operand the default case.
21637
bbb818c6
EB
216382003-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
21639
21640 PR c/8032
21641 * c-typeck.c (process_init_element) [RECORD_TYPE]: For
21642 an empty element, do not advance the pointer to unfilled
21643 fields if there are pending initializers.
21644
90961eff
AJ
216452003-01-09 Christian Cornelssen <ccorn@cs.tu-berlin.de>
21646
21647 * Makefile.in (ORDINARY_FLAGS_TO_PASS): Also pass DESTDIR.
21648 (install-gcc-tooldir, install-cpp, installdirs,
21649 install-common, install-driver, install-info, install-man,
21650 install-headers, install-include-dir, install-headers-tar,
21651 install-headers-cpio, install-headers-cp, install-mkheaders,
21652 install-collect2, uninstall): Prepend $(DESTDIR) to
21653 destination paths in all (un)installation commands.
21654 (install-driver): Rewrite $(LN) commands to support DESTDIR
21655 with "ln" as well as with "ln -s".
21656 (installdirs): Simply use mkinstalldirs.
21657 (install-libgcc, install-multilib): Also pass DESTDIR.
21658 * mklibgcc.in: Prepend $(DESTDIR) to $(libsubdir) in the
21659 installation destination variable ldir.
21660 * config/alpha/t-osf4, config/arm/t-netbsd,
21661 config/ia64/t-hpux, config/mips/t-iris5-6,
21662 config/pa/t-hpux-shlib, config/rs6000/t-aix43,
21663 config/rs6000/t-aix52, config/t-slibgcc-elf-ver,
21664 config/t-slibgcc-sld: Prepend $$(DESTDIR) to $$(slibdir)
21665 in the definition of SHLIB_INSTALL.
21666 * config/arc/t-arc (install-multilib-arc): Prepend $(DESTDIR) to
21667 $(libsubdir) in the installation commands.
21668
8b26829f
KK
216692003-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
21670
21671 * config/sh/sh.h (CASE_VECTOR_MODE): Use SImode for a
21672 non-optimizing compile.
21673 (ASM_OUTPUT_ADDR_VEC_ELT): Use .long for a non-optimizing
21674 compile.
21675
fe77449a
DR
216762003-01-08 Douglas B Rupp <rupp@gnat.com>
21677
21678 * config/i386/i386.c (ix86_attribute_table): Add new attributes
21679 ms_struct and gcc_struct.
21680 (ix86_handle_struct_attribute): New function.
21681 (ix86_ms_bitfield_layout_p): Update to take new attributes
21682 into account.
21683 * doc/extend.texi: Document new attributes.
21684 * testsuite/gcc.dg/bf-ms-attrib.c: New test.
21685
98417968
DS
216862003-01-08 Danny Smith <dannysmith@users.sourceforge.net>
21687
07488f32
ZW
21688 PR optimization/8750
21689 * config/i386/i386.c (ix86_expand_prologue): Don't allow
21690 scheduling pass to move insns across __alloca call.
98417968 21691
e46e3130
DJ
216922003-01-08 Dale Johannesen <dalej@apple.com>
21693
07488f32
ZW
21694 * config/rs6000/rs6000.md: Replace *store_multiple_string
21695 with *stmsi[3-8].
e46e3130 21696
c40e5172
JS
216972003-01-08 Jeff Sturm <jsturm@one-point.com>
21698
21699 PR target/9210
21700 * config/rs6000/rs6000.c (rs6000_elf_encode_section_info):
21701 Set SYMBOL_REF_FLAG on local data sym_ref.
21702
de62b72c 217032003-01-08 Dale Johannesen <dalej@apple.com>
07488f32
ZW
21704
21705 * function.c (assign_parms): Don't set pretend_args_size if
de62b72c 21706 REG_PARM_STACK_SPACE.
07488f32 21707 config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
de62b72c
DJ
21708 pretend_args_size.
21709
25839c41
NN
217102003-01-08 Nathanael Nerode <neroden@gcc.gnu.org>
21711
21712 * gcc.hlp: Delete.
21713
62c9aa5f 217142003-01-09 Jan Hubicka <jh@suse.cz>
4bdc8610
JH
21715
21716 * i386.c (ix86_expand_int_addcc): Fix thinko.
21717
5b71a4e7
DE
217182003-01-08 David Edelsohn <edelsohn@gnu.org>
21719
21720 * config/rs6000/rs6000.h (FUNCTION_MODE): Always use SImode.
21721 * config/rs6000/rs6000.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Redefine
21722 as hook_bool_tree_hwi_hwi_tree_true.
21723 (rs6000_emit_allocate_stack): Use TARGET_32BIT.
21724 (rs6000_emit_epilogue): Same.
21725 (rs6000_output_mi_thunk): Re-implement as RTL.
21726 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Call
21727 xcoffout_declare_function if any debugging enabled.
21728
2d2a50c3
CD
217292003-01-08 Chris Demetriou <cgd@broadcom.com>
21730
21731 * config.gcc (mipsisa32r2-*-elf*, mipsisa32r2el-*-elf*): New
21732 targets, to support MIPS32 Release 2 (MIPS32R2) configurations.
21733 * config/mips/mips.h (enum processor_type): Rename
21734 PROCESSOR_R4KC to PROCESSOR_4KC, PROCESSOR_R5KC to
21735 PROCESSOR_5KC, and PROCESSOR_R20KC to PROCESSOR_20KC.
21736 Add PROCESSOR_M4K.
21737 (TARGET_MIPS4KC, TARGET_MIPS5KC): Update for the renaming.
21738 (ISA_MIPS32R2): New define.
21739 (GENERATE_MULT3_SI, ISA_HAS_CONDMOVE, ISA_HAS_8CC)
21740 (ISA_HAS_MADD_MSUB, ISA_HAS_CLZ_CLO)
21741 (ISA_HAS_PREFETCH): Add support for MIPS32R2.
21742 (MIPS_ISA_DEFAULT): Likewise. Also, fix indentation.
21743 (TARGET_CPU_CPP_BUILTINS): Add support for MIPS32R2. Add new
21744 predefine __mips_isa_rev for MIPS32, MIPS32R2, and MIPS64.
21745 (ISA_HAS_ROTR_SI): Add support for MIPS32R2, and avoid if
21746 compiling MIPS16 code.
21747 (ISA_HAS_ROTR_DI): Do not use if compiling MIPS16 code, and fix
21748 comment.
21749 (ISA_HAS_SEB_SEH): New define.
21750 (ASM_SPEC, LINK_SPEC): Pass -mips32r2 to assembler and linker.
21751 * config/mips/mips.c (mips_cpu_info_table): Adjust for enum
21752 processor_type value renaming. Add support for MIPS32R2.
21753 Clean up comments, and move "sb1" entry with other MIPS64 CPU
21754 entries.
21755 (override_options): Reimplement -mipsN option handling so that
21756 it will work correctly for -mips32r2. Avoid branch-likely
21757 instructions on MIPS32R2.
21758 * config/mips/mips.md (mulsi3_mult3): Add support for MIPS32R2.
21759 (extendhisi2): Use extendhisi2_hw if ISA_HAS_SEB_SEH.
21760 (extendqisi2): Use extendqisi2_hw if ISA_HAS_SEB_SEH.
21761 (extendhisi2_hw, extendqisi2_hw): New.
21762 * config/mips/netbsd.h (TARGET_CPU_CPP_BUILTINS): Add support
21763 for MIPS32R2. Add new predefine __mips_isa_rev for MIPS32,
21764 MIPS32R2, and MIPS64.
21765 (LINK_SPEC): Pass -mips32r2 to linker.
21766 * config/mips/t-isa3264: Built -mips32r2 multilibs.
21767 * doc/invoke.texi (MIPS Options): Add -mips32r2, add support
21768 for mips32r2 in the -march description. Alphabetically sort
21769 CPU names in the -march description. Add long-missed -mips32
21770 and -mips64 to MIPS option summary.
21771
21772 * config.gcc: Update copyright years to include 2003.
21773 * config/mips/mips.c: Likewise.
21774 * config/mips/mips.h: Likewise.
21775 * config/mips/mips.md: Likewise.
21776 * config/mips/netbsd.h: Likewise.
21777 * doc/invoke.texi: Likewise.
21778
918c4fe4
AS
217792003-01-08 Andreas Schwab <schwab@suse.de>
21780
21781 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): Fix spelling of cache
21782 variable.
21783 * configure: Regenerated.
21784
c5e7ce43
KH
217852003-01-08 Kazu Hirata <kazu@cs.umass.edu>
21786
21787 * config/h8300/h8300.c (output_logical_op): Replace byte/word
21788 extraction of det with b0, b1, w0, w2, etc.
21789 (compute_logical_op_length): Likewise.
21790 (compute_logical_op_cc): Likewise.
21791
eb8a8ec4
KH
217922003-01-08 Kazu Hirata <kazu@cs.umass.edu>
21793
21794 * config/h8300/h8300.h (CONSTANT_ADDRESS_P): Allow CONST and
21795 HIGH on all variants.
21796
62c9aa5f 217972003-01-08 Josef Zlomek <zlomj9am@artax.karlin.mff.cuni.cz>
07488f32 21798
56f15830
JZ
21799 * Makefile.in (PARTITION_H): New.
21800 (BASIC_BLOCK_H): Added hard-reg-set.h and $(PARTITION_H).
21801 * basic-block.h: Include hard-reg-set.h.
21802
ab57893b
RE
218032003-01-08 Richard Earnshaw <rearnsha@arm.com>
21804
21805 * arm.h (ENABLE_XF_PATTERNS): Delete.
21806 * arm.md (addxf3, subxf3, mulxf3, divxf3, modxf3, negxf2, absxf2)
21807 (sqrtxf2, floatsixf2, fix_truncxfsi2, truncxfsf2, truncxfdf2)
21808 (extendsfxf2, extenddfxf2, movxf, cmpxf, cmpxf_insn)
21809 (cmpxf_trap): Delete.
21810 (movxf_hard_insn): Remove test of ENABLE_XF_PATTERNS.
21811
62c9aa5f 218122003-01-08 Jan Hubicka <jh@suse.cz>
7b52eede
JH
21813
21814 * i386.md (adddi3_carry_rex64, subdi3_carry_rex64): Name pattern.
21815 (addhi3_carry, addqi3_carry, subhi3_carry, subqi3_carry): New patterns.
21816 (add??cc): New expanders.
21817 * i386.c (expand_int_addcc): New function.
21818 * i386-protos.h (expand_int_addcc): Declare.
21819
21820 * alias.c (memory_modified_1): New static function.
21821 (memory_modified): New static varaible.
21822 (memory_modified_in_insn_p): New global function.
21823 * rtl.h (memory_modified_in_insn_p): Declare.
21824 * rtlanal.c (modified_between_p, modified_in_p): Be smart about memory
21825 references.
21826
21827 * expr.h (emit_conditional_add): Declare.
21828
74049755
JJ
218292003-01-07 Janis Johnson <janis187@us.ibm.com>
21830
21831 PR other/8947
21832 * doc/invoke.texi (-malign-double): Explain that the option breaks
21833 binary compatibility.
21834
e7edc5a0
AS
218352003-01-08 Andreas Schwab <schwab@suse.de>
21836
21837 * config.gcc (m68k-*-linux*): Don't set extra_parts and gnu_ld,
21838 should come from the generic *-*-linux* entry.
21839
62c9aa5f 218402003-01-07 Jan Hubicka <jh@suse.cz>
9635cfad
JH
21841
21842 * cselib.c (cselib_current_insn_in_libcall): New static variable.
21843 (new_elt_loc_list, cselib_process_insn, cselib_init): Keep track on whether
21844 we are inside libcall.
21845 * cselib.h (elt_loc_list): Add in_libcall.
21846 * gcse.c (do_local_cprop): Do not copy propagate using insns
21847 in libcalls.
21848
3ee04299
DE
218492003-01-07 David Edelsohn <edelsohn@gnu.org>
21850
21851 * doc/tm.texi (TARGET_SCHED_VARIABLE_ISSUE): CLOBBER and USE do
21852 not normally affect to issue rate.
21853
62c9aa5f 218542003-01-07 Jan Hubicka <jh@suse.cz>
068f5dea
JH
21855
21856 * genopinit.c (optabs): Add addc_optab.
21857 * ifcvt.c (noce_try_store_flag): Rename to ...
21858 (noce_try_addcc): ... this one; handle generic conditional increment.
21859 (noce_process_if_block): Update noce_try_addcc call.
21860 * optabs.c (emit_conditional_add): New.
21861 (init_obtabs): Initialize addc_optab.
21862 * optabs.h (optab_index): Add OTI_addcc.
21863 (addcc_optab): New macro.
21864 * md.texi: Document addMcc
21865
21866 PR target/8322
21867 * i386.c (ix86_init_mmx_sse_builtins): Constify arguments of loads.
21868 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
21869 * xmmintrin.h (_mm_load*_si128. _mm_store*_si128): Add casts.
21870
21871 * reload1.c (delete_output_reload): Avoid repeated attempts
21872 to delete insn.
21873
eb70d86d
AS
218742003-01-07 Andreas Schwab <schwab@suse.de>
21875
e7edc5a0
AS
21876 * configure.in: Restore CFLAGS before gcc_AC_INITFINI_ARRAY.
21877 Move --enable-initfini-array check ...
21878 * aclocal.m4 (gcc_AC_INITFINI_ARRAY): ... here. Define
21879 HAVE_INITFINI_ARRAY also when --enable-initfini-array is given.
21880 Don't AC_SUBST gcc_cv_initfinit_array. Use AC_TRY_RUN.
21881 * configure: Rebuild.
eb70d86d 21882
1afdf91c
RH
218832003-01-07 Richard Henderson <rth@redhat.com>
21884
e7edc5a0
AS
21885 * alias.c (find_base_value): Only use new_reg_base_value shortcut
21886 if the register is set once.
1afdf91c 21887
36210500 218882003-01-07 Sylvain Pion <Sylvain.Pion@mpi-sb.mpg.de>
07488f32 21889
36210500
SP
21890 * config/i386/i386.c (ix86_init_mmx_sse_builtins):
21891 __builtin_ia32_ldmxcsr and __builtin_ia32_stmxcsr are SSE, not MXX.
21892 * config/i386/i386.md (ldmxcsr, stmxcsr): SSE, not MMX.
21893
cb25b0ce
BK
218942003-01-07 Benjamin Kosnik <bkoz@redhat.com>
21895 Sunil Davasam <sunil.k.davasam@intel.com>
21896
07488f32 21897 PR libstdc++/9076
cb25b0ce
BK
21898 * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
21899 DW_CFA_same_value, read next and ignore.
21900
94c040bd
RH
219012003-01-07 Richard Henderson <rth@redhat.com>
21902
21903 * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
21904
f6cb56fa
DB
219052003-01-07 Daniel Berlin <dberlin@dberlin.org>
21906
21907 * cfg.c: Include alloc-pool.h
21908 (edge_pool): New pool.
21909 (bb_pool): New pool.
21910 (first_deleted_edge): Remove.
21911 (first_deleted_block): Remove.
21912 (init_flow): Alloc/free the pools.
21913 (free_edge): Use pools.
21914 (alloc_block): Ditto.
21915 (expunge_block): Ditto.
21916 (cached_make_edge): Ditto.
21917
21918 * Makefile.in (cfg.o): Add alloc-pool.h dependency.
21919
219202003-01-07 Daniel Berlin <dberlin@dberlin.org>
21921
21922 * et-forest.c: Include alloc-pool.h.
21923 (struct et_forest): Add node_pool and occur_pool.
21924 (et_forest_create): Create the new pools.
21925 (et_forest_delete): Delete them.
21926 (et_forest_add_node): Allocate and free using pools.
21927 (et_forest_add_edge): Ditto.
21928 (et_forest_remove_node): Ditto.
21929 (et_forest_remove_edge): Ditto.
21930
21931 * Makefile.in (et-forest.o): Add alloc-pool.h dependency.
21932
f9ac2f95
KH
219332003-01-07 Kazu Hirata <kazu@cs.umass.edu>
21934
21935 * config/h8300/h8300.c (output_logical_op): Simplify and
21936 optimize the handling of SImode.
21937 * config/h8300/h8300.c (compute_logical_op_length): Update
21938 accordingly.
21939 * config/h8300/h8300.c (compute_logical_op_cc): Likewise.
21940
83282119
RS
219412003-01-07 Richard Sandiford <rsandifo@redhat.com>
21942
21943 * config/mips/mips.c (mips_va_arg): In the EABI code, apply the
21944 big-endian correction to indirect arguments too.
21945
59a4c851
AH
219462003-01-06 Aldy Hernandez <aldyh@redhat.com>
21947
21948 Segher Boessenkool <segher@koffie.nl>
21949
36210500
SP
21950 * config/rs6000/rs6000.c (rs6000_reg_names): Add missing registers.
21951 (alt_reg_names): Ditto, fix formatting.
21952 * config/rs6000/rs6000.h (DEBUG_REGISTER_NAMES): Fix formatting.
59a4c851 21953
7798db98
KH
219542003-01-06 Kazu Hirata <kazu@cs.umass.edu>
21955
21956 * config/h8300/h8300.c (final_prescan_insn): Constify uid.
21957 (output_logical_op): Constify intval and det.
21958 (compute_logical_length): Likewise.
21959 (compute_logical_cc): Likewise.
21960 (output_a_shift): Constify mask.
21961 (h8300_encode_label): Constify len.
21962
4705d102
KH
219632003-01-06 Kazu Hirata <kazu@cs.umass.edu>
21964
21965 * config/h8300/h8300.c (h8300_expand_prologue): Remove fsize.
21966 (h8300_expand_epilogue): Likewise.
21967
98c9a8e8
AH
219682003-01-06 Aldy Hernandez <aldyh@redhat.com>
21969
21970 Segher Boessenkool <segher@koffie.nl>
21971
36210500
SP
21972 * config/rs6000/altivec.md: Remove spaces from assembler
21973 instruction argument lists.
07488f32 21974
86143814
MH
219752003-01-07 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
21976
21977 * config/c4x/c4x.c (c4x_naked_function_p): Rename from
21978 c4x_assembler_function_p.
21979 (c4x_null_epilogue_p): Complement return value, all uses updated.
21980 (c4x_insert_attributes): Add naked.
21981 * config/c4x/c4x.md (c4x_null_epilogue_p): Changes uses.
21982 * doc/extend.texi: Update C4x function attributes.
21983
52fd80fb
RH
219842003-01-06 Richard Henderson <rth@redhat.com>
21985
21986 * config/alpha/alpha.c (alpha_encode_section_info): Adjust symbol_str
21987 properly when changing "local-ness".
21988 * config/alpha/alpha.md (movdi_er_high_g): Allow all symbols.
21989
a16b43c5
DJ
219902003-01-06 Dale Johannesen <dalej@apple.com>
21991
21992 * config/darwin-protos.h: Add prototypes for new section functions.
21993
ef8dfae6
CD
219942003-01-06 Chris Demetriou <cgd@broadcom.com>
21995
21996 * config.gcc (mipsisa32-*-elf*, mipsisa32el-*-elf*): Default ABI
21997 to EABI.
21998
44f9a8e4
ZW
219992003-01-06 Zack Weinberg <zack@codesourcery.com>
22000
22001 * hwint.h: If the current compiler has no 64-bit type at all,
22002 make HOST_WIDEST_INT 32 bits.
22003
2610198a
EC
220042003-01-06 Eric Christopher <echristo@redhat.com>
22005
22006 * config/mips/mips.md (movdf_internal2): Fix constraints.
22007
efbd757f
KH
220082003-01-06 Kazu Hirata <kazu@cs.umass.edu>
22009
22010 * config/h8300/h8300.md (*twoshifts_l16_r1): New.
22011
727b9b8c
RS
220122003-01-06 Richard Sandiford <rsandifo@redhat.com>
22013
22014 * config/mips/mips.md (leadi): Use dla rather than la.
22015
4705d102 220162003-01-06 Svein E. Seldal <Svein.Seldal@solidas.com>
cebdac46
SS
22017
22018 * config/c4x/c4x.h: Updated specs for new gas format. Fixed bug
22019 in C33_FLAG. Added proper C33 support in ASM_FILE_START macro.
22020
4705d102 220212003-01-06 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
fe1e789f 22022
44f9a8e4 22023 * config/c4x/c4x.h: Remove hwint.h include and HOST_WIDE_INT_PRINT_HEX
fe1e789f
HB
22024 redefinition.
22025
dff0ea43
KH
220262003-01-05 Kazu Hirata <kazu@cs.umass.edu>
22027
22028 * config/h8300/h8300.md (*extzv_8_23): New.
22029
94e6fd3e
JDA
220302003-01-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
22031
22032 * pa64-hpux.h (JCR_SECTION_NAME): Define.
22033 (PA_INIT_FRAME_DUMMY_ASM_OP): Check EH_FRAME_SECTION_NAME instead of
22034 USE_EH_FRAME_REGISTRY when defining.
22035
cd9b5ca8
KH
220362003-01-05 Kazu Hirata <kazu@cs.umass.edu>
22037
22038 * config/h8300/h8300.c (output_a_shift): Do not output a
22039 variable shift.
22040 * config/h8300/h8300.md (two splitters): New.
22041
1ba8a9c4
RS
220422003-01-05 Richard Sandiford <rsandifo@redhat.com>
22043
22044 * config/mips/mips.md: Disable the movstrsi define_split.
22045
c7c50494
KG
220462003-01-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22047
22048 * alloc-pool.c: Don't include "libiberty.h".
22049 * config/sparc/gmon-sol2.c: Include <fcntl.h>.
22050 * convert.c (convert_to_real): Hide unused variable.
22051
83fa8d7a
KG
220522003-01-04 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
22053
22054 * Makefile.in (gtyp-gen.h): Const-ify.
22055 * gcov-dump.c (tag_table): Likewise.
22056
871dab3e
BK
220572003-01-04 Bruce Korb <bkorb@gnu.org>
22058
22059 * fixinc/fixfixes.c(wrap_fix): the wrapper guard must be a function
22060 of *both* the file name and the fix name.
22061
90961eff 220622003-01-04 John David Anglin <dave.anglin@nrc.ca>
35d434ed
JDA
22063
22064 * config.gcc (hppa*64*-*-hpux11*): Define extra_parts. Don't use
22065 collect2.
22066 * pa-hpux11.h (LDD_SUFFIX, PARSE_LDD_OUTPUT): Undefine.
22067 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Define.
22068 * pa64-hpux.h (HP_INIT_ARRAY_SECTION_ASM_OP,
22069 GNU_INIT_ARRAY_SECTION_ASM_OP, HP_FINI_ARRAY_SECTION_ASM_OP,
22070 GNU_FINI_ARRAY_SECTION_ASM_OP): Define.
22071 (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Define when not using
22072 elfos.h.
22073 (EH_FRAME_IN_DATA_SECTION): Delete define.
22074 (HAS_INIT_SECTION, LD_INIT_SWITCH, LD_FINI_SWITCH): Undefine.
22075 (STARTFILE_SPEC): Use crtbegin.o.
22076 (ENDFILE_SPEC): Use crtend.o.
22077 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION,
22078 SUPPORTS_INIT_PRIORITY, PA_CXA_FINALIZE_STUB, PA_INIT_FINI_HACK,
22079 PA_INIT_FRAME_DUMMY_ASM_OP, PA_JV_REGISTERCLASSES_STUB,
22080 DTOR_LIST_BEGIN): Define.
22081 * pa.c (TARGET_ASM_CONSTRUCTOR): Define.
22082 (pa_asm_out_constructor, pa_asm_out_destructor): New functions.
22083 * som.h (SUPPORTS_INIT_PRIORITY): Delete define.
22084
b0588013
BK
220852002-12-31 Larin Hennessy <larin@science.oregonstate.edu>
22086
22087 * fixinc/fixinc.svr4: Remove references to i860, Sony NewsOS, and spur.
22088 * fixinc/inclhack.def: Remove tests for Apple A/UX, ARM/RISCiX, DG/UX,
22089 m88k-*-sysv3*, Sony NewsOS. Remove references to i860.
22090 Cleanup handling of replacement text.
22091 * fixinc/mkfixinc.sh: Remove reference to i?86-*-osf1*
22092
220932003-01-04 Bruce Korb <bkorb@gnu.org>
22094
22095 * fixinc/tests/base/math.h: removed obsolete results
22096 * fixinc/tests/base/stdlib.h: ditto
22097 * fixinc/tests/base/sys/param.h: ditto
22098 * fixinc/tests/base/sys/stat.h: ditto
22099 * fixinc/tests/base/time.h: ditto
22100 * fixinc/tests/base/X11/Intrinsic.h: removed obsolete file
22101 * fixinc/tests/base/sys/byteorder.h: ditto
22102 * fixinc/inclhack.def: Remove superfluous backslashes
22103
68ee6df6
KH
221042003-01-04 Kazu Hirata <kazu@cs.umass.edu>
22105
22106 * config/h8300/h8300-protos.h: Add prototypes for
22107 the new functions defined below.
22108 * config/h8300/h8300.c (TARGET_ASM_FUNCTION_PROLOGUE): Do not
22109 define.
22110 (dosize): Emit RTL instead of assembly code.
22111 (push): Likewise.
22112 (pop): Likewise.
22113 (h8300_output_function_prologue): Remove.
22114 (h8300_expand_prologue): New.
22115 (h8300_expand_epilogue): New.
22116 (h8300_output_function_epilogue): Do only the reset of
22117 pragma_saveall.
22118 * config/h8300/h8300.md (push_h8300): New.
22119 (push_h8300hs): Likewise.
22120 (pop_h8300): Likewise.
22121 (pop_h8300hs): Likewise.
22122 (*stm_h8300s_2): Change the name to stm_h8300s_2.
22123 (*stm_h8300s_3): Change the name to stm_h8300s_3.
22124 (*stm_h8300s_4): Change the name to stm_h8300s_4.
22125 (*ldm_h8300s_2): New.
22126 (*ldm_h8300s_3): Likewise.
22127 (*ldm_h8300s_4): Likewise.
22128 (return): Likewise.
22129 (*return_1): Likewise.
22130 (prologue): Likewise.
22131 (epilogue): Likewise.
22132 (monitor_prologue): Likewise.
22133
d3c300d2
DJ
221342003-01-03 Dale Johannesen <dalej@apple.com>
22135
22136 * config/darwin.h: (EXTRA_SECTIONS): Add machopic_symbol_stub1,
22137 machopic_picsymbol_stub1.
22138 (EXTRA_SECTION_FUNCTIONS): Ditto.
22139 * rs6000/rs6000.c: Update copyright.
22140 (machopic_output_stub): Use them. Remove an insn from stub code.
22141
6cce57b0
JM
221422003-01-02 Jason Merrill <jason@redhat.com>
22143
4e8dca1c
JM
22144 * fold-const.c (fold) [COND_EXPR]: Avoid NOP_EXPRs better.
22145
22146 * integrate.c (copy_decl_for_inlining): Don't clear the rtl for
22147 static/external decls.
2610198a 22148
6cce57b0
JM
22149 * c-common.c (finish_fname_decls): Put the DECL_STMTs inside the
22150 outermost scope.
22151 * c-decl.c (c_make_fname_decl): Push the decls there, too.
22152
e392d367
KH
221532003-01-03 Kazu Hirata <kazu@cs.umass.edu>
22154
22155 * config/h8300/h8300-protos.h: Add a prototype for
22156 h8300_current_function_interrupt_function_p.
22157 * config/h8300/h8300.c (interrupt_handler): Remove.
22158 (os_task): Likewise.
22159 (monitor): Likewise.
22160 (pragma_interrupt): New.
22161 (WORD_REG_USED): Use
22162 h8300_current_function_interrupt_function_p.
22163 (dosize): Likewise.
22164 (h8300_output_function_prologue): Likewise.
22165 Do not set interrupt_handler, os_task, monitor.
22166 (h8300_output_function_prologue): Use
22167 h8300_current_function_interrupt_function_p.
22168 Do not set interrupt_handler, os_task, monitor.
22169 (h8300_current_function_interrupt_function_p): New.
22170 (h8300_pr_interrupt): Set pragma_interrupt.
22171 (h8300_insert_attributes): Reset pragma_interrupt.
22172
b15da5b7
GP
221732003-01-03 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
22174
22175 * doc/install.texi (Configuration): Fix markup for reference to
22176 gcc/config.gcc.
22177
bf16e745
KH
221782003-01-02 Kazu Hirata <kazu@cs.umass.edu>
22179
22180 * config/h8300/h8300.md (*iorhi3_zext): Relax the condition.
22181 (*iorhi3_two_qi): Likewise.
22182 (*iorsi3_zexthi): Likewise.
22183 (*xorhi3_zextqi): Likewise.
22184 (*xorsi3_zexthi): Likewise.
22185 (*xorsi3_zextqi): Likewise.
22186
8ccf5d5f
KH
221872003-01-02 Kazu Hirata <kazu@cs.umass.edu>
22188
22189 * config/h8300/h8300.c (stack_pointer_operand): New.
22190 (const_int_gt_2_operand): Likewise.
22191 (const_int_ge_8_operand): Likewise.
22192 * config/h8300/h8300.md (a splitter): Likewise.
22193 (a peephole2): Likewise.
22194 * config/h8300/h8300-protos.h: Add prototypes for the new
22195 functions above.
22196
43c6a96a
SB
221972003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
22198
22199 * objc/Make-lang.in, objc/config-lang.in, objc/lang-specs.h,
22200 objc/objc-act.h: Fix copyright years.
22201
96c4e780
SB
222022003-01-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
22203
22204 * doc/passes.texi: Fix documentation for -fssa-ccp
22205
8ed0a104
NB
222062003-01-02 Neil Booth <neil@daikokuya.co.uk>
22207
22208 * gccbug.in: Update for new categories.
22209
1b9f0361
KH
222102003-01-01 Kazu Hirata <kazu@cs.umass.edu>
22211
22212 * config/h8300/h8300.md: Reorder some patterns.
22213
dc5f17ec
KH
222142003-01-01 Kazu Hirata <kazu@cs.umass.edu>
22215
22216 * config/h8300/h8300.c (output_logical_op): Fix a warning.
22217
cd2801fb
NB
222182003-01-01 Neil Booth <neil@daikokuya.co.uk>
22219
22220 * config/darwin-protos.h, config/c4x/c4x-protos.h,
22221 config/cris/cris-protos.h, config/i370/i370-protos.h,
22222 config/i960/i960-protos.h, config/ia64/ia64-protos.h,
22223 config/v850/v850-protos.h: Use struct, and don't conditionally
22224 compile on GCC_C_PRAGMA_H.
22225
378b1b8e
KH
222262003-01-01 Kazu Hirata <kazu@cs.umass.edu>
22227
22228 * config/arm/arm-protos.h: Remove #ifdef GCC_C_PRAGMA_H.
22229 * config/h8300/h8300-protos.h: Likewise.
22230 * config/sh/sh-protos.h: Likewise.
22231
7106a5bc
KH
222322003-01-01 Kazu Hirata <kazu@cs.umass.edu>
22233
22234 * config/arm/arm-protos.h: Use struct cpp_reader instead of
22235 cpp_reader.
22236 * config/h8300/h8300-protos.h: Likewise.
22237 * config/sh/sh-protos.h: Likewise.
22238
231b51a1
NB
222392003-01-01 Neil Booth <neil@daikokuya.co.uk>
22240
22241 * config/arm/arm.c (arm_pr_long_calls, arm_pr_no_long_calls,
22242 arm_pr_long_calls_off): Use struct.
22243 * config/h8300/h8300.c (h8300_pr-interrupt, h8300_pr_saveall)
22244 : Similarly.
22245 Don't include cpplib.h.
22246 * config/sh/sh.c (sh_pr_interrupt, sh_pr_trapa,
22247 sh_pr_nosave_low_regs): Similarly.
22248
0f18b2b0
KH
222492003-01-01 Kazu Hirata <kazu@cs.umass.edu>
22250
22251 * config/h8300/h8300.c: Include cpplib.h.
22252
b9593599
SB
222532003-01-01 Steven Bosscher <s.bosscher@student.tudelft.nl>
22254
22255 * objc/Make-lang.in, objc/config-lang.in, objc/lang-options.h,
22256 objc/lang-specs.h, objc/objc-act.c, objc/objc-act.h,
22257 objc/objc-lang.c, objc/objc-tree.def: Replace "GNU CC" with
22258 "GCC" in the copyright header.
22259
c58b209a
NB
222602003-01-01 Neil Booth <neil@daikokuya.co.uk>
22261
22262 * c-pragma.c (c_register_pragma): New.
22263 (init_pragma): Use it.
22264 * c-pragma.h (cpp_register_pragma): Don't declare.
22265 (c_register_pragma): New.
22266 * cpplib.h: Remove #ifdef GCC_C_PRAGMA_H.
22267 * config/darwin.h (REGISTER_TARGET_PRAGMAS): Update.
22268 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS): Update.
22269 * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
22270 * config/h8300/h8300.h (REGISTER_TARGET_PRAGMAS): Update.
22271 * config/i370/i370.h (REGISTER_TARGET_PRAGMAS): Update.
22272 * config/i960/i960.h (REGISTER_TARGET_PRAGMAS): Update.
22273 * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Update.
22274 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Update.
22275 * config/sh/sh.h (REGISTER_TARGET_PRAGMAS): Update.
22276 * config/v850/v850.h (REGISTER_TARGET_PRAGMAS): Update.
22277 * doc/tm.texi (REGISTER_TARGET_PRAGMAS): Update
22278
7210d5ae 22279See ChangeLog.8 for earlier changes.