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
3653bb99
Commit
3653bb99
authored
Jun 05, 1999
by
Gabriel Dos Reis
Committed by
Gabriel Dos Reis
Jun 05, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* std/std_valarray.h: Don't #include unconditionally <alloca.h>
From-SVN: r27364
parent
11fda01f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
2 deletions
+30
-2
libstdc++/ChangeLog
+5
-1
libstdc++/std/std_valarray.h
+25
-1
No files found.
libstdc++/ChangeLog
View file @
3653bb99
1999-06-06 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
1999-06-05 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
* std/std_valarray.h: Don't #include unconditionally <alloca.h>
1999-06-05 Gabriel Dos Reis <dosreis@cmla.ens-cachan.fr>
* std/std_valarray.h: New file.
* std/std_valarray.h: New file.
* std/slice.h: New file.
* std/slice.h: New file.
...
...
libstdc++/std/std_valarray.h
View file @
3653bb99
...
@@ -40,7 +40,31 @@
...
@@ -40,7 +40,31 @@
#include <functional>
#include <functional>
#include <algorithm>
#include <algorithm>
#include <alloca.h> // XXX non-standard.
#ifndef alloca
#ifdef __GNUC__
#define alloca __builtin_alloca
#else
/* not GNU C. */
#if (!defined (__STDC__) && defined (sparc)) || defined (__sparc__) || defined (__sparc) || defined (__sgi)
#include <alloca.h>
#else
/* not sparc */
#if defined (MSDOS) && !defined (__TURBOC__)
#include <malloc.h>
#else
/* not MSDOS, or __TURBOC__ */
#if defined(_AIX)
#include <malloc.h>
#pragma alloca
#else
/* not MSDOS, __TURBOC__, or _AIX */
#ifdef __hpux
#endif
/* __hpux */
#endif
/* not _AIX */
#endif
/* not MSDOS, or __TURBOC__ */
#endif
/* not sparc. */
#endif
/* not GNU C. */
#endif
/* alloca not defined. */
extern
"C"
{
void
*
alloca
(
size_t
);
}
extern
"C++"
{
extern
"C++"
{
...
...
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