DJ Delorie
8a723db2df
function.c (expand_main_function): Make sure stack adjustments happen before sjlj exception setup.
...
* function.c (expand_main_function): Make sure stack adjustments
happen before sjlj exception setup.
From-SVN: r48316
2001-12-26 14:54:44 -05:00
David Edelsohn
b92b324de7
rs6000.md (indirect_jump): Prefer CTR over LR.
...
* rs6000.md (indirect_jump): Prefer CTR over LR.
* xcoff.h (ASM_DECLARE_FUNCTION_NAME): Handle weak function.
From-SVN: r48315
2001-12-26 13:02:17 -05:00
GCC Administrator
682bb08093
Daily bump.
...
From-SVN: r48313
2001-12-26 08:16:09 +00:00
Richard Kenner
2ad9852de7
* dwarf2out.c: Reformatting and minor code rearrangement.
...
From-SVN: r48312
2001-12-25 12:11:35 -05:00
Gabriel Dos Reis
4ff64fa9f0
std_limits.h (__glibcpp_xxx_is_modulo): New macros for signed types; default value is true.
...
* include/bits/std_limits.h (__glibcpp_xxx_is_modulo): New
macros for signed types; default value is true.
(numeric_limits<>::is_modulo): Get value from corresponding
__glibcpp_xxx_is_modulo macro.
From-SVN: r48311
2001-12-25 13:53:56 +00:00
GCC Administrator
cf161a952a
Daily bump.
...
From-SVN: r48309
2001-12-25 08:16:09 +00:00
Nathan Sidwell
a56ca89955
re PR c++/160 (Reference variables not initialized correctly in constructor initializer list using , operator)
...
cp:
PR c++/160
* typeck.c (build_modify_expr): Remove old unreachable code & tidy
up. Don't stabilize_references when initializing a reference.
testsuite:
* g++.dg/other/init2.C: New test.
From-SVN: r48307
2001-12-24 20:52:36 +00:00
Douglas B Rupp
fdfc290b94
configure.in (uintptr_t): Use AC_CHECK_TYPE.
...
* configure.in (uintptr_t): Use AC_CHECK_TYPE.
* configure: Regenerated.
From-SVN: r48306
2001-12-24 12:51:40 -05:00
Douglas B Rupp
596151e193
configure.in (quoted_stage_prefix_set_by_configure): Generate.
...
* configure.in (quoted_stage_prefix_set_by_configure): Generate.
* configure: Regenerated.
* Makefile.in (SUBDIR_FLAGS_TO_PASS): Use
quoted_stage_prefix_set_by_configure.
From-SVN: r48305
2001-12-24 12:37:36 -05:00
Richard Kenner
5f0d23589f
rtl.h (in_expr_list_p): New declaration.
...
* rtl.h (in_expr_list_p): New declaration.
* rtlanal.c (in_expr_list_p): New function.
* cfgcleanup.c: Reformatting and minor code rearrangement.
* cfglayout.c, cfgloop.c, cfgrtl.c: Likewise.
From-SVN: r48304
2001-12-24 10:44:45 -05:00
Richard Kenner
e88712b55b
Remove bogus blank line
...
From-SVN: r48303
2001-12-24 09:38:56 -05:00
Richard Henderson
b79d521356
re PR debug/5163 (Internal compiler error in add_abstract_origin_attribute, at dwarf2out.c:9296)
...
PR c/5163:
* c-decl.c (duplicate_decls): As needed, set DECL_INLINE when
we have a function body associated. Minor cleanups.
(grokdeclarator): Do not set DECL_INLINE without a function body.
* gcc.dg/20011223-1.c: New.
* gcc.dg/inline-1.c: New.
From-SVN: r48302
2001-12-24 00:45:59 -08:00
GCC Administrator
6b98090114
Daily bump.
...
From-SVN: r48301
2001-12-24 08:16:39 +00:00
Richard Henderson
7abcb63a42
stmt.c (resolve_operand_names): Handle operand modifiers.
...
* stmt.c (resolve_operand_names): Handle operand modifiers.
* gcc.dg/asm-4.c: Test operand modifiers.
From-SVN: r48299
2001-12-23 22:15:31 -08:00
Richard Henderson
6be2e1f88c
stmt.c (parse_input_constraint): Break out from ...
...
* stmt.c (parse_input_constraint): Break out from ...
(expand_asm_operands): ... here. Loop over the operands twice,
the first time only calling mark_addressable. Correct and simplify
the conditions for spilling an output operand to memory.
From-SVN: r48298
2001-12-23 21:57:02 -08:00
Richard Henderson
99407cf2f1
* config/alpha/alpha.c (call_operand) [OSF]: Disallow virtual regs.
...
From-SVN: r48297
2001-12-23 20:00:51 -08:00
Richard Henderson
8aad177787
* gcc.c-torture/execute/20011219-1.c (main): Make "i" a long.
...
From-SVN: r48296
2001-12-23 19:37:08 -08:00
Richard Henderson
c5b3a39ef4
alpha.md (UNSPEC_SIBCALL): New.
...
* config/alpha/alpha.md (UNSPEC_SIBCALL): New.
(sibcall, sibcall_value, sibcall_osf_1_er, sibcall_osf_1): Use it.
(sibcall_value_osf_1_er, sibcall_value_osf_1): Likewise.
From-SVN: r48295
2001-12-23 19:08:23 -08:00
Richard Henderson
72ac12bf6f
utils.c (end_subprog_body): Push GC context around rest_of_compilation for nested functions.
...
* utils.c (end_subprog_body): Push GC context around
rest_of_compilation for nested functions.
From-SVN: r48294
2001-12-23 17:47:10 -08:00
Jeff Law
b6e220169c
os_defines.h: Do not include <_sys/inttypes.h>.
...
* config/os/hpux/bits/os_defines.h: Do not include <_sys/inttypes.h>.
Twiddle return types for strtoll and strtoull to avoid using
intmax_t and uintmax-t.
From-SVN: r48293
2001-12-23 18:45:29 -07:00
Joseph Myers
6eb5351149
re PR c/2454 (Test Program A0376972.c fails with gcc-20010320, works with gcc-2.95.3)
...
* c-typeck.c (c_start_case): Don't strip conversions from the
controlling expression. Partially fixes PR c/2454.
testsuite:
* gcc.c-torture/execute/20011223-1.c: New test.
From-SVN: r48292
2001-12-23 23:49:32 +00:00
Joseph Myers
b31bbca2fe
Makefile.in (USER_H): Remove proto.h.
...
* Makefile.in (USER_H): Remove proto.h.
* config.gcc (c*-convex-*): Set extra_headers=proto.h.
From-SVN: r48291
2001-12-23 23:33:14 +00:00
Kaveh R. Ghazi
0b5826acc8
arc.c (arc_hard_regno_mode_ok): Const-ify.
...
* arc.c (arc_hard_regno_mode_ok): Const-ify.
* arc.h (arc_hard_regno_mode_ok): Likewise.
* i386.c (x86_64_reg_class_name): Make static.
* m68k.c (regno_reg_class): Const-ify.
* m68k.h (regno_reg_class): Likewise.
* mcore.c (reg_class_from_letter): Likewise.
* mcore.h (reg_class_from_letter): Likewise.
* sh.c (reg_class_from_letter, ashiftrt_insns, shift_insns,
ext_shift_insns, ext_shift_amounts): Likewise.
* sh.h (reg_class_from_letter): Likewise.
* sparc.c (hard_regno_mode_classes, hard_32bit_mode_classes,
hard_64bit_mode_classes): Likewise.
* sparc.h (hard_regno_mode_classes): Likewise.
* gcc.c (modify_target): Make static.
* gengenrtl.c (defs, formats): Likewise.
* reload1.c (elim_table_1, init_elim_table): Const-ify.
* tradcpp.c (directive, directive_table, handle_directive,
skip_if_group, run_directive): Likewise.
cp:
* decl2.c (lang_f_options): Const-ify.
f:
* com.c (ffecom_gfrt_volatile_, ffecom_gfrt_complex_,
ffecom_gfrt_const_, ffecom_gfrt_type_): Const-ify.
java:
* Make-lang.in (keyword.h): Pass -C to gperf to const-ify
the static arrays that are output.
* jvspec.c (jvgenmain_spec): Make static.
* keyword.gperf (struct java_keyword, java_keyword): Const-ify.
* keyword.h: Regenerate.
* lang.c (string_option, process_option_with_no, lang_f_options,
lang_W_options): Const-ify.
* lex.c (java_lex): Likewise.
From-SVN: r48290
2001-12-23 16:07:16 +00:00
Richard Henderson
14aacce76e
* 5nosinte.ads: Get definition of "int" from Interfaces.C.
...
From-SVN: r48288
2001-12-23 05:22:17 -08:00
Richard Henderson
e4abc3d580
calls.c (expand_call): Don't turn off ECF_LIBCALL_BLOCK for an invalid result register...
...
* calls.c (expand_call): Don't turn off ECF_LIBCALL_BLOCK for
an invalid result register; do end the sequence properly.
(emit_library_call_value_1): Likewise.
From-SVN: r48287
2001-12-23 05:02:18 -08:00
Florian Weimer
ece2d1b824
gnat-style.texi (Declarations and Types): Remove ancient style rule which was mandated by code generation issues.
...
* gnat-style.texi (Declarations and Types): Remove ancient style
rule which was mandated by code generation issues.
From-SVN: r48286
2001-12-23 12:23:14 +01:00
Florian Weimer
b3d45d87b1
gnat-style.texi (header): Add @dircategory, @direntry.
...
* gnat-style.texi (header): Add @dircategory, @direntry.
(title page): Remove date.
(general) Add @./@: where approriate, and two spaces after the
full stop at the end of a sentence. Use @samp markup when
referring concrete lexical entities (keywords, attribute names
etc.), and @syntax for ARM grammar elements. Use @r for English
text in comments. Use @emph for emphasis. Change "if-statements"
etc. to "if statements" (without @samp). Break long lines. Make
casing of section names consistent.
(Identifiers): Use @samp markup for variable names.
(Comments): Use @samp markup for comment characters. Line-end
comments may follow any Ada code, not just statements. Fix
misspelling of "Integer" as "integer".
(Loop statements): Do not use variable name "I", use "J".
(Subprogram Declarations): Document alignment.
(Subprogram Bodies, Block statements): Document empty line before
"begin".
From-SVN: r48285
2001-12-23 12:09:54 +01:00
GCC Administrator
4e87ff3fab
Daily bump.
...
From-SVN: r48283
2001-12-23 08:16:09 +00:00
Aldy Hernandez
24408032e7
rs6000.h (rs6000_builtins): Add vsldoi variants.
...
* config/rs6000/rs6000.h (rs6000_builtins): Add vsldoi variants.
* config/rs6000/rs6000.md ("altivec_vsldoi_*"): Same.
* config/rs6000/rs6000.c: Clean up some spacing and indentation.
(altivec_init_builtins): Add tree types for builtins with 4 bit
literals.
(bdesc_3arg): Add vsldoi variants.
From-SVN: r48282
2001-12-23 06:58:48 +00:00
Kaveh R. Ghazi
f540a7d371
1750a.h (datalbl, jmplbl): Declare array size explicitly.
...
* 1750a.h (datalbl, jmplbl): Declare array size explicitly.
* a29k.h (a29k_debug_reg_map): Likewise.
* arc.h (arc_regno_reg_class): Likewise.
* c4x-protos.h (c4x_regclass_map, c4x_caller_save_map): Likewise.
* convex.h (regno_reg_class, reg_class_from_letter): Likewise.
* d30v.h (regno_reg_class, reg_class_from_letter): Likewise.
* i386.h (regclass_map): Likewise.
* m32r.h (m32r_hard_regno_mode_ok, m32r_punct_chars): Likewise.
* mcore.h (regno_reg_class): Likewise.
* mips.h (mips_print_operand_punct, mips_char_to_class):
Likewise.
* ns32k.h (regclass_map): Likewise.
* pj.h (pj_debugreg_renumber_vec): Likewise.
* s390.h (regclass_map): Likewise.
* sh.h (regno_reg_class): Likewise.
* sparc.h (sparc_regno_reg_class): Likewise.
* hard-reg-set.h (reg_class_contents): Likewise.
* machmode.h (class_narrowest_mode): Likewise.
f:
* bld.c (ffebld_arity_op_): Declare array size explicitly.
* bld.h (ffebld_arity_op_): Likewise.
From-SVN: r48281
2001-12-23 04:59:13 +00:00
David Edelsohn
d5e0243aac
loop.c (scan_loop, [...]): Do not overlook hard registers when computing statistics.
...
* loop.c (scan_loop, move_movables, count_one_set): Do not
overlook hard registers when computing statistics.
From-SVN: r48280
2001-12-22 21:16:02 -05:00
Jan Hubicka
53d4257f7f
calls.c (ECF_LIBCALL_BLOCK): New constant.
...
* calls.c (ECF_LIBCALL_BLOCK): New constant.
(emit_call_1, initialize_argument_information,
precompute_arguments, expand_call,
emit_library_call_value_1): Use ECF_LIBCALL_BLOCK
instead of ECF_PURE | ECF_CONST. Honnor LCT_CONST/LCT_PURE.
From-SVN: r48279
2001-12-23 00:10:43 +00:00
Richard Henderson
affb9cddc0
* configure.target (CPULIMITSH): Fix typo in alpha case.
...
From-SVN: r48278
2001-12-22 13:13:44 -08:00
Joseph Myers
ba1e6c0b05
config.gcc (extra_headers): Move settings to math-68881.h and ppc-asm.h to common code for CPU types.
...
* config.gcc (extra_headers): Move settings to math-68881.h and
ppc-asm.h to common code for CPU types. Use math-68881.h on all
m68k targets.
(header_files): Remove unused setting.
From-SVN: r48277
2001-12-22 21:07:33 +00:00
Kaveh R. Ghazi
e421052c88
elxsi.c: Include "hard-reg-set.h" and/or don't declare `call_used_regs' explicitly.
...
* elxsi.c: Include "hard-reg-set.h" and/or don't declare
`call_used_regs' explicitly.
* i860.c: Likewise.
* m68k.c: Likewise.
* ns32k.c: Likewise.
* pa.c: Likewise.
* vax.c: Likewise.
* we32k.c: Likewise.
From-SVN: r48276
2001-12-22 20:55:04 +00:00
Jan Hubicka
91d2f4ba70
i386.h (TARGET_CPU_DEFAULT_pentium_mmx): New.
...
* i386.h (TARGET_CPU_DEFAULT_pentium_mmx): New.
(TARGET_CPU_DEFAULT_*): Renumber.
From-SVN: r48273
2001-12-22 19:07:28 +00:00
John Wehle
33aceff285
rtl.h (subreg_lsb): Declare.
...
* rtl.h (subreg_lsb): Declare.
* rtlanal.c (subreg_lsb): Implement.
From-SVN: r48272
2001-12-22 17:23:52 +00:00
Jeff Law
d599b3fc8a
os_defines.h: Update to avoid #defines for strtoll and strtoull.
...
* config/os/hpux/bits/os_defines.h: Update to avoid #defines
for strtoll and strtoull.
From-SVN: r48271
2001-12-22 09:51:55 -07:00
Richard Kenner
4891442b1f
* cfg.c, cfganal.c, cfgbuild.c: Reformatting and minor cleanups.
...
From-SVN: r48270
2001-12-22 10:51:07 -05:00
Richard Kenner
bfdade77da
* predict.c: Reformatting and minor cleanups.
...
From-SVN: r48269
2001-12-22 10:37:09 -05:00
Richard Kenner
6c7d86ec5e
expr.c (expand_expr, [...]): Handling taking address of SAVE_EXPR.
...
* expr.c (expand_expr, case ADDR_EXPR): Handling taking address of
SAVE_EXPR.
* function.c (gen_mem_addressof): Add missing tests for SAVE_EXPR.
(put_addressof_into_stack): Clarify code in setting of used_p.
From-SVN: r48268
2001-12-22 10:06:55 -05:00
Richard Kenner
b5cd4ed4c3
calls.c (flags_from_decl_or_type): Move ECF_SP_DEPRESSED here.
...
* calls.c (flags_from_decl_or_type): Move ECF_SP_DEPRESSED here.
(expand_call): Delete from here.
Do pending stack adjustments if ECF_SP_DEPRESSED.
From-SVN: r48267
2001-12-22 09:46:58 -05:00
Richard Kenner
c470afad3c
dwarf2out.c (save_rtx): Deleted.
...
* dwarf2out.c (save_rtx): Deleted.
(mem_loc_descriptor): Do equivalent operation.
(add_const_value_attribute, case CONST): Likewise.
(add_name_and_src_coords_attributes): Likewise.
From-SVN: r48266
2001-12-22 09:31:27 -05:00
Florian Weimer
7a73ad55d8
make.adb (Add_Switch): Make Generic_Position a procedure.
...
* make.adb (Add_Switch): Make Generic_Position a procedure. The
function approach did not work well because of a side effect (the
function call could reallocate the table which was being indexed
using its result). Fixes ada/4851.
From-SVN: r48265
2001-12-22 12:58:51 +01:00
GCC Administrator
5637a0ebb9
Daily bump.
...
From-SVN: r48263
2001-12-22 08:16:10 +00:00
Kazu Hirata
faa4568c14
* config/h8300/h8300.h: Fix comment formatting.
...
From-SVN: r48262
2001-12-22 02:41:38 +00:00
Richard Henderson
9a07cfaf9f
boehm.c (PROCEDURE_OBJECT_DESCRIPTOR): Merge into ..
...
* boehm.c (PROCEDURE_OBJECT_DESCRIPTOR): Merge into ..
(get_boehm_type_descriptor): ... here. Arrange for the
TREE_TYPE to get set properly.
From-SVN: r48261
2001-12-21 16:52:30 -08:00
Jeff Law
4585ae3de2
os_defines.h: Include <sys/_inttypes.h.
...
* config/os/hpux/bits/os_defines.h: Include <sys/_inttypes.h.
Define strtoll and strtoull. Provide prototypes for
__strtoll and __strtoull. Define _GLIBCPP_USE_LONG_LONG
unconditionally.
From-SVN: r48260
2001-12-21 17:42:46 -07:00
Jeff Law
415f500c76
* src/locale-inst.cc: Include <bits/std_cstdlib.h>
...
From-SVN: r48259
2001-12-21 17:39:43 -07:00
Jeff Law
75da3b53f8
* configure.target: Fix typo in hpux case.
...
From-SVN: r48258
2001-12-21 17:32:47 -07:00