Commit Graph

19954 Commits

Author SHA1 Message Date
Jim Wilson 737e7965de Fix alpha-x-m32r-elf bugs.
* cse.c (simplify_unary_operation): Sign-extend constants when
	they have the most significant bit set for the target.
	* real.c (endian): Sign-extend 32 bit output values on a 64 bit
	host.
	* m32r/m32r.c (m32r_expand_prologue): Store pretend_size in
	HOST_WIDE_INT temporary before negating it.
	* m32r/m32r.md (movsi_insn+1): Use ~0xffff instead of 0xffff0000.

From-SVN: r24254
1998-12-10 09:21:35 -08:00
Mark Mitchell ea585788ba decl.c (start_enum): Use push_obstacks, not end_temporary_allocation.
* decl.c (start_enum): Use push_obstacks, not
	end_temporary_allocation.
	(finish_enum): Call pop_obstacks.

From-SVN: r24244
1998-12-10 15:08:45 +00:00
Mark Mitchell cbf882afb3 (start_enum): Use push_obstacks, not end_temporary_allocation.
(finish_enum): Call pop_obstacks.

From-SVN: r24243
1998-12-10 15:05:29 +00:00
Mark Mitchell 513e9d13b4 class.c (instantiate_type): Return error_mark_node rather than junk.
* class.c (instantiate_type): Return error_mark_node rather than
	junk.

From-SVN: r24240
1998-12-10 13:35:36 +00:00
Dave Brolley 353f10d599 objc-act.c (lang_init_options): Enclose cpplib related code in #if USE_CPPLIB.
Thu Dec 10 15:05:59 1998  Dave Brolley  <brolley@cygnus.com>
	* objc/objc-act.c (lang_init_options): Enclose cpplib related code in
	#if USE_CPPLIB.

From-SVN: r24234
1998-12-10 07:09:04 -05:00
Alexandre Petit-Bianco 1179ebc2fd parse.y (array_initializer:): Array init operand is NULL_TREE instead of a TREE_LIST of NULL_TREEs when...
Thu Dec 10 11:02:49 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
	* parse.y (array_initializer:): Array init operand is NULL_TREE
 	instead of a TREE_LIST of NULL_TREEs when parsing `{}'. `{,}' is
 	now an error. Fixed indentation problems.
	(patch_string): Handle error_mark_node as an argument.
	(patch_new_array_init): Fixed indentation problems.
	(array_constructor_check_entry): Removed check on null wfl_value.
  	Return an error if wfl_value's walk returns an error.
Fixes and cleanups for array initializers.

From-SVN: r24233
1998-12-10 03:24:46 -08:00
Jason Merrill 481ef9dd67 revert
From-SVN: r24232
1998-12-10 06:07:33 -05:00
Kaveh R. Ghazi 2edfd4ee53 collect2.h: New header file for prototypes.
* collect2.h: New header file for prototypes.
        * Makefile.in (collect2.o, tlink.o): Depend on collect2.h.
        * collect2.c: Include collect2.h.
        * tlink.c: Likewise.

From-SVN: r24231
1998-12-10 10:48:27 +00:00
Jeff Law 72b1c47924 Daily bump.
From-SVN: r24227
1998-12-09 17:45:02 -07:00
Jeffrey A Law c985204794 * flow.c: Update some comments.
From-SVN: r24226
1998-12-09 15:57:59 -07:00
Mark Mitchell 104bf76a62 cp-tree.h (most_specialized_instantiation): New function.
* cp-tree.h (most_specialized_instantiation): New function.
	(print_candidates): Likewise.
	* class.c (validate_lhs): Remove.
	(resolve_address_of_overloaded_function): New function, split out
	and then substantially reworked, from ...
	(instantiate_type): Use it.  Simplify.
	* cvt.c (convert_to_reference): Complain when caller has indicated
	that's the right thing to do.  Don't crash if instantiate_type
	fails.
	* pt.c: Substitute `parameters' for `paramters' throughout.
	(print_candidates): Don't make it static.
	(most_specialized_instantiation): Split out from ...
	(most_specialized): Here.

