aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-lex.c
AgeCommit message (Collapse)AuthorFilesLines
1997-12-20bitmap.c (bitmap_clear): Ensure `inline' is at the beginning of the declaration.Kaveh R. Ghazi1-1/+1
* bitmap.c (bitmap_clear): Ensure `inline' is at the beginning of the declaration. * c-decl.c (finish_decl): Use parentheses around && within ||. * rtl.c: Include stdlib.h. (read_skip_spaces): Add parentheses around assignments used as truth values. (read_rtx): Initialize list_rtx. * cppexp.c (parse_number): Use || when operands are truth values. * alias.c (find_base_value): Add default case. (memrefs_conflict): Likewise. * combine.c (sets_function_arg_p): Likewise. * genemit.c (gen_exp): Likewise. * local-alloc.c (contains_replace_regs): Likewise. * rtlanal.c (jmp_uses_reg_or_mem): Likewise. * fold-const.c (fold_convert): Use "&&" for truth values. (fold): Add default case. * sdbout.c (sdbout_field_types): Fix typo in declaration. (sdbout_one_type): Add default case. * alpha.c (alpha_sa_mask): Prototype only if OPEN_VMS. (some_operand): Add default case. (input_operand): Likewise. (signed_comparison_operator): Likewise. (divmod_operator): Likewise. (alpha_set_memflags_1): Likewise. * reload1.c (reload_cse_simplify_operands): Ensure function always returns a value. * scan-decls.c (scan_decls): Likewise. * c-lex.c (skip_white_space): Fix typo in declaraion. * c-typeck.c (comp_target_types): Add parentheses around assignment used as truth value. (print_spelling): Likewise. (constructor_implicit, constructor_result): Remove unused variables. * collect2.c (scan_library): Protect prototype with #ifdef SCAN_LIBRARIES. * emit-rtl.c (find_line_note): Fix typo in declaration. * final.c (asm_insn_count): Protect prototype with #ifdef HAVE_ATTR_length. * flow.c (find_auto_inc): Protect prototype with #ifdef AUTO_INC_DEC. (try_pre_increment_1, try_pre_increment): Likewise. * regclass.c (auto_inc_dec_reg_p): Protect prototype with #ifdef FORBIDDEN_INC_DEC_CLASSES. Make return type explicit. * gcov-io.h (__store_long, __write_long, __read_long): Fix unsigned/signed comparisons. * gcov.c (read_files): Remove unused "first_type" variable. (scan _for_source_files): Initialize s_ptr. (function_summary): Eliminate "%lf" formatting, use %ld for longs. (output_data): Initialize branch_probs and last_line_num. Eliminate "%lf" formatting, use "%ld" for longs. Co-Authored-By: Jeffrey A Law <law@cygnus.com> From-SVN: r17158
1997-12-06Merge from gcc-2.8Jeff Law1-13/+12
From-SVN: r16987
1997-11-12glimits.h (SHRT_MIN): Define in a way suitable for 16 bit hosts.J"orn Rennecke1-28/+69
* glimits.h (SHRT_MIN): Define in a way suitable for 16 bit hosts. * c-lex.c (whitespace_cr, skip_white_space_on_line): New functions. (skip_white_space): Use whitespace_cr. (check_newline): Handle whitespace more consistently. From-SVN: r16433
1997-11-04c-lex.c (MULTIBYTE_CHARS): #undef if cross compiling.Doug Evans1-7/+8
* c-lex.c (MULTIBYTE_CHARS): #undef if cross compiling. (yylex): Record wide strings using target endianness, not host. From-SVN: r16315
1997-11-02Update mainline egcs to gcc2 snapshot 971021.Jeff Law1-6/+29
From-SVN: r16278
1997-08-14c-lex.c (check_newline): Pass finput again to HANDLE_PRAGMA.Jeff Law1-1/+1
* c-lex.c (check_newline): Pass finput again to HANDLE_PRAGMA. Bring over from the FSF. From-SVN: r14802
1997-08-01* c-lex.c (lang_init): Remove (recently moved here).Per Bothner1-11/+0
From-SVN: r14602
1997-07-29Patches to use cpplib with cc1 #if USE_CPPLIB.Per Bothner1-100/+266
From-SVN: r14557
1996-11-15xJason Merrill1-31/+6
From-SVN: r13160
1996-10-09(yylex): Treat `$' just like `_', except issue a diagnostic ifRichard Kenner1-8/+9
!dollars_in_ident or if pedantic. From-SVN: r12927
1996-09-29(yylex): Add new arg, TYPE, to call to build_complex.Richard Kenner1-3/+5
From-SVN: r12864
1996-05-05(check_newline): Fix #pragma parsing; issue error message forRichard Kenner1-6/+4
directive that starts with `p' but isn't `pragma'. From-SVN: r11928
1996-04-17(check_newline): Rewrite to use tokens.Jim Wilson1-16/+39
(handle_sysv_pragma): Take a token instead of a character. From-SVN: r11838
1996-02-18(yylex...Richard Kenner1-1/+17
(yylex, case '0'..'9','.'): For cases '0' and '1', check for single digit constant before resorting to general number processing. From-SVN: r11297
1996-02-01(check_newline): HANDLE_PRAGMA returns terminating char as result now.Doug Evans1-1/+1
From-SVN: r11155
1996-01-15c-lex.c (check_newline): Pass character after `#pragma' to HANDLE_PRAGMA.Doug Evans1-7/+8
* c-lex.c (check_newline): Pass character after `#pragma' to HANDLE_PRAGMA. Don't call get_directive_line if at end of line. * c-common.c (get_directive_line): Watch for EOF. * h8300/h8300.h (HANDLE_PRAGMA): New argument `c'. Must issue `return' now. * i960/i960.h (HANDLE_PRAGMA): Likewise. * sh/sh.h (HANDLE_PRAGMA): Likewise. * nextstep.h (HANDLE_PRAGMA): Likewise. * h8300/h8300.c (handle_pragma): New argument `ch'. Simplify pragma processing. Delete support for `#pragma section'. * i960/i960.c (process_pragma): New argument `c'. Change result to terminating character. * nextstep.c (handle_pragma): Likewise. * sh/sh.c (handle_pragma): Likewise. Also simplified. From-SVN: r10999
1995-12-28(yylex): Improve error message for bogus numbers.Richard Kenner1-39/+10
Consolidate duplicated code. From-SVN: r10892
1995-12-13Call new dbxout functions when changing source files.Ian Lance Taylor1-0/+8
From-SVN: r10705
1995-06-15Update FSF address.Richard Kenner1-1/+2
From-SVN: r9959
1995-05-16Fix typos in comments.Richard Kenner1-1/+1
From-SVN: r9711
1995-04-18Move pragma interface support to c-pragma.hMichael Meissner1-0/+1
From-SVN: r9410
1995-03-02(yylex, case !NOT_FLOAT): Remove previous change.Richard Kenner1-1/+1
From-SVN: r9110
1995-02-21(yylex): Add support for <: :> <% %> digraphs.Richard Kenner1-2/+23
From-SVN: r8982
1995-02-21(yylex): For float, build constant in long double.Richard Kenner1-1/+1
From-SVN: r8980
1995-02-21(check_newline): Give warning if unrecognized data on #line.Richard Kenner1-2/+18
(yylex): Give error for unterminated string constant. From-SVN: r8976
1994-11-21(yylex): Do warn about floating point out of range if target floating-point ↵Jim Wilson1-13/+12
format is IEEE. (yylex): Do warn about floating point out of range if target floating-point format is IEEE. Use warning instead of pedwarn to avoid getting errors. From-SVN: r8538
1994-07-02(yylex): Reject imaginary numbers when pedantic.Jim Wilson1-0/+4
From-SVN: r7646
1994-04-20(check_newline): Avoid unreachable statement when HANDLE_SYSV_PRAGMARichard Kenner1-1/+2
defined. From-SVN: r7092
1994-04-18(yylex): If FP value is NaN, use value of zero.Richard Kenner1-0/+6
From-SVN: r7071
1994-04-16(yylex): Turn off overflow flag when fixing up large traditional hexRichard Kenner1-0/+2
constants. From-SVN: r7050
1994-03-04Delete gperf-generated source from here.Richard Kenner1-184/+4
From-SVN: r6694
1994-02-27(readescape): Initialize FIRSTDIG.Richard Kenner1-2/+2
From-SVN: r6638
1993-12-10(yylex): When reading malformed floating point constant,Jim Wilson1-1/+7
avoid printing error more than once, and avoid passing malformed number to subsequent atof call. From-SVN: r6201
1993-09-29(ignore_escape_flag): Remove var.Paul Eggert1-8/+2
(check_newline, yylex): Do not ignore escapes when reading file names, because escapes are the only way to represent file names containing '"'. From-SVN: r5528
1993-09-28(yylex): Handle i together with f or l in float constant.Richard Stallman1-39/+78
From-SVN: r5501
1993-06-26Include ctype.h.Richard Stallman1-2/+2
(isalnum, isdigit): Macros deleted. From-SVN: r4744
1993-05-26(readescape): Don't complain for \% unless pedantic.Richard Stallman1-0/+2
From-SVN: r4575
1993-05-01(yylex): Avoid invalid shift for erroneous empty char const.Richard Stallman1-2/+5
From-SVN: r4292
1993-04-28(yylex): Don't use unsigned comparison to also check for < 0; do itRichard Kenner1-1/+1
explicitly. From-SVN: r4257
1993-04-25(yylex): Don't warn about floating point out of range if targetRichard Kenner1-5/+9
floating-point format is IEEE. From-SVN: r4213
1993-04-24(forget_protocol_qualifiers): Cast enums to int before comparing.Richard Kenner1-1/+2
From-SVN: r4211
1993-04-09*** empty log message ***Tom Wood1-120/+208
From-SVN: r4068
1993-04-09More of previous change.Richard Stallman1-0/+4
From-SVN: r4060
1993-04-09(yylex): Use MAP_CHARACTER if it's defined.Richard Stallman1-0/+4
From-SVN: r4059
1993-03-31(yylex): Convert real decimal constants directly to the precision specified ↵Richard Stallman1-18/+30
by the letter at the end of the number. (yylex): Convert real decimal constants directly to the precision specified by the letter at the end of the number. Pass mode arg to REAL_VALUE_ATOF to specify precision. Move the "out of range of double" error check. From-SVN: r3936
1993-03-28Updated for recent change in c-parse.gperf.Richard Stallman1-58/+67
From-SVN: r3897
1993-03-20(yylex): Copy the string value we get from __FUNCTION__.Richard Stallman1-1/+6
From-SVN: r3798
1993-03-04(init_lex): Initialize rid pointers for complex.Richard Stallman1-46/+81
(yylex): Handle i or j in numeric constant. From-SVN: r3633
1993-03-02(init_lex): Set up ridpointers for `iterator'.Richard Stallman1-71/+64
But maybe turn it off again. From-SVN: r3588
1993-03-02(init_lex): Maybe turn off `iterator' as keyword.Richard Stallman1-0/+2
From-SVN: r3581