aboutsummaryrefslogtreecommitdiff
path: root/gcc
AgeCommit message (Collapse)AuthorFilesLines
2002-04-14cpperror.c (print_location): Don't print include chain if line == 0.Neil Booth12-390/+386
* cpperror.c (print_location): Don't print include chain if line == 0. (cpp_begin_message): Update to use DL_ macros. (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning, cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line, cpp_notice, cpp_notice_from_errno): Remove. (cpp_error, cpp_error_with_line): Update to take a diagnostic level. (cpp_errno): New. * cppexp.c (CPP_ICE): Remove. (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined, lex, integer_overflow, _cpp_parse_expr): Update. * cppfiles.c (read_include_file, find_include_file, handle_missing_header, _cpp_read_file, remap_filename): Update. * cpphash.h (enum error_type): Remove. (_cpp_begin_message): Update. * cppinit.c (append_include_chain, remove_dup_dirs, output_deps, cpp_handle_option, cpp_post_options): Update. * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment, skip_whitespace, parse_identifier, parse_slow, parse_string, _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape, cpp_interpret_charconst): Update. * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive, lex_macro_node, do_undef, glue_header_name, parse_include, do_include_common, read_flag, do_line, do_linemarker, do_ident, cpp_register_pragma, do_pragma_once, do_pragma_system_header, do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else, do_elif, do_endif, parse_answer, parse_assertion, do_assert, _cpp_pop_buffer, do_diagnostic): Update. * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR, DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New. (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning, cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line, cpp_notice, cpp_notice_from_errno): Remove. (cpp_error, cpp_error_with_line): Update to take a diagnostic level. (cpp_errno): New. * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens, collect_args, enter_macro_context, save_parameter, parse_params, _cpp_create_definition, check_trad_stringification, cpp_macro_definition): Update. * cppmain.c (cpp_preprocess_file): Update. * fix-header.c (read_scan_file): Update. From-SVN: r52302
2002-04-14* config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.Andreas Schwab2-1/+5
From-SVN: r52299
2002-04-14* config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.Jeroen Dobbelaere2-0/+8
From-SVN: r52296
2002-04-14f77-edit-i-in.f: Use internal buffer in place of scratch file.David Billinghurst2-13/+13
2002-04-12 David Billinghurst <David.Billinghurst@riotinto.com> * g77.dg/f77-edit-i-in.f: Use internal buffer in place of scratch file. From-SVN: r52294
2002-04-14typeck.c (get_member_function_from_ptrfunc): Don't do gratuitious division ↵Jason Merrill2-13/+16
and multiplication on ptrmemfunc_vbit_in_delta... * typeck.c (get_member_function_from_ptrfunc): Don't do gratuitious division and multiplication on ptrmemfunc_vbit_in_delta targets. From-SVN: r52293
2002-04-14re PR c/6277 (Failure of test gcc.dg/i386-387-1.c on cygwin)David Billinghurst2-3/+9
2002-04-14 David Billinghurst <David.Billinghurst@riotinto.com> PR c/6277 * gcc.dg/i386-387-1.c: Allow optional leading underscore in scan-assembler function name From-SVN: r52292
2002-04-14Daily bump.GCC Administrator2-2/+2
From-SVN: r52290
2002-04-13gnu.h (CPP_PREDEFINES): Define __gnu_hurd__, not gnu_hurd.Mark Mitchell2-1/+6
* config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__, not gnu_hurd. From-SVN: r52286
2002-04-13* config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.Hans-Peter Nilsson2-1/+5
From-SVN: r52283
2002-04-13t-elf: Enable v8 multilibs.Joel Sherrill2-6/+8
2002-04-13 Joel Sherrill <joel@OARcorp.com> * config/sparc/t-elf: Enable v8 multilibs. Impacts sparc-elf and sparc-rtems targets. From-SVN: r52281
2002-04-13news.texi: Deprecate frontend version number; update list of fixed bugs.Toon Moene2-2/+15
2002-04-13 Toon Moene <toon@moene.indiv.nluug.nl> * news.texi: Deprecate frontend version number; update list of fixed bugs. From-SVN: r52280
2002-04-13linux.h: Define __gnu_linux__ wherever __linux__ is defined...Mark Mitchell24-50/+77
* alpha/linux.h: Define __gnu_linux__ wherever __linux__ is defined, and __gnu_hurd__ wherever __GNU__ is defined. * arm/linux-elf.h: Likewise. * cris/aout.h: Likewise. * cris/linux.h: Likewise. * i370/linux.h: Likewise. * i386/gnu.h: Likewise. * i386/linux-aout.h: Likewise. * i386/linux-oldld.h: Likewise. * i386/linux.h: Likewise. * i386/linux64.h: Likewise. * ia64/linux.h: Likewise. * m68k/linux-aout.h: Likewise. * m68k/linux.h: Likewise. * mips/linux.h: Likewise. * pa/pa-linux.h: Likewise. * pj/linux.h: Likewise. * rs6000/sysv4.h: Likewise. * s390/linux.h: Likewise. * sh/linux.h: Likewise. * sparc/linux-aout.h: Likewise. * sparc/linux.h: Likewise. * sparc/linux64.h: Likewise. * xtensa/linux.h: Likewise. From-SVN: r52279
2002-04-13980628-4.x, [...]: xfail powerpc-*-* hosted on i[34567]86-*-*.Hans-Peter Nilsson8-7/+23
* g77.f-torture/execute/980628-4.x, g77.f-torture/execute/980628-5.x, g77.f-torture/execute/980628-6.x, g77.f-torture/execute/alpha2.x, g77.f-torture/execute/auto0.x, g77.f-torture/execute/auto1.x, g77.f-torture/compile/alpha1.x: xfail powerpc-*-* hosted on i[34567]86-*-*. From-SVN: r52273
2002-04-1320020413-1.c: New test.David S. Miller2-0/+40
2002-04-13 David S. Miller <davem@redhat.com> * gcc.c-torture/execute/20020413-1.c: New test. From-SVN: r52272
2002-04-13* gcc.dg/asm-6.c,Richard Sandiford3-0/+68
* g++.dg/ext/asm1.C: New tests. From-SVN: r52270
2002-04-13stmt.c (check_unique_operand_names): Expect operand names to be strings ↵Richard Sandiford4-12/+25
rather than identifiers. * stmt.c (check_unique_operand_names): Expect operand names to be strings rather than identifiers. Use simple_cst_equal to compare them. (resolve_operand_name_1): Make same identifier to string change here. * c-parse.in (asm_operand): Convert a named operand into a string. * cp/parse.y (asm_operand): Likewise. From-SVN: r52269
2002-04-13Daily bump.GCC Administrator2-2/+2
From-SVN: r52268
2002-04-13re PR c++/5373 (Statement expressions broken in C++)Mark Mitchell4-3/+24
PR c++ 5373. * g++.dg/parse/stmtexpr1.C: New test. PR c++/5373. * semantics.c (finish_expr_stmt): Remember the type of the expression before any conversions are performed. From-SVN: r52264
2002-04-13* config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).Andreas Schwab2-0/+5
From-SVN: r52262
2002-04-13re PR c++/5189 (g++ -c bug.cpp crashed on simple stupid file)Mark Mitchell4-0/+56
PR c++/5189. * call.c (add_template_candidate_real): Do not treat member templates as copy constructors. PR c++/5189. * g++.dg/template/copy1.C: New test. From-SVN: r52260
2002-04-13Revert these changes:Mark Mitchell4-13/+30
2002-04-06 Mark Mitchell <mark@codesourcery.com> PR c++/5571 * stor-layout.c (layout_decl): Reset the RTL for the decl. * decl.c (duplicate_decls): Do not copy the RTL for a variable declaration if the old variable had an incomplete type and the new variable does not. (complete_vars): Do not call layout_decl for completed variables. From-SVN: r52258
2002-04-12* gcc.c-torture/execute/20020406-1.c (DUPFFnew): Use calloc.Richard Henderson2-1/+6
From-SVN: r52255
2002-04-12config.gcc (sparcv9-*-solaris2): Default to 32-bit code.Richard Henderson12-149/+95
* config.gcc (sparcv9-*-solaris2): Default to 32-bit code. (sparc*-*-solaris): Clean up header files. * configure.in (AS_SPARC64_FLAG): Error out if can't find it and plan on generating 64-bit code. * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2. * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code. * config/sparc/sol2-sld-64.h: Rename ... * config/sparc/sol2-bi.h: ... here. Remove the bits that checked for AS_SPARC64_FLAG not defined. * config/sparc/sol2-gld-bi.h: New. * config/sparc/sol2-sld.h: Remove. * config/sparc/sol26-sld.h: New. * config/sparc/sol2.h: Tidy comments. * doc/install.texi: Document sparc-solaris configury changes. From-SVN: r52251
2002-04-12recog.c (offsettable_address_p): Match the logic in adjust_address.Richard Henderson3-3/+13
* recog.c (offsettable_address_p): Match the logic in adjust_address. * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode in 64-bit mode only. Use only for 32-bit or MEDLOW. From-SVN: r52250
2002-04-12* config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.Rainer Orth2-2/+7
From-SVN: r52246
2002-04-12Fix typo in ChangeLog entry.Jeff Law1-1/+1
From-SVN: r52244
2002-04-12pa.c (pa_can_combine_p): Call insn_extract before calling constrain_operands.Jeff Law2-1/+6
* pa.c (pa_can_combine_p): Call insn_extract before calling constrain_operands. From-SVN: r52242
2002-04-1220020412-1.c: New file, renamed from gcc.c-torture/execute/20020307-2.c.Geoffrey Keating2-0/+5
* gcc.c-torture/execute/20020412-1.c: New file, renamed from gcc.c-torture/execute/20020307-2.c. From-SVN: r52241
2002-04-12* config/i386/i386-interix.h (CPP_PREDEFINES): Handle __declspec.Douglas B Rupp2-0/+2
From-SVN: r52239
2002-04-12i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.Douglas B Rupp3-3/+17
* config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define. (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define. (DEFAULT_PCC_STRUCT_RETURN): Define as 0. * config/i386/t-interix (USER_H): Remove. From-SVN: r52237
2002-04-12integrate.c (compare_blocks): Make comparisons safe for when sizeof(int) < ↵DJ Delorie2-4/+18
sizeof(char *). * integrate.c (compare_blocks): Make comparisons safe for when sizeof(int) < sizeof(char *). (find_block): Likewise. From-SVN: r52232
2002-04-12rs6000.c (call_operand): Allow LINK and COUNT registers.Jan Hubicka4-7/+32
2002-04-12 Jan Hubicka <jh@suse.cz> David Edelsohn <edelsohn@gnu.org> * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT registers. (symbol_ref_operand): New. * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand. * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand. Co-Authored-By: David Edelsohn <edelsohn@gnu.org> From-SVN: r52231
2002-04-12ia64.h (ASM_SPEC): Moved from here ...Andreas Schwab3-5/+11
* config/ia64/ia64.h (ASM_SPEC): Moved from here ... * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it overrides the definition in config/svr4.h. From-SVN: r52228
2002-04-12Add --extdirs support.Anthony Green9-20/+183
From-SVN: r52227
2002-04-12rtems.h, [...] (*-rtems*): Cleanup pass to move common definitions to ↵Eric Norum20-126/+29
config/rtems.h and make the targets... 2002-04-12 Eric Norum <eric.norum@usask.ca> * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h, config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h, config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h, config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h, config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h, config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h, config/v850/rtems.h (*-rtems*): Cleanup pass to move common definitions to config/rtems.h and make the targets more similar. From-SVN: r52225
2002-04-12expr.c (expand_assigment): Remove duplicate conversions #ifdef ↵Richard Kenner2-10/+15
POINTERS_EXTEND_UNSIGNED. * expr.c (expand_assigment): Remove duplicate conversions #ifdef POINTERS_EXTEND_UNSIGNED. (store_constructor, expand_expr, case COMPONENT_REF): Likewise. (store_expr): Use TYPE_MODE (sizetype), not ptr_mode. From-SVN: r52223
2002-04-12emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET not specified.Richard Kenner2-1/+6
* emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET not specified. From-SVN: r52221
2002-04-12sh.c (calc_live_regs, [...]): Use of PR_MEDIA_REG / PR_REG depends on ↵J"orn Rennecke2-5/+11
TARGET_SHMEDIA, not TARGET_SH5. * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG depends on TARGET_SHMEDIA, not TARGET_SH5. From-SVN: r52220
2002-04-12function.c (fixup_var_refs_1): For paradoxical (subreg VAR), replace VAR, ↵Hans-Peter Nilsson2-8/+27
don't try the subreg. * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>: For paradoxical (subreg VAR), replace VAR, don't try the subreg. From-SVN: r52217
2002-04-12* g++.dg/ext/attrib5.C,Richard Sandiford3-0/+40
* g++.dg/lookup/struct1.C: New tests. From-SVN: r52215
2002-04-12sh.c (broken_move): Constant 0.J"orn Rennecke2-3/+15
* sh.c (broken_move): Constant 0. / 1. load is OK if there is no r0 clobber. From-SVN: r52214
2002-04-12decl.c (duplicate_decls): Don't try to unify an implicit typedef with an ↵Richard Sandiford2-19/+84
explicit one. * decl.c (duplicate_decls): Don't try to unify an implicit typedef with an explicit one. (follow_tag_typedef): New. (lookup_tag): Use it to extract the tag of an explicit typedef. (xref_tag): Likewise. From-SVN: r52213
2002-04-12fix whitespaceJason Merrill1-1/+1
From-SVN: r52210
2002-04-12typeck.c (type_after_usual_arithmetic_conversions): If two types have the ↵Andrew Haley2-1/+22
same variant, return immediately. 2002-04-11 Andrew Haley <aph@redhat.com> * typeck.c (type_after_usual_arithmetic_conversions): If two types have the same variant, return immediately. When two floating-point operands are the same precision: convert to float if one of the operands is float; if neither operand is one of the standard types, return the type of the first operand. From-SVN: r52209
2002-04-12* config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.Andreas Schwab2-1/+5
From-SVN: r52206
2002-04-12re PR bootstrap/4191 (GCC does not build for d30v-elf - needs tweaking for ↵Richard Henderson4-20/+46
crtstuff.c changes) PR bootstrap/4191 * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef. * flow.c (mark_used_reg): Manage reg_cond_dead properly for modes spanning multiple hard regs. * recog.c (peephole2_optimize): Rebuild jump labels as needed. From-SVN: r52205
2002-04-12Daily bump.GCC Administrator2-2/+2
From-SVN: r52203
2002-04-12pa.c (pa_output_function_prologue): Don't accumulate the total number of ↵John David Anglin5-66/+173
code bytes when using TARGET_64BIT... * pa.c (pa_output_function_prologue): Don't accumulate the total number of code bytes when using TARGET_64BIT, or gas, SOM and not the portable runtime. (output_deferred_plabels): Handle 64bit plabels. (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when generating pic code using the GAS assembler for object formats that are not SOM (ie., ELF32 and ELF64). (output_millicode_call): Check attribute type if attribute length is 28. Likewise use $PIC_pcrel$0. Only call get_attr_length and dbr_sequence_length once. (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and dbr_sequence_length once. * pa.h (TARGET_SOM): Define if not defined. * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0 with GAS and not SOM. (jump, call_internal_reg, call_value_internal_reg): Likewise. * som.h (OBJ_SOM): Rename to TARGET_SOM. Undefine before defining. From-SVN: r52196
2002-04-12freebsd.h (NO_IMPLICIT_EXTERN_C, [...]): Give value.David O'Brien4-42/+26
2002-04-11 David O'Brien <obrien@FreeBSD.org> * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value. (DEFAULT_PCC_STRUCT_RETURN) Do not redefine. (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP, DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE): elfos.h and dbxelf.h values are fine now. * config/i386/freebsd.h, config/alpha/freebsd.h (DEFAULT_PCC_STRUCT_RETURN): Define to 0. Approved by: Richard Henderson <rth@redhat.com> Message-ID: <20020411175216.B11442@redhat.com> From-SVN: r52194
2002-04-12aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__ or set Acpu or Amachine.David O'Brien7-58/+70
2002-04-11 David O'Brien <obrien@FreeBSD.org> * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__ or set Acpu or Amachine. Reformat. (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not define. (LINK_SPEC): Do not need to undef. * config/ia64/elf.h (ASM_EXTRA_SPEC): Define. * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef. (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not define. * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define. (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead. (LINK_SPEC): Do not need to undef. (DONT_USE_BUILTIN_SETJMP): Do not define. * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add. (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine. Remove -Dia64. (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define. Remove trailing spaces. * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__, __ELF__, or set Acpu or Amachine. Reformat. (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not define. Approved by: Richard Henderson <rth@redhat.com> Message-ID: <20020411160138.A11250@redhat.com> From-SVN: r52191