From-SVN: r24225
1998-12-09 16:20:05 +00:00
Alexandre Petit-Bianco f8976021c4 java-tree.def (NEW_ARRAY_INIT): New Java tree code.
Wed Dec  9 15:37:05 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
	* java-tree.def (NEW_ARRAY_INIT): New Java tree code.
	* lex.c (java_lex): Remember column position before advancing one
 	token. Retain location information on OCB_TK.
	* lex.h (typedef struct java_lc): Added new field.
	* parse.h (GET_SKIP_TYPE): New macro.
	(QUAL_DECL_TYPE): Redefined using GET_SKIP_TYPE.
	* parse.y (build_new_array_init, patch_new_array_init,
 	patch_array_constructor, maybe_build_array_element_wfl,
 	array_constructor_check_entry): New function prototypes.
	(switch_block:): Tagged <node>.
	(OCB_TK): Tagged <operator>.
	(array_initializer:): Installed actions.
	(variable_initializer): Build location information on element if
 	necessary.
	(switch_statement:): Fixed indentation typo.
	(switch_block:): Redefined default action.
	(java_complete_tree): Handle NEW_ARRAY_INIT in MODIFY_EXPR:.
	(patch_assignment): Removed duplicate code.
	(maybe_build_array_element_wfl, build_new_array_init,
 	patch_new_array_init, patch_array_constructor,
 	array_constructor_check_entry): New functions.
Parse and walk array initializer nodes.

From-SVN: r24224
1998-12-09 07:50:12 -08:00
Brendan Kehoe 996d0685a1 update old-dejagnu proc to accompany jasons 12/7 change to g++.old-deja/old-deja.exp
From-SVN: r24222
1998-12-09 07:53:34 -05:00
Dave Brolley dfb0fb1d90 lex.c (lang_init_options): Initialize cpplib.
Wed Dec  9 15:33:01 1998  Dave Brolley  <brolley@cygnus.com>
	* lex.c (lang_init_options): Initialize cpplib.
	* decl2.c (parse_options,cpp_initialized): Removed.
	(lang_decode_option): Move initialization of cpplib to
	lang_init_options.

From-SVN: r24221
1998-12-09 07:51:24 -05:00
Dave Brolley 8a1a524a83 objc-act.c (cpp_initialized): Removed.
Wed Dec  9 15:29:26 1998  Dave Brolley  <brolley@cygnus.com>
	* objc/objc-act.c (cpp_initialized): Removed.
	(lang_init_options): Initialize cpplib.
	(lang_decode_option): Move initialization of cpplib to
	lang_init_options.

From-SVN: r24220
1998-12-09 07:47:51 -05:00
Dave Brolley 5d7da2c6d9 c-lang.c: (parse_options,parse_in): Added.
Wed Dec  9 15:29:26 1998  Dave Brolley  <brolley@cygnus.com>
	* c-lang.c: (parse_options,parse_in): Added.
	(lang_init_options): Initialized cpplib here.
	* c-decl.c (parse_options,cpp_initialized): Removed.
	(c_decode_option): Move initialization of cpplib to
	lang_init_options.

From-SVN: r24219
1998-12-09 07:47:28 -05:00
Mark Mitchell 33964bf4af decl.c (grokdeclarator): Update the name of the TEMPLATE_DECL...
* decl.c (grokdeclarator): Update the name of the TEMPLATE_DECL, as
	well as the TYPE_DECL, when a typedef name is assigned to a
	previously anonymous type.

From-SVN: r24218
1998-12-09 11:46:02 +00:00
Joern Rennecke a0078b3709 Typo fix in last entry.
From-SVN: r24217
1998-12-09 11:41:26 +00:00
J"orn Rennecke ed937a1993 reload1.c (reload_combine, [...]): Make USE_RUID always valid.
* reload1.c (reload_combine, reload_combine_note_store):
	Make USE_RUID always valid.
	(reload_combine): Check if BASE is clobbered too early.

From-SVN: r24216
1998-12-09 11:39:17 +00:00
Nick Clifton 290b61f7fa If an insn cannot be reloaded, display it before calling abort()
From-SVN: r24210
1998-12-09 09:55:10 +00:00
Dave Brolley bdf777e4a4 cccp.c (create_definition): Fix end of bufer logic.
Wed Dec  9 12:15:26 1998  Dave Brolley  <brolley@cygnus.com>
	* cccp.c (create_definition): Fix end of bufer logic.

