Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
68a8ca25
Commit
68a8ca25
authored
Aug 18, 1992
by
Richard Stallman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(do_include): If search_start is NULL, complain that we had nowhere to look.
From-SVN: r1878
parent
c0954bcd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
gcc/cccp.c
+12
-5
No files found.
gcc/cccp.c
View file @
68a8ca25
...
...
@@ -47,11 +47,13 @@ typedef unsigned char U_CHAR;
#define LOCAL_INCLUDE_DIR "/usr/local/include"
#endif
#if 0 /* We can't get ptrdiff_t, so I arranged not to need PTR_INT_TYPE. */
#ifdef __STDC__
#define PTR_INT_TYPE ptrdiff_t
#else
#define PTR_INT_TYPE long
#endif
#endif
/* 0 */
#include "pcp.h"
...
...
@@ -161,7 +163,6 @@ extern char *getenv ();
extern
FILE
*
fdopen
();
extern
char
*
version_string
;
extern
struct
tm
*
localtime
();
extern
char
*
malloc
(),
*
realloc
();
extern
int
sys_nerr
;
extern
char
*
sys_errlist
[];
...
...
@@ -3814,8 +3815,11 @@ get_filename:
strncpy
(
fname
,
fbeg
,
flen
);
fname
[
flen
]
=
0
;
error_from_errno
(
fname
);
if
(
search_start
)
error_from_errno
(
fname
);
else
error
(
"No include path in which to find %s"
,
fname
);
/* For -M, add this file to the dependencies. */
if
(
print_deps
>
(
angle_brackets
||
(
system_include_depth
>
0
)))
{
/* Break the line before this. */
...
...
@@ -4380,8 +4384,11 @@ pcfinclude (buf, limit, name, op)
/* First skip to a longword boundary */
/* ??? Why a 4-byte boundary? On all machines? */
if
((
PTR_INT_TYPE
)
cp
&
3
)
cp
+=
4
-
((
PTR_INT_TYPE
)
cp
&
3
);
/* NOTE: while int may not be as wide as a pointer on some machins,
this is correct nonethelesss works anyway.
Do not try risky measures here to get another type to use! */
if
((
int
)
cp
&
3
)
cp
+=
4
-
((
int
)
cp
&
3
);
/* Now get the string. */
str
=
(
STRINGDEF
*
)
cp
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment