Robert Lipe
69d4ca36f4
c-lang.c (finish_file): Bracket declaration of static_ctors, static_dtors.
...
* c-lang.c (finish_file): Bracket declaration of static_ctors,
static_dtors.
* calls.c (expand_call): Bracket declaration of 'rtx_before_call',
'old_stack_arg_under_construction'
(emit_library_call): Bracket declaration of 'upper_bound',
'lower_bound', 'i', 'reg_parm_stack_space'
(emit_library_call_value): Likewise.
(store_one_arg):
* collect2.c: include <unistd.h> when appropriate.
Bracket declaration of 'exportf' and 'full_real_ld_suffix'.
* emit-rtl.c (prev_cc0_setter): Remove unused variable 'link'.
* explow.c (plus_constant_for_output_wide): Remove unused variable
'code'.
(memory_address): Remove unused variable 'orig_x'.
* genattrtab.c (make_canonical): Remove unreferenced label 'cond:'.
(write_const_num_delay_slots): Remove unused variable 'i'.
* genopinit.c (main): Remove unused variables 'dummy', 'insn_ptr'.
(gen_insn): Remove unused variable 'obstack_ptr'.
* libgcc2.c (__bb_exit_func): Remove unused variables 'ret',
'j', 'tmp', 'i'.
(__bb_exit_trace_func): Remove unused variable 'e'.
* optabs.c (expand_binop): remove unused variables 'lhs', 'rhs',
'funexp'.
(expand_unop): Remove unused variable 'funexp'.
(expand_complex_abs): Remove unused variable 'funexp'.
(init_optabs): Bracket declaration of 'j'.
(init_complex_libfuncs): Deleted. Dead static function.
* profile.c (branch_prob): Remove unused variables 'insn', 'dest'.
* reg-stack.c: Fix typo in proto for 'get_asm_operand_lengths'
(reg_to_stack): 'initialized', 'before_function_beg'
explictly type as ints instead of defaulting.
(emit_swap_insn): Remove unused variable 'i2'.
(compare_for_stack_reg): Remove unused variable 'src_note'.
* rtlanal.c (computed_jump_p): Remove unused variable 'computed_jump'.
* sched.c (actual_hazard): Bracket declaration of 'this_cost'.
* stmt.c (add_case_node): Add parens for assignment used as truth.
(all_cases_count): Remove unused variable 'count_high'.
(mark_seen_cases): Remove unused variable 'i'.
(check_for_full_enumeration_handling): Remove unused variable 't'.
Bracket declaration of 'all_values', 'l'.
* tlink.c: Include <stdlib.h>, <unistd.h>, <string.h>/<strings.h>.
* varasm.c (assemble_string): Remove unused variable 'i'.
(immed_double_const): Remove unused variable 'in_current_obstack'.
(immed_real_const_1): Likewise.
(output_constant_pool): Remove unreferenced label 'done'.
(output_constant): Remove unused variable 'x'.
* i386/i386.h (ENCODE_SECTION_INFO): TREE_PUBLIC is an int, not
a string.
* i386/sco5.h (ASM_OUTPUT_ASCII): Add parens for assignment used
as truth.
From-SVN: r17901
1998-02-13 05:30:56 +00:00
Andreas Schwab
387c47a380
call.c (build_over_call): Convert builtin abs, labs and fabs to tree-codes.
...
* call.c (build_over_call): Convert builtin abs, labs and fabs to
tree-codes.
* decl.c (init_decl_processing): Reenable abs, labs and fabs as
builtins.
From-SVN: r17900
1998-02-12 21:26:35 -05:00
J"orn Rennecke
e3258cef30
* combine.c (can_combine_p): Handle USEs in PARALLELs.
...
From-SVN: r17899
1998-02-13 02:26:25 +00:00
Jason Merrill
2dbfb4181c
* call.c (standard_conversion): A BASE_CONV replaces an RVALUE_CONV.
...
From-SVN: r17898
1998-02-12 20:37:30 -05:00
H.J. Lu
1398405bf8
linux.h (LIB_SPEC): Add -lc for -shared if USE_GNULIBC_1 is not defined.
...
* config/linux.h (LIB_SPEC): Add -lc for -shared if
USE_GNULIBC_1 is not defined.
* config/sparc/linux.h; Ditto.
* config/sparc/linux64.h (LIB_SPEC): Add -lc for -shared.
* config/alpha/linux-elf.h (LIB_SPEC): New. Defined if
USE_GNULIBC_1 is not defined.
From-SVN: r17895
1998-02-12 17:33:05 -07:00
Jason Merrill
d8b55a76ef
cp-tree.h: Add access_protected_virtual_node.
...
* cp-tree.h: Add access_protected_virtual_node.
* class.c (init_class_processing): Initialize it.
* decl.c (xref_basetypes): Use it.
* parse.y (base_class_access_list): Likewise.
* Make-lang.in (DEMANGLER_PROG): Add $(exeext).
(c++.install-common): Install c++filt.
From-SVN: r17894
1998-02-12 19:30:37 -05:00
Franz Sirl
03453a9f5a
sysv4.h (ENDFILE_SPEC): add missing %(endfile_linux) for -mcall-linux
...
* rs6000/sysv4.h (ENDFILE_SPEC): add missing %(endfile_linux)
for -mcall-linux
From-SVN: r17892
1998-02-12 17:28:23 -07:00
Kaveh R. Ghazi
aca6948338
system.h: New file to get common systems includes and various definitions and...
...
* system.h: New file to get common systems includes and various
definitions and declarations based on autoconf macros.
From-SVN: r17891
1998-02-12 17:22:24 -07:00
Jeff Law
ee48472991
fileops.c: #include <unistd.h>.
...
* fileops.c: #include <unistd.h>.
* ioprims.c: Likewise.
From-SVN: r17890
1998-02-12 16:56:20 -07:00
Krister Walfridsson
82fa5cdffe
fileops.c: #include <unistd.h>.
...
(
* fileops.c: #include <unistd.h>.
* ioprims.c: Likewise.
From-SVN: r17889
1998-02-12 16:56:19 -07:00
Krister Walfridsson
f3a5aedcbd
fileops.c: #include <unistd.h>.
...
f
* fileops.c: #include <unistd.h>.
* ioprims.c: Likewise.
From-SVN: r17888
1998-02-12 16:56:18 -07:00
Jeffrey A Law
5e0e0f036a
* cccp.c (new_include_prefix): Correctly handle -I./.
...
From-SVN: r17886
1998-02-12 16:45:20 -07:00
Jeffrey A Law
2aca5b9b2d
* gcc.dg/ifelse-1.c: New test.
...
From-SVN: r17885
1998-02-12 16:34:52 -07:00
Kaveh R. Ghazi
567f3d3603
com.c (type_for_mode): Add explicit braces to avoid ambiguous `else'.
...
* com.c (type_for_mode): Add explicit braces to avoid ambiguous `else'.
* expr.c (ffeexpr_type_combine): Likewise.
(ffeexpr_reduce_): Likewise.
(ffeexpr_declare_parenthesized_): Likewise.
* src.c (ffesrc_strcmp_1ns2i): Likewise.
(ffesrc_strcmp_2c): Likewise.
(ffesrc_strncmp_2c): Likewise.
* stb.c (ffestb_halt1_): Likewise.
(ffestb_R90910_): Likewise.
(ffestb_R9109_): Likewise.
* stc.c (ffestc_R544_equiv_): Likewise.
* std.c (ffestd_subr_copy_easy_): Likewise.
(ffestd_R1001dump_): Likewise.
(ffestd_R1001dump_1005_1_): Likewise.
(ffestd_R1001dump_1005_2_): Likewise.
(ffestd_R1001dump_1005_3_): Likewise.
(ffestd_R1001dump_1005_4_): Likewise.
(ffestd_R1001dump_1005_5_): Likewise.
(ffestd_R1001dump_1010_2_): Likewise.
* ste.c (ffeste_R840): Likewise.
* sts.c (ffests_puttext): Likewise.
* symbol.c (ffesymbol_check_token_): Likewise.
* target.c (ffetarget_real1): Likewise.
(ffetarget_real2): Likewise.
From-SVN: r17884
1998-02-12 16:18:26 -07:00
Benjamin Kosnik
c4e8876e9b
�
...
testcase for g++/14837
From-SVN: r17882
1998-02-12 18:20:08 +00:00
Benjamin Kosnik
2df0603278
decl.c (shadow_tag): Give error for typedef-ing built-in types Fixes g++/14837
...
d
Thu Feb 12 12:46:51 1998 Benjamin Kosnik <bkoz@rhino.cygnus.com>
* decl.c (shadow_tag): Give error for typedef-ing built-in types
Fixes g++/14837
From-SVN: r17881
1998-02-12 18:18:51 +00:00
Benjamin Kosnik
ea957dd5f4
decl.c (shadow_tag): Give error for typedef-ing built-in types Fixes g++/14837
...
a
Thu Feb 12 12:46:51 1998 Benjamin Kosnik <bkoz@rhino.cygnus.com>
* decl.c (shadow_tag): Give error for typedef-ing built-in types
Fixes g++/14837
From-SVN: r17880
1998-02-12 18:18:49 +00:00
Michael Meissner
89e9f3a8a9
Replace gen_rtx (CONST_INT...) calls with GEN_INT calls
...
From-SVN: r17879
1998-02-12 17:18:51 +00:00
Robert Lipe
8bd6ecc280
expr.c (expand_assignment): Correct typo exposed by -Wall.
...
* expr.c (expand_assignment): Correct typo exposed by -Wall.
offset should have been a truth value, not an assignment.
From-SVN: r17876
1998-02-12 14:59:57 +00:00
Mark Mitchell
3317aae90b
call.c (reference_binding): Use comptypes when comparing TYPE_MAIN_VARIANTS to handle non-canonical...
...
* call.c (reference_binding): Use comptypes when comparing
TYPE_MAIN_VARIANTS to handle non-canonical array/index types.
From-SVN: r17875
1998-02-12 14:55:02 +00:00
Mark Mitchell
9ca21c0adb
typeck.c (build_ptrmemfunc): Typecheck pointer-to-member conversions.
...
* typeck.c (build_ptrmemfunc): Typecheck pointer-to-member
conversions.
From-SVN: r17874
1998-02-12 14:51:57 +00:00
Jeffrey A Law
614bb5d45d
cse.c (delete_dead_from_cse): If a libcall produces a constant result and that result can be substituted into...
...
* cse.c (delete_dead_from_cse): If a libcall produces a constant
result and that result can be substituted into SET_SRC of the
insn with the REG_RETVAL note, then perform the substitution
and delete the libcall.
From-SVN: r17871
1998-02-12 07:26:47 -07:00
Gavin Koch
00bb4b6208
mips.md (trucndihi2,truncdiqi2): Change these to support mips16.
...
* mips.md (trucndihi2,truncdiqi2): Change these to support
mips16.
From-SVN: r17868
1998-02-12 11:06:08 +00:00
Gavin Koch
3871c60927
mips.c (movdi_operand): Direct referances to symbols that arn't mips16 consts in mips16 mode arn't...
...
* mips/mips.c (movdi_operand): Direct referances to symbols
that arn't mips16 consts in mips16 mode arn't valid operands.
* mips/mips.c (mips_move_2words): Add gprel handling.
From-SVN: r17867
1998-02-12 08:37:06 +00:00
Gavin Koch
2e72fa6af1
mips.md (extendsidi2): Allow extension to/from a non-mips16 register.
...
* mips.md (extendsidi2): Allow extension to/from a non-mips16
register.
From-SVN: r17866
1998-02-12 08:21:38 +00:00
Robert Lipe
0f4775477e
Add documentation for OpenServer patch required for static [cd]tors
...
to work right.
From-SVN: r17865
1998-02-11 23:17:04 +00:00
Marc Lehmann
a49103407c
i386.c: Conditionally include <stdlib.h>, <string.h>, and <strings.h>.
...
* i386.c: Conditionally include <stdlib.h>, <string.h>, and
<strings.h>.
From-SVN: r17864
1998-02-11 16:03:32 -07:00
Mark Mitchell
06ab59dfa0
tree.c (is_overloaded_fn): Use really_overloaded_fn.
...
* tree.c (is_overloaded_fn): Use really_overloaded_fn.
(really_overloaded_fn): Move check here from is_overloaded_fn.
(get_first_fn): Use really_overloaded_fn and is_overloaded_fn.
From-SVN: r17863
1998-02-11 22:47:30 +00:00
Kaveh R. Ghazi
cc1e5b9ab3
Makefile.in (WARN_CFLAGS): New variable.
...
* Makefile.in (WARN_CFLAGS): New variable.
(bootstrap, bootstrap2, bootstrap3, bootstrap4): Use it.
From-SVN: r17862
1998-02-11 15:26:23 -07:00
Mark Mitchell
53949fac1d
i386.c (reg_mentioned_in_mem): Don't abort when falling through default case in switch.
...
* config/i386/i386.c (reg_mentioned_in_mem): Don't abort when
falling through default case in switch.
(i386_aligned_p): Likewise.
From-SVN: r17860
1998-02-11 15:09:17 +00:00
Lee Iverson
9504c31c84
Patch from Lee Iverson.
...
* mips/mips.h (mips_abi_string): Correct typo in comment.
From-SVN: r17858
1998-02-11 05:04:01 -08:00
Jeff Law
f3a9e4e599
More updates...
...
From-SVN: r17857
1998-02-11 05:25:38 -07:00
Gavin Koch
7e4e0956ba
* mips/mips.md (movdi): These PLUS's need to be Pmode.
...
From-SVN: r17855
1998-02-11 05:32:24 +00:00
Jeff Law
fe70ce64fd
Add more folks.
...
From-SVN: r17854
1998-02-10 18:57:57 -07:00
Jason Merrill
68ea752b16
new
...
From-SVN: r17853
1998-02-10 20:30:13 -05:00
Mark Mitchell
3ac3d9eaf1
cp-tree.h (push_template_decl): Return the decl passed in, or an equivalent duplicate.
...
* cp-tree.h (push_template_decl): Return the decl passed in, or an
equivalent duplicate.
* decl.c (pushtag): Use the return value from push_template_decl.
(duplicate_decls): When duplicating a template declaration, merge
the DECL_TEMPLATE_RESULTs as well.
(make_implicit_typename): Don't try to dive into typename types to
find a context for making a new implicit typename.
(start_decl): Use the return value from push_template_decl.
(grokdeclarator): Complain about declarations list `const operator
int'. Since we don't correctly handle in-class initializations of
non-static data members, complain about this (now illegal)
practice. Issue an error for initializations of non-const statics
since that is illegal as well, and since we don't handle that case
correctly either.
(start_function): Use the return value from push_template_decl.
(start_method): Likewise.
* decl2.c (grokfield): Likewise. Since the change to
grokdeclarator ensures that all initialized fields are in fact
static, remove a redundant test for TREE_PUBLIC.
* parse.y (initlist): Disable labeled initializers since they do
not work as per the documentation, and since they do not use the
same syntax as the C front end.
* pt.c (push_template_decl): Return the decl passed in, or an
equivalent duplicate.
(lookup_template_class): When searching in a nested context,
use the right arguments.
(uses_template_parms): Handle the DECL_INITIAL for a CONST_DECL.
* typeck.c (build_component_ref): Assign the correct type to the
result of build_vfn_ref.
From-SVN: r17852
1998-02-10 20:22:36 -05:00
Richard Henderson
8cd61d76f7
Copy comment to go with the subtraction patch.
...
From-SVN: r17850
1998-02-10 16:54:15 -08:00
Kaveh R. Ghazi
8fb3ae1537
Makefile.in (dwarf2out.o, [...]): Depend on insn-codes.h, it gets included indirectly via expr.h.
...
* Makefile.in (dwarf2out.o, emit-rtl.o, jump.o, cse.o, unroll.o,
reorg.o, regmove.o): Depend on insn-codes.h, it gets included
indirectly via expr.h.
From-SVN: r17849
1998-02-10 17:46:41 -07:00
Manfred Hollstein
7bd52f251f
Makefile.in ($(lib)): Call $(AR) repeatedly to avoid overflowing argument size limit on ancious System V.
...
* Makefile.in ($(lib)): Call $(AR) repeatedly to avoid overflowing
argument size limit on ancious System V.
From-SVN: r17848
1998-02-10 17:44:50 -07:00
Richard Henderson
e203760cfa
com.c (ffecom_ptr_to_expr): Do upper - lower in the native type, so as to properly handle negative indices.
...
* com.c (ffecom_ptr_to_expr) [FFEBLD_opARRAYREF]: Do upper - lower
in the native type, so as to properly handle negative indices.
From-SVN: r17847
1998-02-10 17:44:03 -07:00
Richard Henderson
a2d53b285d
stor-layout.c (layout_type): Do upper - lower in the native type, so as to properly handle negative indices.
...
* stor-layout.c (layout_type): Do upper - lower in the native type,
so as to properly handle negative indices.
From-SVN: r17846
1998-02-10 17:43:32 -07:00
Robert Lipe
381127e845
except.c (start_dynamic_cleanup): Remove unused variable 'dhc'.
...
* except.c (start_dynamic_cleanup): Remove unused variable 'dhc'.
(expand_eh_region_start_tree): Remove unused variable 'note'.
(exception_optimize): Remove unused variable 'regions'.
(expand_builtin_eh_stub): Remove unused variable 'temp'.
(copy_eh_entry): Deleted. Dead function.
* expr.c (move_block_to_reg) Bracket declaration of 'pat' and
'last' with same #if HAVE_load_multiple as use of it.
(move_block_from_reg): Likewise.
(emit_move_insn_1): Remove unused variable 'insns'.
(store_constructor): Bracket declaration of startb, endb with
#if TARGET_MEMFUNCTIONS. Remove unused variables 'set_word_size'
'target', and 'xtarget'.
(expand_builtin_setjmp): Remove unused variables 'op0',
'next_arg_reg', 'old_inhibit_defer_pop'.
(expand_builtin): Remove unused variable 'offset'.
(do_store_flag): Remove unused variables 'pattern', 'jump_pat'.
(emit_queue): Add parens for assignment used as conditional.
(expand_expr): case TARGET_EXPR: Remove unused variable 'temp'.
From-SVN: r17843
1998-02-10 17:35:13 -07:00
Mark Mitchell
9b713d5e50
iostream.cc (ostream::operator<<(long double)): Don't use labeled initializers.
...
* iostream.cc (ostream::operator<<(long double)): Don't use
labeled initializers.
From-SVN: r17842
1998-02-10 19:35:01 -05:00
Marc Lehmann
00c79232ab
i386.c: Added include for recog.h.
...
* i386.c: Added include for recog.h.
(override_options): Removed unused variable p. Initialized regno to
avoid warning.
(order_regs_for_local_alloc): Initialized regno to avoid warning.
(legitimize_address): Likewise for 'other'.
(i386_aligned_reg_p): Added default case with abort ().
(print_operand): Likewise.
(reg_mentioned_in_mem): Likewise.
(ix86_expand_binary_operator): Removed unused variables i & insn.
(ix86_expand_unary_operator): Removed unused variable insn.
(output_fp_cc0_set): Removed unused variable unordered_label.
From-SVN: r17841
1998-02-10 17:29:57 -07:00
John F. Carr
f64cecad3e
i386.c, [...]: Change gen_rtx (X, ...) to gen_rtx_X (...).
...
* i386.c, i386.h, i386.md: Change gen_rtx (X, ...) to gen_rtx_X (...).
Use GEN_INT instead of gen_rtx (CONST_INT). Make printf arguments
and format string match.
From-SVN: r17840
1998-02-10 17:25:43 -07:00
Jeffrey A Law
0200b5ed0a
flow.c (life_analysis): Do not conside the stack pointer live at the end of a function if...
...
* flow.c (life_analysis): Do not conside the stack pointer live at
the end of a function if the fucntio ncalls alloca.
(mark_used_regs): Similarly.
From-SVN: r17839
1998-02-10 17:18:51 -07:00
Jason Merrill
c29c4e238e
* pt.c (convert_nontype_argument): Fix typo.
...
From-SVN: r17838
1998-02-10 18:58:19 -05:00
Jeff Law
3ab1919cc2
Update autoconf/autoheader generated files.
...
From-SVN: r17837
1998-02-10 16:51:52 -07:00
Jason Merrill
c6f2ed0db7
pt.c (check_explicit_specialization): Allow old-style specialization of class template members.
...
* pt.c (check_explicit_specialization): Allow old-style specialization
of class template members.
From-SVN: r17836
1998-02-10 18:42:31 -05:00
Jason Merrill
71cc65bdb7
decl.c (grokdeclarator): Use DECL_USE_TEMPLATE instead when deciding to override DECL_ASSEMBLER_NAME.
...
* decl.c (grokdeclarator): Use DECL_USE_TEMPLATE instead
when deciding to override DECL_ASSEMBLER_NAME.
Co-Authored-By: Manfred Hollstein <manfred@s-direktnet.de>
From-SVN: r17835
1998-02-10 15:37:18 -05:00