From-SVN: r24205
1998-12-09 04:17:52 -05:00
Kaveh R. Ghazi 3b89e9d1ff except.c (duplicate_eh_handlers, [...]): Function pointer parameters changed to use the PARAMS() macro.
* except.c (duplicate_eh_handlers, rethrow_symbol_map): Function
       pointer parameters changed to use the PARAMS() macro.

From-SVN: r24204
1998-12-09 07:27:21 +00:00
Andrew MacLeod 0177de8737 except.h (struct handler_info): Add handler_number field
* except.h (struct handler_info): Add handler_number field
	* except.c (gen_exception_label): EH labels no longer need to be
	on the permanent obstack.
	(get_new_handler): Set the label number field.
	(output_exception_table_entry): Regenerate handler label reference
	from the label number field.
	(init_eh): Remove a blank line
	* integrate.c (get_label_from_map): Labels no longer need to be
	on the permanent obstack.

From-SVN: r24203
1998-12-09 06:15:20 +00:00
Jeff Law a91d8b9534 Daily bump.
From-SVN: r24202
1998-12-08 17:45:05 -07:00
Alexandre Oliva 752e02e4fc * gcc.dg/ultrasp1.c: empty dg-options, avoid `long long' warnings
From-SVN: r24201
1998-12-09 00:37:27 +00:00
Alexandre Oliva 2d8bf6c3c5 * g++.old-deja/g++.pt/instantiate6.C: linker error, not crash
From-SVN: r24200
1998-12-09 00:33:42 +00:00
Jim Wilson 7a3c92a596 Fix bug found by i960 simulator testing.
* i960/i960.h (CONST_COSTS, case CONST_INT): Accept power2_operand
	only when OUTER_CODE is SET.

From-SVN: r24199
1998-12-08 14:08:13 -08:00
Franz Sirl 31c2486198 930510-1.c: Make C9X safe.
* gcc.special/930510-1.c: Make C9X safe.
        * gcc.misc-tests/gcov-1.c Similarly.
        * gcc.misc-tests/gcov-2.c Similarly.

From-SVN: r24198
1998-12-08 14:53:21 -07:00
Jeff Law 16fb6b5ea9 Add missing ChangeLog entry for:
* configure.in (hppa2*-*-*): Handle like hppa1.1-*-* for now.
        * configure: Rebuilt.

From-SVN: r24197
1998-12-08 14:49:03 -07:00
J"orn Rennecke 5353610bac loop.c (strength_reduce): If scan_start points to the loop exit test...
* loop.c (strength_reduce): If scan_start points to the loop exit
	test, be wary of subversive use of gotos inside expression statements.
	Don't set maybe_multiple for a backward jump that does not
	include the label under consideration into its range.
	* unroll.c (biv_total_increment): Make use of maybe_multiple field.

From-SVN: r24196
1998-12-08 14:50:03 +00:00
J"orn Rennecke 03d937fceb explow.c (plus_constant_wide): Don't immediately return with result of recursive call.
* explow.c (plus_constant_wide): Don't immediately return with
	result of recursive call.

From-SVN: r24195
1998-12-08 14:35:18 +00:00
Andrew MacLeod e6cfb550ab See ChangeLog..
Tue Dec  8 15:32:56 EST 1998  Andrew MacLeod  <amacleod@cygnus.com>
See ChangeLog.. These are the files that were changed:
	* eh-common.h (struct eh_context): Add table_index for rethrows.
	* rtl.h (enum reg_note): Add REG_EH_REGION and REG_EH_RETHROW reg notes.
	* rtl.c (reg_note_name): Add strings for new reg_note enums.
	* expr.h (rethrow_libfunc): New library decl.
	* optabs.c (rethrow_libfunc): Initialize.
	* except.h (struct eh_entry): Add new field 'rethrow_label'.
	* except.c (create_rethrow_ref): New function to create a single
	* flow.c (make_edges): Add different edges for rethrow calls,
	* integrate.c (save_for_inline_eh_labelmap): New callback routine to
	* libgcc2.c (find_exception_handler): Generalize to enable it to
        * cp/except.c
        * cp/exception.cc

From-SVN: r24194
1998-12-08 14:04:03 +00:00
Jeff Law 2bfdc2d4e7 Makefile.in (DEMANGLE_H): Change location to shared demangle.h.
* Makefile.in (DEMANGLE_H): Change location to shared demangle.h.
        * demangle.h: Deleted.
Shit.  I'm starting to forget to check in changes again.

From-SVN: r24193
1998-12-08 06:34:37 -07:00
Jeffrey A Law 122a860e70 * reload1.c (current_function_decl): Tweak declaration.
From-SVN: r24191
1998-12-08 05:14:30 -07:00
Richard Henderson 6271b19158 c-decl.c (flag_isoc9x): Default off.
* c-decl.c (flag_isoc9x): Default off.
        (c_decode_option): Kill -std=gnu, add -std=gnu89 and -std=gnu9x.
        * cccp.c (print_help, main): Likewise.
        * gcc.c (default_compilers): Update for -std=gnu*.

From-SVN: r24186
1998-12-08 02:26:36 -08:00
Jeffrey A Law f454109fab * Make-lang.in (cxxmain.o): Depend on $(DEMANGLE_H), not demangle.h
From-SVN: r24185
1998-12-08 02:50:33 -07:00
Jeffrey A Law d91d4a5c9e Makefile.in (DEMANGLE_H): Change location to shared demangle.h.
* Makefile.in (DEMANGLE_H): Change location to shared demangle.h.
        * demangle.h: Deleted.

From-SVN: r24184
1998-12-08 02:49:49 -07:00
Jeffrey A Law dfb7c80fc7 * reload1.c (current_function_decl): Declare.
From-SVN: r24183
1998-12-08 02:45:02 -07:00
Kaveh R. Ghazi b4eadc3d64 cpplib.c (convert_string): Use `0x00ff', not `0x00ffU'.
Tue Dec  8 11:58:51 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
	* cpplib.c (convert_string): Use `0x00ff', not `0x00ffU'.

