Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
alexbiehl-gc
GHC
Commits
6144a6ec
Commit
6144a6ec
authored
26 years ago
by
sof
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 1999-01-11 10:15:04 by sof]
Fixed caching bug in FPTOOLS_END_{TEXT,DATA}_SECTION.
parent
71844799
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
aclocal.m4
+27
-26
27 additions, 26 deletions
aclocal.m4
with
27 additions
and
26 deletions
aclocal.m4
+
27
−
26
View file @
6144a6ec
dnl $Id: aclocal.m4,v 1.3
5
199
8/12/02
1
3
:1
7:10 simonm
Exp $
dnl $Id: aclocal.m4,v 1.3
6
199
9/01/11
1
0
:1
5:04 sof
Exp $
dnl
dnl Extra autoconf macros for the Glasgow fptools
dnl
...
...
@@ -457,55 +457,56 @@ AC_DEFUN(FPTOOLS_IN_SCOPE,AC_TRY_LINK([extern char* $1;],[return (int)&$2], $3=y
dnl *** What's the end-of-text-section marker called? ***
dnl
AC_DEFUN(FPTOOLS_END_TEXT_SECTION,
[AC_CACHE_CHECK([for end of text section marker], fptools_cv_end_of_text,
[
[AC_MSG_CHECKING([for end of text section marker])
not_done=1
for i in etext _etext __etext; do
FPTOOLS_IN_SCOPE($i,$i,fptools_
cv_
end_of_text)
if test "$fptools_
cv_
end_of_text" = yes; then
AC_DEFINE_UNQUOTED(TEXT_SECTION_END_MARKER_DECL, $i)
AC_DEFINE_UNQUOTED(TEXT_SECTION_END_MARKER, $i)
FPTOOLS_IN_SCOPE($i,$i,fptools_end_of_text)
if test "$fptools_end_of_text" = yes; then
AC_CACHE_VAL([fptools_cv_end_of_text_decl],
AC_DEFINE_UNQUOTED(TEXT_SECTION_END_MARKER_DECL, $i)
)
AC_CACHE_VAL([fptools_cv_end_of_text],
AC_DEFINE_UNQUOTED(TEXT_SECTION_END_MARKER, $i)
)
not_done=0
break
fi
done
if test "$not_done" = 1; then
FPTOOLS_IN_SCOPE(etext asm("etext"),etext,fptools_
cv_
end_of_text);
if test "$fptools_
cv_
end_of_text" = yes; then
AC_
DEFINE
(TEXT_SECTION_END_MARKER
_DECL
, etext
asm("etext"
))
AC_
DEFINE
(TEXT_SECTION_END_MARKER, etext)
FPTOOLS_IN_SCOPE(etext asm("etext"),etext,fptools_end_of_text);
if test "$fptools_end_of_text" = yes; then
AC_
CACHE_VAL([fptools_cv_end_of_text], AC_DEFINE_UNQUOTED
(TEXT_SECTION_END_MARKER, etext))
AC_
CACHE_VAL([fptools_cv_end_of_text_decl], AC_DEFINE_UNQUOTED
(TEXT_SECTION_END_MARKER
_DECL
, etext
asm("etext"))
)
else
AC_DEFINE(TEXT_SECTION_END_MARKER, dunno_what_it_is)
AC_DEFINE_UNQUOTED(TEXT_SECTION_END_MARKER_DECL, dunno_what_it_is)
AC_DEFINE_UNQUOTED(TEXT_SECTION_END_MARKER, dunno_what_it_is)
fi
fi
])])
AC_MSG_RESULT([$]fptools_cv_end_of_text)
])
dnl *** What's the end-of-data-section marker called? ***
dnl
AC_DEFUN(FPTOOLS_END_DATA_SECTION,
[AC_CACHE_CHECK([for end of data section marker], fptools_cv_end_of_data,
[
[AC_MSG_CHECKING([for end of data section marker])
not_done=1
for i in end _end __end; do
FPTOOLS_IN_SCOPE($i,$i,fptools_
cv_
end_of_data)
if test "$fptools_
cv_
end_of_data" = yes; then
AC_DEFINE_UNQUOTED(DATA_SECTION_END_MARKER_DECL, $i)
AC_DEFINE_UNQUOTED(DATA_SECTION_END_MARKER, $i)
FPTOOLS_IN_SCOPE($i,$i,fptools_end_of_data)
if test "$fptools_end_of_data" = yes; then
AC_CACHE_VAL([fptools_cv_end_of_data_decl], [
AC_DEFINE_UNQUOTED(DATA_SECTION_END_MARKER_DECL, $i)
])
AC_CACHE_VAL([fptools_cv_end_of_data], [
AC_DEFINE_UNQUOTED(DATA_SECTION_END_MARKER, $i)
])
not_done=0
break
fi
done
if test "$not_done" = 1; then
FPTOOLS_IN_SCOPE(end asm("end"),end,fptools_
cv_
end_of_data);
if test "$fptools_
cv_
end_of_data" = yes; then
AC_
DEFINE
(DATA_SECTION_END_MARKER_DECL, end asm("end"))
AC_
DEFINE
(DATA_SECTION_END_MARKER, end)
FPTOOLS_IN_SCOPE(end asm("end"),end,fptools_end_of_data);
if test "$fptools_end_of_data" = yes; then
AC_
CACHE_VAL([fptools_cv_end_of_data_decl], [AC_DEFINE_UNQUOTED
(DATA_SECTION_END_MARKER_DECL, end asm("end"))
])
AC_
CACHE_VAL([fptools_cv_end_of_data], [AC_DEFINE_UNQUOTED
(DATA_SECTION_END_MARKER, end)
])
else
AC_
DEFINE
(DATA_SECTION_END_MARKER_DECL, dunno_what_it_is)
AC_
DEFINE
(DATA_SECTION_END_MARKER, dunno_what_it_is)
AC_
CACHE_VAL([fptools_cv_end_of_data_decl], [AC_DEFINE_UNQUOTED
(DATA_SECTION_END_MARKER_DECL, dunno_what_it_is)
])
AC_
CACHE_VAL([fptools_cv_end_of_data], [AC_DEFINE_UNQUOTED
(DATA_SECTION_END_MARKER, dunno_what_it_is)
])
fi
fi
])])
AC_MSG_RESULT([$]fptools_cv_end_of_data)
])
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment