]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
builtins.c (fold_builtin_cabs): Protect the complex argument against multiple evaluat...
[gcc.git] / gcc / ChangeLog
CommitLineData
892955bf
RS
12003-09-09 Roger Sayle <roger@eyesopen.com>
2
3 * builtins.c (fold_builtin_cabs): Protect the complex argument
4 against multiple evaluation when optimizing cabs* into sqrt*.
5
f0985900
JH
6Tue Sep 9 15:36:28 CEST 2003 Jan Hubicka <jh@suse.cz>
7
8 * varasm.c (notice_global_symbol): Properly deal with weak symbols.
9
94fd5176
KC
102003-09-08 Kelley Cook <kelleycook@wideopenwest.com>
11
12 * Makefile.in: Revert yesterday's change.
13
860c4900
BI
142003-09-08 Bernardo Innocenti <bernie@develer.com>
15 Peter Barada <peter@baradas.org>
16
17 * config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
18 * config/m68k/hp320.h (REGISTER_NAMES): Likewise.
19 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
20 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
21 * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
22 * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
23 * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
24 (m68k_compute_frame_layout): New function.
25 (m68k_initial_elimination_offset): New function.
26 (m68k_output_function_prologue): ColdFire-specific movem handling.
27 (m68k_output_function_epilogue): Likewise.
28 * config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg.
29 (ARG_POINTER_REGNUM): Add new definition.
30 (INITIAL_FRAME_POINTER_OFFSET): Remove macro.
31 (ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
32 (CAN_ELIMINATE): Likewise.
33 (INITIAL_ELIMINATION_OFFSET): Likewise.
34
ed311a33
BI
352003-09-08 Bernardo Innocenti <bernie@develer.com>
36
37 * config/m68k/m68k.c (m68k_output_function_prologue): Simplify
38 by removing redundant variable cfa_store_offset.
39
9649812a
MM
402003-09-08 Mark Mitchell <mark@codesourcery.com>
41
42 * langhooks-def.h (lhd_register_builtin_type): New function.
43 (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro.
44 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
45 * langhooks.h (lang_hooks_for_types): Add register_builtin_type.
46 * langhooks.c (lhd_register_builtin_type): New function.
47 * c-common.h (c_register_builtin_type): Declare.
48 * c-common.c (c_register_builtin_type): New function.
49 * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to
50 c_register_builtin_type.
51 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg,
52 __float80, and __float128 macros.
53 * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg,
54 __float80, and __float128 types.
55
11bf0eb0
KG
562003-09-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
57
58 * builtin-types.def
59 (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE,
60 BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE,
61 BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New.
62 * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH,
63 BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL,
64 BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN,
65 BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF,
66 BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN,
67 BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF,
68 BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF,
69 BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL,
70 BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW,
71 BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF,
72 BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH,
73 BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT,
74 BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF,
75 BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL):
76 New.
77 * doc/extend.texi: Document new builtins.
78
d853a20e
JH
79Tue Sep 9 02:18:06 CEST 2003 Jan Hubicka <jh@suse.cz>
80
81 * cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated
82 finalization.
83 * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested
84 functions, check for COMDAT.
85 (cgraph_assemble_pending_functions): Break out from...
86 (cgraph_finalize_function): ... here; allow redefinig of extern inline
87 functions.
88 (record_call_1): Record function references only in non-unit-at-a-time
89 mode.
90 (cgraph_analyze_function): Reset current_function_decl.
91 (cgraph_finalize_compilation_unit): Assemble pending functions.
92
3d81ccc6
MM
932003-09-08 Mark Mitchell <mark@codesourcery.com>
94
95 * mklibgcc.in (libcc.a): Depend on stmp-dirs.
96 (libgov.a): Likewise.
97 (libgcc_eh.a): Likewise.
98
fae111c1
RS
992003-09-08 Roger Sayle <roger@eyesopen.com>
100
101 * fold-const.c (operand_equal_p): Clarify documentation.
102
c1f927e8
RH
1032003-09-08 Richard Henderson <rth@redhat.com>
104
105 * c-decl.c (c_expand_body_1): Push and pop function context here.
106 * tree-optimize.c (tree_rest_of_compilation): ... not here. Take
107 nested argument instead of computing nesting ourselves.
108
7f14bbe6
JJ
1092003-09-08 Jakub Jelinek <jakub@redhat.com>
110
111 * toplev.c (rest_of_handle_stack_regs): Call split_all_insns before
112 regstack if optimizing but not scheduling after reload.
113
5751a10b
JJ
1142003-09-08 Jakub Jelinek <jakub@redhat.com>
115
116 * config/sparc/sparc.c (struct machine_function): New type.
117 (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
118 (sparc_override_options): Initialize init_machine_status.
119 (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand,
120 tie_symbolic_operand, tle_symbolic_operand): New functions.
121 (symbolic_operand): Disallow tls_symbolic_operand.
122 (symbolic_memory_operand): Likewise.
123 (tls_call_delay, sparc_cannot_force_const_mem, legitimate_constant_p,
124 constant_address_p, legitimate_pic_operand_p, legitimate_address_p):
125 New functions.
126 (sparc_tls_symbol): New variable.
127 (sparc_tls_get_addr, sparc_tls_got, legitimize_tls_address,
128 legitimize_address): New functions.
129 (print_operand): Handle %&.
130 (sparc_init_machine_status, get_some_local_dynamic_name,
131 get_some_local_dynamic_name_1): New functions.
132 (sparc_output_dwarf_dtprel): New function.
133 * config/sparc/sparc.h (CONSTANT_ADDRESS_P): Moved into
134 constant_address_p.
135 (LEGITIMATE_PIC_OPERAND_P): Moved into legitimate_pic_operand_p.
136 (LEGITIMATE_CONSTANT_P): Moved into legitimate_constant_p.
137 (GO_IF_LEGITIMATE_ADDRESS): Moved into legitimate_address_p.
138 (LEGITIMIZE_ADDRESS): Moved into legitimize_address.
139 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
140 (TARGET_TLS, TARGET_SUN_TLS, TARGET_GNU_TLS): Define.
141 (ASM_OUTPUT_DWARF_DTPREL): Define.
142 (PREDICATE_CODES): Add tgd_symbolic_operand, tld_symbolic_operand,
143 tie_symbolic_operand, tle_symbolic_operand.
144 * config/sparc/sparc.md (UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_TLSLDO,
145 UNSPEC_TLSIE, UNSPEC_TLSLE, UNSPEC_TLSLD_BASE): New constants.
146 (tls_call_delay): New attribute.
147 (in_call_delay): Use it.
148 (movqi, movhi, movsi, movdi): Call legitimize_tls_address if needed.
149 (tgd_hi22, tgd_lo10, tgd_add32, tgd_add64, tgd_call32, tgd_call64,
150 tldm_hi22, tldm_lo10, tldm_add32, tldm_add64, tldm_call32, tldm_call64,
151 tldo_hix22, tldo_lox10, tldo_add32, tldo_add64, tie_hi22, tie_lo10,
152 tie_ld32, tie_ld64, tie_add32, tie_add64, tle_hix22_sp32,
153 tle_lox10_sp32, tle_hix22_sp64, tle_lox10_sp64): New insns.
154 (tldo_ldub_sp32, tldo_ldub1_sp32, tldo_ldub2_sp32, tldo_ldsb1_sp32,
155 tldo_ldsb2_sp32, tldo_ldub_sp64, tldo_ldub1_sp64, tldo_ldub2_sp64,
156 tldo_ldub3_sp64, tldo_ldsb1_sp64, tldo_ldsb2_sp64, tldo_ldsb3_sp64,
157 tldo_lduh_sp32, tldo_lduh1_sp32, tldo_ldsh1_sp32, tldo_lduh_sp64,
158 tldo_lduh1_sp64, tldo_lduh2_sp64, tldo_ldsh1_sp64, tldo_ldsh2_sp64,
159 tldo_lduw_sp32, tldo_lduw_sp64, tldo_lduw1_sp64, tldo_ldsw1_sp64,
160 tldo_ldx_sp64, tldo_stb_sp32, tldo_stb_sp64, tldo_sth_sp32,
161 tldo_sth_sp64, tldo_stw_sp32, tldo_stw_sp64, tldo_stx_sp64): New
162 insns.
163 * config/sparc/sparc-protos.h (legitimate_constant_p,
164 constant_address_p, legitimate_pic_operand_p, legitimate_address_p,
165 legitimize_tls_address, legitimize_address, tls_symbolic_operand,
166 tls_call_delay, sparc_output_dwarf_dtprel): New prototypes.
167 * config/sparc/linux.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
168 * config/sparc/linux64.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Likewise.
169 * configure.in (sparc*-*-*): Add TLS check.
170 * configure: Rebuilt.
171
7b65ed54
EB
1722003-09-07 Eric Botcazou <ebotcazou@libertysurf.fr>
173
174 PR target/11689
175 * config/i386/i386.c (memory_address_length): Fix computation when
176 the base is esp or ebp.
177
cf9ad9a7
MM
1782003-09-07 Mark Mitchell <mark@codesourcery.com>
179
180 PR c++/11852
181 * varasm.c (initializer_constant_valid_p): Correct logic for
182 CONSTRUCTORs.
183
eb698c58
RS
1842003-09-07 Roger Sayle <roger@eyesopen.com>
185
186 * expr.c (expand_operands): New function to expand an operand pair.
187 (expand_expr): Call expand_operands whenever we need to expand both
188 operands of a binary operator.
189 (do_store_flag): Likewise for operands of comparison operations.
190
4f61b3b7
RS
1912003-09-07 Roger Sayle <roger@eyesopen.com>
192
193 * combine.c (combine_simplify_rtx): Don't convert -(A*B) into
194 (-A)*B if we care about sign-dependent rounding.
195
a2a9e21c
GDR
1962003-09-07 Gabriel Dos Reis <gcc@integrable-solutions.net>
197
198 * c-pretty-print.h (pp_c_left_brace): Declare.
199 (pp_c_right_brace): Likewise.
200 * c-pretty-print.c (pp_c_left_brace): Now a function
201 (pp_c_right_brace): Likewise.
202
1ab237df
JH
203Sun Sep 7 14:50:03 CEST 2003 Jan Hubicka <jh@suse.cz>
204
205 * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
206
43f9ce02
GDR
2072003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
208
209 * diagnostic.c (warn_deprecated_use): Move to toplev.c
210
dba65e79
GDR
2112003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
212
213 * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
214 * Makefile.in (langhooks.o): Depend on diagnostic.h
215
10ef35a9
JW
2162003-09-06 James E Wilson <wilson@tuliptree.org>
217
218 * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
219 simplify.
220
9aec989f
KC
2212003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
222
223 * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
224 and use it throughout.
225
2262003-09-07 Jan Hubicka <jh@suse.cz>
7e668417 227
470d9044
JH
228 * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
229
7e668417
JH
230 * toplev.c (rest_of_decl_compilation): Do not finalize external
231 virables.
232
ba245151
JH
233 * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
234 functions.
235 (cgraph_varpool_finalize_decl): Notice global symbol when needed.
236
9aec989f 2372003-09-06 Jan Hubicka <jh@suse.cz>
9778f2f8
JH
238
239 PR target/12070
240 * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
241
242 PR opt/12082
243 * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
244
0761f342
GDR
2452003-09-06 Gabriel Dos Reis <gdr@integrable-solutions.net>
246
247 * diagnostic.c (announce_function): Move to toplev.c.
248
bad998e0
ZD
2492003-09-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
250
251 * gcse.c (expr_equiv_p): Don't consider anything to be equal to
252 volatile mem.
253
d85a0aae
KG
2542003-09-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
255
256 * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
257 when gc checking is enabled.
258
03845b47
SB
2592003-09-06 Steven Bosscher <steven@gcc.gnu.org>
260
261 PR c/9862
262 * c-decl.c (c_expand_body_1): Move return warning from here...
263 (finish_function): ...to here.
264
c55a59cc
GK
2652003-09-05 Geoffrey Keating <geoffk@apple.com>
266
267 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
268 a subset of the input class.
269
e86ac6af
KH
2702003-09-05 Kazu Hirata <kazu@cs.umass.edu>
271
272 * config/i860/i860.c: Follow spelling conventions.
273 * config/i860/i860.h: Likewise.
274 * config/sh/sh.h: Likewise.
275
c87ec0ba
NY
2762003-09-05 Nitin Yewale <NitinY@KPITCummins.com>
277
278 * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
279 * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
280 * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
281
31ff3e0b
RS
2822003-09-05 Roger Sayle <roger@eyesopen.com>
283 Richard Henderson <rth@redhat.com>
284
285 PR optimization/1823
286 * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
287 multiplication to implement division by constant integer.
288
1f95c733
JH
289Fri Sep 5 07:35:16 CEST 2003 Jan Hubicka <jh@suse.cz>
290
291 * opts.c (decode_options): Enable unit-at-a-time at -O2.
292 * params.def (max-inline-insns-single): Set to 500
293 (max-inline-insns-auto): Set to 150
294 * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
295
8dafba3c
RH
2962003-09-04 Richard Henderson <rth@redhat.com>
297
298 * cgraph.c (cgraph_mark_reachable_node): Split out from ...
299 (cgraph_mark_needed_node): Remove needed argument.
300 * cgraph.h: Update to match.
301 * cgraphunit.c (decide_is_function_needed): Split out from ...
302 (cgraph_finalize_function): Reorg. Avoid deferred_inline_function
303 if we generated the function.
304 (record_call_1): Update for cgraph_mark_reachable_node.
305 * varasm.c (mark_referenced): Likewise.
306 * objc/objc-act.c (mark_referenced_methods): Likewise.
307
dd37c5a0
DD
3082003-09-04 DJ Delorie <dj@redhat.com>
309
310 * targhooks.c: Add comment explaining the migration process.
311
3922e7c1
EC
3122003-09-04 Eric Christopher <echristo@redhat.com>
313
314 * config/frv/t-frv: Fix path for frv-abi.h.
315 * config/frv/frv-asm.h: Fix string concatenation.
316
92f6864c
DD
3172003-09-04 DJ Delorie <dj@redhat.com>
318
319 * builtins.c (apply_args_size): Guard against a NULL cfun.
320 (expand_builtin_apply_args_1): Likewise.
92f6864c 321 (expand_builtin_apply): Likewise.
3f571a78 322 Fixes PR bootstrap/12172.
92f6864c 323
f6f5dff2
RO
3242003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
325
326 * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
327 assembler supports Sun syntax for cmov.
328 * configure: Regenerate.
329 * config.in: Likewise.
330 * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
3922e7c1 331 HAVE_AS_IX86_CMOV_SUN_SYNTAX.
f6f5dff2
RO
332 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
333 Fixes PR target/12101.
334
47ab33b2
MA
3352003-09-04 Matt Austern <austern@apple.com>
336
337 * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
338 with verbosity 0, instead of DECL_NAME, for human-readable string.
3922e7c1 339
be6acd4b
EC
3402003-09-04 Eric Christopher <echristo@redhat.com>
341
342 * targhooks.c (default_return_in_memory): Allow
343 unconverted ports.
344
33d05111
EC
3452003-09-04 Eric Christopher <echristo@redhat.com>
346
347 * targhooks.c (default_return_in_memory): Fix typo
348 in last checkin.
349
ed75b1d6
EC
3502003-09-04 Eric Christopher <echristo@redhat.com>
351
352 * targhooks.c (default_return_in_memory): Fix default
353 definition.
354
45849738
BI
3552003-09-04 Bernardo Innocenti <bernie@develer.com>
356
357 * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
358 deleted function.
359 * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
360 enable coff-only code in m68k.c.
361
232830b7
NC
3622003-09-04 Nick Clifton <nickc@redhat.com>
363
364 * config.gcc: Add v850e1 target. Allow --with-cpu to accept
365 v850e1.
366 * config/v850/v850.h: Accept v850e1 as a default CPU.
367 Accept -mv850e1 as a command line option.
368 * doc/invoke.texi: Document new -mv850e1 command line switch.
369 * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
370 -mv850e.
371
c490cc89
NC
3722003-09-04 Nick Clifton <nickc@redhat.com>
373
374 * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
375 * config/v850/t-v850: Only produce one extra multilib - for
376 the v850e.
377 * config/v850/t-v850e: New file: Only produce one extra
378 multilib - for the v850.
379
bc93e287
JJ
3802003-09-04 Jakub Jelinek <jakub@redhat.com>
381
382 * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
383 * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
384 * unwind.h (_Unwind_GetBSP): New prototype.
385 * libgcc-std.ver: Add empty GCC_3.3.2 version.
386 * mkmap-symver.awk: For symbol versions with no exported symbols,
387 don't put anything into version script, just change all symbol
388 versions which inherit from it to inherit from its ancestor.
389
ec24a740
EC
3902003-09-04 Eric Christopher <echristo@redhat.com>
391
392 * config/mips/mips.c (mips_expand_prologue): Convert to
393 calls.struct_value_rtx hook.
394 (reg_or_const_float_1_operand): New.
395 * config/mips/mips.h: Update Comments.
396 (mips_arg): Add reg_or_const_float_1_operand.
397 * config/mips/mips.md (divdf3); Convert to expander.
398 (divsf3): Ditto.
399 (*divdf3): New pattern.
400 (*divsf3): Ditto.
401
b379a593
JH
402Thu Sep 4 10:43:24 CEST 2003 Jan Hubicka <jh@suse.cz>
403
404 * toplev.c (wrapup_global_declarations): Fix final pass in
405 unit-at-atime mode.
406
d18a8251
MM
4072003-09-04 Mark Mitchell <mark@codesourcery.com>
408
409 * doc/extend.texi: Document removal of cast-as-lvalue extension in
410 C++.
411
c5ef564b
NR
4122003-09-04 Nicolas Roche <roche@act-europe.fr>
413
414 * gcc.c (process_command): Fix typo.
415
04b379ba
DB
4162003-09-03 David O'Brien <obrien@FreeBSD.org>
417
418 optimization/11980
419 * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
420 (PTRDIFF_TYPE): Likewise.
421 (WCHAR_TYPE_SIZE): Likewise.
422
61f71b34
DD
4232003-09-03 DJ Delorie <dj@redhat.com>
424
425 * targhooks.c: New file.
426 * targhooks.h: New file.
427 * Makefile.in: Add targhooks.o support.
428 (function.o): Depend on$(TARGET_H).
429 (stmt.o): Likewise.
430 (combine.o): Depend on $(TREE_H) and $(TARGET_H).
431 * builtins.c (apply_args_size, expand_builtin_apply_args_1,
432 expand_builtin_apply): Convert to calls.struct_value_rtx hook.
433 (expand_builtin_saveregs): Convert to
434 calls.expand_builtin_saveregs hook.
435 * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
436 here, instead of ...
437 (get_parm_info) ... here.
438 (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
439 hook.
440 (finish_function): Handle calls.promote_prototypes hook here too.
441 * c-typeck.c (convert_arguments): Convert to
442 calls.promote_prototypes hook.
443 (c_convert_parm_for_inlining): Likewise.
444 * calls.c (initialize_argument_information): Convert to
445 calls.promote_function_args hook.
446 (expand_call): Convert to calls.struct_value_rtx,
447 calls.strict_argument_naming,
448 calls.pretend_outgoing_varargs_named, and
449 calls.promote_function_return hooks. Pass fndecl to
450 aggregate_value_p. Initialize CUMULATIVE_ARGS before calling
451 hooks, so they can use that.
452 (emit_library_call_value_1): Likewise.
453 * combine.c (setup_incoming_promotions): Convert to
454 calls.promote_function_args hook.
455 * emit-rtl.c: Convert to calls.struct_value_rtx hook.
456 * expr.c (expand_assignment): Pass call to aggregate_value_p.
457 (expand_expr): Likewise.
458 * expr.h: Remove support for SETUP_INCOMING_VARARGS,
459 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
460 RETURN_IN_MEMORY macro defaults.
461 * final.c (profile_function): Convert to calls.struct_value_rtx
462 hook.
463 * function.c (aggregate_value_p): Accept function type tree as
464 second parameter; try to deduce fntype from it. Convert to
465 calls.return_in_memory hook.
466 (assign_parms): Convert to calls.setup_incoming_varargs,
467 calls.strict_argument_naming, calls.promote_function_args,
468 calls.pretend_outgoing_varargs_named hooks. Pass fndecl to
469 aggregate_value_p.
470 (expand_function_start): Likewise. Convert to
471 calls.struct_value_rtx hook.
472 (expand_function_end): Convert to calls.promote_function_return hook.
473 (allocate_struct_function): Pass fndecl to aggregate_value_p.
474 * hard-reg-set.h: Update comments to new hook names.
475 * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
476 * reg-stack.c (stack_result): Likewise.
477 * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
478 * stmt.c (expand_value_return): Convert to
479 calls.promote_function_return hook.
480 * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
481 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
482 TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
483 TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
484 TARGET_STRICT_ARGUMENT_NAMING,
485 TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
486 * target.h: Likewise.
487 * tree.h (aggregate_value_p): Also takes a tree to deduce function
488 attributes from (for target hooks).
489 * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
490 PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
491 STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
492 EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
493 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
494 to hooks.
ec24a740 495
61f71b34
DD
496 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
497 to aggregate_value_p.
498 * config/arm/arm.c (arm_init_cumulative_args,
499 arm_output_mi_thunk): Likewise.
500 * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
501 Likewise.
502 * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
503 mips_can_use_return_insn): Likewise.
504 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
505 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
506 * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
507 aggregate_value_p.
508 * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
509 function to aggregate_value_p.
510 * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
511 aggregate_value_p.
ec24a740 512
61f71b34
DD
513 * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
514 (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
515 sh_function_arg_advance, sh_pass_in_reg_p): New. * config/sh/sh.c
516 (sh_handle_renesas_attribute, sh_promote_prototypes,
517 sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
518 sh_setup_incoming_varargs, sh_strict_argument_naming,
519 sh_pretend_outgoing_varargs_named): New decls.
520 (targetm): Add new hooks.
521 (calc_live_regs): Save MACL and MACH if the function has the
522 renesas attribute.
523 (sh_expand_prologue): Support renesas attribute.
524 (sh_builtin_saveregs): Make static.
525 (sh_build_va_list): Support renesas attribute.
526 (sh_va_start): Likewise.
527 (sh_va_arg): Likewise.
528 (sh_promote_prototypes): New.
529 (sh_function_arg): New, moved from sh.h. Support renesas
530 attribute.
531 (sh_function_arg_advance): Likewise.
532 (sh_return_in_memory): Likewise.
533 (sh_strict_argument_naming): Likewise.
534 (sh_pretend_outgoing_varargs_named): Likewise.
535 (sh_struct_value_rtx): New.
536 (sh_attribute): Add renesas attribute.
537 (sh_handle_renesas_attribute): New.
538 (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
539 (sh_ms_bitfield_layout_p): Support renesas attribute also.
540 (sh_output_mi_thunk): Pass function to aggregate_value_p. *
541 config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
542 -mhitachi.
543 (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
544 target hooks.
545 (sh_args): Add renesas_abi flag.
546 (INIT_CUMULATIVE_ARGS): Set it. Pass fndecl to aggregate_value_p.
547 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
548 (PASS_IN_REG_P): Support renesas attribute. Pass DF and TF on the
549 stack for the renesas abi.
550 (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
551 SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
552 PROMOTE_PROTOTYPES): Moved to sh.c. * config/sh/sh.md (call): Set
553 call cookie to indicate renesas calls.
ec24a740 554
b885908b
MH
5552003-09-03 Mostafa Hagog <mustafa@il.ibm.com>
556
557 * gcse.c (replace_one_set): New function.
558 (pre_insert_copy_insn): Change the order of copying
559 to make copy propagation discover additional PRE opportunities.
560
bcfb8075
RS
5612003-09-03 Roger Sayle <roger@eyesopen.com>
562
563 PR optimization/11700.
564 * simplify-rtx.c (simplify_subreg): Check that the subreg offset
565 of a hard register is representable before trying to simplify it
566 using subreg_hard_regno.
567
eb53bcc0
RO
5682003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
569
570 * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
571 * configure: Regenerate.
572
9a57322b
RO
5732003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
574
575 * intl.h (N_): Remove parentheses.
576
47fe5c48
BI
5772003-09-03 Bernardo Innocenti <bernie@develer.com>
578
579 * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
580 * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
581 definition and code blocks compiled when not defined.
582 * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
583 * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
584 * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
585 * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
586
7dff32e6
JS
5872003-09-03 Jeff Sturm <jsturm@one-point.com>
588
589 * cgraphunit.c (visited_nodes): New static variable.
590 (record_call_1): Use walk_tree with visited_nodes.
591 (cgraph_create_edges): Use walk_tree with visited_nodes.
592 Setup/teardown visited_nodes hashtable.
593
039c3d42
RS
5942003-09-03 Roger Sayle <roger@eyesopen.com>
595
596 * toplev.c (flag_rounding_math): New global variable.
597 (f_options): Add to the list of language independent options.
598 * flags.h (flag_rounding_math): Prototype here.
599 (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
600 * common.opt (frounding-math): New common command line option.
601 * opts.c (common_handle_option): Handle OPT_frounding_math.
602 (set_fast_math_flags): -ffast-math clears flag_rounding_math.
603
604 * doc/invoke.texi: Document this new command line option.
605
b689848f
RO
6062003-09-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
607
608 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
609
4a46cbfb
JH
610Wed Sep 3 16:55:25 CEST 2003 Jan Hubicka <jh@suse.cz>
611
612 * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
613 * c-decl.c (finish_function): Kill arguments, always use cgraph path.
614 * c-objc-common.c: Kill include of gt-c-objc-common.h
615 (expand_deferred_fns, deffer_fn): Kill function.
616 (deferred_fns): Kill variable.
617 (finish_cdtor): Update finish_function call.
618 (c_objc_common_finish_file): Always call cgraph code.
619 * c-parse.c: Regenerate.
620 * c-parse.y: Regenerate.
621 * c-tree.h (finish_function): Update prototype.
622 * objc-acct.c (build_module_descriptor, finish_method_def):
623 Update call of finish_function.
624 * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
625 forward prototype.
626 (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
627 function and assemble it if needed.
628 (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
629 mode.
630 (cgraph_optimize): Likewise.
631 (cgraph_expand_function): In non-unit-at-a-time mode keep function body
632 even when it has no inline callees.
633 * c-parse.in: Update calls to finish_function.
634
877bcd2d
NC
6352003-09-03 Nick Clifton <nickc@redhat.com>
636
637 * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
638 Use #error to generate the message if TARGET_DEFAULT is not
639 recognised.
640
ee692410
RS
6412003-09-03 Richard Sandiford <rsandifo@redhat.com>
642
643 * config/mips/mips.h (MASK_UNUSED1): Remove.
644 (MASK_XGOT, TARGET_XGOT): Define.
645 (TARGET_SWITCHES): Add an entry for -mxgot.
646 (ASM_SPEC): Map -mxgot to -xgot.
647 * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
648 whether we're using a big-GOT sequences.
649 (mips_legitimize_const_move, mips_expand_call): Likewise.
650 (override_options): Revert 2003-01-09 change.
651 * doc/invoke.texi: Document -mxgot.
652
49fa0661
JM
6532003-09-02 Jason Merrill <jason@redhat.com>
654
655 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
656 * config/sparc/sol2.h: Not here.
657
f0e9957a
RS
6582003-09-02 Roger Sayle <roger@eyesopen.com>
659
660 * expr.c (expand_expr): The code following both_summands performs
661 the same task as simplify_gen_binary. Replace all gotos to
662 both_summands with a call to simplify_gen_binary and delete the
663 now unused label.
664
5220823f
JM
6652003-09-02 Jason Merrill <jason@redhat.com>
666
667 PR c++/7327
668 * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
669
64384568
JS
6702003-09-02 Jeff Sturm <jsturm@one-point.com>
671
672 * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
673 (cgraph_optimize_function): Set current_function_decl to the
674 fndecl we're integrating from.
675
742c0a4e
KG
6762003-09-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
677
678 * builtins.def: Break out _Complex math functions into their
679 own category.
680
27f35b75
AJ
6812003-09-02 Andreas Jaeger <aj@suse.de>
682
683 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
684
441c9a12
JZ
6852003-09-02 Josef Zlomek <zlomekj@suse.cz>
686
687 * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
688 finding the note again.
689
b3422074
NN
6902003-09-02 Nathanael Nerode <neroden@gcc.gnu.org>
691
692 * config.gcc: Remove host-specific rewrites of target_alias.
693
4b09846b
MM
6942003-09-01 Mark Mitchell <mark@codesourcery.com>
695
9b0f6145
MM
696 * Makefile.in (genprogs): Fix typo.
697
4b09846b
MM
698 * Makefile.in (gencheck.o): Remove build commands.
699 (dummy-conditions.o): Likewise.
700 (read-rtl.o): Likewise.
701 (gensupport.o): Likewise.
702 (genconfig$(build_exeext)): Remove rule.
703 (genconfig.o): Remove build commands.
704 (genflags$(build_exeext)): Remove rule.
705 (genflags.o): Remove build commands.
706 (gencodes$(build_exeext)): Remove rule.
707 (gencodes.o): Remove build commands.
708 (genconstants.o): Remove build commands.
709 (genemit$(build_exeext)): Remove rule.
710 (genemit.o): Remove build commands.
711 (genrecog$(build_exeext)): Remove rule.
712 (genrecog.o): Remove build commands.
713 (genextract$(build_exeext)): Remove rule.
714 (genextract.o): Remove build commands.
715 (genpeep$(build_exeext)): Remove rule.
716 (genpeep.o): Remove build commands.
717 (genattr$(build_exeext)): Remove rule.
718 (genattr.o): Remove build commands.
719 (genprognames): New variable.
720 (genprogs): Likewise.
721 (genobjs): Likewise.
722 (genprogs): New rule.
723 (genobjs): Likewise.
724 (genattrtab.o): Remove build commands.
725 (genautomata.o): Likewise.
726 (genoutput$(build_exeext)): Remove rule.
727 (genoutput.o): Remove build commands.
728 (gengenrtl.o): Likewise.
729 (genpreds.o): Likewise.
730 (gengtype.o): Likewise.
731 (genconditions.o): Likewise.
732 (gen-protos.o): Likewise.
733 (scan.o): Likewise.
734 (fix-header.o): Likewise.
735 (scan-decls.o): Likewise.
736 (check-g++): Combine with other check targets.
737 (check-gcc): Likewise.
738 (check-g77): Likewise.
739 (check-objc): Likewise.
740
330532ab
NN
7412003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
742
53b49aca
NN
743 * config.gcc: Remove host-specific stuff which is unused here
744 since the introduction of config.host.
745
330532ab
NN
746 * doc/fragments.texi: Mention config.host.
747 * doc/sourcebuild.texi: Mention config.host. Give brief descriptions
748 of config.build, config.host, and config.gcc.
749
130a1080
ZW
7502003-09-01 Zack Weinberg <zack@codesourcery.com>
751
752 * c-decl.c (pushdecl): Don't put variables on
753 C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
754 incomplete.
755
a89ea0df
NN
7562003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
757
758 * config.host: New file.
759 * config.gcc: Remove some host-specific stuff and some
760 logic needed only for repeated invocation.
761 * configure.in: Use config.host.
762 * configure: Regenerate.
763
31934da7
JZ
7642003-09-01 Josef Zlomek <zlomekj@suse.cz>
765
766 * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
767 * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
768 * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
769 (fold): Kill BIT_ANDTC_EXPR and label bit_and.
770 * tree.def (BIT_ANDTC_EXPR): Kill.
771
d0d0e9ac
NN
7722003-08-31 Nathanael Nerode <neroden@gcc.gnu.org>
773
c406e779
NN
774 * configure.in: Remove uses of "for x in .. ${foo}" idiom.
775 * configure: Regenerate.
776
d0d0e9ac
NN
777 * config.gcc: Remove references to install_headers_dir, now unused
778 since introduction of config.build.
779 * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
780
781 * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
782 config.build.
783
784 * config.build: New file.
785 * config.gcc: Remove some build-specific stuff.
786 * configure.in: Use config.build.
787 * configure: Regnerate.
788
9e4b13a7
SB
7892003-08-31 Steven Bosscher <steven@gcc.gnu.org>
790 Roger Sayle <roger@eyesopen.com>
791
792 PR middle-end/11823
793 * stmt.c (expand_end_case_type): Only use jump tables for dense
794 switch statements when optimizing for size.
795
7c66d5f5
OH
7962003-08-31 Olivier Hainque <hainque@act-europe.fr>
797
130a1080
ZW
798 * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
799 the != 0 case, which ensures pending stack adjustments are flushed.
7c66d5f5 800
2ed26f6b
ZW
8012003-08-30 Zack Weinberg <zack@codesourcery.com>
802
803 * configure.frag: Delete file.
804 * configure.in: Rename the substitution variables
805 dep_host_xmake_file and dep_tmake_file to xmake_file and
806 tmake_file respectively. Do not expand $srcdir in the
807 value of these; leave that for Make. Introduce a new
808 substitution varaible, all_lang_makefrags, which lists
809 subdirectory Make-lang.in files; exclude these from
810 all_lang_makefiles, which is now only for subdirectory
811 outputs. Do not invoke configure.frag. Do not set nor
812 AC_SUBST_FILE target_overrides, host_overrides, or
813 language_fragments. Create build subdirectories in
814 config.status extra commands.
815 * configure: Regenerate.
816 * Makefile.in: Update substitutions to match changes to
817 configure. Use include directives instead of @-insertions
818 to read in host, target, and language fragments.
819 (Makefile rule): Do not invoke configure.frag. Do not copy
820 config.status to config.run before executing it. Set
821 CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
822 regenerated.
823 (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
824
766beae1
ZW
8252003-08-30 Zack Weinberg <zack@codesourcery.com>
826
827 * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
828 * c-typeck.c (same_translation_unit_p): New function.
829 (comptypes): Use it instead of flags parameter to identify
830 structure types from different translation units.
831 * c-decl.c (duplicate_decls): Always call comptypes with
832 COMPTYPE_STRICT flags argument.
833 (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
834 to file_scope_decl.
835
bf7a697f
ZW
8362003-08-30 Zack Weinberg <zack@codesourcery.com>
837
838 * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
839 * c-decl.c (struct c_scope): Remove "incomplete" field.
840 (pushdecl): Attach variables with incomplete types to
841 the TYPE_MAIN_VARIANT of the incomplete type in question.
842 (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
843 to complete, not at current_scope->incomplete. All such
844 variables do need completion.
845
496b84c8
RE
8462003-08-30 Richard Earnshaw <rearnsha@arm.com>
847 Nicolas Pitre <nico@cam.org>
848
849 * arm/lib1funcs.asm (RETCOND): Delete.
850 (RETLDM): New assembler macro. Use it for returning with ldm/ldr.
851 (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
852 (__ARM_ARCH__): Move here from ieee754-?f.S.
853 (RET, RETc): Clean up definitions.
854 (DIV_FUNC_END): Renamed from FUNC_END. All uses changed.
855 (FUNC_END): New macro that marks the end of any function.
856 (ARM_FUNC_START): New macro that allows an assembler routine to be
857 implemented in ARM code even if a Thumb-only build.
858 Unconditionally include ieee754-?f.S.
859 * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
860 Mark ends of functions.
861 Split into separate conditionally-compiled units.
862 Use RETLDM to return from routines.
863 * arm/ieee754-sf.S: Similarly.
bf7a697f 864 * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
496b84c8
RE
865 Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
866 _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
867 _fixsfsi and _fixunssfsi.
868
bf7a697f 869 * arm/ieee754-df.S (__muldf3): Fix bug when result of a
496b84c8 870 multiplication underflows to zero.
bf7a697f 871 (__adddf3): Fix bug when using VFP ordering on little-endian
496b84c8
RE
872 processors.
873 (__fixdfsi): Use rrx to extract the carry into a register instead of
874 MRS instruction. Optimize later use of result.
875 * arm/ieee754-sf.S (__fixsfsi): Likewise.
876 (__fixunssfsi): Use a better sequence for handling negative-or-zero.
bf7a697f 877
4985cde3
RH
8782003-08-29 Richard Henderson <rth@redhat.com>
879
880 * tree-optimize.c: New file.
881 * Makefile.in (OBJS-archive): Add tree-optimize.o.
882 (tree-optimize.o): New.
883 * c-decl.c (store_parm_decls): Use allocate_struct_function.
884 (finish_function): Don't free_after_parsing or free_after_compilation.
885 (set_save_expr_context): Move to tree-optimize.c.
886 (c_expand_body_1): Use tree_rest_of_compilation.
887 * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
888 * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
889 * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
890 iterate until closure.
891 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
892 LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
893 (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
894 * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
895 * toplev.h (tree_rest_of_compilation): Declare it.
896
d560a41c
RH
8972003-08-29 Richard Henderson <rth@redhat.com>
898
899 * function.h (struct function): Add rtl_inline_init, saved_for_inline.
900 * integrate.c (save_for_inline): Set saved_for_inline.
901 * c-semantics.c (genrtl_scope_stmt): Check it.
902 * toplev.c (wrapup_global_declarations): Check it.
903 (rest_of_handle_inlining): Set and check rtl_inline_init.
904 (rest_of_compilation): Remove out of date comment.
905
3a70d621
RH
9062003-08-29 Richard Henderson <rth@redhat.com>
907
908 * function.c (allocate_struct_function): New, split out of ...
909 (prepare_function_start, init_function_start): ... here.
910 * expr.c (init_expr): Use ggc_alloc_cleared.
911 * stmt.c (init_stmt_for_function): Likewise.
912 * tree.h (allocate_struct_function): Declare.
913
2d3359eb
NN
9142003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
915
bf7a697f
ZW
916 * config.gcc: Don't use negated character class in shell case
917 clause.
2d3359eb 918
23b6da10
RH
9192003-08-29 Richard Henderson <rth@redhat.com>
920
921 * function.h (struct function): Move function_frequency and
922 max_jumptable_ents before start of bit field members.
923
0dcd3840
RH
9242003-08-29 Richard Henderson <rth@redhat.com>
925
926 * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
927 (fold_builtin_constant_p) ... not here.
928
4b1e44be
RH
9292003-08-29 Richard Henderson <rth@redhat.com>
930
931 * c-tree.h (C_DECL_FILE_SCOPE): Move ...
932 * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
933 * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
934
fe3d04dc
KG
9352003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
936
05a5fba9
KG
937 * builtins.def: Fix typos.
938 (ATTR_MATHFN_FPROUNDING_STORE): New macro.
939 (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
940 BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
941 BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
942 BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
943
fe3d04dc
KG
944 * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
945 Use ATTR_MATHFN_FPROUNDING_ERRNO.
946
5650fd39
NN
9472003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
948
c5e54ac8
NN
949 * config.gcc (i386-*-vsta): Fix obvious bogosity.
950
5650fd39
NN
951 * fixinc/inclhack.def: Remove special cases for unsupported
952 PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
953 * fixinc/fixincl.x: Regenerate.
954
6280c439
MM
9552003-08-29 Mark Mitchell <mark@codesourcery.com>
956
957 * Makefile.in (cpp.info): Just state dependencies.
958 (gcc.info): Likewise.
959 (gccint.info): Likewise.
960 (gccinstall.info): Likewise.
961 (cppinternals.info): Likewise.
962 (cpp.dvi): Likewise.
963 (gcc.dvi): Likewise.
964 (gccint.dvi): Likewise.
965 (gccinstall.dvi): Likewise.
966 (cppinternals.dvi): Likewise.
967 (gcov.1): Likewise.
968 (cpp.1): Likewise.
969 (gcc.1): Likewise.
970 (gfdl.7): Likewise.
971 (gpl.7): Likewise.
972 (fsf-funding.7): Likewise.
973 ($(objdir)/%.info): New pattern rule.
974 (%.dvi): Likewise.
bf7a697f 975
e46f77a4
KC
9762003-08-29 Kelley Cook <kelleycook@wideopenwest.com>
977
978 * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
979 (restage2): Likewise.
980 (restage3): Likewise.
981 (restage4): Likewise.
982 (restageprofile): Likewise.
983 (restagefeedback): Likewise.
984 (bubblestrap): Likewise.
985
8e3a7070
NN
9862003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
987
988 * config.gcc: Narrow unsupported target match to avoid clobbering
989 i?86-sequent-sysv4*.
990
d119e83e
KG
9912003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
992
993 * builtins.c (mathfn_built_in): Handle new math builtins.
994
2be570f9
PB
9952003-08-28 Per Bothner <per@bothner.com>
996
997 Fix (hopefully temporary) for breakage caused by my 08-21 patch.
998 * cpplex.c (_cpp_get_fresh_line): Check for null buffer.
999 (_cpp_lex_buffer): Likewise.
1000 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
1001
f1e77d83
UW
10022003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
1003
1004 * config/s390/s390.md ("*mulsi3_sign"): New insn.
1005 ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
1006 ("mulsidi3"): ... this new insn.
1007 ("umulsidi3"): New insn.
1008 ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
1009 mixed-mode matching constraints.
1010 ("udivmodsi4", "udivmoddisi3"): New insns.
1011 ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
1012
a2a919aa
KG
10132003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1014
1015 * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
1016 BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
1017 BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
1018 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
1019 BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
1020 BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
1021 BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
1022 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
1023 BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
1024 BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
1025 BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
1026 * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
1027 BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
1028 BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
1029 BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
1030 * tree.c: Assign new type_nodes.
1031 * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
1032 TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
1033 (float_ptr_type_node, double_ptr_type_node,
bf7a697f
ZW
1034 long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
1035
a2a919aa
KG
1036 * doc/extend.texi: Document new builtins.
1037
488f17e1
KG
10382003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1039
1040 * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
1041 BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
bf7a697f 1042
488f17e1
KG
1043 * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
1044 BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
1045 BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
1046 BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
1047 BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
1048 BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
1049 BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
1050 BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
1051 BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
1052 BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
bf7a697f 1053
488f17e1
KG
1054 * doc/extend.texi: Document new builtins.
1055
199c4ccc
NN
10562003-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
1057
2882c718 1058 * fixinc/mkfixinc.sh: Remove special case code for unsupported
bf7a697f 1059 variants of i?86, powerpcle, and thumb.
199c4ccc
NN
1060 * fixinc/mkfixinc.sh: Remove special case code for unsupported
1061 arm and hppa variants.
1062
98ff7c4d
KG
10632003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1064
1065 * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
1066 BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
1067 BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
1068 BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
1069 BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
1070 BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
1071 BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
1072 BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
1073 BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
1074 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
1075
1076 * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
1077 BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
1078 BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
1079 BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
1080 BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
1081 BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
1082 BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
1083 BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
1084 BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
1085 BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
1086 BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
1087 BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
1088 BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
1089 BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
1090 BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
1091 BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
1092 BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
1093 BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
1094 BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
1095 BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
1096 BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
1097 BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
1098 BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
1099 BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
1100 BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
1101 BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
1102 BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
1103 BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
1104 BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
1105 BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
1106 BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
1107
1108 * doc/extend.texi: Document new builtins.
1109
9e8327e3
UW
11102003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
1111
1112 * config/s390/s390.c (legitmate_constant_p): Use LARL on
1113 zSeries machines even in 31-bit addressing mode.
1114 (legitimate_reload_constant_p): Likewise.
1115 (legitimize_pic_address): Likewise.
1116 (legitimize_tls_address): Likewise.
1117 (s390_split_branches): Likewise.
1118 (s390_dump_pool): Likewise.
1119 (s390_mainpool_finish): Likewise.
1120 (s390_chunkify_start): Likewise.
1121 (s390_select_rtx_section): Likewise.
1122 * config/s390/s390.md ("doloop_si"): Likewise.
1123 ("pool_start_31", "pool_end_31"): Likewise.
1124 ("pool_start_64", "pool_end_64"): Likewise.
1125 ("main_base_31_small", "main_base_31_large"): Likewise.
1126 ("main_base_64"): Likewise.
1127 ("reload_base_31", "reload_base_64"): Likewise.
1128 ("*movsi_larl"): New insn.
1129 ("cjump", "icjump"): Use long branches on zSeries machines.
1130 ("jump"): Likewise.
1131 ("call"): Use BRASL on zSeries machines.
1132 ("call_value", "call_value_tls"): Likewise.
bf7a697f 1133 ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
9e8327e3
UW
1134 and replace by ...
1135 ("*bras", "*brasl", "*basr") ... these new insns.
bf7a697f 1136 ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
9e8327e3
UW
1137 "bas_31_r"): Remove and replace by ...
1138 ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
bf7a697f 1139 ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
9e8327e3
UW
1140 "bas_64_tls", "bas_31_tls"): Remove and replace by ...
1141 ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
1142 ("*return_si", "*return_di"): Remove and replace by ...
1143 ("*return"): ... this new insn.
1144 ("rotlsi3"): Allow on zSeries machines.
1145
1146 * config/s390/s390.c (legitimize_reload_constant_p): Use
1147 LL/LH type instructions in z/Architecture mode.
1148 * config/s390/s390.md ("*movsi_lli"): Likewise.
1149 ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
1150 ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
1151 ("*extendqisi2"): Use LB in z/Architecture mode.
bf7a697f 1152 ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
9e8327e3 1153 z/Architecture mode.
bf7a697f 1154 ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
9e8327e3 1155 Likewise.
bf7a697f 1156
9e8327e3
UW
1157 * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
1158 and 31-bit mode.
1159 ("ptr_extend"): Allow only in 64-bit mode.
1160
0d037580
DJ
11612003-08-27 Daniel Jacobowitz <drow@mvista.com>
1162
1163 * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
1164 (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
1165 definitions.
1166 (main): Only use standard_startfile_prefix if native.
1167 * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
1168
75ee800b
PB
11692003-08-27 Per Bothner <pbothner@apple.com>
1170
1171 * cpperror.c (print_location): Don't check for !pfile->buffer. That
1172 test fails following my 08-21 change, and it seems unnecessary anyway.
1173 (cpp_error): Likewise.
1174
138ca312
JM
11752003-08-27 Jason Merrill <jason@redhat.com>
1176
1177 * real.c (do_multiply): Initialize with memset.
1178
3d7ca167
ZD
11792003-08-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1180
1181 * gcov.c (typedef struct arc_info): New field cs_count.
1182 (accumulate_line_counts): Find cycles correctly.
1183
5af2f3d3
UW
11842003-08-27 Ulrich Weigand <uweigand@de.ibm.com>
1185
1186 * config/s390/s390.c (struct machine_function): Remove member
1187 literal_pool_label.
bf7a697f 1188 (s390_optimize_prolog): Replace TEMP_REG argument with
5af2f3d3 1189 TEMP_USED and BASE_USED. Do not check get_pool_size ().
bf7a697f
ZW
1190 (general_s_operand): Accept all immediates before reload if
1191 ALLOW_IMMEDIATE. If not ALLOW_IMMEDIATE, reject literal pool
5af2f3d3
UW
1192 references.
1193 (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
1194 (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
1195 (s390_alloc_pool): New function.
1196 (s390_new_pool): Call it.
1197 (s390_dump_pool): Add REMOTE_LABEL argument.
bf7a697f 1198 (s390_chunkify_start): Add BASE_REG argument. Do not check
5af2f3d3 1199 get_pool_size ().
bf7a697f 1200 (s390_chunkify_finish): Add BASE_REG argument. Adapt
5af2f3d3
UW
1201 s390_dump_pool call.
1202 (s390_pool_count, s390_nr_constants): Remove.
1203 (s390_output_constant_pool): Remove.
1204 (s390_mainpool_start): New function.
1205 (s390_mainpool_finish): New function.
1206 (s390_mainpool_cancel): New function.
1207 (s390_reorg): Implement main literal pool handling.
bf7a697f 1208 (s390_emit_prologue): Emit main_pool placeholder instead of
5af2f3d3
UW
1209 literal_pool_31 / literal_pool_64 insns.
1210 * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
1211 (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
1212 * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
1213 ("main_base_31_small", "main_base_31_large"): New insns.
1214 ("main_base_64", "main_pool"): New insns.
1215 ("literal_pool_31", "literal_pool_64"): Remove.
1216
036e07f2
NN
12172003-08-27 Nathanael Nerode <neroden@gcc.gnu.org>
1218
1219 * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
1220 fixinc.ptx.
1221 * fixinc/inclhack.def (undefine_null): Don't generate \r characters.
1222 Prettify a little.
1223 * fixinc/fixincl.x: Regenerate.
1224
4202ce82
RE
12252003-08-27 Richard Earnshaw <rearnsha@arm.com>
1226
1227 * lib1funcs.asm (L_ieee754_sp): New. Include ieee754-sf.S.
1228 (L_ieee754_dp): New. Include ieee754-df.S.
1229 * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
1230 and compilation in apcs-26 mode.
1231 * arm/ieee754-df.S: Likewise.
1232 * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
1233 (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
1234
12352003-08-27 Nicolas Pitre <nico@cam.org>
1236
1237 * arm/ieee754-sf.S: New.
1238 * arm/ieee754-df.S: New.
1239
b7bc76e3
JJ
12402003-08-27 Jakub Jelinek <jakub@redhat.com>
1241
1242 * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
1243 and restore it if returning NULL.
1244
648bb159
RS
12452003-08-27 Richard Sandiford <rsandifo@redhat.com>
1246
1247 * calls.c (initialize_argument_information): If an argument has no
1248 stack space associated with it, and BLOCK_REG_PADDING is defined,
1249 use it to decide at which end the argument should be padded.
1250 * function.c (assign_parms): Allocate BLKmode stack slots.
1251 * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
1252 (mips_pad_reg_upward): Declare.
1253 * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
1254 (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
1255 (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
1256 (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
1257 * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
1258 (mips_expand_call): Remove code for generating structure shifts.
1259 (mips_arg_info): Don't set struct_p. Don't set fpr_p for non-float
1260 types unless using the EABI.
1261 (function_arg_advance): Don't generate shift instructions.
1262 (function_arg): Don't return them. Don't short-circuit the
1263 check for double structure chunks for DFmode arguments.
1264 (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
1265 (mips_expand_prologue): Remove code to emit structure shifts.
1266 * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
1267 structure passing (inet_ntoa, inet_lnaof, inet_netof). Update
1268 comments to say that only structure returns are a problem.
1269
228e7b62
NN
12702003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
1271
88f505f6
NN
1272 * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
1273 Fix to match produced versions.
1274 * fixinc/inclhack.def (longlong_t): New disabled test, ported
1275 from fixinc.svr4.
7309576c
NN
1276 * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
1277 from fixinc.ptx.
bf7a697f
ZW
1278 * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
1279 ported from fixinc.ptx.
1280
dc3786d8
PB
12812003-08-26 Per Bothner <pbothner@apple.com>
1282
1283 * cpplib.h (struct cpp_token): Change type of field line to fileline.
1284 (cpp_error_with_line): Use fileline for appropriate parameter.
1285 * cpphash.h (struct cpp_macro): Change type of field line to fileline.
1286 (struct cpp_reader): Likewise for fields line and directive_line.
1287 (_cpp_begin_message): Use fileline for appropriate parameter.
1288 * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
1289 cpp_error): Use fileline for appropriate parameters and variables.
1290 (print_location): New local lin, since it is not a fileline.
1291
00229de4
RS
12922003-08-26 Roger Sayle <roger@eyesopen.com>
1293
1294 PR middle-end/12002
1295 * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
1296 (FLOAT_TYPE_P): Define in terms of these two new macros.
1297 * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
1298 for complex floating point types.
1299
b41ead3e
UW
13002003-08-26 Ulrich Weigand <uweigand@de.ibm.com>
1301
1302 * config/s390/s390.c (emit_prologue): Don't check literal pool size.
bf7a697f 1303 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
b41ead3e
UW
1304 s390_output_pool_entry.
1305
c2f523ea
NN
13062003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
1307
bf7a697f
ZW
1308 * fixinc/inclhack.def (svr4_preproc_lint_on,
1309 svr4_preproc_lint_off, svr4_preproc_machine): New disabled
c2f523ea
NN
1310 fixes, ported from fixinc.svr4.
1311
e158a5fb
MM
13122003-08-26 Mark Mitchell <mark@codesourcery.com>
1313
1314 * doc/install.texi (Prerequisites): Mention GNU make requirement.
1315
1316 * Makefile.in (AR_FOR_TARGET): Export it.
1317 (AR_CREATE_FOR_TARGET): Likewise.
1318 (AR_FLAGS_FOR_TARGET): Likewise.
1319 (AR_EXTRACT_FOR_TARGET): Likewise.
1320 (AWK): Likewise.
1321 (BUILD_PREFIX): Likewise.
1322 (BUILD_PREFIX_1): Likewise.
1323 (DESTDIR): Likewise.
1324 (GCC_FOR_TARGET): Likewise.
1325 (INCLUDES): Likewise.
1326 (INSTALL_DATA): Likewise.
1327 (LIB1ASMSRC): Likewise.
1328 (LIBGCC2_CFLAGS): Likewise.
1329 (MACHMODE_H): Likewise.
1330 (NM_FOR_TARGET): Likewise.
1331 (RANLIB_FOR_TARGET): Likewise.
1332 (libsubdir): Likewise.
1333 (slibdir): Likewise.
1334 (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
1335 exporting.
1336 (libgcc.a): Don't pass them here.
1337 (stmp-multilib): Or here.
1338 (install-libgcc): Or here.
1339 (install-multilib): Or here.
1340 (POSTSTAGE1_FLAGS_TO_PASS): Or here.
1341 (stage1_build): Or here.
1342
288e517f
AK
13432003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
1344
1345 * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
1346 "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
1347
a1b892b5
AK
13482003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
1349
bf7a697f 1350 * config/s390/s390.md ("*fmadddf", "*fmsubdf",
a1b892b5
AK
1351 "*fmaddsf", "*fmsubsf"): New insns.
1352
e3232933
RS
13532003-08-26 Roger Sayle <roger@eyesopen.com>
1354
1355 * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
1356 (C1*C2)/X when unsafe math optimizations are allowed.
1357 (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
1358 math optimizations. Minor code clean-ups. Recursively call
1359 fold when constructing sub-expressions.
1360
cf42869d
RS
13612003-08-26 Roger Sayle <roger@eyesopen.com>
1362
1363 * builtins.c (fold_builtin_bitop): New function to perform constant
1364 folding of ffs, clz, ctz, popcount and parity builtin functions
1365 and their long and long long variants (such as ffsl and ffsll).
1366 (fold_builtin): fold_builtin_bitop when appropriate.
1367 * simplify-rtx.c (simplify_unary_operation): Honor both
1368 CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
1369 evaluating clz and ctz at compile-time, for operands wider
1370 than HOST_WIDE_INT.
1371
d128effb
NS
13722003-08-26 Nathan Sidwell <nathan@codesourcery.com>
1373
20b50672
NS
1374 * builtins.c (build_function_call_expr): Don't set
1375 TREE_SIDE_EFFECTS here.
1376 * expr.c (emit_block_move_via_libcall): Likewise.
1377 (clear_storage_via_libcall): Likewise.
1378 * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
1379 CALL_EXPRs.
bf7a697f 1380
d128effb
NS
1381 * gcse.c (is_too_expensive): New function.
1382 (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
1383
7e2055ec
ZW
13842003-08-25 Zack Weinberg <zack@codesourcery.com>
1385
1386 * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
1387 commented-out logic to use DCE threads (if present), add
1388 support for POSIX threads.
1389 * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
1390 #defines for -pthread. Add -lpthread to LIB_SPEC when
1391 -pthread. In both cases take -mt as a synonym for -pthread
1392 for acc compatibility.
1393 Define GTHREAD_USE_WEAK to 0.
1394 * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
1395 Remove old logic for DCE threads from LIB_SPEC.
1396 * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
1397
8634629b
RS
13982003-08-25 Roger Sayle <roger@eyesopen.com>
1399
1400 * builtins.c (expand_builtin_mathfn): Rearrange so that we only
1401 return 0 for invalid argument types. Instead drop through to a
1402 call of expand_call at the bottom of function. If op is SQRT,
1403 try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
1404
0d433a6a
RH
14052003-08-25 Richard Henderson <rth@redhat.com>
1406
1407 * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
1408 result when op0 is SImode.
7e2055ec 1409
1d109416
NN
14102003-08-25 Nathanael Nerode <neroden@twcny.rr.com>
1411
1412 * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
1413 from fixinc.svr4.
1414 * fixinc/fixincl.x: Regenerate.
1415 * fixinc/tests/base/sys/signal.h: Regenerate.
1416
dc5c3188
UW
14172003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
1418
1419 * combine.c (simplify_comparison): Re-enable widening of comparisons
1420 with non-paradoxical subregs of non-REG expressions.
1421
b01e3e38
UW
14222003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
1423
1424 * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
1425
c6279378
UW
14262003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
1427
1428 * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
1429
12ea3302
GDR
14302003-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
1431
1432 * pretty-print.h (pp_maybe_newline_and_indent): New macro.
1433 * c-pretty-print.h (c_pretty_printer): Now typedef to the
1434 structure. Be consistent with pretty-print.h abd cxx-pretty-print.h
1435 (struct c_pretty_print_info): Document. Add new fields.
1436 (pp_type_specifier_seq): Rename from pp_c_type_specifier.
1437 (pp_direct_abstract_declarator): New macro.
1438 (pp_ptr_operator): Likewise.
1439 (pp_simple_type_specifier): Likewise.
1440 (pp_expression): Likewise.
1441 (pp_parameter_list): Rename from pp_parameter_declaration.
1442 * c-pretty-print.c (pp_c_whitespace): Now a function.
1443 (pp_c_left_paren): Likewise.
1444 (pp_c_right_paren): Likewise.
1445 (pp_c_dot): Likewise.
1446 (pp_c_ampersand): Likewise.
1447 (pp_c_arrow): Likewise.
1448 (pp_c_semicolon): Likewise.
1449 (pp_c_type_cast): New function.
1450 (pp_c_space_for_pointer_operator): Likewise.
1451 (pp_c_call_argument_list): Likewise.
1452 (pp_c_cv_qualifier): Adjust prototype.
1453 (pp_c_type_qualifier_list): Likewise.
1454 (pp_c_pointer): Likewise. Handle REFERENCE_TYPE here.
1455 (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
1456 Adjust to follow standard grammar.
1457 (pp_c_specifier_qualifier_list): Adjusr prototype. Handle
1458 REFERENCE_TYPE. Tidy.
1459 (pp_c_parameter_type_list): Adjust prototype. Tidy.
1460 (pp_c_parameter_declaration): Remove.
1461 (pp_c_abstract_declarator): Adjust prototype.
1462 (pp_c_direct_abstract_declarator): Likewise.
1463 (pp_c_type_id): Likewise.
7e2055ec 1464 (pp_c_storage_class_specifier): Likewise.
12ea3302
GDR
1465 (pp_c_function_specifier): Likewise.
1466 (pp_c_declaration_specifiers): Likewise.
1467 (pp_c_direct_declarator): Likewise.
1468 (pp_c_declarator): Likewise.
1469 (pp_c_declarator): Likewise.
1470 (pp_c_declaration): Likewise.
1471 (pp_c_attributes): Likewise. Tidy.
1472 (pp_c_function_definition): Adjust prototype.
1473 (pp_c_char): Likewise.
1474 (pp_c_string_literal): Likewise.
1475 (pp_c_integer_constant): Likewise.
1476 (pp_c_character_constant): Likewise.
1477 (pp_c_bool_constant): Likewise.
1478 (pp_c_enumeration_constant): Likewise.
1479 (pp_c_floating_constant): Likewise.
1480 (pp_c_constant): Likewise.
1481 (pp_c_identifier): Likewise.
1482 (pp_c_primary_expression): Likewise. Remove TARGET_EXPR case. Tidy.
1483 (pp_c_initializer): Adjust prototype.
1484 (pp_c_init_declarator): Likewise.
1485 (pp_c_initializer_list): Likewise.
1486 (pp_c_id_expression): Likewise.
1487 (pp_c_postfix_expression): Likewise.
1488 (pp_c_expression_list): Likewise.
1489 (pp_c_unary_expression): Likewise.
1490 (pp_c_cast_expression): Likewise.
1491 (pp_c_multiplicative_expression): Likewise.
1492 (pp_c_additive_expression): Likewise.
1493 (pp_c_shift_expression): Likewise.
1494 (pp_c_relational_expression): Likewise.
1495 (pp_c_equality_expression): Likewise.
1496 (pp_c_and_expression): Likewise.
1497 (pp_c_exclusive_or_expression): Likewise.
1498 (pp_c_inclusive_or_expression): Likewise.
1499 (pp_c_logical_and_expression): Likewise.
1500 (pp_c_logical_or_expression): Likewise.
1501 (pp_c_conditional_expression): Likewise.
1502 (pp_c_assignment_expression): Likewise.
1503 (pp_c_expression): Likewise. Tidy.
1504 (pp_c_statement): Likewise. Document.
1505 (pp_c_pretty_printer_init): Adjust prototype. Tidy.
1506
1507 * c-lang.c (c_initialize_diagnostics): Update.
1508 * c-common.h (strip_pointer_operator): Declare.
1509 * c-common.c (strip_pointer_operator): Define.
1510
43dc123f
MM
15112003-08-25 Mark Mitchell <mark@codesourcery.com>
1512
1513 PR c++/8795
1514 * tree.h (build_method_type_directly): Declare.
1515 * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
1516 (vector_size_helper): Likewise.
1517 * tree.c (build_method_type_directly): New function.
1518 (build_method_type): Use it.
1519
a30b6839
RH
15202003-08-24 Richard Henderson <rth@redhat.com>
1521
1522 * config/i386.i386.c (ix86_return_in_memory): Reformat. Return true
1523 for 16-byte vector modes if sse not enabled; warn for abi change.
1524 (ix86_value_regno): Only return xmm0 for 16-byte vector types.
1525
30c3267c
KH
15262003-08-24 Kazu Hirata <kazu@cs.umass.edu>
1527
1528 * rtlanal.c (may_trap_p): Simplify an integer comparison.
1529
791996d1
NN
15302003-08-24 Nathanael Nerode <neroden@gcc.gnu.org>
1531
1532 * fixinc/inclhack.def (AAB_svr4_replace_byteorder): Enhance
1533 comment. Enable for DYNIX/ptx systems (when they switch to
1534 regular fixincludes).
1535 * fixinc/fixincl.x: Regenerate.
1536
b882d60d
JE
15372003-08-23 Jason Eckhardt <jle@rice.edu>
1538
1539 * config/i860/t-i860: New.
1540 * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
1541
61c234ce
JJ
15422003-08-23 Jakub Jelinek <jakub@redhat.com>
1543
1544 * c-decl.c (pushdecl): Only put decls which finish_struct will do
1545 something about onto incomplete chain.
1546 (finish_struct): If not removing type from incomplete
1547 list, update prev.
1548
ebe75517
JH
1549Wed Aug 20 12:08:55 CEST 2003 Jan Hubicka <jh@suse.cz>
1550
1551 PR target/11369
1552 * i386.c (ix86_expand_carry_flag_compare): Validate operand.
1553
1554 PR target/11031
1555 * i386.c (const_0_to_3_operand, const_0_to_7_operand,
1556 const_0_to_15_operand, const_0_to_255_operand): New predicates.
1557 * i386.h (PREDICATE_CODES): Add these.
1558 * i386.c (pinsrw and pextrw patterns): Use them.
1559
1560 PR target/10984
1561 * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
1562
1563 PR target/8869
1564 * expr.c (convert_modes): Deal properly with integer to vector
1565 constant conversion.
1566
1567 PR target/8871
1568 * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
1569
02ed3c5e
UW
15702003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
1571
1572 * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
1573 * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
1574 ("*movhi"): ... this.
1575 ("movqi", "*movqi"): Likewise.
1576 ("movqi_64"): Remove.
1577 ("*zero_extendhisi2_31"): Change predicate to s_operand.
1578
643642eb
DJ
15792003-08-23 Dale Johannesen <dalej@apple.com>
1580 * calls.c (emit_library_call_value_1): Fix obvious errors in
f346cc37 1581 arguments to emit_group_store.
643642eb 1582
edf11bda
JE
15832003-08-23 Jason Eckhardt <jle@rice.edu>
1584
1585 * calls.c (emit_library_call_value_1): Remove code related
1586 to LIBGCC_NEEDS_DOUBLE.
1587 * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
1588 * doc/tm.texi: Likewise.
1589 * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
1590
e2a188b2
RS
15912003-08-23 Richard Sandiford <rsandifo@redhat.com>
1592
1593 * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
1594
520d96c6
RS
15952003-08-23 Richard Sandiford <rsandifo@redhat.com>
1596
1597 * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
1598 as well. Put memory references in the varargs alias set.
1599 (mips_expand_prologue): Remove varargs handling from here.
1600
47798692
UW
16012003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
1602
1603 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
1604 s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
1605 s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
1606 for function pointer calls.
1607 * config/s390/s390.md ("*negdi2_31"): Likewise.
1608
a0209ac2
RS
16092003-08-23 Roger Sayle <roger@eyesopen.com>
1610
1611 * combine.c (apply_distributive_law): Correct comment.
1612
fe232263
JE
16132003-08-23 Jason Eckhardt <jle@rice.edu>
1614
1615 * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
1616
5dab8d92
JE
16172003-08-22 Jason Eckhardt <jle@rice.edu>
1618
1619 * config/i860/i860.c (i860_build_va_list): Create the va_decl
1620 declaration. Document the va_list structure.
1621 (i860_va_start): Initialize the va_list structure.
1622 (i860_va_arg): Rewrite completely.
1623 * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
1624 * config/i860/varargs.asm: Do not allocate or initialize
1625 a va_list. Return the address of the register save area.
1626
2cac216b
KH
16272003-08-22 Kazu Hirata <kazu@cs.umass.edu>
1628
1629 * config/iq2000/iq2000.c: Fix comment typos.
1630 * config/iq2000/iq2000.md: Likewise.
1631
4375e090
KH
16322003-08-22 Kazu Hirata <kazu@cs.umass.edu>
1633
1634 * config/iq2000/iq2000.c: Follow spelling conventions.
1635 * config/iq2000/iq2000.h: Likewise.
1636 * config/mn10300/mn10300.c: Likewise.
1637
a36b8cb8
JE
16382003-08-22 Jason Eckhardt <jle@rice.edu>
1639
1640 * config/i860/i860.c (output_move_double): Don't set latehalf
1641 to zero for CONST_INT (since it could be, e.g., -1).
1642
1643 * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
1644 (MODSI3_LIBCALL): ...with this one.
1645 (UREMSI3_LIBCALL): Replace this macro...
1646 (UMODSI3_LIBCALL): ...with this one.
1647
89520fd7
JE
16482003-08-22 Jason Eckhardt <jle@rice.edu>
1649
1650 * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
1651 (output_delayed_branch): Remove prototype.
1652 (single_insn_src_p): Remove prototype.
1653 * config/i860/i860.c (single_insn_src_p): Remove function.
1654 (output_delayed_branch): Remove function.
1655 (output_delay_insn): Remove function.
1656 (va_start): Remove unconditional test and dead code, re-format.
1657 Fix coding style and spelling problems in various comments.
1658 * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
1659 (blockage pattern): ...and use it here.
1660 (all define_peephole patterns related to delayed branches): Remove.
1661 Fix coding style and spelling problems in various comments.
1662
8274e603
JE
16632003-08-22 Jason Eckhardt <jle@rice.edu>
1664
1665 * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
1666 Remove all uses of the PARAMS macro. Remove superflous prototypes.
1667 Convert all function definitions from traditional to ISO C90 syntax.
1668 * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
1669 with 'GCC'. Remove all uses of the PARAMS macro.
1670 * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
1671 * config/i860/i860.md: Likewise.
1672 * config/i860/sysv4.h: Likewise.
1673 * config/i860/varargs.asm: Likewise.
1674
cfbdb830
JE
16752003-08-22 Jason Eckhardt <jle@rice.edu>
1676
1677 * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
1678 argument.
1679 (tdesc_section): Add prototype.
1680 Update copyright dates.
1681 * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
1682 (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
1683 (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
1684 (targetm): Likewise.
1685 (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
1686 for '%d' where necessary.
1687 (i860_va_start): Remove 'stdarg_p' argument. Make conditional checks
1688 on 'stdarg_p' unconditional. Divide current_function_args_info.ints
1689 by UNITS_PER_WORD when referencing (likewise for .floats).
1690 (I860_SVR4_VARARGS): Rename...
1691 (I860_SVR4_VA_LIST): ...to this.
1692 Call build() with 't' rather than 'field'.
1693 (i860_rtx_costs): New function.
1694 (TARGET_RTX_COSTS): Define.
1695 (i860_internal_label): New function.
1696 (TARGET_ASM_INTERNAL_LABEL): Define.
1697 (i860_file_start): New function.
1698 Update copyright dates.
1699 * config/i860/i860.h (CPP_PREDEFINES): Remove.
1700 (TARGET_CPU_CPP_BUILTINS): Define.
1701 (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
1702 (CONST_COSTS): Remove (and move code to i860_rtx_costs).
1703 (ASM_FILE_START): Remove.
1704 (ASM_FILE_START_1): Remove.
1705 (ASM_GLOBALIZE_LABEL): Remove.
1706 (ASM_OUTPUT_INTERNAL_LABEL): Remove.
1707 (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
1708 with targetm.asm_out.internal_label.
1709 Update copyright dates.
1710 * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
1711 (CPP_PREDEFINES): Remove.
1712 (TARGET_OS_CPP_BUILTINS): Define.
1713 (GLOBAL_ASM_OP): Define.
1714 (ASM_FILE_START): Remove.
1715 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
1716 (TARGET_ASM_FILE_START): Define.
1717 Update copyright dates.
1718
e1567352
JE
17192003-08-22 Jason Eckhardt <jle@rice.edu>
1720
a36b8cb8 1721 * gcc/config.gcc (i860-*-sysv4*): Add target.
e1567352
JE
1722 * config/i860/i860-protos.h: New.
1723 * config/i860/i860.c: New.
1724 * config/i860/i860.h: New.
1725 * config/i860/i860.md: New.
1726 * config/i860/sysv4.h: New.
1727 * config/i860/varargs.asm: New.
1728 * config/i860/x-sysv4: New.
1729
b7849684
JE
17302003-08-22 Jason Eckhardt <jle@rice.edu>
1731
1732 * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
1733 Remove all uses of PARAMS macro.
1734 Convert all function definitions to ISO C90 syntax.
1735 * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
1736 * config/pa/fptr.c: Likewise.
1737 * config/pa/lib2funcs.asm: Likewise.
1738 * config/pa/long_double.h: Likewise.
1739 * config/pa/milli64.S: Likewise.
1740 * config/pa/pa-64.h: Likewise.
1741 * config/pa/pa-hpux.h: Likewise.
1742 * config/pa/pa-hpux10.h: Likewise.
1743 * config/pa/pa-hpux11.h: Likewise.
1744 * config/pa/pa-linux.h: Likewise.
1745 * config/pa/pa-modes.def: Likewise.
1746 * config/pa/pa-osf.h: Likewise.
1747 * config/pa/pa-pro-end.h: Likewise.
1748 * config/pa/pa.md: Likewise.
1749 * config/pa/pa32-linux.h: Likewise.
1750 * config/pa/pa64-linux.h: Likewise.
1751 * config/pa/pa64-hpux.h: Likewise.
1752 * config/pa/pa64-regs.h: Likewise.
1753 * config/pa/quadlib.c: Likewise.
1754 * config/pa/rtems.h: Likewise.
1755 * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
7e2055ec 1756 all uses of the PARAMS macro.
b7849684
JE
1757 * config/pa/pa.h: Likewise.
1758 * config/pa/som.h: Likewise.
1759
7e2055ec
ZW
1760 * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
1761 Remove all uses of PARAMS macro.
1762 Convert all function definitions to ISO C90 syntax.
b7849684 1763 * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
7e2055ec 1764 Remove all uses of PARAMS macro.
b7849684 1765 * config/iq2000.h: Remove all uses of PARAMS macro.
7e2055ec 1766 * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
b7849684 1767
416cf582
UW
17682003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
1769
1770 * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
1771 * config/s390/s390.c (gen_consttable): Remove.
1772 (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
1773 (s390_output_pool_entry): New function.
7e2055ec
ZW
1774 * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
1775 UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
416cf582
UW
1776 UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
1777 (UNSPECV_POOL_ENTRY): ... this new constant.
1778 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
1779 "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
1780 ("*pool_entry"): ... and replace by this new insn.
1781 ("literal_pool_31"): Do not emit anchor label if pool empty.
1782
1783 * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
1784 (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
1785 (s390_fixup_clobbered_return_reg): Remove.
1786 (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
1787 (s390_return_addr_rtx): Always retrieve return address from save area
1788 slot. Use save_return_addr_p to force slot to be filled.
1789 (s390_emit_prologue): Remove has_hard_reg_initial_val test.
1790
beadc644
CD
17912003-08-22 Chris Demetriou <cgd@broadcom.com>
1792
1793 * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
1794 (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
1795 * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
1796 around SB-1 errata if TARGET_FIX_SB1 is set.
1797 (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
1798 * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
1799
4ae2e3e9
RS
18002003-08-22 Roger Sayle <roger@eyesopen.com>
1801
1802 * hashtable.c (ht_expand): Avoid calculating rehash for the common
1803 case that the first probe hits an empty hash table slot.
1804
74487c57
MM
18052003-08-22 Mark Mitchell <mark@codesourcery.com>
1806
1807 * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
1808
36c216e5
MM
18092003-08-22 Mark Mitchell <mark@codesourcery.com>
1810
1811 * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
1812 (ptr_extend_plus_imm): ... this.
1813 * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
1814 optimization in C++.
1815 (ia64_output_mi_thunk): Support ILP32 mode.
1816
02ac9ec6
BI
18172003-08-22 bernardo innocenti <bernie@develer.com>
1818
1819 * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
1820 function.
1821 * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
1822
dac4a0de
KH
18232003-08-22 Kazu Hirata <kazu@cs.umass.edu>
1824
1825 * config/i386/i386.c (const_int_1_operand): Simplify an
1826 integer comparison.
1827
65dbc870
AM
18282003-08-22 Alan Modra <amodra@bigpond.net.au>
1829
1830 * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
1831 * config/rs6000/ppc64-fp.c: Likewise.
1832
dcc24678
KH
18332003-08-22 Kazu Hirata <kazu@cs.umass.edu>
1834
1835 * cfgcleanup.c: Fix comment typos.
1836 * emit-rtl.c: Likewise.
1837 * optabs.c: Likewise.
1838 * ra-build.c: Likewise.
1839 * rtlanal.c: Likewise.
1840 * tree.h: Likewise.
1841
beb235f8
KH
18422003-08-22 Kazu Hirata <kazu@cs.umass.edu>
1843
1844 * c-decl.c: Fix comment formatting.
1845 * cfgrtl.c: Likewise.
1846 * combine.c: Likewise.
1847 * convert.c: Likewise.
1848 * dominance.c: Likewise.
1849 * dwarf2out.c: Likewise.
1850 * dwarfout.c: Likewise.
1851 * expmed.c: Likewise.
1852 * fold-const.c: Likewise.
1853 * gcov.c: Likewise.
1854 * genattrtab.c: Likewise.
1855 * ggc-common.c: Likewise.
1856 * mips-tfile.c: Likewise.
1857 * regmove.c: Likewise.
1858
2b72593e
KH
18592003-08-22 Kazu Hirata <kazu@cs.umass.edu>
1860
1861 * builtin-attrs.def: Fix comment formatting.
1862 * c-pretty-print.c: Likewise.
1863 * diagnostic.h: Likewise.
1864 * langhooks.h: Likewise.
1865 * recog.c: Likewise.
1866 * simplify-rtx.c: Likewise.
1867 * tree.def: Likewise.
1868
8a4a2253
BI
18692003-08-22 Bernardo Innocenti <bernie@develer.com>
1870
1871 * config/m68k/m68k-protos.h: Convert to ISO C90.
1872 * config/m68k/m68k.c: Likewise.
1873
eb849993 18742003-08-21 Bernardo Innocenti <bernie@develer.com>
7e2055ec
ZW
1875 Paul Dale <pauli@snapgear.com>
1876 Peter Barada <peter@baradas.org>
eb849993
BI
1877
1878 * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
1879 ColdFire cores.
1880
ca11c37c
ZW
18812003-08-21 Zack Weinberg <zack@codesourcery.com>
1882
1883 * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
1884 * config.gcc (*-*-openbsd): Don't set tm_file.
1885 (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
1886 arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
1887 h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
1888 i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
1889 i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
1890 m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
1891 m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
1892 m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
1893 mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
1894 sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
1895 xscale-*-coff): Use explicit and complete lists of target headers
1896 to include. Move definitions to tm_defines where appropriate.
1897 (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
1898 not-yet-contributed configuration.
1899
1900 * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
1901 * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
1902 * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
1903 * config/i386/nto.h, config/iq2000/iq2000.h,
1904 * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
1905 * config/m68k/linux.h, config/m68k/m68k-aout.h
1906 * config/m68k/m68k-none.h, config/m68k/m68kv4.h
1907 * config/m68k/netbsd.h, config/m68k/openbsd.h
1908 * config/m68k/sgs.h, config/mcore/mcore-pe.h,
1909 * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
1910 * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
1911 Remove includes of other target config headers, and
1912 definitions of macros moved to tm_defines lists. Add #undefs
1913 where now necessary to prevent redefinition warnings.
1914
1915 * config/h8300/coff.h: New file split out of...
1916 * config/h8300/elf.h: ...here.
1917 * config/m68k/hp320base.h: New file split out of...
1918 * config/m68k/hp320.h: ...here.
1919 * config/rs6000/lynxbase.h: New file split out of...
1920 * config/rs6000/lynx.h: ...here.
1921
1922 * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
1923 * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
1924
1925 * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
1926 * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
1927 * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
1928 Remove unnecessary #ifndef.
1929 * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
1930 [under IN_LIBGCC2] with config/.
1931
75ee800b 19322003-08-21 Per Bothner <pbothner@apple.com>
ac650a0a
PB
1933
1934 * cppfiles.c (stack_file): Correctly pass return_at_eof parameter
1935 to cpp_push_buffer.
1936 * cpplex.c (_cpp_get_fresh_line): Don't buffer->prev - handled
1937 by return_at_eof check. Always call _cpp_pop_buffer at end.
1938
43c446b8
KH
19392003-08-21 Kazu Hirata <kazu@cs.umass.edu>
1940
1941 PR target/11805
1942 * config/h8300/h8300.md (two anonymous patterns): Remove.
1943
7bc22451
RS
19442003-08-21 Richard Sandiford <rsandifo@redhat.com>
1945
1946 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
1947 * config/mips/mips.c (function_arg_pass_by_reference): Never return
1948 true for n32 & n64.
1949
ed6f90f7
JZ
19502003-08-21 Josef Zlomek <zlomekj@suse.cz>
1951
1952 * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
1953 and similarly in (A | C) == D where C & ~D != 0.
1954
e50084fa
GK
19552003-08-20 Geoffrey Keating <geoffk@apple.com>
1956
1957 PR 8180
1958 * configure.in: When testing with_libs and with_headers, treat
1959 'no' as unset. Based on a patch by Dan Kegel <dank@kegel.com>.
1960 * configure: Regenerate.
ca11c37c 1961
e50084fa 19622003-08-20 Peter Barada <peter@baradas.org>
bab4470d
PB
1963
1964 * longlong.h (umul_ppmm): Add ColdFire support.
1965
e50084fa 19662003-08-20 Peter Barada <peter@baradas.org>
ca11c37c 1967 Bernardo Innocenti <bernie@develer.com>
9425fb04
PB
1968
1969 * config/m68k/m68k-none.h: Introduce new ColdFire archs.
1970 * config/m68k/m68k.h: Likewise.
1971 * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
1972 * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
1973 * config/m68k/linux.h: Likewise.
1974 * config/m68k/m68k.c: Likewise.
1975 * config/m68k/m68k.md: Likewise.
1976 * config/m68k/m68kelf.h: Likewise.
1977 * config/m68k/netbsd-elf.h: Likewise.
1978 * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
1979
d1b87863
BI
19802003-08-20 Bernardo Innocenti <bernie@develer.com>
1981
1982 * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
1983 * config/m68k/m68k.md: Likewise.
1984
b6343a33
MM
19852003-08-20 Mark Mitchell <mark@codesourcery.com>
1986
1987 PR java/11996
1988 Revert this change:
1989 2003-08-19 Mark Mitchell <mark@codesourcery.com>
1990 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
1991 types with precisions other than those given by native machine
1992 modes.
1993
bf4563cb
GN
19942003-08-20 Gunther Nikl <gni@gecko.de>
1995
1996 * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
1997 selected by FSGLMUL_USE_S and FSGLDIV_USE_S
1998 * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
1999 * config/m68k/m68k.md (anonymous define_insn): Likewise
2000 * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
2001 * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
2002 code selected by NO_ASM_FMOVECR
2003
0fb8241d
GN
20042003-08-20 Gunther Nikl <gni@gecko.de>
2005
2006 * config/m68k/m68k.c (output_move_const_into_data_reg,
2007 output_move_himode): unify MOTOROLA/MIT handling of moveq
2008 * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
2009 Likewise
2010
c23b0b90
GN
20112003-08-20 Gunther Nikl <gni@gecko.de>
2012
2013 * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
2014 label name
2015 * config/m68k/m68k.c (m68k_output_function_epilogue): replace
2016 HOST_WIDE_INT_PRINT_DEC with %wd
2017
9e68a9dc
LR
20182003-08-20 Loren James Rittle <ljrittle@acm.org>
2019
2020 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
2021 redefine warning.
2022
2cf099a5
RS
20232003-08-20 Roger Sayle <roger@eyesopen.com>
2024
2025 PR middle-end/11984
2026 * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
2027 operands before calling tree_int_cst_lt when performing associative
2028 transformations.
2029
68ad9159
JM
20302003-08-20 Jason Merrill <jason@redhat.com>
2031
2032 * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
2033 (EXPR_CHECK): Don't check for 'r' or 's' if we're
2034 checking IS_EXPR_CODE_CLASS.
2035 * calls.c (calls_function_1): Likewise.
2036 * fold-const.c (fold): Likewise.
2037 * tree.c (iterative_hash_expr): Likewise.
2038 * tree-inline.c (walk_tree, copy_tree_r): Likewise.
2039
c8e60672
GN
20402003-08-20 Gunther Nikl <gni@gecko.de>
2041
2042 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
2043 depending on MOTOROLA_BSR
2044 * config/m68k/m68k.md (anonymous define_insn): Likewise
2045
3acef2ae
JM
20462003-08-20 Jason Merrill <jason@redhat.com>
2047
2f503025 2048 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
ca11c37c 2049 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
2f503025
JM
2050 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
2051 * dojump.c (do_jump): Likewise.
2052 * fold-const.c (operand_equal_p, fold): Likewise.
2053 (tree_expr_nonnegative_p): Likewise.
2054
3acef2ae
JM
2055 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
2056 TYPE_USER_ALIGN for FIELD_DECLs.
ca11c37c 2057
3acef2ae
JM
2058 * attribs.c (decl_attributes): Rebuild the function pointer type after
2059 changing the target type.
2060 * tree.c (get_qualified_type): Also check that the attributes match.
2061
8f7d850c
MK
20622003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
2063
2064 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
2065 * objc/config-lang.in (stagestuff): ... to here.
2066
4b0d3cbe
MM
20672003-08-19 Mark Mitchell <mark@codesourcery.com>
2068
2069 PR c++/11946
2070 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
2071 NOP_EXPR) when necessary.
2072 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
2073 types with precisions other than those given by native machine
2074 modes.
2075
3a7e8b87
GK
20762003-08-19 Geoffrey Keating <geoffk@apple.com>
2077
ccc01444
GK
2078 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
2079 because some macro is defined.
2080
3a7e8b87
GK
2081 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
2082 options.
2083 * config/i386/darwin.h (ASM_SPEC): New.
2084 (SUBTARGET_EXTRA_SPECS): New.
2085 * config/rs6000/darwin.h (ASM_SPEC): New.
2086 (SUBTARGET_EXTRA_SPECS): New.
2087 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
2088 a cross-compiler between two different processors on Darwin.
2089 * configure: Regenerate.
2090
a98ebe2e
KH
20912003-08-19 Kazu Hirata <kazu@cs.umass.edu>
2092
2093 * builtins.c: Fix comment typos.
2094 * c-common.c: Likewise.
2095 * c-decl.c: Likewise.
2096 * c-pretty-print.c: Likewise.
2097 * cfgbuild.c: Likewise.
2098 * cfglayout.c: Likewise.
2099 * cfgloopanal.c: Likewise.
2100 * cgraphunit.c: Likewise.
2101 * cppfiles.c: Likewise.
2102 * dwarfout.c: Likewise.
2103 * expr.c: Likewise.
2104 * fold-const.c: Likewise.
2105 * gcse.c: Likewise.
2106 * ggc-page.c: Likewise.
2107 * haifa-sched.c: Likewise.
2108 * pretty-print.c: Likewise.
2109 * tree.c: Likewise.
2110 * tree.h: Likewise.
2111 * value-prof.c: Likewise.
2112
02fa63cd
KH
21132003-08-19 Kazu Hirata <kazu@cs.umass.edu>
2114
2115 * c-decl.c: Follow spelling conventions.
2116 * cppfiles.c: Likewise.
2117
59e4e217
KH
21182003-08-19 Kazu Hirata <kazu@cs.umass.edu>
2119
2120 * c-common.c: Fix comment formatting.
2121 * c-common.h: Likewise.
2122 * c-decl.c: Likewise.
2123 * cppinit.c: Likewise.
2124 * cpplib.h: Likewise.
2125 * emit-rtl.c: Likewise.
2126 * input.h: Likewise.
2127 * line-map.h: Likewise.
2128 * opts.c: Likewise.
2129 * opts.h: Likewise.
2130 * simplify-rtx.c: Likewise.
2131
1ee93c1b
DJ
21322003-08-19 Daniel Jacobowitz <drow@mvista.com>
2133
2134 * unwind-c.c: Add libgcc-style exception.
2135 * unwind-dw2.c: Likewise.
2136 * unwind-pe.h: Likewise.
2137 * unwind-sjlj.c: Likewise.
2138 * unwind.inc: Likewise.
2139
f5e7af77
AP
21402003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
2141
2142 PR c/5582 PR c++/10538
2143 * langhooks-def.h (lhd_decl_uninit): Declare.
2144 (LANG_HOOKS_DECL_UNINIT): New macro.
2145 (LANG_HOOKS_INITIALIZER): Adjust.
2146 * langhooks.h (struct lang_hooks): Add new field
2147 decl_uninit.
2148 * langhooks.c (lhd_decl_uninit): Define.
2149 * c-common.c (c_decl_uninit_1): New function.
2150 (c_decl_uninit): New function.
2151 (warn_init_self): Define.
2152 * c-common.h (c_decl_uninit): Declare.
2153 (warn_init_self): Declare.
2154 * c.opt: Introduce -Winit-self.
2155 * c-opts.c (c_common_handle_options): Set warn_init_self.
2156 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
2157 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
2158 * function.c (uninitialized_vars_warning): Call the language hook.
2159 * doc/invoke.texi: Document -Winit-self.
2160
d68f4cc4
CD
21612003-08-19 Chris Demetriou <cgd@broadcom.com>
2162
2163 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
2164 to use better predicates and constraints. Define new
2165 instruction to handle "trap_if" with DI-mode arguments.
2166 (conditional_trap): FAIL if trap code is not 0.
2167
86ecdfb6
AP
21682003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
2169
2170 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
2171 strstr with $pb to a strcompare with "<pic base>"
2172 (ix86_output_addr_diff_elt): Output the real pic base.
2173
fc95cf70
GDR
21742003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
2175
2176 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
2177 (LANG_HOOKS_INITIALIZER): Correct.
2178 * c-lang.c: Likewise.
2179
810db579
JH
21802003-08-19 Jan Hubicka <jh@suse.cz>
2181
2182 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
2183 (cgraph_varpool_mark_needed_node): Likewise.
2184 * cgraph.h (notice_global_symbol): Declare
2185 * varasm.c (notice_global_symbol): Break out from ...
2186 (assemble_start_function): ... here; update for variables.
2187 (assemble_variable): Use notice_global_symbol.
2188
fc4fe9e4
RS
21892003-08-19 Richard Sandiford <rsandifo@redhat.com>
2190
2191 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
2192 expect SFmode and DFmode arguments to be passed in FPRs,
2193 regardless of the underlying type.
2194
4b8174ff
RS
21952003-08-19 Richard Sandiford <rsandifo@redhat.com>
2196
2197 PR target/11924
2198 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
2199 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
2200
622adc7e
MK
22012003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
2202
2203 PR c/11207
2204 * c-typeck.c (set_init_index): Check for negative index.
2205
dfccfad9
BW
22062003-08-18 Bob Wilson <bob.wilson@acm.org>
2207
2208 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
2209 call0 ABI.
2210 * config/xtensa/crtn.asm (_init, _fini): Likewise.
2211 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
2212 __umodsi3, __modsi3): Likewise.
2213 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
2214 $(INCLUDES).
2215
fe9c3a97
AH
22162003-08-18 Aldy Hernandez <aldyh@redhat.com>
2217
2218 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
2219
431d5fdd
RS
22202003-08-18 Richard Sandiford <rsandifo@redhat.com>
2221
2222 * config/mips/mips.md: Quote C code in braces. Remove use of
2223 fake const0_rtx operands. Remove double backslashes. Use \;.
2224 Remove workarounds for bogus warnings.
2225
4195786e
RS
22262003-08-18 Richard Sandiford <rsandifo@redhat.com>
2227
2228 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
2229 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
2230 rather than TARGET_MIPS4300.
2231 (mulsf3_internal, mulsf3_r4300): Likewise.
2232
6d4ede5f
RS
22332003-08-18 Richard Sandiford <rsandifo@redhat.com>
2234
2235 * config/mips/mips.md: Renumber unspecs. Clean up comments.
2236
dd61aa98
RS
22372003-08-17 Roger Sayle <roger@eyesopen.com>
2238
2239 * simplify-rtx.c (associative_constant_p): New function to test
2240 whether an RTX expression is an immediate constant.
2241 (simplify_associative_operation): New function to perform some
2242 reassociation optimizations of associative binary expressions.
2243 (simplify_binary_operation): Use simplify_associative_operation
2244 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
2245 Floating point expressions are only reassociated when unsafe
2246 math optimizations are permitted.
2247
9c808aad
AJ
22482003-08-17 Andreas Jaeger <aj@suse.de>
2249
2250 * config/alpha/alpha.md: Remove usage of PARAMS.
2251
2252 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
2253 * config/i386/i386-interix.h: Likewise.
2254 * config/i386/winnt.c: Likewise.
2255 * config/i386/cygming.h: Likewise.
2256 * config/i386/cygwin2.c: Likewise.
2257 * config/darwin.c: Likewise.
2258 * config/darwin-c.c: Likewise.
2259 * config/darwin-protos.h: Likewise.
2260 * config/darwin.h: Likewise.
2261 * config/s390/s390-protos.h: Likewise.
2262 * config/s390/s390.c: Likewise.
2263 * config/ia64/ia64.c: Likewse
2264 * config/ia64/ia64-protos.h: Likewise.
fde46628 2265 * config/ia64/ia64-c.c: Likewise.
9c808aad 2266
e80d5f80
KG
22672003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2268
fc27d102
KG
2269 * config/sparc/sparc.c: Convert to ISO C.
2270
e80d5f80
KG
2271 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
2272 * config/sparc/sparc.c: Likewise.
2273
e895113a
NS
22742003-08-16 Nathan Sidwell <nathan@codesourcery.com>
2275
2276 PR c++/11512
2277 * stmt.c (expand_expr_stmt_value): Don't warn about any void
2278 typed expression.
2279
e767b5be
JH
22802003-08-16 Jan Hubicka <jh@suse.cz>
2281
2282 * i386.c (ix86_fntype_regparm): Rename from ...
2283 (ix86_function_regparm): ... this one; add fastcall and local
2284 functions.
2285 (ix86_function_ok_for_sibcall): Update.
2286 (ix86_return_pops_args): Likewise.
2287 (init_cumulative_args): Likewise.
2288 (x86_can_output_mi_thunk): Likewise.
2289 (function_arg): Fix formating.
2290 (x86_this_parameter): Fix fastcall.
2291 (x86_output_mi_thunk): Likewise.
2292
2293 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
2294 body as reachable; mark nested functions as needed too.
2295 (dump_cgraph): Do not output global.calls.
2296 * cgraph.h (cgraph_global_info): Kill.
2297 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
2298 (record_call_1): Speedup.
2299 (cgraph_analyze_function): Break out from ...; compute inlining
2300 parameters.
2301 (cgraph_finalize_compilation_unit): ... here.
2302 (cgraph_mark_inline): Kill computation of calls.
2303 (cgraph_decide_inlining): Do not compute most of initial values.
2304
8ab49fef
RS
23052003-08-14 Roger Sayle <roger@eyesopen.com>
2306
2307 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
2308 to negate if either operand is easy to negate, if we don't care
2309 about sign-dependent rounding.
2310 (negate_expr): Make the logic to negate a REAL_CST explicit.
2311 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
2312 that's easy to negate, if we don't honor sign-dependent rounding.
2313 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
2314 negate, and the symmetric A * -B as -A * B if A is easy to negate.
2315 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
2316 -C/D if B and C are cheap to negate. Add an explicit rule to
2317 optimize X/-1.0 as -X when we don't care about signaling NaNs.
2318
e22340b0
ZW
23192003-08-14 Zack Weinberg <zack@codesourcery.com>
2320
2321 * Makefile.in (tm_file): Rename tm_include_list.
2322 (tm_p_file): Rename tm_p_include_list.
2323 (build_xm_file): Rename build_xm_include_list.
2324 (host_xm_file): Rename host_xm_include_list.
2325 (xm_file): Rename xm_include_list.
2326 (xm_file_list): Add to be substituted.
2327 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
2328 Update to match.
2329 (bt-load.o): Add missing dependency on $(TM_H).
2330 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
2331 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
2332 build_xm_file, generate both *_file_list and *_include_list
2333 values from it. (xm_file_list was formerly not being generated.)
2334 In *_include_list, prefix the names of all headers found in
2335 $(srcdir)/config with config/. In each loop, consider only
2336 the special case files that can actually appear in that list.
2337 AC_SUBST all *_file_list and all *_include_list variables; do
2338 not AC_SUBST the plain *_file variables.
2339 * configure: Regenerate.
2340
4139675b
ZD
23412003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2342
2343 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
2344
32562302
JDA
23452003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2346
2347 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
2348 direct calls.
2349 (attr_length_call): Include it here. Improve length estimate for
2350 local calls.
2351 (output_call): Use targetm.binds_local_p.
2352
9e46226d
KG
23532003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2354
daa027cc
KG
2355 * builtins.c (CASE_MATHFN): New helper macro.
2356 (mathfn_built_in): Simplify and sort.
2357
9e46226d
KG
2358 * protoize.c (substr): Delete, callers changed to `strstr'.
2359
c5d19037
ZW
23602003-08-13 Zack Weinberg <zack@codesourcery.com>
2361
2362 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
2363 * config/iq2000/xm-iq2000.h: Delete file.
2364
4da6879c
GK
23652003-08-13 Geoffrey Keating <geoffk@apple.com>
2366
2367 * gengtype.c (walk_type): Process a subobject before processing
2368 the pointer that points to the subobject.
2369
28420116
PB
23702003-08-13 Per Bothner <pbothner@apple.com>
2371
2372 * regclass.c (init_reg_modes): Make non-static.
2373 Rename to init_reg_modes_once per new naming convention.
2374 (init_regs): Don't call init_reg_modes here.
2375 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
2376 * rtl.h (init_reg_modes_once): New declaration.
2377 * toplev.c (backend_init): Call init_regs after init_emit_once.
2378
235b4b36
KK
23792003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
2380
2381 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
2382 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
2383
dce20bbc
R
23842003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
2385
2386 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
2387 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
2388
5a195cb5
DJ
23892003-08-13 Dale Johannesen <dalej@apple.com>
2390
2391 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
2392 handling of decrement-and-branch farther than 32 bits.
2393
3a000df0
KC
23942003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
2395
2396 * configure.in (make_compare_target): Move test to ...
2397 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
2398 * configure: Regenerate.
2399
b4966b1b
RS
24002003-08-12 Richard Sandiford <rsandifo@redhat.com>
2401
2402 * config/mips/iris6.h: Convert to C90 prototypes.
2403 * config/mips/irix6-libc-compat.c: Likewise.
2404 * config/mips/mips-protos.h: Likewise.
2405 * config/mips/mips.c: Likewise.
2406
825d7d64
NN
24072003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
2408
2409 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
2410 for selected machines. Comment heavily.
2411 fixinc/fixincl.x: Rebuild.
2412 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
2413
dfad12b5
RS
24142003-08-12 Richard Sandiford <rsandifo@redhat.com>
2415
2416 * config/mips/mips.h: Tweak various comments.
2417 * config/mips/mips.c: Likewise.
2418
e3f049a8
JW
24192003-08-11 James E Wilson <wilson@tuliptree.org>
2420
2421 PR optimization/11319
2422 PR target/10021
2423 * alias.c (find_base_value, case REG): Return 0 not src if no base
2424 found.
2425
4ac11022
KG
24262003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2427
2428 * gcse.c (gmalloc): Fix last change.
2429
ae351e1e
RS
24302003-08-11 Roger Sayle <roger@eyesopen.com>
2431
2432 * simplify-rtx.c (simplify_binary_operation): Replace calls to
2433 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
2434 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
2435 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
2436
11017cc7
RS
24372003-08-11 Roger Sayle <roger@eyesopen.com>
2438
2439 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
2440 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
2441 typecode for an ABS_EXPR.
2442
2443 * doc/c-tree.texi: Document ABS_EXPR.
2444
af7b5c1c
RS
24452003-08-11 Roger Sayle <roger@eyesopen.com>
2446
2447 * fold-const.c (fold): Optimize any associative floating point
2448 operator with -funsafe-math-optimizations, not just MULT_EXPR.
2449
e3bf220a
KK
24502003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
2451
2452 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
2453 information in SHmedia case too.
2454 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
2455 Likewise.
2456 (__set_fpscr): Use an access via GOT for PIC case.
2457
0c46c5c7
KC
24582003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
2459
2460 * configure.in (intermodule): Make switch test more portable.
2461 * configure: Regenerate.
2462
727793cb
KC
24632003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
2464
2465 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
2466 (restrap): Likewise.
2467
29da5c92
KG
24682003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2469
9fe15a12
KG
2470 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
2471 (grealloc): Size argument is a size_t.
2472 (gcalloc): New function. Use throughout in lieu of
2473 gmalloc/memset.
2474
29da5c92
KG
2475 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
2476 xmalloc/memset.
2477 * config/ia64/ia64.c (ia64_reorg): Likewise.
2478 * conflict.c (conflict_graph_new): Likewise.
2479 * fixinc/fixincl.c (run_compiles): Likewise.
2480 * genattrtab.c (optimize_attrs): Likewise.
2481 * genrecog.c (new_decision): Likewise.
2482 * haifa-sched.c (schedule_block): Likewise.
2483 * hashtable.c (ht_create): Likewise.
2484
13fb3a61
BW
24852003-08-11 Bob Wilson <bob.wilson@acm.org>
2486
2487 * config/xtensa/lib2funcs.S: Fix whitespace.
2488 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
2489 syntax where appropriate. Remove unnecessary backslash escapes.
2490 Reformat comments and fix some code formatting.
2491 (extendqisi2): Rearrange conditional.
2492 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
2493 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
2494 of fatal_insn.
2495
f1d5187e
RS
24962003-08-11 Richard Sandiford <rsandifo@redhat.com>
2497
2498 * config/mips/mips.c: Various formatting fixes.
2499 (override_options): Resync -mtune handling with gas.
2500 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
2501 * config/mips/mips.h: More formatting fixes.
2502 (mips_abi): Move declaration.
2503 * config/mips/mips.md (exception_receiver): Add mode to
2504 unspec_volatile.
2505
00332c9f
AH
25062003-08-11 Aldy Hernandez <aldyh@redhat.com>
2507
2508 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
2509 evsplatfi here.
2510 (bdesc_1arg): Remove evsplati and evsplatfi.
2511
a5c414e0
R
25122003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
2513
2514 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
2515 into account.
2516
0235f855
KG
25172003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2518
2519 * builtins.c (expand_builtin_strcat): Optimize constant strings.
2520
4b780675
GDR
25212003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
2522
2523 * pretty-print.c (pp_base_indent): Rename from pp_indent.
2524 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
2525 (struct c_pretty_print_info): Add more fields.
2526 (pp_c_left_paren): Move to c-pretty-print.c.
2527 (pp_c_right_paren): Likewise.
2528 (pp_c_left_brace): Likewise.
2529 (pp_c_right_brace): Likewise.
2530 (pp_c_left_bracket): Likewise.
2531 (pp_c_right_bracket): Likewise.
2532 (pp_c_declarator): Declare.
2533 (pp_c_direct_declarator): Likewise.
2534 (pp_c_specifier_qualifier_list): Likewise.
2535 (pp_c_type_id): Likewise.
2536 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
2537 (pp_c_type_qualifier_list): New.
2538 (pp_c_pointer): Likewise.
2539 (pp_c_parameter_type_list): Likewise.
2540 (pp_c_function_definition): Likewise.
2541 (pp_c_id_expression): Likewise.
2542 (pp_c_simple_type_specifier): Tidy.
2543 (pp_c_unary_expression): Likewise.
2544 (pp_c_expression): Likewise.
2545 (pp_c_pretty_printer_init): Likewise.
2546 (pp_c_specifier_qualifier_list): Rework..
2547 (pp_c_abstract_declarator): Likewise.
2548 (pp_c_postfix_expression): Likewise.
2549 (pp_c_primary_expression): Likewise.
2550 (pp_c_cast_expression): Likewise.
2551 (pp_c_direct_abstract_declarator): Likewise.
2552 (pp_c_storage_class_specifier): Likewise.
2553 (pp_c_function_specifier): Likewise.
2554 (pp_c_declaration_specifiers): Likewise.
2555 (pp_c_direct_declarator): Likewise.
2556 (pp_c_declarator): Likewise.
2557 (pp_c_declaration): Likewise.
2558 (pp_c_statement): Likewise.
2559 (pp_c_integer_constant): Rename from pp_c_integer_literal.
2560 (pp_c_character_constant): Rename from pp_c_character_literal.
2561 (pp_c_bool_constant): Rename from pp_c_bool_literal.
2562 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
2563 (pp_c_floating_constant): Rename from pp_c_real_literal.
2564 (pp_c_constant): Rename from pp_c_literal.
2565 * c-lang.c: Include diagnostic.h and c-pretty-print.h
2566 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
2567 (c_initialize_diagnostics): New.
2568 * Makefile.in (c-lang.o): Update dependency.
2569
bae39a73
NS
25702003-08-10 Nathan Sidwell <nathan@codesourcery.com>
2571
2572 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
2573
3372178c
RS
25742003-08-10 Richard Sandiford <rsandifo@redhat.com>
2575
2576 * config/mips/mips.c (mips_no_mips16_string): Remove.
2577 (override_options): Don't handle -mips16 as part of -mipsN.
2578 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
2579 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
2580 (TARGET_OPTIONS): Remove -mno-mips16.
2581
1d5565cd
RS
25822003-08-10 Richard Sandiford <rsandifo@redhat.com>
2583
2584 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
2585 (coprocessor2_operand): Likewise.
2586 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
2587 (lookup_name): Remove declaration.
2588 (abort_with_insn): Remove. Replace all uses with fatal_insn.
2589 (mips16, mips_abicalls): Remove.
2590 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
2591 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
2592 (coprocessor_operand, coprocessor2_operand): Remove.
2593 (override_options): Don't set mips16 or mips_abicalls.
2594 (print_operand): Don't expect SIGN_EXTEND operands.
2595 (mips_secondary_reload_class): Likewise.
2596 (mips_output_conditional_branch): Remove disabled long-branch code.
2597 * config/mips/mips.h (call_used_regs): Remove declaration.
2598 (may_call_alloca): Likewise.
2599 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
2600 (mips_abicalls, mips16): Remove declarations.
2601 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
2602 (CC1_SPEC): Remove outdated comment.
2603 (MIPS_VERSION, MACHINE_TYPE): Remove.
2604 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
2605 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
2606 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
2607 (PUSH_ROUNDING): Likewise.
2608 (ASSEMBLER_SCRATCH_REGNUM): Remove.
2609 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
2610 and mips16 with TARGET_MIPS16.
2611
4169c321
PB
26122003-08-09 Per Bothner <pbothner@apple.com>
2613
c5d19037
ZW
2614 * cppinit.c (cpp_read_main_file): Split out source-independent
2615 initialization to separate function ...
2616 (cpp_post_options): New function.
2617 * cppfiles.c (cpp_stack_file): Rename public name to ...
2618 (_cpp_stack_file): New internal function name.
2619 * cpplib.h: Update accordingly.
2620 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
2621 (cpp_read_main_file): Don't initialize line here.
2622 * c-opts.c (c_common_post_options): Call cpp_post_options.
2623 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
2624 * fix-header.c (read_scan_file): Call cpp_post_options.
2625
3d93cdfa
PB
26262003-08-09 Per Bothner <per@bothner.com>
2627
2628 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
2629
dfd8db86
JDA
26302003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2631
2632 * pa.c (pa_asm_output_mi_thunk): Fix typo.
2633
a54c550f
NB
26342003-08-09 Neil Booth <neil@daikokuya.co.uk>
2635
2636 PR preprocessor/11839
2637 * cppfiles.c (open_file): Handle ENOTDIR.
2638
142ee136
RS
26392003-08-09 Richard Sandiford <rsandifo@redhat.com>
2640
2641 PR target/11699
2642 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
2643
561af708
JDA
26442003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2645
2646 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
2647 source/destination is not a register operand.
2648
af1e5518
RH
26492003-08-08 Richard Henderson <rth@redhat.com>
2650
c5d19037
ZW
2651 PR target/11535
2652 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
2653 RETURN_ADDRESS_POINTER_REGNUM.
2654 (ia64_expand_prologue): Don't frob it.
2655 (ia64_output_function_epilogue): Likewise.
2656 (ia64_return_addr_rtx): New.
2657 (ia64_split_return_addr_rtx): New.
2658 * config/ia64/ia64-protos.h: Update.
2659 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
2660 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
2661 (GENERAL_REGNO_P): Don't check it.
2662 (AR_*_REGNUM): Renumber.
2663 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
2664 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
2665 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
2666 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
2667 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
2668 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
2669 (movdi_ret_addr): New.
af1e5518 2670
5dddb920
GK
26712003-08-08 Geoffrey Keating <geoffk@apple.com>
2672
2673 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
2674
7bb3fbbb
RS
26752003-08-08 Roger Sayle <roger@eyesopen.com>
2676
2677 * tree.h (get_identifier) Define a macro form of get_identifier
2678 that calls get_identifier_with_length when the string is constant.
2679 (get_identifier_with_length): Change type of second argument to
2680 size_t in prototype.
2681 * stringpool.c (get_identifier): Undefine the macro before giving
2682 the function definition.
2683 (get_identifier_with_length): Change type of second argument to
2684 size_t in function definition.
2685 * hashtable.c (calc_hash): Change type of second argument to size_t.
27f35b75 2686 (ht_lookup): Change type of third argument to size_t. Reorganize
7bb3fbbb
RS
2687 to speed-up the cases where the hash table slot is empty, or the
2688 first probe matches (i.e. there isn't a collision).
2689 * hashtable.h (ht_lookup): Adjust function prototype.
2690
32247ce9
BI
26912003-08-08 Bernardo Innocenti <bernie@develer.com>
2692
2693 PR target/9697
2694 PR target/11777
2695 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
2696
df38ffef
NB
26972003-08-08 Neil Booth <neil@daikokuya.co.uk>
2698
2699 * common.opt: Add debug switches.
2700 * flags.h (use_gnu_debug_info_extensions): Boolify.
2701 * opts.c (write_symbols, debug_info_level,
2702 use_gnu_debug_info_extensions): Move from toplev.c.
2703 (set_debug_level): New.
2704 (common_handle_options): Handle debug switches.
2705 (print_help): Display target options directly.
2706 * toplev.c (debug_hooks): Don't initialize.
2707 (write_symbols, debug_info_level,
2708 use_gnu_debug_info_extensions): Move to opts.c.
2709 (debug_args, display_help, decode_g_option): Remove.
2710 (process_options): Set no debug if level zero here,
2711 and no-debug-hooks. Error here if impossible debug format selected.
2712 * toplev.h (display_help, decode_g_option): Remove.
2713
679c4092
RS
27142003-08-08 Richard Sandiford <rsandifo@redhat.com>
2715
2716 * tree.c (get_file_function_name_long): Fix size of alloca() area.
2717
c8b5beb8
KC
27182003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
2719
2720 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
c5d19037 2721 and gcc_cv_prog_cmp_skip.
c8b5beb8
KC
2722 * configure: Regenerate.
2723
6b3d1e47
SC
27242003-08-08 Stan Cox <scox@redhat.com>
2725
2726 * config/iq2000: New port.
2727 * config.gcc (iq2000-*-elf): Added.
2728 * doc/install.texi (Specific): Add iq2000 description.
2729
cfa9ee99
AS
27302003-08-08 Andreas Schwab <schwab@suse.de>
2731
7ce27ffb 2732 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
cfa9ee99
AS
2733 and insert missing empty argument.
2734 * configure: Regenerate.
2735
cb99b61a
JDA
27362003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2737
62910663
JDA
2738 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
2739 (attr_length_millicode_call): Likewise.
2740 (attr_length_call): Likewise. Revise some maximum insn lengths.
2741 (attr_length_indirect_call): Likewise.
2742 (output_call): Fix thinko that added extra nop.
2743 * pa.h (IN_NAMED_SECTION_P): Define.
2744
cb99b61a
JDA
2745 PR c++/11712
2746 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
2747 __STDC_EXT__ when using C++ dialect.
2748
97b3d0f0
R
27492003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
2750
7d73a2ba
R
2751 * sh.c (calc_live_regs): If the return address pointer is live,
2752 force pr live.
2753 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
2754 for saves / restores.
2755 (sh_expand_epilogue): If sh_media_register_for_return returns a
2756 register number, flag the instructions that restores PR_MEDIA_REG
2757 as possibly dead.
2758 Remove dead update of offset.
2759 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
2760 we can use the result of get_hard_reg_initial_val.
2761 * sh.md (UNSPEC_RA): New constant.
2762 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
2763 (load_ra). Handle UNSPEC_RA.
2764 (sibcall_media): Use PR_MEDIA_REG.
2765
97b3d0f0
R
2766 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
2767 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
2768 needs saving on SHmedia.
2769
d40c829f
UW
27702003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
2771
2772 * config/s390/s390.md: Replace all occurrences of \\t with \t.
2773
a5342656
RS
27742003-08-07 Richard Sandiford <rsandifo@redhat.com>
2775
2776 * local-alloc.c (combine_regs): Fix comment typo.
2777
fdc49e10
ZW
27782003-08-06 Zack Weinberg <zack@codesourcery.com>
2779
2780 * c-decl.c (builtin_decls): Replace with first_builtin_decl
2781 and last_builtin_decl.
2782 (c_init_decl_processing): Initialize both.
2783 (c_reset_state): Iterate from first_builtin_decl to
2784 last_builtin_decl inclusive to reintroduce builtins.
2785
a32767e4
DM
27862003-08-06 David Mosberger <davidm@hpl.hp.com>
2787
fdc49e10
ZW
2788 * doc/extend.texi (Function Attributes): Document the IA-64 version
2789 of the "model" attribute.
2790
2791 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
2792 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
2793 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
2794
2795 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
2796 (ia64_encode_section_info): Likewise.
2797 (ia64_attribute_table): Add "model" attribute.
2798 (TARGET_ENCODE_SECTION_INFO): Define.
2799 (small_addr_symbolic_operand): New function.
2800 (got_symbolic_operand): Return 0 for a symbolref to an object
2801 in the small address area.
2802 (enum ia64_addr_area): New type.
2803 (small_ident1): New variable.
2804 (small_ident2): Likewise.
2805 (init_idents): New function.
2806 (ia64_get_addr_area): Likewise.
2807 (ia64_encode_addr_area): Likewise.
2808 (ia64_encode_section_info): Likewise.
2809 (ia64_expand_load_address): For symbolic references to objects in
2810 the small-address-area, load the address via gen_rtx_SET() (which,
2811 eventually, will expand into "addl").
a32767e4 2812
8b82c528
PB
28132003-08-06 Per Bothner <pbothner@apple.com>
2814
2815 * line-map.h (fileline): New typedef.
fdc49e10 2816 (struct line_map, linemap_add, linemap_lookup): Use it.
8b82c528
PB
2817 * input.h (struct location_s): Comment notes that long-term we want
2818 to replace it by fileline.
2819
b869f904
R
28202003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
2821
2822 Fix SHcompact exception handling:
2823 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
2824 by the prologue, return a MEM with return_address_pointer_rtx
2825 as address.
2826 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
2827 (RETURN_ADDR_OFFSET): Don't define.
2828 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
2829 registers that are visible in compact mode. Show that SHmedia
2830 registers still exist in compact mode, even if there are not
2831 readily accessible.
2832 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
2833 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
2834 and DW_EH_PE_pcrel for pic data.
2835 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
2836 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
2837 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
2838 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
2839 * sh.md (movsi_media-1): New splitter.
2840
f2feed2c
GP
28412003-08-06 Graeme Peterson <gp@qnx.com>
2842
2843 * config/i386/nto.h: New.
2844 * config/i386/t-nto: New.
2845 * config.gcc (i[34567]86-*-nto-qnx*): New.
2846
1cba0a4e
PE
28472003-08-06 Phil Edwards <pme@gcc.gnu.org>
2848
2849 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
2850
980f6e8e
AM
28512003-08-06 Alan Modra <amodra@bigpond.net.au>
2852
2853 * calls.c (load_register_parameters): Arrange for call_fusage to
2854 report the whole register as used when shifting to the msb.
2855
d25225de
RS
28562003-08-05 Roger Sayle <roger@eyesopen.com>
2857
2858 * builtins.c (expand_builtin): When not optimizing, call the library
2859 function for all builtins that have library functions (except alloca).
2860
b20d9f0c
AO
28612003-08-05 Alexandre Oliva <aoliva@redhat.com>
2862
2863 * c.opt: Introduce -fworking-directory.
2864 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
2865 * c-common.h (flag_working_directory): Declare.
2866 * c-common.c (flag_working_directory): Define.
2867 * c-opts.c (c_common_handle_options): Set it.
2868 (sanitize_cpp_opts): Set...
2869 * cpplib.h (struct cpp_options): ... working_directory option.
2870 (struct cpp_callbacks): Add dir_change.
2871 * cppinit.c (read_original_filename): Call...
2872 (read_original_directory): New. Look for # 1 "directory//"
2873 and process it.
2874 (cpp_read_main_file): Call dir_change callback if working_directory
2875 option is set.
2876 * gcc.c (cpp_unique_options): Pass -g*.
2877 * c-lex.c (cb_dir_change): New.
2878 (init_c_lex): Set dir_change callback.
2879 * toplev.c (src_pwd): New static variable.
2880 (set_src_pwd, get_src_pwd): New functions.
2881 * toplev.h (get_src_pwd, set_src_pwd): Declare.
2882 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
2883 * dwarf2out.c (gen_compile_unit_die): Likewise.
2884 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
2885
e1a4dd13
GDR
28862003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
2887
2888 * pretty-print.h (pp_set_line_maximum_length): Make macro.
2889 (pp_set_prefix): Likewise.
2890 (pp_destroy_prefix): Likewise.
2891 (pp_remaining_character_count_for_line): Likewise.
2892 (pp_clear_output_area): Likewise.
2893 (pp_formatted_text): Likewise.
2894 (pp_last_position_in_text): Likewise.
2895 (pp_emit_prefix): Likewise.
2896 (pp_append_text): Likewise.
2897 (pp_flush): Likewise.
2898 (pp_format_text): Likewise.
2899 (pp_format_verbatim): Likewise.
2900 (pp_tree_identifier): Tidy.
2901 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
2902 (pp_base_format_verbatim): Rename from pp_format_verbatim.
2903 (pp_base_flush): Rename from pp_flush.
2904 (pp_base_set_line_maximum_length): Rename from
2905 pp_set_line_maximum_length.
2906 (pp_base_clear_output_area): Rename from pp_clear_output_area.
2907 (pp_base_set_prefix): Rename from pp_set_prefix.
2908 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
2909 (pp_base_emit_prefix): Rename from pp_emit_prefix.
2910 (pp_base_append_text): Rename from pp_append_text.
2911 (pp_base_formatted_text): Rename from pp_formatted_text.
2912 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
2913 (pp_base_remaining_character_count_for_line): Rename from
2914 pp_remaining_character_count_for_line.
2915 * diagnostic.h (diagnostic_format_decoder): Tidy.
2916 (diagnostic_flush_buffer): Likewise.
2917 * c-pretty-print.h: (pp_c_string_literal): Declare.
2918 (pp_c_real_literal): Likewise.
2919 (pp_c_integer_literal): Likewise.
2920 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
fdc49e10 2921 pp_identifier.
e1a4dd13
GDR
2922 (pp_c_character_literal): Tidy.
2923 (pp_c_string_literal): Make public.
2924 (pp_c_bool_literal): Likewise.
2925 (pp_c_integer_literal): Likewise.
2926 (pp_c_real_literal): Likewise.
2927
2928 * Makefile.in (C_PRETTY_PRINT_H): New variable.
2929 (c-pretty-print.o): Update dependence.
2930
8c98b170
CD
29312003-08-05 Chris Demetriou <cgd@broadcom.com>
2932
2933 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
2934 ".set nomacro" state.
2935 (fix_truncsfsi2_macro): Likewise.
2936
b3c3af2f
SB
29372003-08-05 Steven Bosscher <steven@gcc.gnu.org>
2938
2939 * tree.h (DID_INLINE_FUNC): Remove macro.
2940 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
2941 add tree check for FUNCTION_DECL.
2942 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
2943 (struct tree_decl): Rename inlined_function_flag to
2944 declared_inline_flag.
2945 * c-common.h (c_lang_decl): Remove.
2946 (DECL_ESTIMATED_INSNS): Remove.
2947 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
2948 (DECL_DECLARED_INLINE_P): Remove.
2949 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
2950 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
2951 (finish_function): Make uninlinable a bool. Fixup call to
2952 tree_inlinable_function_p() and fix some code style issues.
2953 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
2954 * cgraph.c (dump_cgraph): Likewise.
2955 * cgraphunit.c (cgraph_decide_inlining): Likewise
2956 (cgraph_finalize_compilation_unit): Likewise.
2957 Also update call to tree_inlinable_function_p().
2958 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
2959 look at DECL_DECLARED_INLINE and reverse logic.
2960 * print-tree.c (print_node): Likewise.
2961 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
2962 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
2963 prototype.
2964 * tree-inline.c (inlinable_function_p): Split up in this function to
2965 check for basic inlining inhibiting conditions, and new
2966 limits_allow_inlining() function. Warn if inlining is impossible
2967 because the inline candidate calls alloca or uses sjlj exceptions.
2968 (limits_allow_inlining): this new function to check if the inlining
2969 limits are satisfied. Throttle from currfn_max_inline_insns, not from
2970 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
2971 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
2972 Update prototypes.
2973 (tree_inlinable_function_p): Make a bool. Update call to
2974 inlinable_function_p
2975 (expand_call_inline): Use limits_allow_inlining() when not in
2976 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
2977 instead see if the function was declared `inline'.
2978
ed8395a0
JZ
29792003-08-05 Josef Zlomek <zlomekj@suse.cz>
2980
2981 * gcse.c (try_replace_reg): Fix updating of note.
2982
02a1994c
RS
29832003-08-04 Roger Sayle <roger@eyesopen.com>
2984
2985 PR middle-end/11771
2986 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
2987 logic in negate_expr, i.e. we don't invert (A-B) for floating
2988 point types unless flag_unsafe_math_optimizations.
2989
f2593a66
RS
29902003-08-04 Roger Sayle <roger@eyesopen.com>
2991
2992 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
2993 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
2994 for floating point expressions with -ffast-math.
2995 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
2996 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
2997
03aa99d4
RS
29982003-08-04 Roger Sayle <roger@eyesopen.com>
2999
3000 * c-common.c (flag_noniso_default_format_attributes): Delete.
3001 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
3002 (c_attrs_initialized): Delete.
3003 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
3004 always call c_init_attributes.
3005 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
3006 set c_attrs_initialized when done.
3007 (c_common_insert_default_attributes): Delete.
3008 * c-common.h (flag_noniso_default_format_attributes): Delete.
3009 (c_coomon_insert_default_attributes): Delete prototype.
3010 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
3011 flag_noniso_default_format_attributes.
3012
3013 * c-decl.c (c_insert_default_attributes): Delete.
3014 * c-tree.h (c_insert_default_attributes): Delete prototype.
3015
3016 * attribs.c (decl_attributes): Don't call insert_default_attributes
3017 langhook. Update function description comment.
3018 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
3019 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
3020 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
3021 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
3022
3023 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
3024 define.
3025
38e596df
RS
30262003-08-04 Richard Sandiford <rsandif@redhat.com>
3027
3028 * config/mips/mips.c (override_options): Disable -G on targets that
3029 have no .section support.
3030 (mips_select_section): Use default_select_section for such targets.
3031
76d2e2c5
NN
30322003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
3033
3034 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
3035 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
3036 * fixinc/fixincl.x: Rebuild.
3037 * fixinc/tests/base/regexp.h: New test.
3038
b2734c68
AO
30392003-08-04 Alexandre Oliva <aoliva@redhat.com>
3040
3041 * c-ppoutput.c (cb_line_change): Don't skip line changing while
3042 parsing macro arguments in the top-level context.
3043
4e87a651
NB
30442003-08-04 Neil Booth <neil@daikokuya.co.uk>
3045
3046 * config.in: Remove HAVE_LSTAT.
3047 * configure, configure.in: Don't test for lstat.
3048
21ecc5a7
GDR
30492003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3050
3051 * opts.c (decode_options): Do language-specific initialization for
3052 the global diagnostic context.
3053 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
3054 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
3055 (LANG_HOOKS_INITIALIZER): Adjust.
fdc49e10
ZW
3056 * langhooks.h (struct lang_hooks): Add new field
3057 initialize_diagnostics.
21ecc5a7
GDR
3058 * langhooks.c (lhd_initialize_diagnostics): Define.
3059
30602003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
3061
3062 * pretty-print.h: Adjust macro definitions.
3063 * pretty-print.c (pp_newline): Rename to pp_base_newline.
3064 (pp_character): Rename to pp_base_character.
3065 (pp_string): Rename to pp_base_string.
3066 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
3067 (pp_newline): Likewise. Adjust.
3068 (pp_c_char): Adjust.
3069
d82f81dd
KG
30702003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3071
3072 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
3073 BUILT_IN_LLABS): Move to miscellaneous section.
3074
335d03ec
NB
30752003-08-03 Neil Booth <neil@daikokuya.co.uk>
3076
cb6eb88a 3077 PR preprocessor/11534
335d03ec
NB
3078 * cppexp.c (parse_defined): Warn only if -pedantic.
3079
76bf2c97
NB
30802003-08-03 Neil Booth <neil@daikokuya.co.uk>
3081
3082 * cppfiles.c (stack_file): Use file path.
3083
178b2b9f
RS
30842003-08-02 Roger Sayle <roger@eyesopen.com>
3085
3086 * builtin-types.def (BT_SSIZE): New primitive type.
3087 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
3088 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
3089 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
3090 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
3091 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
3092 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
3093 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
3094 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
3095 few functions that define default attributes using it.
3096 * c-common.c (c_common_insert_default_attributes): Do nothing.
3097
3098 * doc/extend.texi: Document these "new" builtins.
3099
469146c1
KK
31002003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
3101
3102 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
3103 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
3104 when -mieee-fp set and -shared not set.
3105 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
3106
49634b3a
NB
31072003-08-02 Neil Booth <neil@daikokuya.co.uk>
3108
3109 * cppfiles.c (struct _cpp_file): Rename once_only_next to
3110 next_file. Remove import and pragma_once, add once_only.
3111 (find_file): Add new file structures to the all_files list.
3112 (should_stack_file): Mark #import-ed files once-only, and
3113 don't stack them if the file has already been stacked.
3114 (_cp_mark_file_once_only): Simplify.
3115 * cpphash.h (struct cpp_reader): Rename once_only_files
3116 to all_files. Rename saw_pragma_once to seen_once_only.
3117 (_cpp_mark_file_once_only): Update prototype.
3118 * cpplib.c (do_pragma_once): Update.
3119
cf1ee30c
NB
31202003-08-02 Neil Booth <neil@daikokuya.co.uk>
3121
3122 * cppfiles.c (ENOTDIR): Remove.
3123 (open_file_in_dir): Rename find_file_in_dir. Handle errors
3124 other than ENOENT here.
3125 (once_only_file_p): Rename should_stack_file.
3126 (find_file, open_file_failed, read_file_guts): Report errors
3127 with full path name.
3128 (read_file): Move pch handling to should_stack_file.
3129 (should_stack_file): Handle PCH and once-only issues, and
3130 reading the file.
3131 (stack_file): Don't do file reads.
3132
50612a04
ZD
31332003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3134
3135 * libgcov.c (gcov_exit): Cleanup and fix.
3136 * profile.c (compute_value_histograms): Don't try to read profiles
3137 that are not present.
3138
f6a46818
KG
31392003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3140
f53b62e1
KG
3141 * builtins.def: Categorize.
3142
f6a46818
KG
3143 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
3144 Mind fp rounding.
3145 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
3146
12550591
AT
31472003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
3148
3149 * config.gcc: Enable posix threads by default on darwin.
3150
5f77fbd4
JJ
31512003-08-01 Jakub Jelinek <jakub@redhat.com>
3152
3153 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
3154 even if nehedges1 is 0.
3155
f4dbf936
NN
31562003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
3157
3158 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
3159 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
3160 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
3161 and defintions.
3162
3163 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
3164 * fixinc/fixincl.x: Regenerate.
3165 * fixinc/tests/base/math.h: Regenerate to match test_text change.
3166
c76becbd
RO
31672003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3168
3169 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
3170
f920765d
RK
31712003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3172
3173 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
3174 for accesses to exc_ptr.
3175
8e5f33ff
GK
31762003-08-01 Geoffrey Keating <geoffk@apple.com>
3177
3178 * doc/sourcebuild.texi (Front End Directory): Don't make references
3179 to libsubdir, it's not part of the interface to frontends.
3180 * doc/install.texi (Configuration): Help users read faster by saying
3181 that GCC's configure options are the standard autoconf ones.
3182 Mention --libdir. Update the default rules for finding the
3183 assembler. Don't use libsubdir since we haven't said what it means.
3184 (Specific): In the Solaris 7 notes, update the place to put the
3185 assembler.
3186 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
3187 * doc/cpp.texi (Search Path): Actually, the search path
3188 depends on libdir, which can relocate with cpp.
3189 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
3190 now a private interface between the Makefile and the driver.
3191
75c20980
RH
31922003-08-01 Richard Henderson <rth@redhat.com>
3193
3194 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
3195
3196 * varasm.c (lookup_constant_def): New function.
3197 * rtl.h (lookup_constant_def): Declare it.
fdc49e10 3198 * dwarf2out.c (loc_descriptor_from_tree): Use it.
75c20980
RH
3199 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
3200
f91f41b2
ZW
32012003-08-01 Zack Weinberg <zack@codesourcery.com>
3202
3203 * c-decl.c (gettags, pushdecl_function_level): Delete.
3204 (last_function_parm_vars): Rename last_function_parm_others.
3205 (current_function_parm_vars): Rename current_function_parm_others.
3206 (struct c_scope): Rewrite comment explaining this data structure.
3207 Add names_last, blocks_last, parms_last fields. Rename
3208 incomplete_list to incomplete.
3209 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
3210 (poplevel): Ignore second argument. No need to nreverse
3211 anything. Restructure such that each list is processed
3212 exactly once. Use 'const location_t *locus' syntactic sugar
3213 variable where useful. Issue unused variable warnings
3214 ourselves, do not rely on function.c.
3215 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
3216 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
3217 (implicitly_declare): decl cannot be error_mark_node.
3218 (undeclared_variable): Manipulate scope structure directly.
3219 (c_make_fname_decl): Likewise.
3220 (getdecls, c_init_decl_processing): Fix comment.
3221 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
3222 for 'last' variable.
3223 (grokparms): No need to nreverse parms list.
3224 (store_parm_decls_newstyle): Set up the parms_last and
3225 names_last fields of the new scope too.
3226 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
3227 on parms to begin with; check this under ENABLE_CHECKING. Set
3228 up parms_last.
3229 (check_for_loop_decls): Refer directly to current_scope->tags.
3230 Use consistent quote style in diagnostics.
3231 (c_write_global_declarations): The names list is not backward.
3232
3233 * c-common.h: Don't prototype gettags.
3234 * c-parse.in: Call poplevel with second argument 0 always.
3235
a8eb1db5
KG
32362003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3237
3238 * builtins.def: Resort builtins.
3239
da7cfe13
KG
32402003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3241
3242 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
3243 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
3244 Prepend "__builtin_" onto NAME with string concatenation. Remove
3245 explicit "__builtin_" from each macro call.
3246
3247 Reformat entire file.
3248
ea8eb0b9
KG
32492003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3250
3251 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
3252 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
3253
61152e48 32542003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
3ef093a8
AK
3255
3256 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
3257 CCL1, or CCL2 modes with floating point operations.
3258
3259 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
3260 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
3261 "*subdf3_cconly"): New insns.
3262 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
3263
bf42e45b
NB
32642003-08-01 Neil Booth <neil@daikokuya.co.uk>
3265
3266 * Makefile.in: Refine dependencies.
3267 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
3268 * c.opt: Update help for -Wimport.
3269 * cppfiles.c: Include hashtab.h. Update comments.
3270 (stack_file): Read the file before updating dependencies.
3271 (once_only_file_p): Be smarter about marking once-only files.
3272 (_cpp_mark_file_once_only): Correct the check for existence on
3273 the list.
3274 (open_file_failed): Use name not path, which is NULL.
3275 * cpphash.h: Don't include hashtab.h.
3276 (struct _cpp_file): Remove.
3277 (struct cpp_reader): Update.
3278 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
3279 * cpplib.h (struct cpp_options): Remove warn_import.
3280 (cpp_simplify_path): Remove.
3281
a5bcc582
NS
32822003-08-01 Nathan Sidwell <nathan@codesourcery.com>
3283
3284 PR c++/11295
3285 * doc/extend.texi (Statement Expressions): Document C++ semantics.
3286
2fdd01a0
ST
32872003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
3288
3289 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
3290
3c260e1d
KG
32912003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3292
3293 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
3294 throughout.
3295 * builtins.def: Likewise.
3296
40209195
JM
32972003-07-31 Jason Merrill <jason@redhat.com>
3298
3299 * Makefile.in (bubblestrap): Don't require a previous full
3300 bootstrap.
3301
3302 * expr.c (mostly_zeros_p): No longer static.
3303 * tree.h: Declare it.
3304 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
3305 unless we need to do substitutions.
3306
2598550f
RS
33072003-07-31 Roger Sayle <roger@eyesopen.com>
3308
3309 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
3310 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
3311 as pow(x,2.0) when the latter will be expanded back into x*x.
3312 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
3313 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
3314 pow can never set errno when used with an integer exponent.
3315 Always use expand_powi when exponent is -1, 0, 1 or 2.
3316 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
3317 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
3318 the pow forms of these expressions.
3319
a8ee6e2d
GK
33202003-07-31 Geoffrey Keating <geoffk@apple.com>
3321
3322 * Makefile.in (libexecdir): New.
3323 (libsubdir): Use gcc instead of gcc-lib.
3324 (libexecsubdir): New.
3325 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
3326 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
3327 gcc-lib.
3328 (installdirs): Make libexecsubdir.
3329 (install-common): Put executables in libexecsubdir.
3330 (itoolsdir): Use libexecsubdir.
3331 (itoolsdatadir): New.
3332 (install-mkheaders): Separate data files and executables.
3333 (install-collect2): Put executables in libexecsubdir.
3334 (uninstall): Remove libexecsubdir.
3335 * mkheaders.in: Update for new arrangement of files.
3336 (libexecdir): New.
3337 (libexecsubdir): New.
3338 (itoolsdir): Use libexecsubdir.
3339 (itoolsdatadir): New.
3340 * gcc.c (gcc_libexec_prefix): New.
3341 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
3342 (standard_exec_prefix_1): Use libexec.
3343 (standard_exec_prefix_2): New.
3344 (standard_libexec_prefix): New.
3345 (process_command): Update for new arrangement of files. Compute
3346 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
3347
631099c9
NN
33482003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
3349
3350 * inclhack.def (stdio_va_list): Avoid bogus replacement which
3351 triggers on Interix.
3352 * fixincl.x: Regenerate.
3353
a132b6a8
JJ
33542003-07-31 Jakub Jelinek <jakub@redhat.com>
3355
3356 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
3357 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
3358
c67b2a58
RK
33592003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3360
3361 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
3362
40e941af
PB
33632003-07-31 Per Bothner <pbothner@apple.com>
3364
3365 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
3366 (add_input_filename): New function.
3367 (handle_options): Call add_input_filename directly instead of
3368 with a lang hook.
3369 * opts.h (in_fnames, num_in_fnames): Moved here.
3370 (add_input_filename): Declare.
3371 * c-decl.c: Need to #include opts.h.
3372 * Makefile.in (c-decl.o): Also depends on opts.h.
3373 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
3374 (c_common_handle_filename): Replaced by add_input_filename.
3375 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
3376 Remove.
3377 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
3378 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
3379 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
3380 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
3381
9143c6b7
ZD
33822003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3383
3384 * combine.c (try_combine): Set JUMP_LABEL for newly created
3385 unconditional jump.
3386
b7de5864
ZD
33872003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3388
3389 * fold-const.c (fold): Fold some comparisons of bit operations.
3390
fdacb904
JH
3391Thu Jul 31 19:49:53 CEST 2003 Jan Hubicka <jh@suse.cz>
3392
3393 * cgraph.c (create_edge): Fix typo.
3394 * i386.c (pic_symbolic_operand): Reorder tests.
3395
8100063e
NS
33962003-07-31 Nathan Sidwell <nathan@codesourcery.com>
3397
3398 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
3399 more fully.
3400 (Gcov Data Files): Update.
3401
2a4e8ebc
RO
34022003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3403
3404 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
3405 default.
3406
3407 * gthr-posix.c: New file.
3408 * gthr-posix.h: Define _REENTRANT if missing.
3409 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
3410
3411 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
3412 by gthr-posix.o.
3413 * config/alpha/t-osf-pthread: New file.
3414
3415 * fixinc/inclhack.def (alpha_pthread): New fix.
3416 * fixinc/fixincl.x: Regenerate.
3417 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
3418
3419 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
3420 warning.
3421 Fixes PR bootstrap/9330.
3422
689a714d
RO
34232003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3424
3425 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
3426 without GNU ld.
3427 Update comment.
3428 * configure: Regenerate.
3429
caf819ae
VM
34302003-07-31 Vladimir Makarov <vmakarov@redhat.com>
3431
f91f41b2
ZW
3432 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
3433 setter.
caf819ae 3434
1aa0a5f6
RS
34352003-07-30 Roger Sayle <roger@eyesopen.com>
3436
3437 * builtins.def: Alphabetize.
3438
4bd0bee9
MK
34392003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
3440
3441 * doc/c-tree.texi: Normalize spellings of "lowercase" and
3442 "uppercase".
3443 * doc/cpp.texi: Likewise.
3444 * doc/md.texi: Likewise.
3445 * doc/rtl.texi: Likewise.
3446 * doc/tm.texi: Likewise.
3447
7f02cb5c
MK
34482003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
3449
3450 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
3451 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
3452 of cc1obj.
3453
498887c8
CD
34542003-07-30 Chris Demetriou <cgd@broadcom.com>
3455
3456 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
3457 macros before defining them.
3458
10bbf137
UW
34592003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
3460
f91f41b2 3461 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
10bbf137
UW
3462 UNSPECV_BLOCKAGE): New constants.
3463 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
3464 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
3465 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
3466 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
3467
3468 (all insns and expanders): Write output control string as brace block
3469 where appropriate. Remove \-escapes for doublequote characters.
3470
3f2eae23
JH
3471Thu Jul 31 01:04:19 CEST 2003 Jan Hubicka <jh@suse.cz>
3472
3473 * gcse.c (insert_store): Fix typo in previous patch.
3474
f0babc9a
NB
34752003-07-30 Neil Booth <neil@daikokuya.co.uk>
3476
3477 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
3478
edeac5de
AK
34792003-07-30 Andi Kleen <ak@muc.de>
3480
3481 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
3482
6e885ee3
ZD
34832003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3484
3485 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
3486 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
3487 GCOV_N_VALUE_COUNTERS): New.
3488 * profile.c (compute_value_histograms): New static function.
3489 (branch_prob): Read back the value histograms.
3490 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
3491 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
3492 * value-prof.c: Add comment on reading the profile.
3493 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
3494 * doc/invoke.texi (-fprofile-values): Document behavior with
3495 -fbranch-probabilities.
3496
0e6cb2cb
DE
34972003-07-30 David Edelsohn <edelsohn@gnu.org>
3498
3499 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
3500
656ec3b1
UW
35012003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
3502
3503 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
3504 symbolically.
3505
a0c8285b
JH
3506Wed Jul 30 19:12:10 CEST 2003 Jan Hubicka <jh@suse.cz>
3507
3508 * gcse.c (insert_store): Ignore fake edges.
3509
3510 * c-common.c (flag_vtable_gc): Kill.
3511 * c-common.g (flag_vtable_gc): Kill.
3512 * c-opts (c_common_handle_option): Kill.
3513 * c.opt (fvtable-gc): Kill.
3514 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
3515 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
3516 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
3517
3518 * invoke.texi (-ftable-gc): Kill documentation.
3519
3520 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
3521 just because function body is missing.
3522
3523 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
3524
b2e863b8
RM
35252003-07-30 Ranjit Mathew <rmathew@hotmail.com>
3526
3527 * unwind-sjlj.c: Fix typo in file description.
3528
9206d736
AM
35292003-07-30 Alan Modra <amodra@bigpond.net.au>
3530
3531 * calls.c (load_register_parameters): When shifting reg sized values
3532 to the msb, move the value to a reg first.
3533
9074464c
GK
35342003-07-29 Geoffrey Keating <geoffk@apple.com>
3535
3536 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
3537 * line-map.h (linemap_add): Update comments.
3538 * line-map.c (linemap_add): Update comments, interpret zero-length
3539 filename as "<stdin>".
3540
e55e4f68
NN
35412003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
3542
3543 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
3544
55d54003
ZW
35452003-07-29 Zack Weinberg <zack@codesourcery.com>
3546
3547 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
3548 New static variables.
3549 (struct c_scope): Add parms and warned_forward_parm_decls
3550 fields; remove parm_order.
3551 (storedecls, storetags): Delete.
3552 (poplevel): Also clear bindings on the parms chain.
3553 (pushdecl): Handle forward declarations of parameters, and
3554 chain PARM_DECLs on the parms list, not the names list.
3555 (lookup_name_current_level): Check for PARM_DECLs on the parms
3556 list too.
3557 (push_parm_decl): Don't update parm_order.
3558 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
3559 warning, only once per parameter list, and set TREE_ASM_WRITTEN
3560 on the decls here. Then move the forward decls to the names list.
3561 (grokparms): Set last_function_parm_vars.
3562 (get_parm_info): Don't use gettags or getdecls. No need to
3563 extract non-parms from the parms list, or reorganize the parms
3564 list. Feed nonparms back in the TREE_TYPE of the list node
3565 returned. Issue only one error per parameter list for "void"
3566 appearing more than once in said parameter list. Collapse
3567 parmlist_tags_warning into this function to avoid double scan
3568 of tags list.
3569 (start_function): Set current_function_parm_vars.
3570 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
3571 directly. Get non-parms from current_function_parm_vars; no
3572 need to extract them from the parms chain. Properly bind tags
3573 in the new scope.
3574 (store_parm_decls_oldstyle): No need to extract non-parameters
3575 from the parms chain, nor to store them back afterward. Move
3576 declaration to top of function, restructure code reordering
3577 DECL_ARGUMENTS.
3578 (store_parm_decls): No need to save and restore warn_shadow.
3579 * c-parse.in: Don't call parmlist_tags_warning nor
3580 clear_parm_order. Call mark_forward_parm_decls when forward
3581 parm decls are encountered.
3582 * c-tree.h: Prototype mark_forward_parm_decls; not
3583 clear_parm_order or parmlist_tags_warning.
3584
18c81520
GK
35852003-07-29 Geoffrey Keating <geoffk@apple.com>
3586
3587 * c-common.c (allow_pch): Remove.
3588 * c-common.h (allow_pch): Remove.
3589 (c_common_no_more_pch): Declare.
3590 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
3591 * c-pch.c: Include hosthooks.h.
3592 (c_common_valid_pch): Don't check allow_pch.
3593 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
3594 (c_common_no_more_pch): New.
3595 * ggc-common.c: Include hosthooks.h.
3596 (gt_pch_save): Call gt_pch_get_address.
3597 (gt_pch_restore): Call gt_pch_use_address.
3598 * hooks.c (hook_voidp_size_t_null): New.
3599 (hook_bool_voidp_size_t_false): New.
3600 * hooks.h (hook_voidp_size_t_null): New.
3601 (hook_bool_voidp_size_t_false): New.
3602 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
3603 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
3604 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
3605 HOST_HOOKS_GT_PCH_USE_ADDRESS.
3606 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
3607 gt_pch_use_address.
3608 * doc/hostconfig.texi (Host Common): Document
3609 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
3610 * Makefile.in (c-pch.o): Depend on hosthooks.h.
3611 (ggc-common.o): Likewise.
3612
3613 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
3614 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
3615 (pch_address_space): New.
3616 (darwin_rs6000_gt_pch_get_address): New.
3617 (darwin_rs6000_gt_pch_use_address): New.
3618
8f9b4009
NB
36192003-07-29 Neil Booth <neil@daikokuya.co.uk>
3620
cb6eb88a
NB
3621 PR preprocessor/11569
3622 PR preprocessor/11649
8f9b4009
NB
3623 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
3624 * cppfiles.c: Completely rewritten.
3625 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
3626 struct cpp_path is now struct cpp_dir.
3627 (remove_duplicates): Don't simplify path names.
3628 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
3629 cpp_stack_file.
3630 * cpphash.h: Include hashtab.h.
3631 (_cpp_file): Declare.
3632 (struct cpp_buffer): struct include_file is now struct _cpp_file,
3633 and struct cpp_path is now struct cpp_dir. Rename members.
3634 (struct cpp_reader): Similarly. New members once_only_files,
3635 file_hash, file_hash_entries, quote_ignores_source_dir,
3636 no_search_path, saw_pragma_once. Remove all_include_files and
3637 max_include_len. Make some members bool.
3638 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
3639 (_cpp_stack_file): Renamed from _cpp_read_file.
3640 (_cpp_stack_include): Renamed from _cpp_execute_include.
3641 (_cpp_init_files): Renamed from _cpp_init_includes.
3642 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
3643 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
3644 (cpp_read_next_file): Rename and move to cppfiles.c.
3645 (cpp_read_main_file): Update.
3646 * cpplib.c (run_directive): Update for renamed members.
3647 (do_include_common, _cpp_pop_buffer): Update.
3648 (do_import): Undeprecate #import.
3649 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
3650 * cpplib.h: Remove file_name_map_list.
3651 (cpp_options): Remove map_list.
3652 (cpp_dir): Rename from cpp_path. New datatype for name_map.
3653 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
3654
a6400add
PE
36552003-07-29 Phil Edwards <pme@gcc.gnu.org>
3656
3657 * Makefile.in: Make stamp-objdir safe for parallel builds.
3658
b2790407
PE
36592003-07-29 Phil Edwards <pme@gcc.gnu.org>
3660
3661 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
3662 (info): Depend on stmp-docobjdir.
3663
8e3940b2
RO
36642003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3665
3666 * configure: Regenerate.
3667
987bf56f
JH
3668Tue Jul 29 19:24:49 CEST 2003 Jan Hubicka <jh@suse.cz>
3669
3670 PR C++/11131
3671 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
3672 in !unit-at-a-time mode.
3673
5f0eabcc
GK
36742003-07-28 Geoffrey Keating <geoffk@apple.com>
3675
3676 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
3677 main function.
3678
7b6d72fc
MM
36792003-07-28 Mark Mitchell <mark@codesourcery.com>
3680
3681 PR c++/11667
3682 * c-common.c (shorten_compare): Take into account differences
3683 between C and C++ representation for enumeration types.
3684 * tree.h (set_min_and_max_values_for_integral_type): Declare.
3685 * stor-layout.c (set_min_and_max_values_for_integral_type): New
3686 function, broken out from ...
3687 (fixup_signed_type): ... here and ...
3688 (fixup_unsigned_type): ... here.
3689
14077d68
ZW
36902003-07-28 Zack Weinberg <zack@codesourcery.com>
3691
3692 * c-decl.c: Update commentary, adjust blank lines throughout.
3693 (struct c_scope): Fix indentation. Reorder members so
3694 outer-context pointers come first, booleans last.
3695 (duplicate_decls, define_label): Use a 'locus' variable for
3696 diagnostic locations in a few more places.
3697 (warn_if_shadowing): Un-split a conditional that fits on one line.
3698 (c_init_decl_processing): No need to clear current_scope and
3699 current_function_scope.
3700 (start_decl): Merge if/else if statements with same action.
3701 (push_parm_decl): Rename old_immediate_size_expand to use
3702 save_foo convention; save/restore around entire function.
3703 (grokdeclarator): Remove unnecessary braces.
3704
85617eba
HPN
37052003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
3706 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
3707
3708 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
3709 when warn_declaration_after_statement. Call pedwarn_c90, not
3710 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
3711 * c-common.c (warn_declaration_after_statement): Define.
3712 * c-common.h (warn_declaration_after_statement): Declare.
3713 * c.opt (Wdeclaration-after-statement): New.
3714 * c-errors.c (pedwarn_c90): New function.
3715 * c-opts.c (c_common_handle_option) <case
3716 OPT_Wdeclaration_after_statement>: New.
3717 * c-tree.h (pedwarn_c90): Declare.
3718 * doc/invoke.texi (Option Summary): Document
3719 -Wdeclaration-after-statement.
3720 (Warning Options): Ditto.
3721
f527d196
JH
3722Mon Jul 28 20:13:06 CEST 2003 Jan Hubicka <jh@suse.cz>
3723
3724 * i386.md (memory attribute) Avoid accessing uninitialized memory
3725 for ishift1 type instructions.
3726
5dfa45d0
JJ
37272003-07-28 Jakub Jelinek <jakub@redhat.com>
3728
3729 * configure.in (--enable-checking): Add fold category.
3730 (ENABLE_FOLD_CHECKING): Define if requested.
3731 * configure: Rebuilt.
3732 * config.in: Rebuilt.
3733 * doc/install.texi: Document it.
3734 * fold-const.c: Include md5.h.
3735 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
3736 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
3737 print_fold_checksum): New functions.
3738
3739 * fold-const.c (fold): Never modify argument passed to fold, instead
3740 change a copy and return it.
3741 * convert.c (convert_to_integer): Likewise.
3742
447673de
NN
37432003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
3744
14077d68 3745 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
447673de
NN
3746 cleanup of junk after #else and #endif directives. Collapse repeated
3747 clauses into for statment.
3748
3749 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
3750
66db6b62
ZW
37512003-07-27 Zack Weinberg <zack@codesourcery.com>
3752
a8ccdffe
ZW
3753 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
3754 (keep_next_if_subblocks): Rename next_is_function_body.
3755 (pushlevel): Adjust commentary. Always set ->keep on the
3756 outermost level of a function. Don't set ->keep_if_subblocks.
3757 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
3758 (store_parm_decls): Adjust to match.
3759 (finish_function): Adjust to match.
3760 Call poplevel with all three arguments zero.
3761
66db6b62
ZW
3762 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
3763 New functions split out of store_parm_decls.
3764 Avoid unnecessary work. Use local variables consistently.
3765 (store_parm_decls): Likewise.
3766
3767 (finish_function): No need to set functionbody flag on call to
3768 poplevel.
3769 (struct language_function): Remove scope field.
3770 (c_push_function_context, c_pop_function_context): No need to
3771 save and restore current_scope.
3772
90ea7324
NS
37732003-07-27 Nathan Sidwell <nathan@codesourcery.com>
3774
3775 * doc/extend.texi (Deprecated Features): Implicit typename is
3776 gone. Default args on types is going.
3777
11a004ef
R
37782003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
3779
3780 * Makefile.in (ifcvt.o): Depend on target.h
3781 * ifcvt.c (target.h): Include.
3782 (if_convert): Don't call mark_loop_exit_edges if we can't
3783 modify jumps.
3784
6cbf57c9
GP
37852003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
3786
3787 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
3788
a6c14a64
RH
37892003-07-26 Richard Henderson <rth@redhat.com>
3790
3791 PR inline-asm/11676
3792 * cse.c (count_reg_usage): Handle asm_operands properly.
3793
cc42f5f5
RS
37942003-07-26 Roger Sayle <roger@eyesopen.com>
3795
3796 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
3797 (DEF_EXT_FALLBACK_BUILTIN): Delete.
3798 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
3799 the regular DEF_EXT_LIB_BUILTIN macro.
3800 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
3801 the regular DEF_LIB_BUILTIN macro.
3802 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
3803 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
3804 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
3805 DEF_EXT_LIB_BUILTIN macro.
3806
3807 * c-decl.c (duplicate_decls): Remove code to handle builtin
3808 functions prototyped without an argument list.
3809
92e7a6ef
DS
38102003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
3811
3812 * config/i386/winnt.c: Revert 2003-07-08 change.
3813 (i386_pe_section_type_flags): Remove error_with_decl here too.
3814
ba9cfcb5
GDR
38152003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
3816
3817 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
3818 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
3819 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
3820 (v850_handle_data_area_attribute): Likewise.
3821
0e5da0be
GK
38222003-07-26 Geoffrey Keating <geoffk@apple.com>
3823
66db6b62 3824 * varasm.c (output_constant_def_contents): Use
18f3e349
GK
3825 ASM_DECLARE_CONSTANT_NAME if defined.
3826 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
3827 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
3828 objects get at least one byte to prevent assembler problems.
3829 (ASM_DECLARE_CONSTANT_NAME): New.
3830
d2908a50
GK
3831 * Makefile.in (libbackend.o): Remove options_.h.
3832 (mostlyclean): Likewise.
3833
0e5da0be
GK
3834 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
3835 insert a label at the end of an function under Mach-O.
863d3dfb
GK
3836
3837 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
3838
36252949
AH
38392003-07-25 Aldy Hernandez <aldyh@redhat.com>
3840
3841 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
3842 equality.
3843 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
3844
3845 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
3846
0fe37f68
GDR
38472003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3848
3849 * doc/passes.texi (Passes): Mention pretty-printing and
3850 diagnostic files.
3851
50fc59e7
NS
38522003-07-25 Nathan Sidwell <nathan@codesourcery.com>
3853
3854 * doc/extend.texi (Function Attributes): GNU C++ does now allow
3855 unused parameter decls.
3856 (Attribute Syntax): GNU C++ does not allow label attributes to be
3857 after the ':'.
3858
cd475805
GDR
38592003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3860
3861 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
3862 (objc_declare_class): Likewise.
3863 (error_with_ivar): Likewise.
3864 (start_class): Likewise.
3865 (warn_with_method): Likewise.
3866
b6fe0bb8
GDR
38672003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
3868
3869 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
66db6b62 3870 from GCC.
b6fe0bb8
GDR
3871 * calls.c (try_to_integrate): Don't use xxx_with_decl.
3872 (expand_call): Likewise.
3873 * dwarfout.c (output_reg_number): Likewise.
3874 * expr.c (expand_expr): Likewise.
3875 * function.c (assign_temp): Likewise.
3876 (uninitialized_vars_warning): Likewise.
3877 (setjmp_args_warning): Likewise.
3878 (expand_function_end): Likewise.
3879 * stmt.c (fixup_gotos): Likewise.
3880 (warn_about_unused_variables): Likewise.
3881 (expand_end_bindings): Likewise.
3882 * stor-layout.c (layout_decl): Likewise.
3883 (place_field): Likewise.
3884 * toplev.c (check_global_declarations): Likewise.
3885 (rest_of_handle_inlining): Likewise.
3886 (default_tree_printer): New function.
3887 (general_init): Initialize diagnostic machinery before routing
3888 signals to the ICE machinery. Set default tree printer.
3889 * toplev.h (pedwarn_with_decl): Remove declaration.
3890 (warning_with_decl): Likewise.
3891 (error_with_decl): Likewise.
66db6b62 3892 (pedwarn): Remove attribute for the time being.
b6fe0bb8
GDR
3893 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
3894 * varasm.c (named_section): Likewise.
3895 (make_decl_rtl): Likewise.
3896 (assemble_variable): Likewise.
3897 (merge_weak): Likewise.
3898 (declare_weak): Likewise.
3899
3900 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
3901 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
3902 (format_with_decl): Remove.
3903 (diagnostic_for_decl): Likewise.
3904 (pedwarn_with_decl): Likewise.
3905 (warning_with_decl): Likewise.
3906 (error_with_decl): Likewise.
3907 (diagnostic_initialize): Adjust.
3908 (diagnostic_count_diagnostic): Likewise.
3909 (announce_function): Likewise.
3910 (lhd_print_error_function): Likewise.
3911 (diagnostic_report_current_module): Likewise.
3912 (default_diagnostic_starter): Likewise.
3913 (diagnostic_report_diagnostic): Likewise.
3914 (default_diagnostic_finalizer): Likewise.
3915 (verbatim): Likewise.
3916 (error): Likewise.
3917 (warning): Likewise.
3918 * opts.c (common_handle_option): Likewise.
3919 * pretty-print.c: New file.
3920 * c-pretty-print.h (pp_base): Override.
3921 * c-pretty-print.c: Adjust use of macros throughout.
3922 (pp_buffer): New macro.
3923 (pp_newline): Likewise.
3924 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
3925 * Makefile.in (DIAGNOSTIC_H): New variable.
3926 (c-errors.o): Use it.
3927 (c-objc-common.o): Likewise.
3928 (c-common.o): Likewise.
3929 (c-opts.o): Likewise.
3930 (c-format.o): Likewise.
3931 (diagnostic.o): Likewise.
3932 (opts.o): Likewise.
3933 (toplev.o): Likewise.
3934 (rtl-error.o): Likewise.
3935 (dwarf2out.o): Likewise.
3936 (jump.o): Likewise.
3937 (pretty-print.o): New rule.
3938
868b8cda
RS
39392003-07-24 Roger Sayle <roger@eyesopen.com>
3940
3941 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
3942 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
3943 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
3944 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
3945 (DEF_FRONT_END_LIB_BUILTIN): Delete.
3946 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
3947 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
3948
3949 * builtins.c (build_string_literal): New function to construct
3950 a char* pointer to a string literal.
3951 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
3952 "rtx target" to be consistent with other expand_builtin_* functions.
3953 Change 3rd argument from "int unlocked" to "bool unlocked".
3954 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
3955 c-common.c to avoid front-end dependencies. Optimize printf("")
3956 as a no-op when the result isn't required. Handle embedded NULs
3957 in format string.
3958 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
3959 from c-common.c to avoid front-end dependencies. Likewise, optimize
3960 fprintf(fp,"") as a no-op when the result isn't required, evaluating
3961 fp for side-effects. Handle embedded NULs in format string.
3962 (expand_builtin_sprintf): Fix typo.
3963 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
3964 optimizing. Adjust calls of expand_builtin_fputs to match the API
3965 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
3966 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
3967 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
3968
3969 * c-common.c (is_valid_printf_arglist): Delete.
3970 (c_expand_builtin): Delete.
3971 (c_expand_builtin_printf): Moved to builtins.c. Delete.
3972 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
3973 (c_expand_expr): No longer treat CALL_EXPRs specially.
3974 (CALLED_AS_BUILT_IN): Delete.
3975
2a868ea4
ZD
39762003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3977
3978 PR optimization/11631
3979 * gcse.c (store_motion): Connect infinite loops to exit.
3980
de7df9eb
JM
39812003-07-24 Jason Merrill <jason@redhat.com>
3982
3983 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
3984 (boolean_true_node, boolean_false_node): Likewise.
3985 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
3986 * tree.c (build_common_tree_nodes): Init boolean_type_node.
3987 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
3988 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
3989 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
3990 (truthvalue_true_node): Renamed from boolean_true_node.
3991 (truthvalue_false_node): Renamed from boolean_false_node.
3992 * c-decl.c: Just set truthvalue_* to integer_*.
3993 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
3994
6907ddd3
RS
39952003-07-24 Roger Sayle <roger@eyesopen.com>
3996
3997 * c-decl.c (match_builtin_function_types): New subroutine of
3998 duplicate_decls to test whether a redeclaration of a builtin
3999 function is suitably close, i.e. the return type and all of
4000 the argument types have the same modes as the builtin expects.
4001 (duplicate_decls): Fuzzy type matching for builtin functions
4002 moved to match_builtin_function_types.
4003
84d45ad1
ZD
40042003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4005
4006 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
4007 flag correctly.
4008
f8521984
ZW
40092003-07-24 Zack Weinberg <zack@codesourcery.com>
4010
4011 * c-decl.c: Search-and-replace change 'binding level' to
4012 'scope' in commentary.
4013 (struct binding_level): Now struct c_scope.
4014 (current_binding_level): Now current_scope.
4015 (free_binding_level): Now scope_freelist.
4016 (current_function_level): Now current_function_scope.
4017 (global_binding_level): Now global_scope.
4018 (make_binding_level): Now make_scope.
4019 (pop_binding_level): Now pop_scope.
4020
0f31374d
RO
40212003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4022
4023 * configure.in (libgcc_visibility): Add missing whitespace.
4024
270606ac
RH
40252003-07-24 Richard Henderson <rth@redhat.com>
4026
4027 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
4028 __gcc_personality_v0.
f8521984 4029
5f08e44f
RO
40302003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4031
4032 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
4033
a4878735
NS
40342003-07-24 Nathan Sidwell <nathan@codesourcery.com>
4035
4036 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
4037 documentation missed from my 2003-07-09 patch.
4038
5aaaf0e8
NN
40392003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
4040
4041 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
4042 it's not provided.
4043 * configure: Rebuild.
4044
8f5b6d29
SB
40452003-07-24 Steven Bosscher <steven@gcc.gnu.org>
4046
4047 PR c/10602
4048 * c-typeck.c (type_lists_compatible_p): Do not compare
4049 arguments if one of them is an error_mark_node
4050
acd0b319
AM
40512003-07-24 Alan Modra <amodra@bigpond.net.au>
4052
4053 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
4054 if current_function_calls_eh_return.
4055
28b619b2
MM
40562003-07-23 Mark Mitchell <mark@codesourcery.com>
4057
4058 * doc/c-tree.texi (OFFSET_TYPE): Update description.
4059
07154156
BW
40602003-07-23 Bob Wilson <bob.wilson@acm.org>
4061
4062 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
4063 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
4064 __umodsi3, __modsi3): Increase frame size to 32.
4065
5f5bfdd0
GK
40662003-07-23 Geoffrey Keating <geoffk@apple.com>
4067
4068 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
4069 prototype.
4070
11b8e71c
MM
40712003-07-23 Mark Mitchell <mark@codesourcery.com>
4072
28b619b2
MM
4073 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
4074
11b8e71c
MM
4075 PR optimization/10679
4076 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
4077
9d6b7c09
JDA
40782003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4079
4080 PR target/11607 and PR target/11516
4081 * pa.md (extzv, extv, insv): Revert latter half of last patch.
4082
a5ac359a
MM
40832003-07-22 Mark Mitchell <mark@codesourcery.com>
4084
4085 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
4086 * varasam.c (output_constant): Likewise.
4087
938d968e
KH
40882003-07-22 Kazu Hirata <kazu@cs.umass.edu>
4089
4090 * alias.c: Fix comment formatting.
4091 * c-common.c: Likewise.
4092 * c-decl.c: Likewise.
4093 * c-opts.c: Likewise.
4094 * combine.c: Likewise.
4095 * cpplib.c: Likewise.
4096 * diagnostic.c: Likewise.
4097 * dojump.c: Likewise.
4098 * final.c: Likewise.
4099 * fold-const.c: Likewise.
4100 * gcc.c: Likewise.
4101 * gcse.c: Likewise.
4102 * ggc-page.c: Likewise.
4103 * jump.c: Likewise.
4104 * loop.c: Likewise.
4105 * mips-tfile.c: Likewise.
4106 * recog.c: Likewise.
4107 * regclass.c: Likewise.
4108 * regmove.c: Likewise.
4109 * tree.c: Likewise.
4110 * tree.h: Likewise.
4111
b3147029
PB
41122003-07-22 Per Bothner <pbothner@apple.com>
4113
4114 * line-map.c (add_line_map): Handle invalid LEAVE request.
4115 Fixes PR preprocessor/11361.
4116
53f72d60
PB
41172003-07-22 Per Bothner <pbothner@apple.com>
4118
4119 * diagnostic.c.(diagnostic_report_current_module): Update to match
4120 2003-06-05 changes to push_srcloc and pop_srcloc.
4121
5cf0212f
WB
41222003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
4123
4124 * doc/trouble.texi: Better document two-stage name lookup.
4125
c7453384
EC
41262003-07-22 Eric Christopher <echristo@redhat.com>
4127
4128 * config/s390.c (s390_valid_pointer_mode): New.
4129 (TARGET_VALID_POINTER_MODE): Use.
4130 (s390_emit_prologue): Add tpf profiling hooks.
4131 (s390_emit_epilogue): Ditto.
4132 * config/s390.h (MASK_TPF): New.
4133 (TARGET_TPF): Use.
4134 (POINTERS_EXTEND_UNSIGNED): Define.
4135 * config/s390.md (ptr_extend): New pattern.
4136
a2f7be91
ZW
41372003-07-22 Zack Weinberg <zack@codesourcery.com>
4138
4139 * hashtable.c (approx_sqrt): Make static.
4140 * hashtable.h: Don't prototype approx_sqrt.
4141 * line-map.c (init_line_maps): Rename linemap_init.
4142 (free_line_maps): Rename linemap_free.
4143 (add_line_map): Rename linemap_add.
4144 (lookup_line): Rename linemap_lookup.
4145 (print_containing_files): Rename linemap_print_containing_files.
4146 * linemap.h: Update to match.
4147
4148 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
4149 linemap routines to use new names.
4150
c6e4cc53
NS
41512003-07-16 Nathan Sidwell <nathan@codesourcery.com>
4152
4153 * c-common.c (handle_packed_attribute): Don't pack a struct via a
4154 typedef. Propagate packedness from a main variant.
4155
55de4f08
NN
41562003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
4157
4158 * Makefile.in (install-common): Add dependency on installdirs.
4159
fb5d2a87
AO
41602003-07-21 Alexandre Oliva <aoliva@redhat.com>
4161
4162 * c-common.c (c_common_type_for_mode): Return integer types for
4163 pointer modes.
4164
905bd7b5
GK
41652003-07-22 Geoffrey Keating <geoffk@apple.com>
4166
d05cc98e
GK
4167 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
4168 (finish_decl): Call maybe_apply_pragma_weak here.
4169 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
4170 TREE_PUBLIC and TREE_STATIC are decided.
4171 (start_function): Move call to maybe_apply_pragma_weak. Check that
4172 DECL_ASSEMBLER_NAME isn't set too early.
4173
905bd7b5
GK
4174 * cpplex.c (_cpp_process_line_notes): Mention option name in
4175 trigraphs warning.
4176
87d9741e
KH
41772003-07-22 Kazu Hirata <kazu@cs.umass.edu>
4178
4179 * combine.c (if_then_else_cond): Simplify the comparison of
4180 rtx against -1, 0, and 1.
4181 * loop.c (check_dbra_loop): Likewise.
4182 * optabs.c (emit_conditional_move): Likewise.
4183 (emit_conditional_add): Likewise.
4184 * config/i386/i386.md (*movsi_or): Likewise.
4185 (*movdi_or_rex6): Likewise.
4186
b67d7f4a
JH
4187Tue Jul 22 00:42:12 CEST 2003 Jan Hubicka <jh@suse.cz>
4188
4189 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
4190
8d973a83
NB
41912003-07-21 Neil Booth <neil@daikokuya.co.uk>
4192
4193 * cppfiles.c (open_file_pch): Don't put unused entries in the
4194 splay tree. Remove dead code.
4195
49a64b24
GK
41962003-07-21 Geoffrey Keating <geoffk@apple.com>
4197
48873ed2
GK
4198 * c-common.h (num_in_fnames): Declare.
4199 (c_static_assembler_name): Move from here...
4200 * c-tree.h (c_static_assembler_name): ... to here.
4201 * c-opts.c: Don't include langhooks-def.h.
4202 (c_static_assembler_name): Move to c-decl.c.
4203 (num_in_fnames): Make externally visible.
4204 * c-decl.c: Include langhooks-def.h.
4205 (c_static_assembler_name): Move from c-opts.c.
4206 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
4207 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
4208
49a64b24
GK
4209 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
4210 when it's not needed.
4211
8c29550d
JJ
42122003-07-21 Jakub Jelinek <jakub@redhat.com>
4213
4214 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
4215 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
4216 (rs6000_emit_prologue): Save FPRs inline if set.
4217
92cbea22
L
42182003-07-21 H.J. Lu <hongjiu.lu@intel.com>
4219
4220 * config/ia64/ia64.md (prefetch): Support predicate.
4221
ee735eef
JZ
42222003-07-21 Josef Zlomek <zlomekj@suse.cz>
4223
4224 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
4225 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
4226 table.
4227
bbda30a4
EB
42282003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
4229
a2f7be91 4230 PR optimization/11536
bbda30a4
EB
4231 * unroll.c (loop_iterations): Do not replace a register holding
4232 the final value by its equivalent before the loop if it is not
4233 invariant.
4234
64c18e57
DF
42352003-07-21 Dave Fluri <dave.fluri@onlink.net>
4236
4237 * doc/extend.texi: Fixes to spelling, grammar, and diction.
4238
b222f49a
BE
42392003-07-21 Ben Elliston <bje@wasabisystems.com>
4240
4241 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
4242 (V850 Options): Spelling fixes.
4243
9eff22bc
LG
42442003-07-20 Lisa M. Goldstein <opus@gnu.org>
4245
a2f7be91 4246 * doc/invoke.texi: Fixes to style, grammar and diction.
9eff22bc 4247
6a6c0154
RS
42482003-07-20 Roger Sayle <roger@eyesopen.com>
4249
4250 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
4251 * system.h (SMALL_STACK): Poison obsolete target macro.
4252 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
4253
d38b3a8d
PE
42542003-07-20 Phil Edwards <pme@gcc.gnu.org>
4255
4256 * configure.in: Cache the results of testing for cmp's capabilities.
4257 * configure: Regenerate.
4258
35dc2bd8
MM
42592003-07-20 Mark Mitchell <mark@codesourcery.com>
4260
4261 PR debug/11279
4262 * dwarf2out.c (gen_enumeration_type_die): Remember that
4263 enumerators can be unsigned.
4264
14e33ee8
ZW
42652003-07-19 Zack Weinberg <zack@codesourcery.com>
4266
4267 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
4268 (push_label_level, pop_label_level): Kill.
4269 (struct binding_level): Rename level_chain to outer.
4270 Add outer_function field. Change parm_flag, function_body,
4271 keep, keep_if_subblocks to 1-bit bitfields of type bool.
4272 (current_function_level): New variable.
4273 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
4274 (keep_next_level, declare_parm_level, warn_if_shadowing):
4275 Update to match.
4276 (struct language_function): Kill named_labels, shadowed_labels fields.
4277 (c_init_decl_processing, start_function, c_push__function_context)
4278 (c_pop_function_context): No need to muck with named_labels nor
4279 shadowed_labels.
4280
4281 (make_binding_level): No need to clear the structure here.
4282 (pop_binding_level): Always operate on current_binding_level.
4283 Update current_function_level if necessary.
4284 (pushlevel): Don't clear named_labels. Update current_function_level
4285 if necessary. Use "true" and "false" where appropriate.
4286 (poplevel): Diagnose labels defined but not used, or vice
4287 versa, and clear out label-meanings leaving scope, while
4288 walking down the decls list, for all binding levels.
4289 Handle LABEL_DECLs appearing in the shadowed list.
4290 pop_binding_level takes no arguments.
4291 (pushdecl_function_level): Use current_function_level.
4292
4293 (make_label, bind_label): New static functions.
4294 (declare_label): New exported function.
4295 (lookup_label, define_label): Rewritten for new data structure.
4296 (shadow_label): Kill.
4297
4298 * c-tree.h: Prototype declare_label; don't prototype
4299 push_label_level, pop_label_level, nor shadow_label.
4300 * c-parse.in: Remove all calls to push_label_level and
4301 pop_label_level. Use declare_label for __label__ decls.
4302
4303 * doc/extend.texi: Clarify that __label__ can be used to
4304 declare labels with local scope in any nested block, not
4305 just statement expressions. Cross-reference nested functions
4306 section from local labels section.
4307
8a6b9b7f
ZD
43082003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4309
4310 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
4311
026fe6c8
PE
43122003-07-19 Phil Edwards <pme@gcc.gnu.org>
4313
4314 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
4315
c68b0a84
KG
43162003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4317
4318 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
4319 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
4320
fd7643fb
UW
43212003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
4322
14e33ee8 4323 * config/s390/s390.c (legitimize_pic_address): Access local symbols
fd7643fb
UW
4324 relative to the GOT instead of relative to the literal pool base.
4325 (s390_output_symbolic_const): Handle new GOT-relative accesses.
4326 * config/s390/s390.md ("call"): Access local functions and PLT stubs
4327 relative to the GOT instead of relative to the literal pool base.
4328 ("call_value"): Likewise.
4329 ("call_value_tls"): Likewise.
4330
14e33ee8 4331 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
fd7643fb
UW
4332 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
4333 (s390_chunkify_finish): Likewise.
4334 (s390_chunkify_cancel): Likewise.
4335 (s390_reorg): Adapt caller.
4336 (find_base_register_in_addr,
4337 find_base_register_ref, replace_base_register_ref): Delete.
4338 (find_ltrel_base, replace_ltrel_base): New functions.
4339 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
4340 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
4341 base vs. index register usage.
4342 (struct constant_pool): Remove 'anchor'.
4343 (s390_add_anchor): Delete.
4344 (s390_dump_pool): Remove anchor handling.
4345 * config/s390/s390.md ("reload_anchor"): Remove.
4346
4347 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
4348 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
4349 (s390_emit_prologue): Use it.
14e33ee8
ZW
4350 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
4351 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
fd7643fb
UW
4352 hard-code register 14.
4353 * config/s390/s390-protos.h (s390_load_got): Declare.
4354
14e33ee8 4355 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
fd7643fb
UW
4356 Support TImode constants.
4357 * config/s390/s390.md ("consttable_ti"): New.
4358 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
4359
4360 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
4361 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
4362 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
4363 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
4364 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
4365 New symbolic constants.
4366 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
4367 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
4368 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
4369 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
4370 symbolic UNSPEC values.
14e33ee8 4371 * config/s390/s390.c (larl_operand, s390_short_displacement,
fd7643fb
UW
4372 bras_sym_operand, s390_cannot_force_const_mem,
4373 s390_delegitimize_address, s390_decompose_address,
4374 legitimize_pic_address, s390_output_symbolic_const,
4375 s390_function_profiler): Use symbolic UNSPEC values.
4376
703ad42b
KG
43772003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4378
4379 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
4380 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
4381 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
4382 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
4383 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
4384 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
4385 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
4386 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
4387 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
4388 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
4389 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
4390 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
4391 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
4392 postreload.c prefix.c print-tree.c protoize.c ra-build.c
4393 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
4394 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
4395 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
4396 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
4397 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
4398 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
4399 casts.
4400
308ca868
GDR
44012003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
4402
4403 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
4404 * toplev.h (warning): Remove attribute.
4405
435ab236
GDR
44062003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
4407
4408 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
4409 (pop_label_level): Likewise.
4410 (duplicate_decls): Likewise.
4411 (implicitly_declare): Likewise.
4412 (shadow_label): Likewise.
4413 (start_decl): Likewise.
4414 (finish_decl): Likewise.
4415 (grokdeclarator): Likewise.
4416 (get_parm_info): Likewise.
4417 (detect_field_duplicates): Likewise.
4418 (finish_struct): Likewise.
4419 (start_function): Likewise.
4420 (store_parm_decls): Likewise.
4421 (finish_function): Likewise.
4422 (c_expand_body_1): Likewise.
4423 (check_for_loop_decls): Likewise.
4424 (merge_translation_unit_decls): Likewise.
4425
2cc98056
NB
44262003-07-19 Neil Booth <neil@daikokuya.co.uk>
4427
4428 * common.opt: Document --param.
4429 * opts.c (columns, undocumented_msg): New.
4430 (print_help): Get number of columns from environment. Print
4431 --param help. Tweak newline handling.
4432 (print_param_help): New.
4433 (print_filtered_help): Better handling of duplicates. Complain
4434 about undocumented switches.
4435 (print_switch): New.
4436 (wrap_help): Improve wrapping, use COLUMNS.
4437 * opts.sh: Ignore comments in records.
4438 * params.def: Fix typos and remove trailing periods.
4439 * toplev.c (display_help): Don't dump --param help.
4440 * doc/sourcebuild.texi: Update.
4441
d893ccde
RH
44422003-07-18 Richard Henderson <rth@redhat.com>
4443
0e38b30b 4444 PR target/11556
d893ccde
RH
4445 * optabs.c (prepare_operand): Fail gracefully instead of abort
4446 if the predicate doesn't satisfy.
4447 (gen_cond_trap): Allow prepare_operand to fail.
4448
eb8221ea
GDR
44492003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
4450
4451 * c-common.c: Don't undefine GCC_DIAG_STYLE.
4452 (fname_decl): Don't use xxx_with_decl.
4453 (c_add_case_label): Likewise.
4454 (handle_section_attribute): Likewise.
4455 (handle_alias_attribute): Likewise.
4456 (handle_no_instrument_function_attribute): Likewise.
4457 (handle_no_limit_stack_attribute): Likewise.
4458 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
4459 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
4460
65f43cdf
ZD
44612003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4462
4463 * Makefile.in (ifcvt.o): Add cfgloop.h.
4464 * basic-block.h (EDGE_LOOP_EXIT): New flag.
4465 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
4466 * ifcvt.c: Include cfgloop.h.
4467 (mark_loop_exit_edges): New static function.
4468 (if_convert): Call it.
4469 (find_if_header): Ignore branches out of loops.
4470
e5686da7
KH
44712003-07-18 Kazu Hirata <kazu@cs.umass.edu>
4472
14e33ee8 4473 * combine.c (simplify_comparison): Don't share rtx when converting
e5686da7
KH
4474 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
4475
8d05ebaa
DE
44762003-07-18 David Edelsohn <edelsohn@gnu.org>
4477
4478 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
4479 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
4480 (MUST_PASS_IN_STACK): Define.
4481 (BLOCK_REG_PADDING): Define.
4482
79019985
RH
44832003-07-18 Richard Henderson <rth@redhat.com>
4484
4485 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
4486 to skip the addr_vec.
4487
0595d388
AO
4488Fri Jul 18 15:22:28 2003 Alexandre Oliva <aoliva@redhat.com>
4489
4490 * combine.c (combinable_i3pat): Don't forbid occurrences of
4491 i2dest or i1dest in inner_dest if inner_dest is a mem.
4492
2ee1067b
JH
4493Fri Jul 18 17:05:57 CEST 2003 Jan Hubicka <jh@suse.cz>
4494
4495 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
4496
16f6812f
JJ
44972003-07-17 Jakub Jelinek <jakub@redhat.com>
4498
4499 PR target/11087
4500 * loop.c (basic_induction_var): Check if convert_modes emitted any
4501 instructions. Remove them and return 0 if so.
4502
f129791c
EB
45032003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
4504
4505 PR optimization/11083
4506 * toplev.c (rest_of_handle_addresof): Rename into
4507 rest_of_handle_addressof. Delete unreachable blocks
4508 if dead edges were purged after the addressof pass.
4509
b2e608ca
NB
45102003-07-18 Neil Booth <neil@daikokuya.co.uk>
4511
4512 * Makefile.in, configure, configure.in: Remove handling of
4513 lang-options.h and options_.h.
4514 * toplev.c (struct lang_opt, documented_lang_options): Remove.
4515 (display_help): Don't use documented_lang_options.
4516
9cd51ef6
ZW
45172003-07-17 Zack Weinberg <zack@codesourcery.com>
4518
4519 * c-decl.c (pushdecl_function_level): Make static, return nothing.
4520 (kept_level_p): Fold into poplevel.
4521 (undeclared_variable): Moved here from c-typeck.c. Export.
4522 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
4523 (undeclared_variable): Prototype here. Don't prototype
4524 kept_level_p nor pushdecl_function_level.
4525 * c-parse.in: Change first argument to poplevel from
4526 "kept_level_p()" to "KEEP_MAYBE".
4527 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
4528
cf6bcbd0
RS
45292003-07-17 Roger Sayle <roger@eyesopen.com>
4530
4531 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
4532 commutative operands instead of modifying the RTL in-place.
4533
2b187c63
MM
45342003-07-17 Mark Mitchell <mark@codesourcery.com>
4535
4536 PR optimization/11557
4537 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
4538 unless we know which function is being called.
4539
c715abdd
RS
45402003-07-17 Roger Sayle <roger@eyesopen.com>
4541
4542 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
4543 whether to reorder the operands of a commutative binary operator.
4544
3e4093b6
RS
45452003-07-17 Roger Sayle <roger@eyesopen.com>
4546
4547 * fold-const.c (const_binop): Avoid performing the FP operation at
4548 compile-time, if either operand is NaN and we honor signaling NaNs,
4549 or if we're dividing by zero and either flag_trapping_math is set
4550 or the desired mode doesn't support infinities.
4551 (fold_initializer): New function to fold an expression ignoring any
4552 potential run-time exceptions or traps.
4553 * tree.h (fold_initializer): Prototype here.
4554 * c-typeck.c (build_binary_op): Move to the end of the file so
4555 that intializer_stack is in scope. If constructing an initializer,
4556 i.e. when initializer_stack is not NULL, use fold_initializer to
4557 fold expressions.
4558 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
4559 performing FP operations at compile-time, if they would raise an
4560 exception at run-time.
4561
89e9faee
GK
45622003-07-17 Geoffrey Keating <geoffk@apple.com>
4563
26e0dcb3
GK
4564 PR 11498
4565 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
4566 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
4567 (GTFILES): Add langhooks.c.
4568 (gt-langhooks.h): New.
4569 * c-common.h (c_static_assembler_name): Prototype.
4570 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
4571 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
4572 * c-opts.c: Include langhooks-def.h.
4573 (c_static_assembler_name): New.
4574 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
4575 (var_labelno): New.
4576 (lhd_set_decl_assembler_name): Give static objects with context
4577 unique names.
4578 * varasm.c (var_labelno): Delete.
4579 (make_decl_rtl): Don't change the assembler name once it's set.
4580
89e9faee
GK
4581 * c-opts.c (this_input_filename): New.
4582 (finish_options): Take new parameter, name of file being compiled.
4583 Update callers. Set this_input_filename.
4584 (push_command_line_include): Use this_input_filename not
4585 main_input_filename.
4586
6ec3f553
NB
45872003-07-17 Neil Booth <neil@daikokuya.co.uk>
4588
4589 * Makefile.in: Depend .pot generation on options.c.
4590 * po/exgettext: Add an extra_files variable containing additional
4591 files to scan.
4592
78ff95dc
ZW
45932003-07-17 Zack Weinberg <zack@codesourcery.com>
4594
36c6d174
ZW
4595 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
4596 c_write_global_declarations.
4597
eb1dfbb2
ZW
4598 * c-decl.c: Fix typos in several comments. Remove all
4599 #if 0 blocks; reindent as needed. Remove unused argument
4600 to declare_parm_level; all callers changed.
4601 * c-parse.in: Update calls to declare_parm_level. Avoid
4602 issuing a double warning in some circumstances.
4603 * c-typeck.c: Update calls to declare_parm_level.
4604 * c-tree.h: Update prototype of declare_parm_level.
4605
4606 * c-pragma.c (apply_pragma_weak): Don't complain about a
4607 redundant #pragma weak.
4608
4609 * objc/objc-act.c (forward_declare_categories,
4610 build_selector_reference_decl, build_class_reference_decl,
4611 build_objc_string_decl, synth_forward_declarations,
4612 build_protocol_reference): Set TREE_PUBLIC on synthetic
4613 forward decl to 0, consistent with eventual definition.
4614 Correct comments to match.
4615
78ff95dc
ZW
4616 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
4617 in regexp that don't form a range expression.
4618 * fixinc/fixincl.def: Regenerate.
4619
b23ba0b8
RH
46202003-07-17 Richard Henderson <rth@redhat.com>
4621
78ff95dc
ZW
4622 PR target/10907
4623 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
4624 even with !TARGET_CONST_GP.
4625 (ia64_function_ok_for_sibcall): Reject non-local functions.
b23ba0b8 4626
d944c82d
SB
46272003-07-17 Steven Bosscher <steven@gcc.gnu.org>
4628
4629 * c-common.c (c_estimate_num_insns_1): Don't handle
4630 METHOD_CALL_EXPR.
4631 * expr.c (safe_from_p): Likewise.
4632 * gengtype.c (adjust_field_tree_exp): Likewise.
4633 * stmt.c (warn_if_unused_value): Likewise
4634 * tree.c (first_rtl_op): Likewise.
4635 * tree.def: Don't define METHOD_CALL_EXPR.
4636 * java/lang.c (java_estimate_num_insns_1): Don't handle
4637 METHOD_CALL_EXPR.
4638
54284728
EB
46392003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
4640
4641 PR other/11466
4642 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
4643 and its restrictions for the SPARC64 port.
4644 Move the entry of "-mimpure-text" before that of "-mv8".
4645
bc890961 46462003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
78ff95dc 4647 Phil Edwards <phil@jaj.com>
bc890961
EB
4648
4649 * doc/install.texi (*-*-solaris2*): Document the step-by-step
4650 procedure to bootstrap and install.
4651 Document the preference for the legacy Sun tools in /usr/bin
4652 over the POSIX tools in /usr/xpg4/bin for the build process.
4653
f2ac9964
NB
46542003-07-17 Neil Booth <neil@daikokuya.co.uk>
4655
4656 * c.opt: Document Uncodumented; use it. Document ObjC options.
4657 * opts.c (print_filtered_help): Skip undocumented switches.
4658 * opts.h (CL_UNDOCUMENTED): New.
4659 * opts.sh: Handle Undocumented.
4660 * toplev.c (documented_lang_options): Prevent its becoming empty.
4661objc:
4662 * lang-options.h: Remove.
4663
03988cac
UW
46642003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
4665
4666 * loop.c (check_ext_dependent_givs): Pass const struct loop *
4667 instead of struct loop_info * as argument. Accept BIVs with
4668 increment +/- 1 provided there is a friendly exit test against
4669 a loop-invariant value.
4670 (strength_reduce): Adapt call to check_ext_dependent_givs.
4671
fada1961
R
46722003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
4673 Con Bradley <con.bradley@superh.com>
4674
4675 * sh-protos.h (sh_get_pr_initial_val): Declare.
4676 * sh.c (regno_reg_class): Make its elements type enum reg_class.
4677 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
4678 and live_regs_mask arguments. Changed all callers.
4679 (save_schedule_s): New structure.
4680 (save_schedule): New typedef.
4681 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
4682 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
4683 In interrupts handlers, also save registers that are usually
4684 partially saved, and make sure there is at least one general purpose
4685 register saved if a target register needs saving.
4686 Add casts in comparisons to avoid warnings.
4687 (sh_media_register_for_return): return -1 for interrupt handlers.
4688 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
4689 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
4690 registers used are available.
4691 Set RTX_FRAME_RELATED_P where appropriate.
4692 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
4693 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
4694 (initial_elimination_offset): Likewise.
4695 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
4696 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
4697 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
4698 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
4699 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
4700 and for target registers.
4701 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
4702 (regno_reg_class): Make its elements type enum reg_class.
4703 (CONSTRAINT_LEN): Don't use isdigit.
4704 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
4705 (FUNCTION_ARG): Add parentheses to avoid warnings.
4706 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
4707 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
4708 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
4709 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
4710 * sh.md (xordi3+1): Remove unused variable regno.
4711 (return_media): Check that tr0 is available before using it.
4712
bae92bf3
NB
47132003-07-16 Neil Booth <neil@daikokuya.co.uk>
4714
4715 * c.opt: Document more options.
4716
cc8c96fd
RS
47172003-07-16 Roger Sayle <roger@eyesopen.com>
4718
4719 * combine.c (subst): Also handle (subreg (const_double ...)) case
4720 if created by a substitution, by using the original inner mode.
4721
d41ba56f
RS
47222003-07-16 Roger Sayle <roger@eyesopen.com>
4723
4724 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
4725 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
4726 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
4727
264d65c1 47282003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
78ff95dc 4729
264d65c1 4730 * doc/install.texi (--without-headers): New.
1622229c
AP
4731
4732 Partial Fix PR/10129
4733 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
4734 (machopic_output_function_base_name): New; print the true pic label.
4735 (machopic_classify_ident): Pic Base is always a defined data.
4736 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
4737 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
4738
db2f435b
AP
4739 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
4740 if they are not floating point registers.
4741
d07605f5
AP
4742 PR c/10962
4743 * ggc.h: Add header guards.
4744 * c-decl.c (finish_struct): Sort fields if
4745 number greater than 15 and there are no
4746 anonymous structs/unions.
4747 * c-common.h: Include ggc.h.
4748 (sorted_fields_type): New struct.
4749 (field_decl_cmp): New prototype.
4750 (resort_sorted_fields): New prototype.
4751 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
4752 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
4753 as s, removing other fields.
4754 * c-typeck.c (lookup_field): Use s in lang_type.
4755 These were mostly moved from cp/class.c:
4756 * c-common.c (field_decl_cmp): New static function.
4757 (field_decl_cmp): New function.
4758 (resort_sorted_fields): New function.
4759
3d7964d5
GK
47602003-07-16 Geoffrey Keating <geoffk@apple.com>
4761
4762 * config/darwin.c (machopic_select_section): Use decl_readonly_section
4763 to do most of the work.
4764
4e58524e
HPN
47652003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
4766
4767 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
4768 * config/mmix/mmix.c: Convert functions to ISO C90.
27f35b75 4769 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
4e58524e
HPN
4770 formatting.
4771 (mmix_get_hard_reg_initial_val): Tweak section head comment.
4772
1e0343dd
R
47732003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
4774
4775 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
4776
fc4767bb
JJ
47772003-07-16 Jakub Jelinek <jakub@redhat.com>
4778
4779 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
4780 (uw_update_context_1): Use it.
4781 * config/rs6000/rs6000.c (insn_after_throw): Remove.
4782 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
4783 in parent frame if _Unwind_* called directly instead of through
4784 .plt.
4785 (rs6000_emit_eh_toc_restore): Remove.
4786 (rs6000_emit_prologue): Update stack pointer before doing any saving
4787 if current_function_calls_eh_return. Generate unwind info for $r2.
4788 (rs6000_emit_epilogue): Restore stack pointer after doing all
4789 restoring if current_function_calls_eh_return. Restore $r2.
4790 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
4791 * config/rs6000/rs6000.md (eh_return): Remove call to
4792 rs6000_emit_eh_toc_restore.
4793 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
4794 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
4795
6972c506
JJ
47962003-07-15 Jakub Jelinek <jakub@redhat.com>
4797
4798 * expr.c (emit_block_move): Don't move anything if size is const 0.
4799 (clear_storage): Test against const0_rtx instead of comparing INTVAL
4800 against 0.
4801
ac59ed37
DM
48022003-07-15 David S. Miller <davem@redhat.com>
4803
4804 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
4805 emit nop if the last real insn is CALL_INSN.
4806
b828d124
DS
48072003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
4808
4809 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
4810 as "nul".
4811 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
4812
d5648e12
DS
48132003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
4814
4815 * config/i386/winnt.c (associated_type): Artificial methods are not
4816 affected by the import/export status of their class unless they are
4817 COMDAT.
4818 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
4819
4820 * config/i386/winnt.c: Fix GCC copyright comment.
4821
b0e3f7ec
GDR
48222003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
4823
4824 PR c++/11531
4825 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
4826 not recursing on hard error.
4827 (diagnostic_for_decl): Likewise.
4828 * diagnostic.def: Rearrange.
4829
71628aa0
R
48302003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
4831
4832 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
4833 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
4834
48352003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
4836 Richard Henderson <rth@redhat.com>
4837
4838 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
4839 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
4840 (_Unwind_SetGR): Likewise.
4841 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
4842 (Unwind_SpTmp): New typedef.
4843 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
4844 (uw_update_context): Use _Unwind_GetPtr.
4845 (init_dwarf_reg_size_table): Move above uw_init_context_1.
4846 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
4847 Use _Unwind_SetSpColumn.
4848 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
4849 Use _Unwind_GetPtr.
4850
5a170a05
NB
48512003-07-15 Neil Booth <neil@daikokuya.co.uk>
4852
4853 * c.opt: Document more options.
4854 * toplev.c (documented_lang_options): Remove all local help strings.
4855
b0afa2fc
MM
48562003-07-15 Mark Mitchell <mark@codesourcery.com>
4857
4858 PR debug/11473
4859 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
4860 base classes.
4861
5df90541
KH
48622003-07-15 Kazu Hirata <kazu@cs.umass.edu>
4863
4864 PR target/10795
4865 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
4866 swap comparison operands if doing so would generate an
4867 unrecognizable insn.
4868
5a257872
EB
48692003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
4870
4871 PR optimization/11320
4872 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
4873 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
4874 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
4875 current_sched_info->compute_jump_reg_dependencies. Record which
4876 registers are used and which registers are set by the jump.
4877 Clear deps->reg_conditional_sets after a barrier.
4878 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
4879 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
4880 (init_deps): Initialize reg_conditional_sets.
4881 (free_deps): Clear reg_conditional_sets.
4882 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
4883 Mark registers live on entry of the fallthrough block and conditionally
4884 set as set by the jump. Mark registers live on entry of non-fallthrough
4885 blocks as used by the jump.
4886 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
4887 Mark new parameters as unused.
4888
3cec3f83
RS
48892003-07-15 Richard Sandiford <rsandifo@redhat.com>
4890
4891 * doc/invoke.texi: Resync MIPS -march documentation.
4892
98450f0d
RS
48932003-07-15 Richard Sandiford <rsandifo@redhat.com>
4894
4895 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
4896 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
4897 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
4898 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
4899 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
4900 (mips_issue_rate): Handle PROCESSOR_R9000.
4901 (mips_use_dfa_pipeline_interface): Likewise.
4902 * config/mips/9000.md: New file.
4903 * config/mips/mips.md: Include it.
4904 (define_attr cpu): Add r9000.
4905 (mulsi3_mult3): Use "mul" for rm9000 code.
4906
5fe25f47
SC
49072003-07-15 Stan Cox <scox@redhat.com>
4908
4909 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
4910 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
4911 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
4912 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
4913 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
4914 (mips_issue_rate): Handle PROCESSOR_R7000.
4915 (mips_use_dfa_pipeline_interface): Likewise.
4916 * config/mips/7000.md: New file.
4917 * config/mips/mips.md: Include it.
4918 (define_attr cpu): Add r7000.
4919 (mulsi3_mult3): Use "mul" for rm7000 code.
4920
5a2515e6
RS
49212003-07-15 Richard Sandiford <rsandifo@redhat.com>
4922
4923 * config/mips/mips.md (define_attr type): Add condmove. Use it for
4924 the conditional move patterns.
4925 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
4926 Check for condmove type.
4927 (ir_vr54_arith): Add move type.
4928 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
4929 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
4930
72de27ea
NB
49312003-07-15 Neil Booth <neil@daikokuya.co.uk>
4932
4933 * c-opts.c (print_help): Remove.
4934 (c_common_handle_option): Don't handle --help.
4935 * c.opt: Document some options.
4936 (--help): Remove.
4937 * opts.c (print_filtered_help): New.
4938 (print_help): Use it.
4939
e6ebd07b
GK
49402003-07-14 Geoffrey Keating <geoffk@apple.com>
4941
2d799c09
GK
4942 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
4943 * tree.c: (build_common_tree_nodes_2): Likewise.
4944 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
4945 (V4DF_type_node): New.
4946
e6ebd07b
GK
4947 * c-opts.c (push_command_line_include): Don't free deferred_opts,
4948 we'll need it.
4949 (finish_options): Reset init_cursor.
4950
b90f141a
KH
49512003-07-15 Kazu Hirata <kazu@cs.umass.edu>
4952
4953 * expr.c (expand_assignment): Remove an unused argument
4954 SUGGEST_REG.
4955 * expr.h: Update the prototype.
4956 * function.c: Update the callers.
4957 * stmt.c: Likewise.
4958
1e7ee6ad
MM
49592003-07-14 Mark Mitchell <mark@codesourcery.com>
4960
4961 PR debug/11098
4962 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
4963 as DECL_ABSTRACT.
4964
bf66f7b0
NN
49652003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
4966
4967 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
4968 with __cplusplus, not "we must use the C++ compiler's type"
4969 * fixinc/inclhack.def (void_null): Note that Interix needs this.
4970 * fixinc/fixincl.x: Regenerate.
4971
18009d03
GK
49722003-07-14 Geoffrey Keating <geoffk@apple.com>
4973
ea00486e
GK
4974 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
4975 and unseen_objects from the global data before calling
4976 __deregister_frame_info_bases.
4977 (examine_objects): Insert objects into the seen_objects list,
4978 not unseen_objects.
4979 (_Unwind_Find_FDE): Always unlock the global object lists, even if
4980 we couldn't allocate a data structure to put in it.
4981
18009d03
GK
4982 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
4983 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
4984 (SET_TYPE_PROTOCOL_LIST): New.
4985 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
4986 (get_object_reference): Likewise.
4987
9ae130f8
JH
4988Mon Jul 14 23:14:28 CEST 2003 Jan Hubicka <jh@suse.cz>
4989
4990 * cfglayout.c (locator_file): Break out from ....
4991 (insn_file): ... here.
4992 (locator_line): Break out from ....
4993 (insn_line): ... here.
4994 * rtl.h (locator_file, locator_line): Declare.
4995 (final_start_function): Set proper line/file info.
4996
e07d4821
GDR
49972003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
4998
4999 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
5000 handled by pp_c_cast_expression.
5001
121d69e6
RS
50022003-07-14 Richard Sandiford <rsandifo@redhat.com>
5003
5004 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
5005 allocate 32768 bytes of stack. Use addition rather than subtraction
5006 when a single insn is enough.
5007 * config/mips/mips.md: Remove insns and splitters for subtracting
5008 constants.
5009 (subsi3): Only accept register operands.
5010 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
5011 (subdi3_internal_3, subsi3_internal_2): Likewise.
5012 (casesi): Use expand_binop to subtract the lower bound.
5013
3485245e
RS
50142003-07-14 Richard Sandiford <rsandifo@redhat.com>
5015
5016 * config/mips/mips.c (mips_in_small_data_p): Don't handle
5017 TARGET_MIPS16 specially.
5018
6627b7f9
RS
50192003-07-14 Richard Sandiford <rsandifo@redhat.com>
5020
6d0b50a4
RS
5021 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
5022 mips_output_aligned_bss.
5023 * config/mips/linux.h: Likewise.
5024 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
5025 * config/mips/mips.c (mips_output_aligned_bss): New function.
5026
8d50bd19
RS
5027 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
5028 * config/mips/elf64.h: Likewise.
5029
c1115ccd
RS
5030 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
5031 mips_declare_object_name.
5032 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
5033 * config/mips/elf64.h: As for elf.h.
5034 * config/mips/iris6.h: Likewise.
5035 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
5036 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
5037 do...while (0) block.
5038 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
5039 (mips_finish_declare_object): Declare.
5040 * config/mips/mips.c (mips_declare_object_name): New function.
5041 (mips_finish_declare_object): New function.
5042
060ff934
RS
5043 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
5044 * config/mips/linux.h: Likewise.
5045
d82783b6
RS
5046 * config/mips/mips.c (inside_function): Delete.
5047 (file_in_function_warning, ignore_line_number): Delete.
5048 (mips_output_filename): Don't warn about changing filenames within
5049 a function.
5050 (mips_output_lineno): Update accordingly.
5051 (mips_output_function_prologue): Don't reset the deleted variables.
5052 * config/mips/mips.h (inside_function): Delete.
5053 (file_in_function_warning, ignore_line_number): Delete.
5054
373f8df7
RS
5055 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
5056 * config/mips/elf64.h: Likewise.
5057 * config/mips/openbsd.h: Likewise.
5058 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
5059 * config/mips/linux.h: Likewise.
5060 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
5061 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
5062
6627b7f9
RS
5063 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
5064 to the list of include files when using gas.
5065 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
5066 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
5067 * config/mips/elf64.h: Likewise.
5068 * config/mips/iris5.h: Likewise.
5069 * config/mips/linux.h: Likewise.
5070 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
5071 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
5072 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
5073 * config/mips/sdb.h: ...this new file.
5074
c18b00c0
NN
50752003-07-14 Douglas Rupp <rupp@gnat.com>
5076
5077 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
5078 argument to getcwd; use fixed buffer instead.
5079
50802003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
5081
5082 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
5083 * fixinc/fixinc.wrap: Delete.
5084
adc4adcd
GP
50852003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
5086
5087 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
5088 don't have 2.
5089
50902003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
5091
5092 * ggc-page.c (struct globals): Add new fields to keep track of the
5093 total allocated memory and overhead.
5094 (ggc_print_statistics): Print them.
5095 (ggc_alloc): Keep track of the total allocated memory and the
5096 overhead.
5097
5098 * tree.c (dump_tree_statistics): Increase spacing.
5099 (enum tree_node_kind): Move to ...
5100 * tree.h (enum tree_node_kind): ... here.
5101 (tree_node_counts, tree_node_sizes): Declare.
5102
51032003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
5104
5105 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
5106
bbd288a4
FS
51072003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
5108
5109 PR optimization/11440
5110 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
5111 SIGN_EXTRACT SETs.
5112
6e985040
AM
51132003-07-14 Alan Modra <amodra@bigpond.net.au>
5114
5115 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
5116 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
5117 (emit_group_load, emit_group_store): Adjust declarations.
5118 Remove most occurrences of #ifdef TREE_CODE.
5119 * expr.c (emit_group_load): Add "type" param, and use
5120 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
5121 aligned accesses if !SLOW_UNALIGNED_ACCESS.
5122 (emit_group_store): Likewise.
5123 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
5124 emit_group_load and emit_group_store calls.
5125 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
5126 BLOCK_REG_PADDING to determine whether we need endian_correction.
5127 (load_register_parameters): Localize vars. Handle shifting of
5128 small values to the correct end of regs. Adjust emit_group_load
5129 call.
5130 (expand_call, emit_library_call_value_1): Adjust emit_group_load
5131 and emit_group_store calls.
5132 * function.c (assign_parms): Set mem alignment for stack slots.
5133 Adjust emit_group_store call. Store values at the "wrong" end
5134 of regs to the stack. Use BLOCK_REG_PADDING.
5135 (locate_and_pad_parm): Save where_pad.
5136 (expand_function_end): Adjust emit_group_load call.
5137 * stmt.c (expand_value_return): Adjust emit_group_load call.
5138 * Makefile.in (calls.o): Depend on $(OPTABS_H).
5139 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
5140 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
5141 (MUST_PASS_IN_STACK): Define.
5142 (BLOCK_REG_PADDING): Define.
5143 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
5144 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
5145 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
5146 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
5147 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
5148
4fab535e
AL
51492003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
5150
5151 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
5152
8d2e5f72
RK
51532003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5154
5155 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
5156 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
5157
7eaab492
NN
51582003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
5159
5160 PR other/11123
5161 * toplev.c: Don't cut off option names.
5162
9d4a30f2
AJ
51632003-07-13 Andreas Jaeger <aj@suse.de>
5164
5165 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
5166 to integer of different size.
5167
34ed3bb0
KH
51682003-07-13 Kazu Hirata <kazu@cs.umass.edu>
5169
5170 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
5171 to (eq (and X 1) 0).
5172
1a7d0840
AJ
51732003-07-13 Andreas Jaeger <aj@suse.de>
5174
5175 * config.gcc: Add pmmintrin.h for x86_64-*-*.
5176
43839642
ZW
51772003-07-13 Zack Weinberg <zack@codesourcery.com>
5178
5179 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
5180 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
5181 list. Move these all together down by cpplib.
5182
5183 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
5184 definition of CPPCHAR_SIGNED_T.
5185
5186 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
5187 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
5188 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
5189
5190 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
5191 * cppinit.c (cpp_create_reader): Likewise.
5192
5193 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
5194 * cpptrad.c: Likewise. All callers changed.
5195 * cpplib.c: All callers changed.
5196 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
5197 * hashtable.h: Define GTY(x) to nothing here too.
5198
0acf4f88
RK
51992003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5200
5201 * stor-layout.c (compute_record_mode): Remove very obsolete test
5202 that forces BLKmode for records with fields crossing word boundary.
5203
46db61e7
ZW
52042003-07-13 Zack Weinberg <zack@codesourcery.com>
5205
5206 * Makefile.in: Remove orphan reference to acconfig.h.
5207
db0e878d
AJ
52082003-07-13 Andreas Jaeger <aj@suse.de>
5209
5210 * cgraphunit.c: Convert prototypes to ISO C90.
5211
4146d8d0
NN
52122003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
5213
5214 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
5215 (for OpenBSD).
5216 * fixinc/fixincl.x: Rebuild.
5217
6f3ca281
ZW
52182003-07-12 Zack Weinberg <zack@codesourcery.com>
5219
5220 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
5221 i?86-*-*. Use correct name of cache variable.
5222 * configure: Regenerate.
5223
9a9f7594
KH
52242003-07-12 Kazu Hirata <kazu@cs.umass.edu>
5225
5226 * config/alpha/alpha.c: Fix comment typos.
5227 * config/alpha/alpha.md: Likewise.
5228 * config/arm/arm.c: Likewise.
5229 * config/arm/arm.md: Likewise.
5230 * config/arm/lib1funcs.asm: Likewise.
5231 * config/avr/avr.md: Likewise.
5232 * config/arm/README-interworking: Fix typos.
5233
4ed43216
KH
52342003-07-12 Kazu Hirata <kazu@cs.umass.edu>
5235
5236 * c-format.c: Fix comment formatting.
5237 * c-typeck.c: Likewise.
5238 * coverage.c: Likewise.
5239 * cppcharset.c: Likewise.
5240 * cpplib.c: Likewise.
5241 * dbxout.c: Likewise.
5242 * gcov-io.h: Likewise.
5243 * toplev.c: Likewise.
5244
c3a5b1e9
NN
52452003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
5246
6f3ca281 5247 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
c3a5b1e9
NN
5248 fix.
5249
8ada417f
ZW
52502003-07-12 Zack Weinberg <zack@codesourcery.com>
5251
5252 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
5253 uses three-argument AC_DEFINE so no acconfig.h entries are
5254 needed.
5255 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
5256 which contains the GAS version number as a scaled integer.
5257 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
5258 ability to check for ELF assembler.
5259 (gcc_GAS_CHECK_FEATURE): New macro.
5260 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
5261 assembler feature checks using gcc_GAS_CHECK_FEATURE.
5262 Use three-argument AC_DEFINE everywhere.
5263 * acconfig.h: Deleted.
5264 * config.in, configure: Regenerate.
5265
d5d16b5f
NN
52662003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
5267
3b57c563
NN
5268 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
5269 (on OpenBSD).
d33fb69b 5270 * fixinc/fixincl.x: Regenerate.
3b57c563 5271
d5d16b5f
NN
5272 * fixinc/inclhack.def (gnu_types): Improve comment.
5273
439f7bc3
AJ
52742003-07-12 Andreas Jaeger <aj@suse.de>
5275
5276 * fp-test.c (main): Use ISO C90 prototype.
5277
5278 * version.c: Remove unneded include of ansidecl.h.
5279
5280 * cgraph.h: Convert prototypes to ISO C90.
5281 * cgraph.c: Likewise.
5282 * fix-header.c: Likewise.
5283 * ra.h: Likewise.
5284 * protoize.c: Likewise.
5285
1a5c5701
JH
5286Sat Jul 12 06:09:38 CEST 2003 Jan Hubicka <jh@suse.cz>
5287
5288 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
5289 warning.
5290
b58b1157
JH
5291Sat Jul 12 03:06:01 CEST 2003 Jan Hubicka <jh@suse.cz>
5292 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
5293
5294 * cgraph.c (cgraph_max_uid): New global variable.
5295 (cgraph_node): Set uid field.
5296 (create_edge): Keep inline flags consistent.
5297 (dump_cgraph): Dump more info.
5298 * cgraph.h (struct cgraph_local_info): Remove inline_many and
5299 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
5300 (struct cgraph_global_info): Add insns, calls, cloned_times,
5301 will_be_output.
5302 (struct cgraph_node): Add uid.
5303 (struct cgraph_edge): Add inline_call.
5304 (cgraph_max_uid, cgraph_inline_p): Declare.
5305 * cgraph.c: Include params.h and fibheap.h
5306 (cgraph_mark_functions_to_inline_once): Kill.
5307 (INSNS_PER_CALL): New constant.
5308 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
5309 static variables.
5310 (cgraph_finalize_function): Do not analyze inlining.
5311 (cgraph_finalize_compilation_unit): Set inlining attributes.
5312 (cgraph_mark_functions_to_output): More consistency checks.
5313 (cgraph_optimize_function): Set current_function_decl to NULL.
5314 (cgraph_expand_function): Use new inline flags.
5315 (cgraph_postorder): Expand from cgraph_expand_functions.
5316 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
5317 (cgraph_inlined_into, cgraph_inlined_callees,
5318 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
5319 cgraph_mark_inline, cgraph_check_inline_limits,
439f7bc3 5320 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
b58b1157
JH
5321 cgraph_decide_inlining, cgraph_inline_p): New functions.
5322 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
5323 PARAM_INLINE_UNIT_GROWTH): New parameters.
5324 * tree-inline.c (struct inline_data): New field current_decl.
5325 (expand_call_inline): Avoid forward declarations; use
5326 inlinable_function_p.
5327 (optimize_inline_calls): Set id.current_decl.
5328
27b8e366
AP
53292003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
5330
5331 * configure.in: Remove wrongly added definition of
5332 local_prefix.
5333 * configure: Regenerate.
5334
80fa0b4c
DN
53352003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
5336
5337 * rtl.def (NOTE): Do not use padding.
5338
1ea6f4c8
DH
53392003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
5340
5341 * doc/install.tex: Update required binutils for i?86-*-linux*
5342
ed2d8944
RH
53432003-07-11 Richard Henderson <rth@redhat.com>
5344
5345 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
5346
a44cea75
MM
53472003-07-11 Mark Mitchell <mark@codesourcery.com>
5348
5349 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
5350 TRANSLATION_UNIT_DECL as top_level.
5351
358b8f01
JJ
53522003-07-11 Jakub Jelinek <jakub@redhat.com>
5353
5354 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
5355 then fall back to cmpstrM.
5356 * builtins.c (expand_builtin_memcmp): Likewise.
5357 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
5358 (s390_expand_cmpmem): ... this.
5359 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
5360 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
5361 from cmpstr* patterns. Rename call to s390_expand_cmpstr
5362 to s390_expand_cmpmem.
5363 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
5364 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
5365 to cmpmem*.
5366 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
5367 cmpstr* patterns.
5368 * doc/md.texi (cmpstrM): Describe as String compare insn, not
5369 Block compare insn.
5370 (cmpmemM): Add.
5371
8634e925
LR
53722003-07-11 Loren James Rittle <ljrittle@acm.org>
5373
5374 * config/i386/freebsd.h (SET_ASM_OP): Remove.
5375 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
5376 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
5377 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
5378
48144cd4
RH
53792003-07-11 Richard Henderson <rth@redhat.com>
5380
5381 * function.c (assign_parms): Don't recombine complex args if
5382 fnargs is unchanged from orig_fnargs.
5383 (split_complex_args): Return args without complex before copying.
5384 Re-layout the modified parameters.
5385
fee226d2
R
53862003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
5387
5388 * regclass.c (choose_hard_reg_mode): Add third argument.
5389 Changed all callers.
5390 * rtl.h (choose_hard_reg_mode): Update declaration.
5391 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
5392 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
5393
d1bd0ded
GK
53942003-07-11 Geoffrey Keating <geoffk@apple.com>
5395
5396 * c-decl.c (finish_decl): Handle 'used' here...
5397 * cgraphunit.c (cgraph_finalize_function): ... and here ...
5398 * c-common.c: (handle_used_attribute): ... not here.
439f7bc3 5399
d1bd0ded
GK
5400 * configure.in (onstep): Support --enable-intermodule.
5401 * Makefile.in (OBJS-common): New.
5402 (OBJS-md): New.
5403 (OBJS-archive): New.
5404 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
5405 (OBJS-onestep): New.
5406 (libbackend.a): Support @onestep@.
5407 (libbackend.o): New.
5408 * configure: Regenerate.
439f7bc3 5409
d1bd0ded
GK
5410 * c-common.h (c_reset_state): New prototype.
5411 (c_parse_file): New prototype.
5412 (finish_file): Move prototype from c-tree.h.
5413 * c-decl.c: Include <hashtab.h>.
5414 (builtin_decls): New.
5415 (current_file_decl): New.
5416 (duplicate_decls): Add extra parameter. Change all callers. Don't
5417 output duplicate common symbols.
5418 (link_hash_hash): New.
5419 (link_hash_eq): New.
5420 (poplevel): Handle popping of the top level.
5421 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
5422 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
5423 (pushdecl_top_level): Likewise.
5424 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
5425 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
5426 (finish_decl): Handle TRANSLATION_UNIT_DECL.
5427 (merge_translation_unit_decls): New.
5428 (c_write_global_declarations): New.
5429 (c_reset_state): New.
5430 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
5431 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
5432 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
5433 TRANSLATION_UNIT_DECL.
5434 (c_objc_common_finish_file): Call merge_translation_unit_decls.
5435 * c-opts.c (in_fnames): Rename from in_fname.
5436 (c_common_decode_option): Handle multiple input filenames.
5437 (c_common_post_options): Likewise.
5438 (c_common_parse_file): Likewise; also, call c_parse_file rather than
5439 yyparse.
5440 * c-parse.in: Move cleanup code to c_parse_file.
5441 (free_parser_stacks): Move contents to c_parse_file.
5442 (c_parse_file): New.
5443 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
5444 for integer types.
5445 (C_DECL_FILE_SCOPE): New.
5446 (finish_file): Move prototype to c-common.h.
5447 (merge_translation_unit_decls): New prototype.
5448 (comptypes): Add extra parameter to prototype.
5449 (c_write_global_declarations): New prototype.
5450 * c-typeck.c (tagged_types_tu_compatible_p): New.
5451 (function_types_compatible_p): Add extra parameter, change all callers.
5452 (type_lists_compatible_p): Likewise.
5453 (comptypes): Likewise.
5454 (struct tagged_tu_seen): New.
5455 (tagged_tu_seen_base): New.
5456 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
5457 (c_mark_addressable): Remove #if 0 code.
5458 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
5459 comment explaining why it shouldn't have to.
5460 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
5461 options.
5462 * cppinit.c (cpp_read_next_file): New.
5463 (cpp_read_main_file): Use it.
5464 * cpplib.c (undefine_macros): New.
5465 (cpp_undef_all): New.
5466 * cpplib.h (cpp_read_next_file): Prototype.
5467 (cpp_undef_all): Prototype.
5468 * langhooks-def.h (write_global_declarations): Remove prototype.
5469 * toplev.h (write_global_declarations): Add prototype.
5470 * tree.c (decl_type_context): Use switch statement, handle
5471 TRANSLATION_UNIT_DECL.
5472 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
5473 (TRANSLATION_UNIT_DECL): New kind of tree.
5474 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
5475 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
5476 * doc/invoke.texi: Make attempt to document new functionality.
5477
5478 2003-05-19 Per Bothner <bothner@apple.com>
5479
5480 * gcc.c (combine_inputs): New.
5481 (process_command): Set combine_inputs.
5482 (do_spec_1): Handle combine_inputs.
5483 (main): Likewise.
5484
ac8354b1
JW
54852003-07-10 James E Wilson <wilson@tuliptree.org>
5486
5487 PR optimization/9745
5488 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
5489 loop_insn_emit_before.
5490 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
439f7bc3 5491
dea55da5
ZW
54922003-07-10 Zack Weinberg <zack@codesourcery.com>
5493
5494 * cppcharset.c: Fix comment.
5495 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
5496 (EILSEQ): #define to EINVAL if not already defined.
5497 (convert_using_iconv): #if out when !HAVE_ICONV.
5498 (init_iconv_desc): Handle !HAVE_ICONV here...
5499 (cpp_init_iconv): ...not here.
5500
f3fdaec4
NB
55012003-07-11 Neil Booth <neil@daikokuya.co.uk>
5502
5503 * common.opt: More --help messages.
5504 * opts.c (print_help): Use puts().
5505 * toplev.c (f_options): Remove help text.
5506 (display_help): Don't dump f_options.
5507
7ebbf1ea
NN
55082003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
5509
5510 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
5511 Move i?86-*-interix* to the don't-fix list.
5512 * fixinc/fixinc.interix: Delete with extreme prejudice.
5513
959a73a4
DH
55142003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
5515
5516 PR bootstrap/10758
5517 * doc/install.texi: Document requirements for ia64-*-hpux* target.
5518
9959901c
RS
55192003-07-10 Roger Sayle <roger@eyesopen.com>
5520
5521 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
5522
6b88314c
ZW
55232003-07-10 Zack Weinberg <zack@codesourcery.com>
5524
5525 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
5526 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
5527 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
5528 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
5529 convert_no_conversion, convert_using_iconv): New functions.
5530 (APPLY_CONVERSION): New macro.
5531 (struct conversion, conversion_tab): New data structure.
5532 (init_iconv_desc): Check conversion_tab for a custom conversion
5533 primitive before trying to use iconv.
5534 (convert_cset): Deleted.
5535 (cpp_init_iconv): Use UTF- terminology, not UCS-.
5536 (_cpp_destroy_iconv): Update to match.
5537 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
5538 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
5539 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
5540 (_cpp_interpret_string_notranslate): New function, moved here
5541 from cpplib.c.
5542
5543 * cpphash.h (convert_f, struct cset_converter): New types.
5544 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
5545 are now struct cset_converter, not bare iconv_t.
5546 Update prototypes.
5547 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
5548 all callers changed.
5549
38f4680f 55502003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
6b88314c 5551
38f4680f
KC
5552 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
5553 to opts.sh command line.
5554 * opts.sh: Write to temporary files with a move-if-change at the end.
5555
2a868fac 55562003-07-10 Denis Chertykov <denisc@overta.ru>
6b88314c 5557 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9db367b4
DC
5558
5559 * combine.c (gen_binary): Handle the CLOBBER rtx and
5560 don't build a binary operation with it.
5561
3b14e3af
ZD
55622003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5563
5564 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
5565 store_killed_after, store_killed_before): Keep track of the correct
5566 dependency function to use.
5567
a9189cc0
SB
55682003-07-10 Steven Bosscher <steven@gcc.gnu.org>
5569 * toplev.c (do_compile): Don't try to open dump files before
5570 lang_dependent_init initializes dump_base_name.
5571
e97a46ce
KG
55722003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5573
5574 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
5575 Use ARRAY_SIZE.
5576 * config/frv/frv.c (frv_expand_builtin): Likewise.
5577 * config/sh/sh.c (sh_media_init_builtins): Likewise.
5578
4a386498
MM
55792003-07-09 Mark Mitchell <mark@codesourcery.com>
5580
5581 PR c++/10032
5582 * doc/invoke.texi (C++ Dialect Options): Change documentation of
5583 -fpermissive.
5584
1e60c057
R
55852003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
5586
5587 * tm.texi (RETURN_ADDR_OFFSET): Document.
5588
330d2e2a
NS
55892003-07-10 Nathan Sidwell <nathan@codesourcery.com>
5590
5591 * gcov-io.h: Update documentation.
5592 (GCOV_UNSIGNED2STRING): New.
5593 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
5594 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
5595 GCOV_TAG_SUMMARY_LENGTH): Adjust.
5596 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
5597 GCOV_TAG_COUNTER_NUM): New.
5598 (GCOV_BLOCK_SIZE): Number of words.
5599 (gcov_var): Adjust buffer type.
5600 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
5601 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
5602 count, not byte count.
5603 (gcov_open): Adjust overread init.
5604 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
5605 gcov_write_string, gcov_write_tag, gcov_write_length,
5606 gcov_write_tag_length): Adjust.
5607 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
5608 (gcov_sync, gcov_seek): Adjust.
5609 * gcov-dump.c (print_usage): Show gcc version only.
5610 (dump_file): Use GCOV_UNSIGNED2STRING.
5611 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
5612 * gcov.c (print_version): Show gcc version only.
5613 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
5614 GCOV_TAG_*_NUM macros.
5615 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
5616 GCOV_TAG_COUNTER_LENGTH.
5617 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
5618 Use GCOV_TAG_COUNTER_NUM.
5619 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
5620 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
5621
3dbb446e
AS
56222003-07-10 Andreas Schwab <schwab@suse.de>
5623
5624 * gcov-dump.c (dump_file): Fix missing address operator.
5625
11791dbc
KH
56262003-07-10 Kazu Hirata <kazu@cs.umass.edu>
5627
5628 PR c/11449
5629 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
5630 of HOST_WIDE_INT.
5631 (fold_single_bit_test): If sign_bit_p() fails, assume that the
5632 bit being tested is not a sign bit.
5633
ae12c666
KH
56342003-07-10 Kazu Hirata <kazu@cs.umass.edu>
5635
5636 * config/h8300/h8300.md (a peephole2): New.
5637
2beef00e
AO
56382003-07-10 Alexandre Oliva <aoliva@redhat.com>
5639
5640 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
5641 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
5642 from ld-linux.so.2 to ld.so.1.
5643 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
5644 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
5645 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
5646 nor -Wl,-rpath-link.
5647 (LIB_SPEC): Add -rpath-link if !static.
5648 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
5649 * config/mn10300/mn10300.c (mn10300_protect_label): New
5650 variable.
5651 * config/mn10300/linux.h (PRINT_OPERAND,
5652 PRINT_OPERAND_ADDRESS): Set it during their execution.
5653 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
5654 mn10300_protect_label is set.
5655 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
5656 -Wl,-rpath-link.
5657 (LIB_SPEC, STARTFILE_SPEC): Define.
5658 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
5659 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
5660 FLOAT_BIT_ORDER_MISMATCH.
5661 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
5662 * config.gcc (am33_2.0-*-linux*): Added.
5663 * config/mn10300/linux.h: New.
5664 * config/mn10300/t-linux: New.
5665
75040a04
AJ
56662003-07-10 Andreas Jaeger <aj@suse.de>
5667
5668 * fold-const.c: Properly wrap prototypes.
5669
d1776069
AO
56702003-07-09 Alexandre Oliva <aoliva@redhat.com>
5671
5672 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
5673 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
5674 Moved from...
5675 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
5676 * config/mn10300/mn10300.h: GTY-declare it.
5677 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
5678 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
5679 prototype. Use incoming RTL argument.
5680 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
5681 * config/mn10300/mn10300.md (int_label): Move C statements...
5682 (GOTaddr2picreg): ... here.
5683 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
5684 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
5685 * config/mn10300/mn10300.c (mn10300_encode_section_info):
5686 ... here. New function.
5687 (TARGET_ENCODE_SECTION_INFO): Define to it.
5688 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
5689 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
5690 pattern name.
5691 (mn10300_loadPC): Define as insn splittable after reload.
5692 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
5693 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
5694 be defined in .rodata even in PIC, now that the assembler
5695 supports that.
5696 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
5697 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
5698 symbol take an underscore prefix.
5699 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
5700 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
5701 legitimize_pic_address): Declare.
5702 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
5703 the PIC register as fixed.
5704 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
5705 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
5706 PIC.
5707 (LEGITIMATE_PIC_OPERAND_P): Define.
5708 (PIC_OFFSET_TABLE_REGNUM): Define.
5709 (GOT_SYMBOL_NAME): Define.
5710 (SYMBOLIC_CONST_P): Define.
5711 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
5712 symbols.
5713 (MN10300_GLOBAL_P): Test it.
5714 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
5715 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
5716 * config/mn10300/mn10300.c (print_operand): Handle unspec.
5717 (expand_prologue): Set PIC register.
5718 (call_address_operand): Don't match SYMBOL_REFs in PIC.
5719 (legitimize_address): Call legitimize_pic_address.
5720 (legitimize_pic_address): New fn.
5721 (legitimate_pic_operand_p): New fn.
5722 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
5723 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
5724 UNSPEC_PLT): New constants.
5725 (pop_pic_reg): New insn.
5726 (movsi): Adjust non-PIC addresses.
5727 (builtin_setjmp_receiver): Restore the PIC register.
5728 (casesi): New insn.
5729 (call): Adjust non-PIC addresses.
5730 (int_label, GOTaddr2picreg): New expands.
5731 (am33_loadPC): New insn.
5732 (mn10300_loadPC): New expand.
5733 (call_next_insn): New insn.
5734 (add_GOT_to_pic_reg): New expand.
5735 (symGOT2reg, symGOT2reg_i): New expands.
5736 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
5737 (sym2PIC, sym2PLT): New expands.
5738
18e9d2f9
AO
57392003-07-09 Alexandre Oliva <aoliva@redhat.com>
5740
5741 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
5742 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
5743 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
5744 to flag_unsafe_math_optimizations.
5745 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
5746 * config/mn10300/mn10300.c (expand_prologue): Mark
5747 FP-register-saving insns as frame-related.
5748 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
5749 * config/mn10300/mn10300.c
5750 (mn10300_get_live_callee_saved_regs): Don't search past
5751 LAST_EXTENDED_REGNUM.
5752 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
5753 * config/mn10300/mn10300.md: Remove excessive line breaks from
5754 `@' output patterns that were accounted as additional
5755 alternatives.
5756 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
5757 Re-introduce changes accidentally removed in Richard Sandiford's
5758 2000-12-05's patch.
5759 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
5760 Re-instate am33-2 lost in merge from net GCC.
5761 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
5762 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
5763 floating-point registers.
5764 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
5765 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
5766 pessimizations that had gone in on 2000-05-08.
5767 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
5768 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
5769 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
5770 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
5771 operand 0.
5772 * (movhi): Likewise.
5773 * (movsi): Likewise.
5774 * (movsf): Likewise.
5775 * (movdi): Likewise.
5776 * (movdf): Likewise.
5777 Wed May 24 13:16:09 2000 Alexandre Oliva <aoliva@cygnus.com>
5778 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
5779 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
5780 (expand_prologue, expand_epilogue): Save and restore FP regs.
5781 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
5782 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
5783 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
5784 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
5785 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
5786 Do not clobber cc0.
5787 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
5788 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
5789 Discourage the two-argument, longer opcodes.
5790 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
5791 ones.
5792 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
5793 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
5794 * config/mn10300/mn10300.md (cmpsf): New pattern.
5795 (branch): Test mdep.fpCC and output fbCC.
5796 * config/mn10300/mn10300.c (print_operand): Output conditions.
5797 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
5798 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
5799 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
5800 mulsf3, divsf3): Use the `F' constraint for FP values.
5801 * config/mn10300/mn10300.c (const_1f_operand): New function.
5802 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
5803 * config/mn10300/mn10300.md (sqrtsf2): New expand.
5804 (rsqrtsf2): New insn.
5805 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
5806 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
5807 previous check-in.
5808 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
5809 * config/mn10300/mn10300.md (abssf2, negdf2): On
5810 TARGET_AM33_2, expand to...
5811 (abssf2_am33_2, negdf2_am33_2): New insns.
5812 (addsf3, subsf3, mulsf3, divsf3): Likewise.
5813 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
5814 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
5815 movdi, movdf): Added FP regs.
5816 * invoke.texi (-mam33-2, -mno-am33-2): Document.
5817 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
5818 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
5819 New macros.
5820 (REGNO_AM33_2_FP_P): Renamed to...
5821 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
5822 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
5823 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
5824 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
5825 regs from GENERAL_REGS.
5826 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
5827 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
5828 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
5829 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
5830 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
5831 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
5832 as FP_REGS.
5833 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
5834 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
5835 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
5836 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
5837 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
5838 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
5839 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
5840 AM33/2.0 floating-point registers.
5841 (CONDITIONAL_REGISTER_USAGE): Adjust.
5842 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
5843 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
5844 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
5845 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
5846 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
5847 (MULTILIB_DIRNAMES): Likewise.
5848 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
5849 `__AM33_2__' when `-mam33-2' is given.
5850 (TARGET_AM33_2): Define.
5851 (TARGET_SWITCHES): Adjust.
5852 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
5853 when appropriate.
5854
2ff16718
MK
58552003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
5856
5857 * doc/install.texi: Add missing @.
5858
a7bda3d5
BW
58592003-07-09 Bob Wilson <bob.wilson@acm.org>
5860
5861 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
5862
bb498ea3
AH
58632003-07-09 Aldy Hernandez <aldyh@redhat.com>
5864
5865 PR/11144
5866 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
5867
a401fd60
NN
58682003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
5869
21f3dbfc 5870 PR bootstrap/11043
6b88314c 5871 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
21f3dbfc
NN
5872 "x-crtfini.o" with "crtinit.o", "crtfini.o".
5873
15e4ea18
NN
5874 * fixinc/inclhack.def (limits_ifndefs): Add select test.
5875 * fixinc/fixincl.x: Rebuild.
5876
a401fd60
NN
5877 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
5878 * fixinc/fixincl.x: Rebuild.
5879
c2f82a84
HPN
58802003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
5881
5882 * doc/install.texi (Configuration): Document the valgrind option
5883 to --enable-checking.
5884
1f66e2a0
JH
5885Wed Jul 9 16:16:30 CEST 2003 Jan Hubicka <jh@suse.cz>
5886
5887 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
5888
d0974745
RO
58892003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5890
5891 * c-lex.c (cb_ident): Cast cstr.text to const char *.
5892
160e2e4f
NS
58932003-07-09 Nathan Sidwell <nathan@codesourcery.com>
5894
5895 * gcov-io.h: Update documentation.
5896 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
5897 GCOV_NOTE_MAGIC.
5898 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
5899 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
5900 (struct gcov_var): Change buffer's type. Add endian flag.
5901 (gcov_open): Remove mode in libgcov.
5902 (gcov_magic): Prototype.
5903 * gcov-io.c (from_file): New.
5904 (gcov_open): Clear endian flag.
5905 (gcov_magic): New.
5906 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
5907 pointers.
5908 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
5909 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
5910 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
5911 * gcov-iov.c (main): Correct cast.
5912 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
5913 conversion.
5914 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
5915 (coverage_init): Use GCOV_NOTE_SUFFIX.
5916 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
5917 Rename to gcov_version, and return flag.
5918 (gcov_exit): Use gcov_version.
5919 (__gcov_init): Use gcov_version.
5920 * Makefile.in (coverageexts): Update.
5921 * gcov.c (print_version): Remove endianness conversion.
5922 (create_file_names): Use GCOV_NOTE_SUFFIX.
5923 (read_graph_file): Use gcov_magic.
5924 (read_count_file): Likewise.
5925 * gcov-dump.c (dump_file): Remove endianness conversion, use
5926 gcov_magic.
5927
83599948
NS
59282003-07-09 Nathan Sidwell <nathan@codesourcery.com>
5929
5930 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
5931 coverage is on.
5932 * configure: Regenerated.
5933 * Makefile.in (ALL_CFLAGS): Correct its comment.
5934
d17811fd
MM
59352003-07-08 Mark Mitchell <mark@codesourcery.com>
5936
5937 * fold-const.c (make_range): Do not access operand 1 for a
5938 zero-operand operator.
5939
28786366
NB
59402003-07-09 Neil Booth <neil@daikokuya.co.uk>
5941
5942 * toplev.c (warn_dummy, W_options): Die.
5943 (display_help): Don't print W_options.
5944 * common.opt: Add W_options help from toplev.c.
5945
fbdb0453
AJ
59462003-07-09 Andreas Jaeger <aj@suse.de>
5947
5948 * opts.c (wrap_help): Only pass int arguments as arguments to
5949 printf's '*' modifier. Change argument of function.
5950
c80e4c17
MK
59512003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
5952
5953 * doc/invoke.texi: Fix misspelling of "@item".
5954
2c5a64c6
KH
59552003-07-08 Kazu Hirata <kazu@cs.umass.edu>
5956
5957 * config/i386/i386.md: Remove an old comment about
5958 NOTICE_UPDATE_CC.
5959
a194aa56
JH
5960Wed Jul 9 03:00:10 CEST 2003 Jan Hubicka <jh@suse.cz>
5961
5962 * cgraph.c (cgraph_node_name): New function.
5963 (dump_cgraph): Use it.
5964 * cgraph.h (cgraph_dump_file): Declare.
5965 (cgraph_node_name): Declare.
5966 * cgraphunit.c: Include timevar.h
5967 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
5968 (cgraph_optimize_function): Use TV_INTEGRATION.
5969 (cgraph_mark_local_functions): reorganize dumps.
5970 (cgraph_mark_functions_to_inline_once): Likewise.
5971 (cgraph_optimize): Likewise; use timevar.
5972 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
5973 * toplev.c (dump_file_index): Add DFI_cgraph.
5974 (dump_file_info): Likewise.
5975 (cgraph_dump_file): New global variable.
5976 (do_compile): Open and close cgraph dump.
5977 * invoke.texi (-d): Document new flag; renumber.
5978
8af61113
RS
59792003-07-08 Roger Sayle <roger@eyesopen.com>
5980
5981 PR c/11370
5982 * calls.c (emit_call_1): Don't bother popping the arguments off of
5983 the stack after a noreturn function call; The adjustment is dead.
5984 (expand_call): Likewise.
5985
436bcda1
GK
59862003-07-08 Geoffrey Keating <geoffk@apple.com>
5987
5988 * expr.c (MOVE_MAX_PIECES): Move from here...
5989 * defaults.h (MOVE_MAX_PIECES): ... to here.
5990
6f3fcc0b
MK
59912003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
5992
5993 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
5994
ec049fdb
KG
59952003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
5996
5997 * genattr.c (internal_dfa_insn_code): Don't prototype.
5998 * genattrtab.c (attr_desc): Add `static_p' field.
5999 (expand_units): Make blockage range and ready cost functions
6000 static.
6001 (write_attr_get): Don't add extern prototypes in C file. Mark
6002 static functions as appropriate.
6003 (find_attr, make_internal_attr): Initialize static_p.
6004 * genattrtab.h (ATTR_STATIC): New macro.
6005 * genautomata.c (output_internal_reset_func): Mark output function
6006 as inline.
6007 (make_internal_dfa_insn_code_attr): Mark output function as static.
6008
11597bc9
KG
60092003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6010
6011 * genattrtab.h: Add new macros for attr `special' flags.
6012 * genattrtab.c (attr_desc): Reorder/resize fields better.
6013 Use attr `special' macros in all calls to make_internal_attr.
6014 * genautomata.c: Likewise.
6015
084c1779
JH
6016Wed Jul 9 02:25:39 CEST 2003 Jan Hubicka <jh@suse.cz>
6017
6018 * c-common.c (c_estimate_num_insns_1): New static function.
6019 (c_estimate_num_insns): New global function.
6020 * c-common.h (DECL_NUM_STMTS): Rename to...
6021 (DECL_ESTIMATED_INSNS): ... this.
6022 (c_estimate_num_insns): Declare.
6023 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
6024 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
6025 * c-semantics.c (add_stmt): Do not account statements.
6026 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
6027 New.
6028 * langhooks.h (lang_hooks_for_tree_inlining): Add
6029 estimate_num_insns
6030 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
6031 to 100.
6032 (max-inline-insns): set to 300.
6033 (min-inline-insns): set to 10.
6034 * tree-inline.c (struct inline_data): Rename inlined_stmts to
6035 inlined-insns.
6036 (INSNS_PER_STMT): Kill.
6037 (inlinable_function_p): Compute and store body size.
6038 (expand_call_inline): Likewise.
6039 (optimize_inline_calls): Likewise.
6040
1b1838b6
JW
60412003-07-08 James E Wilson <wilson@tuliptree.org>
6042
6043 PR target/10021
6044 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
6045 loop over new variable t2 instead of t.
6046
81a6341d
DS
60472003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
6048
6049 PR bootstrap/11455
6050 * config/i386/winnt.c: Replace use of error(), warning() with
6051 error_with_decl(), warning_with_decl(), throughout.
6052
21789816
NB
60532003-07-08 Neil Booth <neil@daikokuya.co.uk>
6054
6055 * opts.c (wrap_help): Use unsigned int, not size_t.
6056
f6423302
SC
60572003-07-08 Stephane Carrez <stcarrez@nerim.fr>
6058
6059 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
6060 as .file/.loc directives are incompatible with linker relaxation.
6061
ab747408
ZW
60622003-07-08 Zack Weinberg <zack@codesourcery.com>
6063
6064 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
6065 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
6066 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
6067 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
6068 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
6069 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
6070 Escape { and } characters which are not part of range expressions.
6071 * fixinc/fixincl.x: Regenerate.
a27531fb 6072 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
ab747408 6073
51657442
SB
60742003-07-08 Steven Bosscher <steven@gcc.gnu.org>
6075
6076 PR c/1687
6077 * tree-inline.c (find_alloca_call): Use
6078 walk_tree_without_duplicates, instead of walk_tree.
6079 (find_builtin_longjmp_call): Likewise.
6080 * c-objc-common.c (c_cannot_inline_fn): Likewise.
6081 * c-semantics.c (find_reachable_label): Likewise.
6082
7e6dc358
JJ
60832003-07-08 Jakub Jelinek <jakub@redhat.com>
6084
6085 PR c/11420
6086 * config/i386/i386.c (ix86_check_movabs): New function.
6087 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
6088 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
6089 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
6090
318b7749
CD
60912003-07-08 Chris Demetriou <cgd@broadcom.com>
6092
6093 * Makefile.in (install-po): Cope with empty CATALOGS.
6094
b8898790
RS
60952003-07-08 Richard Sandiford <rsandifo@redhat.com>
6096
6097 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
6098 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
6099 (SECTION_FUNCTION_TEMPLATE): Delete.
6100 * config/mips/elf.h: As for elf64.h.
6101 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
6102 * config/mips/linux.h: As for elf.h
6103 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
6104 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
6105 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
6106 of in_sdata from current_section_name and current_section_flags.
6107 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
6108 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
6109 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
6110 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
6111 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
6112 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
6113 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
6114 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
6115 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
6116 (override_options): Remove setting of MASK_GPOPT.
6117 (mips_output_external): Use mips_in_small_data_p to check whether a
6118 symbol needs an .extern directive. Don't emit such directives for
6119 TARGET_EXPLICIT_RELOCS.
6120 (mips_declare_object): Update accordingly.
6121 (mips_select_rtx_section): Call named_section rather than
6122 SMALL_DATA_SECTION.
6123 (mips_select_section): Use default_elf_section_section for everything
6124 except .text string constants.
6125 (mips_in_small_data_p): New function.
6126 (mips_encode_section_info): Remove small data handling.
6127 (mips_unique_section): Delete.
6128 (iris6_section_type_flags): New function.
6129 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
6130
f5d1c3de
JDA
61312003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6132
6133 PR Target/11453
6134 * pa.md: Disparage all mtsar constraints.
6135 (extzv, extv, insv): Don't fail on length of {32|64}.
6136
ce1bb65b
ZW
61372003-07-08 Zack Weinberg <zack@codesourcery.com>
6138
6139 * system.h: Poison MAP_CHARACTER.
6140 * config/i370/i370-protos.h (mvs_map_char): Delete.
6141 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
6142 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
6143 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
6144
c163ddca
DS
61452003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
6146
6147 * toplev.c (randomize): Correct call to time().
6148
8df63efa
JJ
61492003-07-08 Jakub Jelinek <jakub@redhat.com>
6150
6151 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
6152 REG_EQUIV notes as well.
6153
4b5cc2b3
KH
61542003-07-08 Kazu Hirata <kazu@cs.umass.edu>
6155
6156 * doc/md.texi: Fix the description of addmodecc.
6157
56694dd9
ZW
61582003-07-07 Zack Weinberg <zack@codesourcery.com>
6159
6160 * Makefile.in (top_builddir): Set to "..", not ".".
6161 (INTLLIBS, INTLDEPS): Delete.
6162 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
6163 (LIBDEPS): Add $(LIBICONV_DEP).
6164 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
6165 (INCLUDES): Replace -I../intl with @INCINTL@.
6166 ($(top_builddir)/intl/libintl.a): Delete rule.
6167 (stage2-start, stage3-start, stage4-start, stageprofile-start,
6168 stagefeedback-start): Use $$ for variable to be evaluated by
6169 shell, not make.
6170 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
6171 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
6172 * aclocal.m4: sinclude ../config/progtest.m4. Add
6173 contents of lcmessage.m4 from gettext distro.
6174 * configure.in: Check for wchar.h and setlocale. Set
6175 LIBICONV_DEP to the empty string and substitute it.
6176 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
6177 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
6178 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
6179 in $LIBINTL, to avoid linking it twice.
6180 * configure, config.in: Regenerate.
6181
a294c4cf
NN
61822003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
6183
6184 * fixinc/mkfixinc.sh: Remove winnt support.
6185 * fixinc/fixinc.winnt: Delete with extreme prejudice.
6186
979312a4
NB
61872003-07-08 Neil Booth <neil@daikokuya.co.uk>
6188
6189 * Makefile.in: Update.
6190 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
6191 * c.opt: Update documentation.
6192 * common.opt: Add some help text.
6193 * opts.c: Include intl.h.
6194 (wrap_help, print_help): New.
6195 (find_opt, handle_option, common_handle_option): opt_text now
6196 contains the '-'. Use print_help to output help.
6197 * opts.h (struct cl_option): New member "help".
6198 * opts.sh: Update to handle help text output and to prepend
6199 options with '-'.
6200 * toplev.c (display_help): Remove some help text.
6201
2c4a9cff
DE
62022003-07-07 David Edelsohn <edelsohn@gnu.org>
6203 Fariborz Jahanian <fjahanian@apple.com>
6204
6205 * configure.in: Test for PowerPC mfcr field support in assembler.
6206 * config.in, configure: Regenderated.
6207
6208 * config/rs6000/power4.md: Add mfcrf reservation.
6209 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
6210 * config/rs6000/rs6000.c (mfcr_operation): Define.
6211 (print_operand): Add 'Q' case for mfcrf.
6212 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
6213 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
6214 (movcc_internal1): Emit optional field operand for mfcr and set
6215 "type" attribute appropriately.
6216 (mfcr SCC): Likewise.
6217 (movesi_from_cr_one): New.
6218
923c4cf2
RS
62192003-07-07 Roger Sayle <roger@eyesopen.com>
6220
6221 * config/i386/i386.md: Correct check-in of incorrect version.
6222
75b6f3fd
KG
62232003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6224
6225 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
6226 adjacent stdio calls.
6227 * c-decl.c (c_print_identifier): Likewise.
6228 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
6229 * print-rtl.c (print_rtx): Likewise.
6230 * print-tree.c (print_node_brief, print_node): Likewise.
6231 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
56694dd9 6232
75b6f3fd
KG
6233 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
6234 * config.in, configure: Regenerated.
6235
afeeac3f
RS
62362003-07-07 Roger Sayle <roger@eyesopen.com>
6237
6238 PR target/10979
6239 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
6240 Changed to define_expand patterns that copy operand[1] to prevent
6241 it from being clobbered before emitting an atan2?f3_1 insn.
6242 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
6243 patterns that actually specify the behaviour of x87's FPATAN.
6244
eeff9307
JJ
62452003-07-07 Jakub Jelinek <jakub@redhat.com>
6246
6247 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
6248 clearing of SYMBOL_FLAG_LOCAL bit.
6249 If vcall_offset fits into signed 16-bit immediate, use
6250 one instruction for both addition and load.
6251
0fcd5dda
NB
62522003-07-07 Neil Booth <neil@daikokuya.co.uk>
6253
6254 * opts.c (common_handle_option): Correct handling of the
6255 -falign- switches that do and don't take an argument.
6256
b275810a
KH
62572003-07-07 Kazu Hirata <kazu@cs.umass.edu>
6258
6259 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
6260 today.
6261 (pushhi1_h8300hs): Likewise.
6262
5671bf27
AJ
62632003-07-07 Andreas Jaeger <aj@suse.de>
6264
6265 * genextract.c: Convert remaining prototypes to ISO C90.
6266
6267 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
6268 * fold-const.c (fold_single_bit_test): Likewise.
6269 * diagnostic.c (default_diagnostic_finalizer): Likewise.
6270 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
6271
6272 * gengtype.c (write_array): Generate ISO C90 prototypes.
6273
6274 * genflags.c (gen_proto): Generate ISO C90 prototypes.
6275
2c430630
RS
62762003-07-07 Roger Sayle <roger@eyesopen.com>
6277
6278 PR optimization/11059
6279 * expr.c (can_store_by_pieces): Return true if length is zero.
6280 (store_by_pieces): If length is zero and endp is two, abort,
6281 othwerise, if length is zero and endp is not two, return "to".
6282 (clear_by_pieces): Do nothing if length is zero.
6283 (clear_storage): Do nothing if length is zero.
6284 (store_constructor): Simplify code when size is zero, or the
6285 target has already been cleared. This avoids emitting a
6286 blockage instruction when initializing empty structures.
6287
cf633f5b
AJ
62882003-07-07 Andreas Jaeger <aj@suse.de>
6289
6290 * mips-tfile.c: Convert prototypes to ISO C90.
6291 * mips-tdump.c: Convert prototypes to ISO C90.
6292
0cea056b
NS
62932003-07-07 Nathan Sidwell <nathan@codesourcery.com>
6294
6295 * rtl.h (emit_line_note): Take a location_t.
6296 (emit_line_note_force): Remove.
6297 (set_file_and_line_for_statement): Take a location_t.
6298 * tree.g (emit_line_note): Take a location_t.
6299 * emit-rtl.c (emit_line_note): Take a location_t.
6300 (emit_line_note_force): Remove.
6301 * function.c (init_function_start): Adjust emit_line_note call.
6302 (expand_function_end): Use force_next_line_note, not
6303 emit_line_note_force.
6304 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
6305 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
6306 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
6307 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
6308 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
6309 genrtl_continue_stmt, genrtl_switch_stmt,
6310 genrtl_asm_stmt): Likewise.
6311 * expr.c (expand_expr): Likewise.
6312 * integrate.c (expand_inline_function): Likewise.
6313 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
6314 (expand_decl_init): Adjust emit_line_note call.
6315
8eb910fc
DJ
63162003-07-07 Dale Johannesen <dalej@apple.com>
6317
56694dd9 6318 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
8eb910fc 6319
b96a374d
AJ
63202003-07-07 Andreas Jaeger <aj@suse.de>
6321
6322 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
6323 * config/i386/i386.c: Likewise.
6324
273fc01e
KH
63252003-07-07 Kazu Hirata <kazu@cs.umass.edu>
6326
6327 * config/h8300/h8300.md: Use gen_int_mode instead of
6328 GEN_INT (trunc_int_for_mode (...)).
6329
fb7d7712
KH
63302003-07-07 Kazu Hirata <kazu@cs.umass.edu>
6331
6332 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
6333 2 bytes and then subtract 2 from the stack pointer.
6334 (pushhi1_h8300hs): Likewise.
6335
e61a2eb7
NS
63362003-07-07 Nathan Sidwell <nathan@codesourcery.com>
6337
6338 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
6339 -frandom-seed.
6340 * configure: Regenerated.
6341 * Makefile.in: Remove extraneous comment.
6342 * toplev.c (randomize): Protect against potential multiple calls.
6343 * doc/invoke.texi (-frandom-seed): Document use for in coverage
6344 files.
6345
82d610ec 63462003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
56694dd9 6347 Eric Botcazou <ebotcazou@libertysurf.fr>
82d610ec
RK
6348
6349 PR optimization/11198
6350 * alias.c (objects_must_conflict_p): Return 1 if the types have
6351 the same alias set, not if the alias sets only conflict.
6352
5beadb33
AP
63532003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
6354
6355 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
6356 (convert_cset): Change inbuf to type ICONV_CONST char.
6357 * Makefile.in (LIBS): Add LIBICONV.
6358
9bb34f3c
AJ
6359 * doc/invoke.texi (-falign-functions): Document that
6360 when n is zero then a machine-dependent default is used.
6361 (-falign-labels): Document that when n is zero then a
6362 machine-dependent default is used and that -falign-labels =1
6363 is equivalent to -fno-align-labels.
6364 (-falign-loops): Likewise.
6365 (-falign-jumps): Likewise.
6366
1dbb6ce8
AH
63672003-07-06 Art Haas <ahaas@airmail.net>
6368
6369 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
6370 initializer syntax.
6371
8338d44d
JW
63722003-07-06 James E Wilson <wilson@tuliptree.org>
6373
6374 PR optimization/9812
6375 * rtl.h (mem_for_const_double): Delete prototype.
6376 * varasm.c (mem_for_const_double): Delete function.
6377 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
6378 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
6379 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
6380 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
6381 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
6382 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
6383 comment about confused support for XFmode constants.
6384
9efd34a5
JH
6385Mon Jul 7 02:03:56 CEST 2003 Jan Hubicka <jh@suse.cz>
6386
6387 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
6388
2a43945f
KH
63892003-07-06 Kazu Hirata <kazu@cs.umass.edu>
6390
6391 * config/h8300/h8300.c: Fix comment typos.
6392 * config/h8300/h8300.md: Likewise.
6393 * config/i386/athlon.md: Likewise.
6394 * config/i386/i386.c: Likewise.
6395 * config/i386/pentium.md: Likewise.
6396 * config/ia64/ia64.c: Likewise.
6397 * config/ia64/itanium1.md: Likewise.
6398 * config/ia64/itanium2.md: Likewise.
6399 * config/m32r/m32r.md: Likewise.
6400 * config/m68hc11/m68hc11.c: Likewise.
6401 * config/mcore/mcore.c: Likewise.
6402 * config/mips/sr71k.md: Likewise.
6403 * config/mips/t-iris5-as: Likewise.
6404 * config/mmix/mmix.h: Likewise.
6405 * config/ns32k/ns32k.h: Likewise.
6406 * config/ns32k/NOTES: Fix a typo.
6407
ceee09f7
AJ
64082003-07-06 Andreas Jaeger <aj@suse.de>
6409
7e51717c
AJ
6410 * stmt.c: Convert remaining prototypes to ISO C90.
6411 * cfglayout.c: Likewise.
6412 * dbxout.c: Likewise.
6413 * gcc.c: Likewise.
6414 * genemit.c: Likewise.
6415
ceee09f7
AJ
6416 * basic-block.h: Convert prototypes to ISO C90.
6417 * c-parse.in: Likewise.
6418 * c-pragma.h: Likewise.
6419 * c-typeck.c: Likewise.
6420 * cfghooks.h: Likewise.
6421 * cfgloopanal.c: Likewise.
6422 * dbxout.h: Likewise.
6423 * debug.h: Likewise.
6424 * dwarf2asm.h: Likewise.
6425 * gcov.c: Likewise.
6426 * gengtype-lex.l: Likewise.
6427 * sched-int.h: Likewise.
6428 * timevar.c: Likewise.
6429
cb66e385
NB
64302003-07-06 Neil Booth <neil@daikokuya.co.uk>
6431
6432 * c-common.h (c_comon_handle_filename,
6433 c_common_missing_arguement): New.
6434 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
6435 LANG_HOOKS_MISSING_ARGUMENT): New.
6436 * c-opts.c (missing_arg): Rename c_common_missing_argument,
6437 update to be an appropriate langhook.
6438 (c_common_handle_option): Don't handle filenames.
6439 (c_common_handle_filename): New.
6440 * hooks.c (hook_void_constcharptr,
6441 hook_bool_constcharptr_size_t_false): New.
6442 * hooks.h (hook_void_constcharptr,
6443 hook_bool_constcharptr_size_t_false): New.
6444 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
6445 LANG_HOOKS_MISSING_ARGUMENT): New.
6446 (LANG_HOOKS_INITIALIZER): Update.
6447 * langhooks.h (struct lang_hooks): Add handle_filename and
6448 missing_argument.
6449 * opts.c (handle_option): Don't handle filenames here, but ...
6450 (handle_options): ... here.
6451 (common_handle_option): Don't handle missing arguments here.
6452 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
6453 LANG_HOOKS_MISSING_ARGUMENT): New.
6454
ade4289c
NB
64552003-07-06 Neil Booth <neil@daikokuya.co.uk>
6456
6457 * Makfile.in: Remove traces of mbchar.
6458 * c-parse.in (MULTIBYTE_CHARS): Remove.
6459 * config.in (MULTIBYTE_CHARS): Remove.
6460 * configure: Remove --enable-mbchar.
6461 * configure.in: Remove --enable-mbchar.
6462 * mbchar.c, mbchar.h: Remove.
6463 * system.h: Poison MULTIBYTE_CHARS.
6464 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
6465 * config/linux.h (MULTIBYTE_CHARS): Remove.
6466 * config/svr4.h (MULTIBYTE_CHARS): Remove.
6467 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
6468
2e1eedd6
AJ
64692003-07-06 Andreas Jaeger <aj@suse.de>
6470
11dc5cc6
AJ
6471 * varray.c (varray_check_failed): Fix typo.
6472
6473 * unroll.c: Convert prototypes to ISO C90.
2e1eedd6
AJ
6474 * varasm.c: Likewise.
6475 * varray.c: Likewise.
6476 * varray.h: Likewise.
6477 * vmsdbgout.c: Likewise.
6478 * xcoffout.c: Likewise.
6479 * xcoffout.h: Likewise.
6480
dd486eb2
NS
64812003-07-06 Nathan Sidwell <nathan@codesourcery.com>
6482
6483 * gcov-io.h: Add a local time stamp.
6484 (struct gcov_info): Add stamp field.
6485 (gcov_truncate): New.
6486 * coverage.c (read_counts_file): Skip the stamp.
6487 (coverage_begin_output): Write the stamp.
6488 (build_gcov_info): Declare and init the stamp.
6489 (coverage_finish): Only unlink data file, if stamp is zero.
6490 * gcov-dump.c (dump_file): Dump the stamp.
6491 * gcov.c (bbg_stamp): New.
6492 (release_structures): Clear bbg_stamp.
6493 (read_graph_file): Read stamp.
6494 (read_count_file): Check stamp.
6495 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
6496
c07e5477
NS
64972003-07-06 Nathan Sidwell <nathan@codesourcery.com>
6498
6499 * tree.h (default_flag_random_seed): Remove.
6500 * toplev.h (local_tick): Declare.
6501 * tree.c (flag_random_seed, default_flag_random_seed): Move to
6502 toplev.c.
6503 (append_random_chars): Don't call default_flag_random_seed.
6504 * toplev.c (flag_random_seed): Define here. Set local_tick.
6505 (local_tick): Define.
6506 (randomize): New, moved from tree.c.
6507 (print_switch_values): Adjust.
6508 (toplev_main): Call randomize.
6509
2aab7ceb
NS
65102003-07-06 Nathan Sidwell <nathan@codesourcery.com>
6511
6512 * tree.h (crc32_string): Declare.
6513 * tree.c (append_random_chars): Remove.
6514 (crc32_string): New.
6515 (get_file_function_name_long): Use crc32_string here.
6516
1d088dee
AJ
65172003-07-06 Andreas Jaeger <aj@suse.de>
6518
6519 * gcc.c: Convert prototypes to ISO C90.
6520 * gcc.h: Likewise.
6521 * gcov-dump.c: Likewise.
6522 * gcov-iov.c: Likewise.
6523 * gcse.c: Likewise.
6524 * genattrtab.h: Likewise.
6525 * ggc.h: Likewise.
6526 * global.c: Likewise.
6527 * graph.c: Likewise.
6528 * graph.h: Likewise.
6529 * hosthooks.h: Likewise.
6530 * hooks.h: Likewise.
6531 * hooks.c: Likewise.
6532 * hashtable.h: Likewise.
6533 * hashtable.c: Likewise.
6534 * haifa-sched.c: Likewise.
6535 * integrate.h: Likewise.
6536 * integrate.c: Likewise.
6537 * input.h: Likewise.
6538 * ifcvt.c: Likewise.
f8ec47c7 6539 * jump.c: Likewise.
0c20a65f
AJ
6540 * langhooks-def.h: Likewise. Add extern to prototypes.
6541 * langhooks.c: Likewise.
6542 * langhooks.h: Likewise.
6543 * lcm.c: Likewise.
6544 * local-alloc.c: Likewise.
6545 * loop-init.c: Likewise.
6546 * loop-unroll.c: Likewise.
6547 * loop-unswitch.c: Likewise.
6548 * loop.c: Likewise.
6549 * loop.h: Likewise. Add extern to prototypes.
6550 * machmode.h: Likewise.
6551 * main.c: Likewise.
6552 * mbchar.c: Likewise.
6553 * mbchar.h: Likewise.
6554 * mkdeps.c: Likewise.
6555 * mkdeps.h: Likewise.
6556 * optabs.c: Likewise.
6557 * optabs.h: Likewise.
6558 * output.h: Likewise.
6559 * gccspec.c: Likwise.
6560 * postreload.c: Likewise.
6561 * prefix.c: Likewise.
6562 * prefix.h: Likewise.
6563 * print-rtl.c: Likewise.
6564 * print-tree.c: Likewise.
6565 * profile.c: Likewise.
6566 * read-rtl.c: Likewise.
6567 * real.c: Likewise.
6568 * real.h: Likewise.
6569 * recog.c: Likewise.
6570 * recog.h: Likewise.
6571 * reg-stack.c: Likewise.
6572 * regclass.c: Likewise.
6573 * regmove.c: Likewise.
6574 * regrename.c: Likewise.
6575 * regs.h: Likewise.
6576 * reload.c: Likewise.
6577 * reload.h: Likewise.
6578 * reload1.c: Likewise.
6579 * reorg.c: Likewise.
6580 * resource.c: Likewise.
6581 * resource.h: Likewise.
6582 * rtl-error.c: Likewise.
6583 * rtl.c: Likewise.
6584 * rtl.h: Likewise.
6585 * rtlanal.c: Likewise.
46c5ad27
AJ
6586 * sbitmap.c: Likewise.
6587 * sbitmap.h: Likewise.
6588 * scan-decls.c: Likewise.
6589 * scan.c: Likewise.
6590 * sched-deps.c: Likewise.
6591 * sched-ebb.c: Likewise.
6592 * sched-int.h: Likewise.
6593 * sched-rgn.c: Likewise.
6594 * sched-vis.c: Likewise.
6595 * sibcall.c: Likewise.
6596 * simplify-rtx.c: Likewise.
6597 * sreal.c: Likewise.
6598 * sreal.h: Likewise.
6599 * ssa-ccp.c: Likewise.
6600 * ssa-dce.c: Likewise.
6601 * ssa.c: Likewise.
6602 * ssa.h: Likewise.
6603 * stack.h: Likewise.
6604 * stmt.c: Likewise.
6605 * stor-layout.c: Likewise.
6606 * stringpool.c: Likewise.
6607 * target.h: Likewise.
6608 * timevar.c: Likewise.
6609 * timevar.h: Likewise.
6610 * tlink.c: Likewise.
6611 * tracer.c: Likewise.
6612 * tree-inline.c: Likewise.
6613 * tree-inline.h: Likewise.
6614 * tree.c: Likewise.
6615 * tree.h: Likewise.
1d088dee 6616
4f649bc1
KH
66172003-07-05 Kazu Hirata <kazu@cs.umass.edu>
6618
6619 * combine.c (nonzero_bits1): Fix a warning.
6620
66212003-07-05 Kazu Hirata <kazu@cs.umass.edu>
2c4a71b3
KH
6622
6623 * config/h8300/h8300.c (compute_mov_length): Correct the
6624 length of loading CONST0_RTX (SFmode).
6625
f5924ac1
NS
66262003-07-05 Nathan Sidwell <nathan@codesourcery.com>
6627
6628 * toplev.c (output_clean_symbol_name): Remove.
6629 * toplev.h (output_clean_symbol_name): Remove.
6630 * config/alpha/alpha.c (unicosmk_output_module_name): Use
6631 lbasename & clean_symbol_name.
6632
39e3f58c
KH
66332003-07-05 Kazu Hirata <kazu@cs.umass.edu>
6634
6635 * ggc.h: Follow spelling conventions.
6636 * config/i386/i386.c: Likewise.
6637 * config/i386/winnt.c: Likewise.
6638 * config/rs6000/rs6000.c: Likewise.
6639
4d6922ee
KH
66402003-07-05 Kazu Hirata <kazu@cs.umass.edu>
6641
6642 * bt-load.c: Fix comment typos.
6643 * c-incpath.c: Likewise.
6644 * cfg.c: Likewise.
6645 * cfgcleanup.c: Likewise.
6646 * cfgloop.h: Likewise.
6647 * cfgloopmanip.c: Likewise.
6648 * cfgrtl.c: Likewise.
6649 * diagnostic.h: Likewise.
6650 * dwarfout.c: Likewise.
6651 * emit-rtl.c: Likewise.
6652 * et-forest.c: Likewise.
6653 * et-forest.h: Likewise.
6654 * expr.c: Likewise.
6655 * gcse.c: Likewise.
6656 * genattr.c: Likewise.
6657 * jump.c: Likewise.
6658 * langhooks.h: Likewise.
6659 * local-alloc.c: Likewise.
6660 * loop-unroll.c: Likewise.
6661 * loop-unswitch.c: Likewise.
6662 * ra-build.c: Likewise.
6663 * regclass.c: Likewise.
6664 * regmove.c: Likewise.
6665 * rtl.def: Likewise.
6666 * rtlanal.c: Likewise.
6667 * sched-ebb.c: Likewise.
6668 * sched-rgn.c: Likewise.
6669 * simplify-rtx.c: Likewise.
6670 * ssa.c: Likewise.
6671 * tracer.c: Likewise.
6672 * tree.c: Likewise.
6673
f1c4bc4f
ZW
66742003-07-05 Zack Weinberg <zack@codesourcery.com>
6675
6676 * cppcharset.c: Use the correct return type for the fallback iconv
6677 macro.
6678
65c6f1b4
ZD
6679Sat Jul 5 16:18:53 CEST 2003 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6680
6681 Blame to Jan Hubicka <jh@suse.cz>
6682 * cfglayout.c (record_effective_endpoints): Split insns before
6683 first basic block correctly.
6684
a8f3bf52
RK
66852003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6686
f1c4bc4f 6687 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
a8f3bf52
RK
6688 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
6689 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
6690
0641776c
AJ
66912003-07-05 Andreas Jaeger <aj@suse.de>
6692
6693 * genattrtab.c (write_attr_get): Revert part of last patch to
6694 always write out a prototype.
6695
6696 * genemit.c (gen_split): Readd lost unused attributes in last
6697 patch.
6698
977129f6
ZD
66992003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6700
6701 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
6702 different from header.
6703
5ee084df
AS
67042003-07-05 Andreas Schwab <schwab@suse.de>
6705
6706 * config/m68k/m68k.c: Remove code protected by CRDS.
6707 * config/m68k/m68k.md: Likewise.
6708
33de9573
NB
67092003-07-05 Neil Booth <neil@daikokuya.co.uk>
6710
6711 PR driver/11417
6712 * c-opts.c (permit_fortran_options): New.
6713 (c_common_init_options): Accept fortran front end options if
6714 it looks like we might be preprocessing Fortran.
6715 (c_common_handle_option): Don't reject switch if permit_fotran_options.
6716
6906ba40
KG
67172003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6718
6719 * genattr.c (internal_dfa_insn_code): Output prototype.
6720 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
6721 * genautomata.c: Likewise.
6722 * genconditions.c: Likewise.
6723 * genemit.c: Likewise.
6724 * genextract.c: Likewise.
6725 * gengenrtl.c: Likewise.
6726 * gengtype.c: Likewise.
6727 * genopinit.c: Likewise.
6728 * genoutput.c: Likewise.
6729 * genpeep.c: Likewise.
6730 * genrecog.c: Likewise.
6731
e6cc3a24
ZW
67322003-07-04 Zack Weinberg <zack@codesourcery.com>
6733
6734 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
6735 (struct cpp_options): Add narrow_charset, wide_charset,
6736 bytes_big_endian fields. Remove EBCDIC field.
6737 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
6738
6739 * cpphash.h: Include <iconv.h> if we have it, otherwise
6740 provide a dummy definition of iconv_t.
6741 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
6742 (_cpp_valid_ucn): Update prototype.
6743 (_cpp_destroy_iconv): New prototype.
6744
6745 * doc/cpp.texi: Document character set handling.
6746 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
6747 * doc/extend.texi: Delete entire section on multiline strings.
6748 Rewrite section on __FUNCTION__ etc now that these are
6749 variables in C.
6750
6751 * cppucnid.tab, cppucnid.pl: New files.
6752 * cppucnid.h: New generated file.
6753 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
6754 (iconv_open, iconv, iconv_close): Provide dummy definitions
6755 if !HAVE_ICONV.
6756 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
6757 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
6758 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
6759 cpp_interpret_string, narrow_str_to_charconst,
6760 wide_str_to_charconst): New.
6761 (ucn_valid_in_identifier): Use a binary search through the
6762 ucnranges table defined in cppucnid.h, not a long chain of if
6763 statements.
6764 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
6765 character names are only valid in C++ and C99" to a warning.
6766 Issue the "meaning of \[uU] is different in traditional C"
6767 warning here. Take care not to let iconv see an invalid UCS
6768 value if we get a malformed UCN. Issue an error if we don't
6769 have iconv.
6770 (cpp_interpret_charconst): Moved here from cpplex.c. Use
6771 cpp_interpret_string to do the heavy lifting.
6772
6773 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
6774 narrow_charset, wide_charset fields of options structure.
6775 (cpp_destroy): Call _cpp_destroy_iconv.
6776 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
6777 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
6778 (cpp_interpret_charconst): Moved to cppcharset.c.
6779 * cpplib.c (dequote_string): Delete.
6780 (interpret_string_notranslate): New.
6781 (do_line, do_linemarker): Use interpret_string_notranslate.
6782
6783 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
6784
6785 * c-common.c (fname_string, combine_strings): Delete.
6786 * c-common.h (fname_string, combine_strings): Delete prototypes.
6787 * c-lex.c (ignore_escape_flag): Delete.
6788 (cb_ident): Use cpp_interpret_string, not lex_string.
6789 (get_nonpadding_token): New function.
6790 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
6791 Adjust calls to lex_string. Don't write *value twice.
6792 (lex_string): Now handles string constant concatenation.
6793 Most of the work handed off to cpp_interpret_string.
6794 Call fix_string_type here.
6795 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
6796 FUNC_NAME, throughout.
6797 (OBJC_STRING): New token type.
6798 (primary:STRING): No need to call fix_string_type here.
6799 (primary:objc_string): Make that OBJC_STRING.
6800 (objc_string nonterminal): Delete.
6801 (yylexname): Delete code to handle fake string constants.
6802 (yylexstring): Delete entirely.
6803 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
6804 to handle CPP_ATSIGN.
6805
6806 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
6807 * c-opts.c (missing_arg, c_common_handle_option): Handle
6808 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
6809 (c_common_init): Set cpp_opts->bytes_big_endian, not
6810 cpp_opts->EBCDIC. Call cpp_init_iconv.
6811 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
6812 (TARGET_EBCDIC): Delete default definition.
6813
6814 * objc/objc-act.c (build_objc_string_object): No need to
6815 handle string constant concatenation.
6816
61aeb06f
KH
68172003-07-04 Kazu Hirata <kazu@cs.umass.edu>
6818
6819 * doc/install.texi: Fix typos.
6820 * doc/invoke.texi: Likewise.
6821 * doc/tm.texi: Likewise.
6822
c1207243
KH
68232003-07-04 Kazu Hirata <kazu@cs.umass.edu>
6824
6825 * config/pa/fptr.c: Fix comment typos.
6826 * config/pa/pa-64.h: Likewise.
6827 * config/pa/pa.c: Likewise.
6828 * config/pa/pa.h: Likewise.
6829 * config/rs6000/603.md: Likewise.
6830 * config/rs6000/7xx.md: Likewise.
6831 * config/rs6000/darwin.h: Likewise.
6832 * config/rs6000/freebsd.h: Likewise.
6833 * config/rs6000/rs6000.c: Likewise.
6834 * config/rs6000/rs6000.md: Likewise.
6835 * config/rs6000/spe.h: Likewise.
6836
58add37a
UW
68372003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
6838
6839 * config/s390/2064.md: Change GNU CC to GCC.
6840 * config/s390/2084.md: Likewise.
6841 * config/s390/fixdfdi.h: Likewise.
6842 * config/s390/linux.h: Likewise.
6843 * config/s390/s390-modes.def: Likewise.
6844 * config/s390/s390-protos.h: Likewise.
6845 * config/s390/s390.c: Likewise.
6846 * config/s390/s390.h: Likewise.
6847 * config/s390/s390.md: Likewise.
6848 * config/s390/s390x.h: Likewise.
6849
60cd4dae
JL
68502003-07-04 Jeff Law <law@redhat.com>
6851
a38825d2 6852 PR c/11428
60cd4dae
JL
6853 * expr.c (do_store_flag): Pass in the correct result type
6854 when calling fold_single_bit_test.
6855 * fold-const.c (fold_single_bit_test): Use result_type for the
6856 result when folding a sign bit test.
6857
5e14ae7e
NB
68582003-07-04 Neil Booth <neil@daikokuya.co.uk>
6859
6860 * opts.c (common_handle_options): Negate sense of -falign- switches.
6861
8c90b13a
L
68622003-07-04 H.J. Lu <hongjiu.lu@intel.com>
6863
c3b3975a 6864 * Makefile.in: Replace PWD with PWD_COMMAND.
8c90b13a 6865
72d4a2ad
ZD
68662003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6867
6868 * cfgloopanal.c (count_strange_loop_iterations): New static function.
6869 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
6870 Handle strange loops.
6871
8e9a4a45
TM
68722003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
6873
6874 * install.texi: Even the g77 manpage is derived from
6875 the full g77 manual.
6876
6eb95e99
ZW
68772003-07-04 Zack Weinberg <zack@codesourcery.com>
6878
6879 * ABOUT-NLS: Delete.
6880 * intl: Delete entire directory.
6881 * aclocal.m4: Include ../config/gettext.m4. Delete
6882 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
6883 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
6884 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
6885 Remove intl/Makefile from all_outputs.
6886 * configure, config.in: Regenerate.
6887 * Makefile.in: Expunge all references to intl subdirectory.
6888 Add -I../intl to INCLUDES.
6889 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
6890
bcd5d841
RS
68912003-07-04 Roger Sayle <roger@eyesopen.com>
6892
6893 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
6894 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
6895
6b6cb52e
DS
68962003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
6897
6898 PR c++/5287, PR c++/7910, PR c++/11021
6899 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
6900 dllimport attribute if function is defined at declaration, but
6901 report error instead. Likewise for dllimport'd variable
6902 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
6903 declared within functions, Report error if dllimport or dllexport
6904 symbol is not global.
6905 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
6906 if defined after declaration or if inlined. Don't allow definition
6907 of static data members of C++ classes. Don't dllimport virtual
6908 methods.
6909 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
6910 (i386_pe_mark_dllimport): Remove unnecessary checks.
6911 (i386_pe_encode_section_info): Warn if the dllimport attribute
6912 and symbol prefix have been instantiated and then overridden.
6913
6914 * doc/extend.texi: Document dllimport and dllexport attributes.
6915
6916 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
6917
cc2f5d34
US
69182003-07-03 Uwe Stieber <uwe@kaos-group.de>
6919
6920 * config/kaos.h (CPP_PREDEFINES): Delete.
6921 (TARGET_OS_CPP_BUILTINS): New.
6922
5f1989e6
KG
69232003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6924
6925 * c-aux-info.c: Include toplev.h after c-tree.h.
6926 * c-common.c: Likewise.
6927 (GCC_DIAG_STYLE): Undef.
6928 * c-semantics.c (GCC_DIAG_STYLE): Define.
6929 * c-tree.h (GCC_DIAG_STYLE): Likewise.
6930 * diagnostic.h (inform): Move prototype to toplev.h.
6931 * jump.c: Include diagnostic.h before toplev.h.
6932 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
6933 (warning, error, fatal_error, pedwarn, sorry, inform,
6934 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
6935
8d28e87d
ZD
69362003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6937
6938 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
6939 at all if edge is not specified.
6940 (can_copy_bbs_p, copy_bbs): New.
6941 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
6942 * cfgloop.c (get_loop_body): Comment more precisely.
6943 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
6944 (scale_bbs_frequencies): Fix comment typo.
6945 (can_duplicate_loop_p): Use can_copy_bbs_p.
6946 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
6947
694abeb6
DP
69482003-07-03 Devang Patel <dpatel@apple.com>
6949
6950 * c-opts.c (c_common_parse_file): Remove extra
6951 debug_hooks->start_source_file call.
6eb95e99 6952
0a9530a9
RS
69532003-07-03 Roger Sayle <roger@eyesopen.com>
6954
6955 * real.c (real_trunc, real_floor, real_ceil): New functions
6956 to implement trunc, floor and ceil respectively.
6957 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
6958 * builtins.c (integer_valued_real_p): New function to test if
6959 a floating point expression has an integer valued result.
6960 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
6961 foo(x) where foo is an integer rounding function. Similarly,
6962 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
6963 (double)(int)x when both foo and bar are integer rounding
6964 functions and we don't need to honor errno.
6965 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
6966 New functions to fold trunc, floor and ceil.
6967 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
6968 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
6969 to fold BUILT_IN_CEIL*.
6970 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
6971 the remaining integer rounding functions.
6972
c3427c7d
EB
69732003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
6974
6975 * config/sparc/sparc.c (function_arg_partial_nregs): Use
6976 SPARC_INT_ARG_MAX to determine where to split unnamed
6977 complex FP arguments.
6978
bc35512f
JH
6979Thu Jul 3 20:36:47 CEST 2003 Jan Hubicka <jh@suse.cz>
6980
6981 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
6982 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
6983 (merge_blocks_move_predecessor_nojumps,
6984 merge_blocks_move_successor_nojumps): Use merge_blocks.
6985 (try_optimize_cfg): Use merge_blocks_move.
6986 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
6987 (merge_blocks_nomove): Rename to rtl_merge_blocks.
6988 (cfg_layout_create_basic_block): New.
6989 (rtl_can_merge_blocks): New.
6990 (cfg_layout_split_block): Do not alloc aux by hand.
6991 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
6992 merge_blocks.
6993 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
6994 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
6995 * cfgloopmanip.c (loop_split_edge_with): Likewise.
6996 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
6997
6998 * basic-block.h (basic_block_def): Add field 'rbi'.
6999 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
7000 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
7001 * cfg.c (entry_exit_blocks): Add new field.
7002 * cfglayout.c: Include alloc-pool.h;
7003 (cfg_layout_pool): New.
7004 (record_effective_endpoints, fixup_reorder_chain,
7005 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
7006 of rbi.
7007 (cfg_layout_initialize_rbi): New function.
7008 (cfg_layout_initialize): Use it.
7009 (cfg_layout_finalize): Clear rbi fields.
7010 * cfglayout.h (RBI): Kill.
7011 (cfg_layout_initialize_rbi): Declare.
7012 * cfgloopmanip.c (copy_bbs): Use rbi.
7013 (record_exit_edges): Likewise.
7014 (duplicate_loop_to_header_edge): Likewise.
7015 * cfgrtl.c (cfg_layout_create_basic_block): Use
7016 cfg_layout_initialize_rbi.
7017 (cfg_layout_split_block): Use rbi.
7018 (cfg_layout_delete_block): Likewise.
7019 * loop-init.c (loop_optimizer_finalize): Likewise.
7020 * loop-unswitch.c (unswitch_loop): Likewise.
7021 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
7022
7023 * cfgrtl.c: Update comments.
7024 (try_redirect_by_replacing_jump): New argument.
7025 (redirect_branch_edge): Break out from ...
7026 (rtl_redirect_edge_and_branch): ... this one.
7027 (update_cfg_after_block_merging): Break out from ...
7028 (rtl_merge_blocks): ... this one.
7029 (cfg_layout_split_edge): New.
7030 (cfg_layout_merge_blocks): New.
7031 (cfg_layout_can_merge_blocks_p): New.
7032 (cfg_layout_redirect_edge_and_branch): Reorganize.
7033 (cfg_layout_rtl_cfg_hooks): Fill in.
7034 (cfg_layout_delete_block): Kill barriers.
7035 * cfganal.c (can_fallthru): Deal with exit blocks
7036 * cfglayout.c (cfg_layout_function_header): New function
7037 (record_effective_endpoints): Record function header.
7038 (fixup_reorder_chain): Fixup dead jumptables; place header
7039
7040 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
7041 * bb-reorder.c (cfg_layout_initialize): Update call.
7042 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
7043 edges in cfglayout mode.
7044 * cfglayout.c (cleanup_unconditional_jumps): Kill.
7045 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
7046 * cfglayout.h (cfg_layout_initialize): Update prototype.
7047 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
7048 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
7049 * flow.c (propagate_block): Do not crash when basic block ends
7050 by first insn in the chain.
7051 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
7052 do loop discovery.
7053 * tracer.c (tracer): Update call of cfg_layout_initialize.
7054
dd220c49
KG
70552003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7056
7057 * Makefile.in: Use dependency variables in lieu of explicit
7058 files throughout.
7059
fa5b060f
SB
70602003-07-03 Steven Bosscher <steven@gcc.gnu.org>
7061
7062 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
7063 * tree.h: ...to here.
7064
fae778eb
KH
70652003-07-03 Kazu Hirata <kazu@cs.umass.edu>
7066
7067 * config/s390/2064.md: Fix comment typos.
7068 * config/s390/2084.md: Likewise.
7069 * config/s390/s390.c: Likewise.
7070 * config/s390/s390.md: Likewise.
7071 * config/sh/sh.c: Likewise.
7072 * config/sh/sh.h: Likewise.
7073 * config/sh/sh.md: Likewise.
7074 * config/sparc/sparc.c: Likewise.
7075 * config/sparc/sparc.h: Likewise.
7076 * config/sparc/sparc.md: Likewise.
7077 * config/stormy16/stormy16.c: Likewise.
7078 * config/stormy16/stormy16.h: Likewise.
7079 * config/stormy16/stormy-abi: Fix a typo.
7080
58eabcb1
KC
70812003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
7082
7083 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
7084
af261903
KG
70852003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7086
7087 * config/mips/mips.h (save_argv): Delete.
7088
a11c61d2
RS
70892003-07-03 Roger Sayle <roger@eyesopen.com>
7090
7091 PR target/10700
7092 * fold-const.c (extract_muldiv_1): There's nothing that can be done
7093 if the expression is a SAVE_EXPR.
7094
dab66575
KH
70952003-07-03 Kazu Hirata <kazu@cs.umass.edu>
7096
7097 * config/m32r/m32r.c: Fix comment typos.
7098 * config/m68hc11/m68hc11.c: Likewise.
7099 * config/m68hc11/m68hc11.h: Likewise.
7100 * config/m68k/m68k.c: Likewise.
7101 * config/mcore/mcore.c: Likewise.
7102 * config/mcore/mcore.h: Likewise.
7103 * config/mcore/mcore.md: Likewise.
7104 * config/mips/mips.c: Likewise.
7105 * config/mips/mips.h: Likewise.
7106 * config/mips/mips.md: Likewise.
7107 * config/mips/netbsd.h: Likewise.
7108 * config/mn10300/mn10300.c: Likewise.
7109
8837d828
AS
71102003-07-03 Andreas Schwab <schwab@suse.de>
7111
7112 * dbxout.c (pending_bincls): Move decl down inside
7113 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
7114
dd107e66
NS
71152003-07-02 Nathan Sidwell <nathan@codesourcery.com>
7116
7117 * rtl.h (NOTE_DATA): Refer to whole union.
7118 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
7119
8821d091
EB
71202003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
7121
7122 PR optimization/11381
7123 * simplify-rtx.c (simplify_relational_operation): Check that
7124 two equal operands have no side-effects before simplifying
7125 the comparison.
7126
7960bf22
JL
71272003-07-02 Jeff Law <law@redhat.com>
7128
7129 * expr.c (do_store_flag): Remove special case folding for
7130 single bit tests. Instead call back into the commonized folder
7131 routine.
7132 * fold-const.c (fold_single_bit_test): New function, mostly
7133 extracted from do_store_flag, with an additional case extracted
7134 from fold.
7135 (fold): Call fold_single_bit_test appropriately.
7136 * tree.h (fold_single_bit_test): Prototype.
7137
3dce1408
ZW
71382003-07-02 Zack Weinberg <zack@codesourcery.com>
7139
7140 * system.h: Include filenames.h.
7141 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
7142 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
7143 define based on HAVE_DOS_BASED_FILE_SYSTEM.
7144 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
7145 * config/i386/xm-mingw32.h: Don't define
7146 HAVE_DOS_BASED_FILE_SYSTEM,
7147 DIR_SEPARATOR, or DIR_SEPARATOR_2.
7148 * doc/hostconfig.texi: Update to match.
7149
7150 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
7151 config/i386/cygwin.h:
7152 Use IS_ABSOLUTE_PATH throughout.
7153 * gcc.c (DIR_UP): Delete, unused.
7154 * protoize.c (IS_SAME_PATH): Define in terms of
7155 FILENAME_CMP.
7156 (is_abspath): Delete.
7157
c51e6d85
KH
71582003-07-02 Kazu Hirata <kazu@cs.umass.edu>
7159
7160 * config/i386/emmintrin.h: Fix comment typos.
7161 * config/i386/i386.c: Likewise.
7162 * config/i386/i386.h: Likewise.
7163 * config/i386/sco5.h: Likewise.
7164 * config/ia64/ia64.c: Likewise.
7165 * config/ia64/itanium2.md: Likewise.
7166
5ec3a5a7
L
71672003-07-02 H.J. Lu <hongjiu.lu@intel.com>
7168
7169 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
7170 DBX_USE_BINCL.
7171 (emit_bincl_stab): Same.
7172 (emit_pending_bincls): Same.
7173
fad37371
KH
71742003-07-02 Kazu Hirata <kazu@cs.umass.edu>
7175
7176 * config/h8300/h8300.c (compute_mov_length): Fix the length of
7177 loading CONST0_RTX (SFmode).
7178 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
7179 'G' to CONST0_RTX (SFmode).
7180 * config/h8300/h8300.md (movsf_h8300): Change the first
7181 constraint to 'G'.
7182 (movsf_h8300h): Likewise.
7183
b86f6cd9
NB
71842003-07-02 Neil Booth <neil@daikokuya.co.uk>
7185
7186 * c-common.h (c_common_init_options): New prototype.
7187 * c-opts.c (deferred_size): Remove.
7188 (defer_opt): Array is now pre-allocated.
7189 (c_common_init_options): Pre-allocate deferred_opts. Make
7190 lang_flags unsigned.
7191 (push_command_line_options): Free deferred_opts.
7192 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
7193 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
7194 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
7195 * langhooks.h (struct lang_hooks): New prototype for init_options.
7196 * main.c (main): Cast argv.
7197 * opts.c (handle_option, handle_options): Update prototypes.
7198 (decode_options): save_argc, save_argv are not global. Constify.
7199 * opts.h (decode_options): New prototype.
7200 * toplev.c (general_init): New protoype.
7201 (save_argv): Make static.
7202 (save_argc): Remove.
7203 (print_switch_values, general_init): Constify.
7204 (toplev_main): Save argv.
7205 * toplev.h (toplev_main): Update prototype.
7206 (save_argc, save_argv): Remove.
7207
f23b9d52
DE
72082003-07-02 David Edelsohn <edelsohn@gnu.org>
7209
7210 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
7211 (emit_bincl_stab): Same.
7212 (emit_pending_bincls): Same.
7213
300e89a2
NS
72142003-07-02 Nathan Sidwell <nathan@codesourcery.com>
7215
7216 PR c++/11072
7217 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
7218
eaac6968
AS
72192003-07-02 Andreas Schwab <schwab@suse.de>
7220
7221 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
7222
1a8c4ca6
EB
72232003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
7224
7225 PR optimization/11210
7226 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
7227 about the behaviour with regard to bitfields.
7228 * fold-const (decode_field_reference): Record outermost type in
7229 case the expression is a NOP. Strip all NOPs. Set the signedness
7230 to that of the outermost type (if any) when the bitsize is equal
7231 to the size of the type.
7232
23cdfcf7
RS
72332003-07-02 Richard Sandiford <rsandifo@redhat.com>
7234
7235 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
7236 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
7237 (adddi3_internal_3, addsi3_internal_2): Likewise.
7238
6f2993e5
RS
72392003-07-02 Richard Sandiford <rsandifo@redhat.com>
7240
7241 * config/mips/mips.c (machine_function): Add new fields:
7242 ignore_hazard_length_p and all_noreorder_p.
7243 (mips_flag_delayed_branch): New variable.
7244 (override_options): Treat '/' as an operand punctuation character.
7245 Set up mips_flag_delayed_branch.
7246 (print_operand): Handle '/'.
7247 (mips_output_function_prologue): Put the whole function in
7248 .set noreorder and .set nomacro if all_noreorder_p is true.
7249 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
7250 (mips16_optimize_gp): Remove "first insn" parameter.
7251 (mips16_lay_out_constants): New function, split out from mips_reorg.
7252 (mips_avoid_hazard, mips_avoid_hazards): New functions.
7253 (mips_reorg): For mips16 code, call mips16_lay_out_constant
7254 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
7255 do delayed-branch scheduling followed by hazard detection.
7256 (mips_adjust_insn_length): Only account for hazards if
7257 !ignore_hazard_length_p.
7258 (mips_output_load_label): Add a nop to the o32 sequence if
7259 the target suffers from load delays.
7260 (mips_output_conditional_branch): Add %/ to the end of branches.
7261 (mips_output_division): Fill the branch delay slot with %#.
7262 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
7263 instructions. End all other %* branches with %/.
7264 (ffssi2, ffsdi2): Fix lengths.
7265 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
7266 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
7267 (fix_truncsfsi2_macro): Likewise.
7268 (mov_lwl): Set hazard to "none".
7269 (ashldi3_internal): Fill the branch delay slot with %#.
7270 (ashrdi3_internal, lshrdi3_internal): Likewise.
7271 (exception_receiver): Explicitly set $28.
7272 (hazard_nop): New pattern.
7273
0184bd46
JH
7274Wed Jul 2 08:12:36 CEST 2003 Jan Hubicka <jh@suse.cz>
7275
7276 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
7277 before calling tree_inlinable_function_p.
7278
1a78e5a7
RO
72792003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7280
7281 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
7282 <internal/stdio_core.h> too.
7283 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
7284 <internal/wchar_core.h> too.
7285 Substitute va_list uses in inline definition.
7286 * fixinc/fixincl.x: Regenerate.
7287
4c82f12b
RO
72882003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7289
7290 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
7291 Undef before redefinition.
7292 (LABEL_AFTER_LOC): Likewise.
7293 (DEFAULT_SIGNED_CHAR): Likewise.
7294 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
7295 Fix IRIX spelling.
3dce1408 7296
4c82f12b
RO
7297 * config/mips/iris3.h: Remove, unused.
7298 * config/mips/iris4.h: Likewise.
7299
7300 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
7301
7302 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
7303 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
7304 target_cpu_default.
7305
7306 * config/mips/iris5.h: Move explicit includes ...
7307 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
3dce1408 7308
4c82f12b
RO
7309 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
7310 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
7311 tm_defines.
7312
7313 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
7314 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
7315 target_cpu_default.
7316
7317 * config/mips/iris6.h: Fix IRIX spelling.
7318 (MULTILIB_DEFAULTS): Undef before redefinition.
3dce1408 7319
4c82f12b
RO
7320 * config/mips/iris6.h: Move explicit includes ...
7321 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
7322
8bd87c4e
JH
7323Wed Jul 2 02:16:48 CEST 2003 Jan Hubicka <jh@suse.cz>
7324
7325 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
7326 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
7327 Use next_needed field instead of aux to maintain the queue.
7328 * cgraph.h (cgraph_node): Add next_needed.
7329 (cgraph_varpool_node): Add next_needed; remove aux.
7330 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
7331
f6981e16
JH
7332Wed Jul 2 02:12:51 CEST 2003 Jan Hubicka <jh@suse.cz>
7333
7334 * cgraphunit.c (cgraph_finalize_function): Set finalized.
7335 (cgraph_finalize_function): Do not examine inlinablility.
7336 (cgraph_finalize_compilation_unit): Do it here.
7337 * cgraph.h (cgraph_local_info): Add finalized field.
7338
d1c60855
RO
73392003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7340
7341 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
7342 (gt_pch_restore): Likewise.
7343
093354e0
KH
73442003-07-01 Kazu Hirata <kazu@cs.umass.edu>
7345
7346 * config/alpha/alpha.c: Fix comment typos.
7347 * config/alpha/elf.h: Likewise.
7348 * config/arm/arm.c: Likewise.
7349 * config/arm/arm.h: Likewise.
7350 * config/arm/arm.md: Likewise.
7351 * config/arm/t-arm-coff: Likewise.
7352 * config/arm/t-strongarm-pe: Likewise.
7353 * config/arm/xscale-elf.h: Likewise.
7354 * config/avr/avr.h: Likewise.
7355
ce47ca44
JL
73562003-07-01 Jeff Law <law@redhat.com>
7357
7358 * stmt.c (any_pending_cleanups): Remove another redundant test.
7359
43b68ce5
DE
73602003-07-01 David Edelsohn <edelsohn@gnu.org>
7361 J"orn Rennecke <joern.rennecke@superh.com>
7362
7363 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
7364 for MEM case.
7365
33e9d2aa
DP
73662003-07-01 Devang Patel <dpatel@apple.com>
7367
7368 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
7369 (binclstatus): New.
3dce1408 7370 (struct dbx_file): New members - bincl_status, pending_bincl_name and
33e9d2aa
DP
7371 prev.
7372 (pending_bincls): New.
7373 (dbxout_init): Initialize new dbx_file members.
7374 (dbxout_start_source_file): Same.
7375 (emit_bincl_stab): New function.
7376 (emit_pending_bincls): Same.
7377 (emit_pending_bincls_if_required): Same.
3dce1408 7378 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
33e9d2aa
DP
7379 processed.
7380 (dbxout_begin_block): Emit pending BINCL stabs.
7381 (dbxout_end_block): Same.
7382 (dbxout_function_decl): Same.
7383 (dbxout_continue): Same.
7384 (dbxout_type): Same.
7385 (dbxout_class_name_qualifiers): Same.
7386 (dbxout_symbol): Same.
7387 (dbxout_symbol_location): Same.
7388 (dbxout_parms): Same.
3dce1408 7389
0108ae51
KG
73902003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7391
7392 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
7393 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
7394
54ced33d
AJ
73952003-07-01 Andreas Jaeger <aj@suse.de>
7396
7397 * fold-const.c: Convert prototypes to ISO C90.
7398 * function.c: Likewise.
7399 * function.h: Likewise.
7400
c0cbdbd9
KH
74012003-07-01 Kazu Hirata <kazu@cs.umass.edu>
7402
7403 * doc/contrib.texi: Fix typos.
7404 * doc/invoke.texi: Likewise.
7405 * doc/passes.texi: Likewise.
7406 * doc/sourcebuild.texi: Likewise.
7407 * doc/tm.texi: Likewise.
7408
e0bb17a8
KH
74092003-07-01 Kazu Hirata <kazu@cs.umass.edu>
7410
7411 * basic-block.h: Fix comment typos.
7412 * bb-reorder.c: Likewise.
7413 * c-format.c: Likewise.
7414 * cfgcleanup.c: Likewise.
7415 * cfghooks.h: Likewise.
7416 * cfgloop.c: Likewise.
7417 * cfgloopmanip.c: Likewise.
7418 * cfgrtl.c: Likewise.
7419 * cgraph.h: Likewise.
7420 * cgraphunit.c: Likewise.
7421 * combine.c: Likewise.
7422 * convert.c: Likewise.
7423 * dbxout.c: Likewise.
7424 * df.c: Likewise.
7425 * df.h: Likewise.
7426 * diagnostic.c: Likewise.
7427 * dwarf2out.c: Likewise.
7428 * et-forest.h: Likewise.
7429 * flow.c: Likewise.
7430 * fold-const.c: Likewise.
7431 * function.h: Likewise.
7432 * gcov-io.h: Likewise.
7433 * gcov.c: Likewise.
7434 * gcse.c: Likewise.
7435 * genautomata.c: Likewise.
7436 * ggc-common.c: Likewise.
7437 * ggc-page.c: Likewise.
7438 * loop-unroll.c: Likewise.
7439 * loop-unswitch.c: Likewise.
7440 * loop.c: Likewise.
7441 * mips-tfile.c: Likewise.
7442 * optabs.c: Likewise.
7443 * ra-build.c: Likewise.
7444 * ra-colorize.c: Likewise.
7445 * ra-rewrite.c: Likewise.
7446 * ra.h: Likewise.
7447 * regmove.c: Likewise.
7448 * reload.c: Likewise.
7449 * rtlanal.c: Likewise.
7450 * sched-ebb.c: Likewise.
7451 * sched-int.h: Likewise.
7452 * sched-vis.c: Likewise.
7453 * sreal.c: Likewise.
7454 * ssa-ccp.c: Likewise.
7455 * ssa.c: Likewise.
7456 * toplev.c: Likewise.
7457 * tree-inline.c: Likewise.
7458 * value-prof.c: Likewise.
7459 * value-prof.h: Likewise.
7460
5f2fc772
NS
74612003-07-01 Nathan Sidwell <nathan@codesourcery.com>
7462
7463 * rtl.h (emit_line_note_after): Remove.
7464 (emit_note_copy_after, emit_note_copy): New.
7465 * emit-rtl.c (reorder_insns_with_line_notes): Replace
7466 emit_line_note_after with emit_note_copy_after.
7467 (emit_insn_after_with_line_notes): Likewise.
7468 (emit_line_note_after): Kill.
7469 (emit_note_copy_after): New.
7470 (emit_note_copy): New.
7471 * function.c (emit_return_into_block): Use emit_note_copy_after.
7472 (thread_prologue_and_epilogue_insns): Likewise.
7473 * integrate.c (expand_inline_function): Use emit_note_copy.
7474 (copy_insn_list): Likewise.
7475 * unroll.c (copy_loop_body): Likewise.
7476 * cfglayout.c (duplicate_insn_chain): Likewise.
7477
5b030314
NS
74782003-07-01 Nathan Sidwell <nathan@codesourcery.com>
7479
7480 * c-tree.h (define_label): Replace filename and lineno arguments
7481 with a location_t.
7482 * c-decl.c (poplevel): Adjust define_label call.
7483 (pop_label_level): Likewise.
7484 (define_label): Replace filename and lineno arguments with a
7485 location_t.
7486 (store_parm_decls): Use DECL_SOURCE_LOCATION.
7487 * c-parse.in (label): Adjust define_label call.
7488
04df6730
NB
74892003-07-01 Neil Booth <neil@daikokuya.co.uk>
7490
7491 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
7492 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
7493 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
7494 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
7495 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
7496
6cf9ac28
AJ
74972003-07-01 Andreas Jaeger <aj@suse.de>
7498
7499 * final.c: Convert prototypes to ISO C90.
7500 * flow.c: Likewise.
7501 * flags.h: Likewise.
7502 * gcov-io.c: Likewise.
7503 * gcov-io.h: Likewise.
7504
2a868fac 7505See ChangeLog.9 for earlier changes.
This page took 1.138543 seconds and 5 git commands to generate.