From-SVN: r24182
1998-12-08 04:00:26 -05:00
Kaveh R. Ghazi 6785b07787 * dbxout.c: If USG is defined use gstab.h, even if HAVE_STAB_H is set.
From-SVN: r24181
1998-12-08 06:38:10 +00:00
Jeff Law 0e59fc3b92 Daily bump.
From-SVN: r24177
1998-12-07 17:45:02 -07:00
Marc Espie a16e85c201 * Makefile.in: Be more selective about what files to install.
From-SVN: r24176
1998-12-07 17:01:29 -07:00
Ulrich Drepper 54953b66c5 configure.in: Test for availability of putc_unlocked, fputc_unlocked, and fputs_unlocked.
* configure.in: Test for availability of putc_unlocked, fputc_unlocked,
        and fputs_unlocked.
        * configure: Rebuilt.
        * system.h: If the *_unlocked functions are available use them
        instead of the locked counterparts by defining macros.
        * config.in: Regenerated.

From-SVN: r24175
1998-12-07 16:40:19 -07:00
Mike Stump 872936ad0b bsd.h (ASM_FILE_START): Don't use dump_base_name...
* i386/bsd.h (ASM_FILE_START): Don't use dump_base_name, it is
        wrong and should only be used for dump related things, not
        debugging information, instead main_input_filename should be used.
        Also, reuse output_file_directive if possible.
        * i386/aix386ng.h (ASM_FILE_START): Likewise.
        * i386/isc.h (ASM_FILE_START): Likewise.
        * i386/win-nt.h (ASM_FILE_START): Likewise.
        * i386/sun386.h (ASM_FILE_START): Likewise.

From-SVN: r24174
1998-12-07 16:36:08 -07:00
Elena Zannoni 63684e6319 demangle.h: (DMGL_EDG): new macro for Kuck and Associates
* demangle.h: (DMGL_EDG): new macro for Kuck and Associates
        (DMGL_STYLE_MASK): modify to include Kuck and Assoc style
        (demangling_styles): add new edg_demangling style
        (EDG_DEMANGLING_STYLE_STRING): new macro
        (EDG_DEMANGLING): new macro
        * demangle.h (DMGL_HP): new macro, for HP/aCC compiler.
        (DMGL_STYLE_MASK): modify to include new HP's style.
        (demangling_styles): add new hp_demangling value.
        (HP_DEMANGLING_STYLE_STRING): new macro.
        (ARM_DEMANGLING): coerce to int.
        (HP_DEMANGLING): new macro.

