Commit Graph

19832 Commits

Author SHA1 Message Date
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
Nathan Sidwell 9becac0c3e 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: r24167
1998-12-07 15:10:43 -07:00
Alexandre Petit-Bianco ac8258565c parse.y (array_initializer): Tagged <node>.
Mon Dec  7 15:13:52 1998  Alexandre Petit-Bianco  <apbianco@cygnus.com>
	* parse.y (array_initializer): Tagged <node>.
	(variable_initializer:): Use default rule.
	(array_initializer:): Defined actions.
	(variable_initializers:): Likewise.
	(resolve_qualified_expression_name): Use DECL_CONTEXT to build
 	non-static field accesses.
	(patch_invoke): Fixed indentation typo.
	(java_complete_tree): Likewise.
	(build_labeled_block): Changed leading comment. Generate an error
 	in case of duplicate loop labels.
	(patch_conditional_expr): Patch results of string concatenation
 	operations.
Fixes a ?: bug when string concatenation operator are in
operands. Makes duplicate loop label declaration an error. Fixes
random bugs.

From-SVN: r24164
1998-12-07 08:23:02 -08:00
Per Bothner 89e09b9a23 constants.c (find_methodref_index): When the class is an interface...
d
	* constants.c (find_methodref_index):  When the class is an interface,
	generate CONSTANT_InterfaceMethodref instead of a CONSTANT_MethodRef.
	* decl.c (finit_identifier_node):  Use "$finit$", rather than
	"<finit>" (which Sun's verifier rejects).
	* parse.y (maybe_generate_finit):  Leave out meaningless final flag.
	(generate_field_initialization_code):  Removed.
	(fix_constructors)  Don't add call to $finit$ here (wrong order).
	(patch_method_invocation):  Add $finit$ call here.
	* java-tree.h (CALL_USING_SUPER):  New macro.
	* parse.y (patch_invoke):  Remove im local variable.
 	(patch_method_invocation, patch_invoke):  Don't pass super parameter.
	(patch_invoke):  Use CALL_USING_SUPER instead of from_super parameter.
	(resolve_qualified_expression_name):  Maybe set CALL_USING_SUPER.
	* jcf-write.c (get_access_flags):  Fix typo ACC_PUBLIC -> ACC_FINAL.
	* parse.y (java_complete_tree):  Don't complain about unreachable
	statement if it is empty_stmt_node.
	* jcf-write.c (find_constant_wide):  New function.
	(push_long_const):  Use find_constant_wide.
	* jcf-write.c (generate_bytecode_insn):  Fix bug in switch handling.
	(generate_bytecode_insn):  Use correct dup variant for MODIFY_EXPR.
	Add "redundant" NOTE_PUSH/NOTE_POP uses so code_SP_max gets set.
	Emit invokeinterface when calling an interface method.
	Emit invokespecial also when calling super or private methods.
	* jcf-write.c (generate_classfile):  Emit ConstantValue attributes.

From-SVN: r24163
1998-12-07 07:43:16 -08:00
Per Bothner 23a7b8f510 constants.c (find_methodref_index): When the class is an interface...
a
	* constants.c (find_methodref_index):  When the class is an interface,
	generate CONSTANT_InterfaceMethodref instead of a CONSTANT_MethodRef.
	* decl.c (finit_identifier_node):  Use "$finit$", rather than
	"<finit>" (which Sun's verifier rejects).
	* parse.y (maybe_generate_finit):  Leave out meaningless final flag.
	(generate_field_initialization_code):  Removed.
	(fix_constructors)  Don't add call to $finit$ here (wrong order).
	(patch_method_invocation):  Add $finit$ call here.
	* java-tree.h (CALL_USING_SUPER):  New macro.
	* parse.y (patch_invoke):  Remove im local variable.
 	(patch_method_invocation, patch_invoke):  Don't pass super parameter.
	(patch_invoke):  Use CALL_USING_SUPER instead of from_super parameter.
	(resolve_qualified_expression_name):  Maybe set CALL_USING_SUPER.
	* jcf-write.c (get_access_flags):  Fix typo ACC_PUBLIC -> ACC_FINAL.
	* parse.y (java_complete_tree):  Don't complain about unreachable
	statement if it is empty_stmt_node.
	* jcf-write.c (find_constant_wide):  New function.
	(push_long_const):  Use find_constant_wide.
	* jcf-write.c (generate_bytecode_insn):  Fix bug in switch handling.
	(generate_bytecode_insn):  Use correct dup variant for MODIFY_EXPR.
	Add "redundant" NOTE_PUSH/NOTE_POP uses so code_SP_max gets set.
	Emit invokeinterface when calling an interface method.
	Emit invokespecial also when calling super or private methods.
	* jcf-write.c (generate_classfile):  Emit ConstantValue attributes.

From-SVN: r24162
1998-12-07 07:43:15 -08:00
Per Bothner 157412f5c7 constants.c (find_methodref_index): When the class is an interface...
T
	* constants.c (find_methodref_index):  When the class is an interface,
	generate CONSTANT_InterfaceMethodref instead of a CONSTANT_MethodRef.
	* decl.c (finit_identifier_node):  Use "$finit$", rather than
	"<finit>" (which Sun's verifier rejects).
	* parse.y (maybe_generate_finit):  Leave out meaningless final flag.
	(generate_field_initialization_code):  Removed.
	(fix_constructors)  Don't add call to $finit$ here (wrong order).
	(patch_method_invocation):  Add $finit$ call here.
	* java-tree.h (CALL_USING_SUPER):  New macro.
	* parse.y (patch_invoke):  Remove im local variable.
 	(patch_method_invocation, patch_invoke):  Don't pass super parameter.
	(patch_invoke):  Use CALL_USING_SUPER instead of from_super parameter.
	(resolve_qualified_expression_name):  Maybe set CALL_USING_SUPER.
	* jcf-write.c (get_access_flags):  Fix typo ACC_PUBLIC -> ACC_FINAL.
	* parse.y (java_complete_tree):  Don't complain about unreachable
	statement if it is empty_stmt_node.
	* jcf-write.c (find_constant_wide):  New function.
	(push_long_const):  Use find_constant_wide.
	* jcf-write.c (generate_bytecode_insn):  Fix bug in switch handling.
	(generate_bytecode_insn):  Use correct dup variant for MODIFY_EXPR.
	Add "redundant" NOTE_PUSH/NOTE_POP uses so code_SP_max gets set.
	Emit invokeinterface when calling an interface method.
	Emit invokespecial also when calling super or private methods.
	* jcf-write.c (generate_classfile):  Emit ConstantValue attributes.

From-SVN: r24161
1998-12-07 07:43:14 -08:00
Per Bothner 72a0aac6d2 constants.c (find_methodref_index): When the class is an interface...
/
	* constants.c (find_methodref_index):  When the class is an interface,
	generate CONSTANT_InterfaceMethodref instead of a CONSTANT_MethodRef.
	* decl.c (finit_identifier_node):  Use "$finit$", rather than
	"<finit>" (which Sun's verifier rejects).
	* parse.y (maybe_generate_finit):  Leave out meaningless final flag.
	(generate_field_initialization_code):  Removed.
	(fix_constructors)  Don't add call to $finit$ here (wrong order).
	(patch_method_invocation):  Add $finit$ call here.
	* java-tree.h (CALL_USING_SUPER):  New macro.
	* parse.y (patch_invoke):  Remove im local variable.
 	(patch_method_invocation, patch_invoke):  Don't pass super parameter.
	(patch_invoke):  Use CALL_USING_SUPER instead of from_super parameter.
	(resolve_qualified_expression_name):  Maybe set CALL_USING_SUPER.
	* jcf-write.c (get_access_flags):  Fix typo ACC_PUBLIC -> ACC_FINAL.
	* parse.y (java_complete_tree):  Don't complain about unreachable
	statement if it is empty_stmt_node.
	* jcf-write.c (find_constant_wide):  New function.
	(push_long_const):  Use find_constant_wide.
	* jcf-write.c (generate_bytecode_insn):  Fix bug in switch handling.
	(generate_bytecode_insn):  Use correct dup variant for MODIFY_EXPR.
	Add "redundant" NOTE_PUSH/NOTE_POP uses so code_SP_max gets set.
	Emit invokeinterface when calling an interface method.
	Emit invokespecial also when calling super or private methods.
	* jcf-write.c (generate_classfile):  Emit ConstantValue attributes.

From-SVN: r24160
1998-12-07 07:43:11 -08:00
Per Bothner 2dfaf550bd constants.c (find_methodref_index): When the class is an interface...
* constants.c (find_methodref_index):  When the class is an interface,
	generate CONSTANT_InterfaceMethodref instead of a CONSTANT_MethodRef.
	* decl.c (finit_identifier_node):  Use "$finit$", rather than
	"<finit>" (which Sun's verifier rejects).
	* parse.y (maybe_generate_finit):  Leave out meaningless final flag.
	(generate_field_initialization_code):  Removed.
	(fix_constructors)  Don't add call to $finit$ here (wrong order).
	(patch_method_invocation):  Add $finit$ call here.
	* java-tree.h (CALL_USING_SUPER):  New macro.
	* parse.y (patch_invoke):  Remove im local variable.
 	(patch_method_invocation, patch_invoke):  Don't pass super parameter.
	(patch_invoke):  Use CALL_USING_SUPER instead of from_super parameter.
	(resolve_qualified_expression_name):  Maybe set CALL_USING_SUPER.
	* jcf-write.c (get_access_flags):  Fix typo ACC_PUBLIC -> ACC_FINAL.
	* parse.y (java_complete_tree):  Don't complain about unreachable
	statement if it is empty_stmt_node.
	* jcf-write.c (find_constant_wide):  New function.
	(push_long_const):  Use find_constant_wide.
	* jcf-write.c (generate_bytecode_insn):  Fix bug in switch handling.
	(generate_bytecode_insn):  Use correct dup variant for MODIFY_EXPR.
	Add "redundant" NOTE_PUSH/NOTE_POP uses so code_SP_max gets set.
	Emit invokeinterface when calling an interface method.
	Emit invokespecial also when calling super or private methods.
	* jcf-write.c (generate_classfile):  Emit ConstantValue attributes.

From-SVN: r24159
1998-12-07 07:43:10 -08:00
DJ Delorie 5f680ab65b Fix -membedded-data bug found by mips16 port.
* mips/mips.h (ENCODE_SECTION_INFO): Handle TARGET_EMBEDDED_DATA.
	Add comment.
	* mips/mips.c (mips_select_section): Add comment.

From-SVN: r24158
1998-12-07 07:32:26 -08:00
Mike Stump 069f7cf27a lex.c (check_newline): Add support for \ as `natural' characters in file names in #line to be...
Mon Dec  7 17:56:06 1998  Mike Stump  <mrs@wrs.com>
	* lex.c (check_newline): Add support for \ as `natural'
	characters in file names in #line to be consistent with #include
	handling.  We support escape prcessing in the # 1 "..." version of
	the command.

From-SVN: r24157
1998-12-07 10:02:16 -05:00
Mike Stump c25d8793cc cccp.c (ignore_escape_flag): Add support for \ as `natural' characters in file names in #line to be...
Mon Dec  7 17:55:06 1998  Mike Stump  <mrs@wrs.com>
	* cccp.c (ignore_escape_flag): Add support for \ as `natural'
	characters in file names in #line to be consistent with #include
	handling.  We support escape prcessing in the # 1 "..." version of
	the command.  See also support in cp/lex.c.
	(handle_directive): Likewise.
	(do_line): Likewise.

From-SVN: r24156
1998-12-07 09:57:30 -05:00
Zack Weinberg 3a5ac29d20 decl2.c: s/data/opts/ when initializing cpp_reader structure.
1998-12-07  Zack Weinberg  <zack@rabi.phys.columbia.edu>
	* cp/decl2.c: s/data/opts/ when initializing cpp_reader
          structure.

From-SVN: r24155
1998-12-07 09:20:55 -05:00
Zack Weinberg c50bca0894 cpplib.c (initialize_char_syntax): Use ISALPHA and ISALNUM so it'll work on non-ASCII platforms.
1998-12-07  Zack Weinberg  <zack@rabi.phys.columbia.edu>
	* cpplib.c (initialize_char_syntax): Use ISALPHA and ISALNUM
          so it'll work on non-ASCII platforms.  Always consider $ an
          identifier character.  Take no arguments.
	  (cpp_reader_init): Call initialize_char_syntax with no
          arguments.
	  (cpp_start_read): Don't call initialize_char_syntax again.
          Clear is_idchar['$'] and is_idstart['$'] if not
          opts->dollars_in_ident.
	* cpplib.h (struct cpp_reader): Replace void *data element by
          cpp_options *opts.  Rearrange elements to make gdb printout
          less annoying (put buffer stack at end).
	  (CPP_OPTIONS): Get rid of now-unnecessary cast.
	* cppmain.c: s/data/opts/ when initializing cpp_reader
          structure.
	* c-decl.c: Likewise.
	* objc/objc-act.c: Likewise.
	* fix-header.c: Likewise.

From-SVN: r24154
1998-12-07 09:15:29 -05:00
Zack Weinberg f1a86df6cb cpplib.h (struct cpp_buffer): Replace dir and dlen members with a struct file_name_list pointer.
1998-11-26 01:17 -0500  Zack Weinberg  <zack@rabi.phys.columbia.edu>
	* cpplib.h (struct cpp_buffer): Replace dir and dlen members
	with a struct file_name_list pointer.
	(struct cpp_reader): Add pointer to chain of `actual
	directory' include searchpath entries.
	(struct file_name_list): Add *alloc pointer for the sake of
	the actual-directory chain.
	Move definition of HOST_WIDE_INT here.
	(cpp_parse_escape): Change prototype to match changes in
	cppexp.c.
	* cppfiles.c (actual_directory): New function.
	(finclude): Use it to initialize the buffer's actual_dir
	entry.
	(find_include_file): We don't need to fix up max_include_len
	here.
	* cpplib.c (do_include): Don't allocate a file_name_list on
	the fly for current directory "" includes, use the one that's
	been preallocated in pfile->buffer->actual_dir.  Hoist out
	duplicate code from the search_start selection logic.
	(cpp_reader_init): Initialize pfile->actual_dirs.
	Remove definition of HOST_WIDE_INT.  Change calls
	to cpp_parse_escape to match changes in cppexp.c (note
	hardcoded MASK, which is safe since this is the source
	character set).
	* cppexp.c: Bring over changes to cpp_parse_escape from cccp.c
	to handle wide character constants in #if directives.  The
	function now returns a HOST_WIDE_INT, and takes a third
	argument which is a binary mask for all legal values (0x00ff
	for 8-bit `char', 0xffff for 16-bit `wchar_t', etc.)  Define
	MAX_CHAR_TYPE_MASK and MAX_WCHAR_TYPE_MASK.  Change callers of
	cpp_parse_escape to match.  [Fixes c-torture/execute/widechar-1.c]

From-SVN: r24153
1998-12-07 08:35:20 -05:00
Dave Brolley 93447205e5 [multiple changes]
Mon Dec  7 15:38:25 1998  Dave Brolley  <brolley@cygnus.com>
	* gcc.c (default_compilers): Fix typo in USE_CPPLIB spec for cc1.
Mon Dec  7 15:38:25 1998  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
        * c-aux-info.c (concat): Wrap function definition in !USE_CPPLIB.
        * cppalloc.c: Move function `xcalloc' from cpplib.c to here.
        * cpplib.c: Move function `xcalloc' from here to cppalloc.c.

From-SVN: r24152
1998-12-07 07:42:21 -05:00
Jason Merrill f070035e54 update
From-SVN: r24151
1998-12-07 07:27:51 -05:00
Jason Merrill 2642b9bfd5 decl.c (build_typename_type): Set DECL_ARTIFICIAL.
* decl.c (build_typename_type): Set DECL_ARTIFICIAL.
	* error.c (dump_simple_decl): Also print namespace context.
	(dump_function_decl): Likewise.
	* decl2.c (ambiguous_decl): Don't print old value if it's
	error_mark_node.
	* decl.c (lookup_name_real): Fix handling of local types shadowed
	by a non-type decl.  Remove obsolete code.
	* cp-tree.h (DECL_FUNCTION_SCOPE_P): New macro.
Fixes g++.other/lookup6.C
	* lang-options.h: Add -fpermissive.
	* decl2.c: Likewise.
	* cp-tree.h: Add flag_permissive.
	* decl.c (init_decl_processing): If neither -fpermissive or -pedantic
	were specified, set flag_pedantic_errors.
	* call.c (build_over_call): Turn dropped qualifier messages
	back into pedwarns.
	* cvt.c (convert_to_reference): Likewise.
	* typeck.c (convert_for_assignment): Likewise.

From-SVN: r24150
1998-12-07 07:27:47 -05:00
Nick Clifton 1db9f6ceae Improve -dp output by using tabs and including instruciton lengths
From-SVN: r24149
1998-12-07 11:45:49 +00:00
Michael Hayes eb6a3bc0b4 loop.c (check_dbra_loop): Fix initial_value and initial_equiv_value in the loop_info structure.
* loop.c (check_dbra_loop): Fix initial_value and initial_equiv_value
        in the loop_info structure.
Should fix -O1 -funroll-loops bootstrap problems.

From-SVN: r24146
1998-12-07 02:56:56 -07:00
Catherine Moore e6592fffc4 configure.in: (arm*-*-ecos-elf): New target.
Mon Dec  7 09:58:26 1998  Catherine Moore  <clm@cygnus.com>
        * configure.in:  (arm*-*-ecos-elf):  New target.
        * configure:  Regenerated.
        * config/arm/elf.h (ASM_WEAKEN_LABEL):  Define.
        * config/arm/ecos-elf.h:  New file.
        * config/arm/unknown-elf.h (TARGET_VERSION):  Check
        for redefinition.

From-SVN: r24145
1998-12-07 04:15:34 -05:00
J"orn Rennecke 1a953d0f16 * sh.c (output_far_jump): Emit braf only for TARGET_SH2.
From-SVN: r24144
1998-12-07 08:18:29 +00:00
Jeff Law e253ffc28b Daily bump.
From-SVN: r24142
1998-12-06 17:45:03 -07:00
Per Bothner 0f0d331917 jcf-dump.c (INVOKE): If invokeinterface, print number of args.
* jcf-dump.c (INVOKE):  If invokeinterface, print number of args.

From-SVN: r24140
1998-12-06 05:46:42 -08:00