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
34b3b0f6
Commit
34b3b0f6
authored
Sep 13, 2001
by
Josh Martin
Committed by
Bruce Korb
Sep 13, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keep HP-UX headers from defining __size_t and leaving size_t undefined.
From-SVN: r45572
parent
c1d4e7e1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
71 additions
and
3 deletions
+71
-3
gcc/ChangeLog
+5
-0
gcc/fixinc/fixincl.x
+46
-3
gcc/fixinc/inclhack.def
+20
-0
No files found.
gcc/ChangeLog
View file @
34b3b0f6
2001
-
09
-
12
Josh
Martin
<
josh
.
martin
@abq
.
sc
.
philips
.
com
>
*
fixinc
/
inclhack
.
def
(
hpux11_size_t
)
:
Keep
HP
-
UX
headers
from
defining
__size_t
and
leaving
size_t
undefined
.
2001
-
09
-
12
Diego
Novillo
<
dnovillo
@redhat
.
com
>
*
basic
-
block
.
h
(
expunge_block
)
:
Declare
.
...
...
gcc/fixinc/fixincl.x
View file @
34b3b0f6
...
...
@@ -5,7 +5,7 @@
* files which are fixed to work correctly with ANSI C and placed in a
* directory that GNU C will search.
*
* This file contains 14
4
fixup descriptions.
* This file contains 14
5
fixup descriptions.
*
* See README for more information.
*
...
...
@@ -2068,6 +2068,43 @@ static const char* apzHpux11_FabsfPatch[] = {
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Hpux11_Size_T fix
*/
tSCC zHpux11_Size_TName[] =
"hpux11_size_t";
/*
* File name selection pattern
*/
#define zHpux11_Size_TList (char*)NULL
/*
* Machine/OS name selection pattern
*/
tSCC* apzHpux11_Size_TMachs[] = {
"*-hp-hpux*",
(const char*)NULL };
/*
* content selection pattern - do fix if pattern found
*/
tSCC zHpux11_Size_TSelect0[] =
"^#define __size_t size_t";
#define HPUX11_SIZE_T_TEST_CT 1
static tTestDesc aHpux11_Size_TTests[] = {
{ TT_EGREP, zHpux11_Size_TSelect0, (regex_t*)NULL }, };
/*
* Fix Command Arguments for Hpux11_Size_T
*/
static const char* apzHpux11_Size_TPatch[] = {
"format",
"_hpux_size_t",
"__size_t",
(char*)NULL };
/* * * * * * * * * * * * * * * * * * * * * * * * * *
*
* Description of Hpux11_Uint32_C fix
*/
tSCC zHpux11_Uint32_CName[] =
...
...
@@ -5614,9 +5651,9 @@ static const char* apzX11_SprintfPatch[] = {
*
* List of all fixes
*/
#define REGEX_COUNT 15
1
#define REGEX_COUNT 15
2
#define MACH_LIST_SIZE_LIMIT 279
#define FIX_COUNT 14
4
#define FIX_COUNT 14
5
/*
* Enumerate the fixes
...
...
@@ -5673,6 +5710,7 @@ typedef enum {
HPUX10_CPP_POW_INLINE_FIXIDX,
HPUX11_CPP_POW_INLINE_FIXIDX,
HPUX11_FABSF_FIXIDX,
HPUX11_SIZE_T_FIXIDX,
HPUX11_UINT32_C_FIXIDX,
HPUX11_VSNPRINTF_FIXIDX,
HPUX8_BOGUS_INLINES_FIXIDX,
...
...
@@ -6024,6 +6062,11 @@ tFixDesc fixDescList[ FIX_COUNT ] = {
HPUX11_FABSF_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aHpux11_FabsfTests, apzHpux11_FabsfPatch, 0 },
{ zHpux11_Size_TName, zHpux11_Size_TList,
apzHpux11_Size_TMachs,
HPUX11_SIZE_T_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
aHpux11_Size_TTests, apzHpux11_Size_TPatch, 0 },
{ zHpux11_Uint32_CName, zHpux11_Uint32_CList,
apzHpux11_Uint32_CMachs,
HPUX11_UINT32_C_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
...
...
gcc/fixinc/inclhack.def
View file @
34b3b0f6
...
...
@@ -1195,6 +1195,7 @@ fix = {
" }\n";
};
/*
* Keep HP-UX 11 from stomping on C++ math namespace
* with defines for fabsf.
...
...
@@ -1216,6 +1217,25 @@ fix = {
/*
* Prevent HP-UX 11 from defining __size_t and preventing size_t from
* being defined by having it define _hpux_size_t instead.
*/
fix = {
hackname = hpux11_size_t;
mach = "*-hp-hpux*";
select = "^#define __size_t size_t";
c_fix = format;
c_fix_arg = "_hpux_size_t";
c_fix_arg = "__size_t";
test_text =
"#define __size_t size_t\n"
" extern int getpwuid_r( char *, __size_t, struct passwd **);\n";
};
/*
* In inttypes.h on HPUX 11, the use of __CONCAT__ in the definition
* of UINT32_C has undefined behavior according to ISO/ANSI:
* the arguments to __CONCAT__ are not macro expanded before the
...
...
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