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
2e91542a
Commit
2e91542a
authored
Oct 02, 1996
by
Jeff Law
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* pa/pa.h (PARSE_LDD_OUTPUT): Handle output from hpux10.20 "chatr".
From-SVN: r12887
parent
74924ee9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
3 deletions
+30
-3
gcc/config/pa/pa.h
+30
-3
No files found.
gcc/config/pa/pa.h
View file @
2e91542a
...
...
@@ -270,16 +270,43 @@ extern int target_flags;
linked executables and shared libraries. */
#define LDD_SUFFIX "chatr"
/* Look for lines like "dynamic /usr/lib/X11R5/libX11.sl"
or "static /usr/lib/X11R5/libX11.sl". */
or "static /usr/lib/X11R5/libX11.sl".
HPUX 10.20 also has lines like "static branch prediction ..."
so we filter that out explcitly.
We also try to bound our search for libraries with marker
lines. What a pain. */
#define PARSE_LDD_OUTPUT(PTR) \
do { \
static int in_shlib_list = 0; \
while (*PTR == ' ') PTR++; \
if (strncmp (PTR, "dynamic", sizeof ("dynamic") - 1) == 0) \
if (strncmp (PTR, "shared library list:", \
sizeof ("shared library list:") - 1) == 0) \
{ \
PTR = 0; \
in_shlib_list = 1; \
} \
else if (strncmp (PTR, "shared library binding:", \
sizeof ("shared library binding:") - 1) == 0)\
{ \
PTR = 0; \
in_shlib_list = 0; \
} \
else if (strncmp (PTR, "static branch prediction disabled", \
sizeof ("static branch prediction disabled") - 1) == 0)\
{ \
PTR = 0; \
in_shlib_list = 0; \
} \
else if (in_shlib_list \
&& strncmp (PTR, "dynamic", sizeof ("dynamic") - 1) == 0) \
{ \
PTR += sizeof ("dynamic") - 1; \
while (*p == ' ') PTR++; \
} \
else if (strncmp (PTR, "static", sizeof ("static") - 1) == 0) \
else if (in_shlib_list \
&& strncmp (PTR, "static", sizeof ("static") - 1) == 0) \
{ \
PTR += sizeof ("static") - 1; \
while (*p == ' ') PTR++; \
...
...
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