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
2628709d
Commit
2628709d
authored
Feb 08, 1994
by
Richard Kenner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Append "#include <stdlib.h>" to assert.h if it uses exit or abort.
From-SVN: r6507
parent
442e881d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
6 deletions
+18
-6
gcc/fixproto
+18
-6
No files found.
gcc/fixproto
View file @
2628709d
...
...
@@ -4,7 +4,7 @@
# fixproto TARGET-DIR SOURCE-DIR-ALL SOURCE-DIR-STD
#
# COPYRIGHT
# Copyright (C) 1993 Free Software Foundation, Inc.
# Copyright (C) 1993
, 1994
Free Software Foundation, Inc.
# This file is part of GNU CC.
#
# GNU CC is free software; you can redistribute it and/or modify
...
...
@@ -329,17 +329,29 @@ for code in ALL STD ; do
rm
-f
fixtmp.c fixtmp.i
done
# check for broken assert.h that needs stdio.h
if
test
-f
$abs_source_dir
/assert.h
-a
\!
-f
$abs_target_dir
/assert.h
\
&&
grep
'stderr'
$abs_source_dir
/assert.h
>
/dev/null
then
if
grep
'include.*stdio.h'
$abs_source_dir
/assert.h
>
/dev/null
then
true
if
test
-f
$abs_source_dir
/assert.h
-a
\!
-f
$abs_target_dir
/assert.h
;
then
if
grep
'stderr'
$abs_source_dir
/assert.h
>
/dev/null
;
then
if
grep
'include.*stdio.h'
$abs_source_dir
/assert.h
>
/dev/null
;
then
true
else
echo
'Fixing broken assert.h (needs stdio.h)'
cat
$abs_source_dir
/assert.h
>
$abs_target_dir
/assert.h
echo
'#include <stdio.h>'
>>
$abs_target_dir
/assert.h
fi
fi
if
grep
'exit *('
$abs_source_dir
/assert.h
>
/dev/null
||
grep
'abort *('
$abs_source_dir
/assert.h
>
/dev/null
;
then
if
grep
'include.*stdlib.h'
$abs_source_dir
/assert.h
>
/dev/null
;
then
true
else
echo
'Fixing broken assert.h (needs stdlib.h)'
if
test
!
-f
$abs_target_dir
/assert.h
;
then
cat
$abs_source_dir
/assert.h
>
$abs_target_dir
/assert.h
fi
echo
'#include <stdlib.h>'
>>
$abs_target_dir
/assert.h
fi
fi
fi
done_dirs
=
"
$done_dir
$rel_source_dir
"
done
...
...
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