From-SVN: r24173
1998-12-07 16:32:23 -07:00
Robert Lipe 11fa8909c8 configure.in (mips*-*-linux*): Handle big and little endian systems.
* configure.in (mips*-*-linux*): Handle big and little endian
        systems.
        * configure: Rebuilt.

From-SVN: r24172
1998-12-07 15:58:57 -07:00
Jeff Law 996e968353 local-alloc.c (block_alloc): Slightly retune heuristic to widen qty lifetimes.
* local-alloc.c (block_alloc): Slightly retune heuristic to widen
        qty lifetimes.
Actually check in the local-alloc patch that goes along with this ChangeLog
entry...

From-SVN: r24171
1998-12-07 15:38:24 -07:00
David Taylor 70d5ccef06 * HP aCC demangling support.
* cplus-dem.c
        (main): Remove default to HP style demangling, set to EDG
        demangling correctly when -edg specified; set the demangling style
        when user specifies 'edg'. Set strip_underscore to
        prepends_underscore, if not HPUXHPPA.  Set
        current_demangling_style to hp_demangling if HPUXHPPA.  Set
        current demangling style correctly if the switch is hp.  Read
        label correctly also in the HP style case.
        (work_stuff): add temp_start field; add field for volatile member
        function.
        (arm_pt): handle ARM_DEMANGLING and EDG_DEMANGLING styles; HP
        style for this case is the same as ARM.
        (demangle_args): handle EDG_DEMANGLING style; support HP style.
        (demangle_arm_hp_template): new function. (It was
        demangle_arm_pt.); check and set value of temp_start field in
        multiple places. Also, when ceching for end of template args,
        check to see if at end of static member of template class.
        (demangle_class): new local variable : save_class_name_end Don't
        include template args in string defining class.
        (demangle_class_name): use demangel_arm_hp_template.
        (demangle_function_name): handle case where demangling style is
        HP_DEMANGLING and currently point at an 'X' in the mangled name.
        Handle EDG_DEMANGLING style.  Handle constructor and destructor
        ops for HP style.
        (demangle_prefix): handle EDG_DEMANGLING and ARM_DEMANGLING
        styles.  global destructor and constructor for HP style are same
        as for ARM style. Same for local variables.
        (demangle_qualified): handle EDG_DEMANGLING style.
        (demangle_signature): add case for volatile member function.  For
        cases '1' - '9' : initialize the temp_start field to -1 and handle
        the EDG_DEMANGLING style.  for case 'F' : handle EDG_DEMANGLING
        and AUTO_DEMANGLING styles.  If expecting a function and managed
        to demangle the funct args, then handle the LUCID_DEMANGLING,
        ARM_DEMANGLING, and EDG_DEMANGLING styles.  Add case for local
        class name after "Lnnn_ in HP style case. HP style too needs to
        forget types.  _nnn is OK for HP style, so don't report failure.
        (do_hpacc_template_const_value): new function. Handle template's
        value param for HP/aCC.
        (do_hpacc_template_literal): new function.  Handle a template's
        literal parameter for HP aCC.
        (recursively_demangle): new function
        (snarf_numeric_literal): new function.
        (usage): add 'edg' to the list of demangling styles; add hp switch
        to message.

Co-Authored-By: Andrew MacLeod <amacleod@cygnus.com>
Co-Authored-By: Edith Epstein <eepstein@cygnus.com>
Co-Authored-By: Elena Zannoni <ezannoni@cygnus.com>
Co-Authored-By: Satish Pai <pai@apollo.hp.com>
Co-Authored-By: Stan Shebs <shebs@cygnus.com>

From-SVN: r24170
1998-12-07 15:21:45 -07:00
Mike Stump fe77a03443 * emit-rtl.c: Fix typo.
From-SVN: r24169
1998-12-07 15:18:00 -07:00
Nathan Sidwell d6633f01f4 reload1.c (eliminate_regs): Don't do anything, if we're not generating code.
�
        * reload1.c (eliminate_regs): Don't do anything, if we're not
        generating code.

From-SVN: r24168
1998-12-07 15:10:45 -07:00