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
abe57d38
Commit
abe57d38
authored
Feb 24, 2004
by
Matt Austern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverted patch to add the -mmacosx= feature. (Darwin only)
From-SVN: r78383
parent
8db4d7a1
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
2 additions
and
88 deletions
+2
-88
gcc/ChangeLog
+0
-16
gcc/config/darwin-protos.h
+0
-2
gcc/config/darwin.c
+0
-42
gcc/config/darwin.h
+0
-13
gcc/config/i386/darwin.h
+0
-5
gcc/config/rs6000/darwin.h
+1
-2
gcc/doc/invoke.texi
+1
-8
No files found.
gcc/ChangeLog
View file @
abe57d38
...
@@ -524,22 +524,6 @@
...
@@ -524,22 +524,6 @@
* doc/install.texi: Update for switch of boehm-gc to autoconf 2.57.
* doc/install.texi: Update for switch of boehm-gc to autoconf 2.57.
2003-02-23 Matt Austern <austern@apple.com >
* config/darwin.h (SUBTARGET_OPTIONS): Add -mmacosx= option.
(macosx_version_min_required): Declare global variable.
* config/darwin-protos.h (darwin_parse_macosx_version_name): Declare.
* config/darwin.c (macosx_version_min_required): Define variable.
(darwin_macosx_vers_tbl): Define. Table mapping text strings of
OS versions to numerical codes.
(darwin_parse_macosx_version_name): Define. Parse -mmacosx=,
set macosx_version_min_required appropriately.
* config/i386/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Define.
Invoke darwin_parse_macosx_version_name.
* config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Add
darwin_parse_macosx_version_name to Darwin option handling.
* doc/invoke.texi (-mmacosx=): Document.
2004-02-23 Dale Johannesen <dalej@apple.com>
2004-02-23 Dale Johannesen <dalej@apple.com>
* config/rs6000.md (movsf_hardfloat): Add POWER form of nop.
* config/rs6000.md (movsf_hardfloat): Add POWER form of nop.
...
...
gcc/config/darwin-protos.h
View file @
abe57d38
...
@@ -18,8 +18,6 @@ along with GCC; see the file COPYING. If not, write to
...
@@ -18,8 +18,6 @@ along with GCC; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
Boston, MA 02111-1307, USA. */
extern
void
darwin_parse_macosx_version_name
(
void
);
extern
int
name_needs_quotes
(
const
char
*
);
extern
int
name_needs_quotes
(
const
char
*
);
extern
void
machopic_validate_stub_or_non_lazy_ptr
(
const
char
*
,
int
);
extern
void
machopic_validate_stub_or_non_lazy_ptr
(
const
char
*
,
int
);
...
...
gcc/config/darwin.c
View file @
abe57d38
...
@@ -48,48 +48,6 @@ static void update_non_lazy_ptrs (const char *);
...
@@ -48,48 +48,6 @@ static void update_non_lazy_ptrs (const char *);
static
void
update_stubs
(
const
char
*
);
static
void
update_stubs
(
const
char
*
);
static
const
char
*
machopic_non_lazy_ptr_name
(
const
char
*
);
static
const
char
*
machopic_non_lazy_ptr_name
(
const
char
*
);
/* Earliest operating system for which generated code is targeted, as string
and as integer. The string form is "10.0", "10.1", etc. The corresponding
numeric versions are 1000, 1010, etc. This number is used for feature
tests of the form "enable_this_feature = macosx_version_min_required >= n",
so 0 is a conservative default. */
const
char
*
darwin_macosx_version_name
;
unsigned
int
macosx_version_min_required
=
0
;
/* Parse -macosx= option. */
static
struct
darwin_macosx_vers
{
const
char
*
vers_str
;
unsigned
int
vers_num
;
}
darwin_macosx_vers_tbl
[]
=
{
{
"10.0"
,
1000
},
{
"10.1"
,
1010
},
{
"10.2"
,
1020
},
{
"jaguar"
,
1020
},
{
"10.3"
,
1030
},
{
"panther"
,
1030
},
{
"10.4"
,
1040
},
{
"10.5"
,
1050
},
{
NULL
,
0
}
};
void
darwin_parse_macosx_version_name
(
void
)
{
if
(
darwin_macosx_version_name
)
{
struct
darwin_macosx_vers
*
v
=
darwin_macosx_vers_tbl
;
while
(
v
->
vers_str
&&
strcmp
(
darwin_macosx_version_name
,
v
->
vers_str
)
!=
0
)
v
++
;
if
(
v
->
vers_str
)
macosx_version_min_required
=
v
->
vers_num
;
else
warning
(
"-macosx=%s: unrecognized version"
,
darwin_macosx_version_name
);
}
}
int
int
name_needs_quotes
(
const
char
*
name
)
name_needs_quotes
(
const
char
*
name
)
{
{
...
...
gcc/config/darwin.h
View file @
abe57d38
...
@@ -82,19 +82,6 @@ Boston, MA 02111-1307, USA. */
...
@@ -82,19 +82,6 @@ Boston, MA 02111-1307, USA. */
#undef DEFAULT_PCC_STRUCT_RETURN
#undef DEFAULT_PCC_STRUCT_RETURN
#define DEFAULT_PCC_STRUCT_RETURN 0
#define DEFAULT_PCC_STRUCT_RETURN 0
/* Strings provided by SUBTARGET_OPTIONS */
extern
const
char
*
darwin_macosx_version_name
;
/* Override rs6000.h/i386.h definition */
#undef SUBTARGET_OPTIONS
#define SUBTARGET_OPTIONS \
{ "macosx=", &darwin_macosx_version_name, \
N_("Earliest operating system for which code should be generated"), 0 }
/* Earliest operating system for which generated code is targeted. 1000 for 10.0,
1010 for 10.1, etc. */
extern
unsigned
int
macosx_version_min_required
;
/* This table intercepts weirdo options whose names would interfere
/* This table intercepts weirdo options whose names would interfere
with normal driver conventions, and either translates them into
with normal driver conventions, and either translates them into
standardly-named options, or adds a 'Z' so that they can get to
standardly-named options, or adds a 'Z' so that they can get to
...
...
gcc/config/i386/darwin.h
View file @
abe57d38
...
@@ -51,11 +51,6 @@ Boston, MA 02111-1307, USA. */
...
@@ -51,11 +51,6 @@ Boston, MA 02111-1307, USA. */
#define SUBTARGET_EXTRA_SPECS \
#define SUBTARGET_EXTRA_SPECS \
{ "darwin_arch", "i386" },
{ "darwin_arch", "i386" },
#define SUBTARGET_OVERRIDE_OPTIONS \
do { \
darwin_parse_macosx_version_name (); \
} while (0)
/* Use the following macro for any Darwin/x86-specific command-line option
/* Use the following macro for any Darwin/x86-specific command-line option
translation. */
translation. */
#define SUBTARGET_OPTION_TRANSLATE_TABLE
#define SUBTARGET_OPTION_TRANSLATE_TABLE
...
...
gcc/config/rs6000/darwin.h
View file @
abe57d38
...
@@ -87,8 +87,7 @@ do { \
...
@@ -87,8 +87,7 @@ do { \
flag_pic = 2; \
flag_pic = 2; \
} \
} \
} \
} \
darwin_parse_macosx_version_name (); \
}while(0)
} while (0)
/* We want -fPIC by default, unless we're using -static to compile for
/* We want -fPIC by default, unless we're using -static to compile for
the kernel or some such. */
the kernel or some such. */
...
...
gcc/doc/invoke.texi
View file @
abe57d38
...
@@ -461,7 +461,7 @@ in the following sections.
...
@@ -461,7 +461,7 @@ in the following sections.
-
single_module
-
static
-
sub_library
-
sub_umbrella
@
gol
-
single_module
-
static
-
sub_library
-
sub_umbrella
@
gol
-
twolevel_namespace
-
umbrella
-
undefined
@
gol
-
twolevel_namespace
-
umbrella
-
undefined
@
gol
-
unexported_symbols_list
-
weak_reference_mismatches
@
gol
-
unexported_symbols_list
-
weak_reference_mismatches
@
gol
-
whatsloaded
-
mmacosx
=@
var
{
ver
}
}
-
whatsloaded
}
@
emph
{
MIPS
Options
}
@
emph
{
MIPS
Options
}
@
gccoptlist
{-
EL
-
EB
-
march
=@
var
{
arch
}
-
mtune
=@
var
{
arch
}
@
gol
@
gccoptlist
{-
EL
-
EB
-
march
=@
var
{
arch
}
-
mtune
=@
var
{
arch
}
@
gol
...
@@ -7578,13 +7578,6 @@ See man ld(1) for more information.
...
@@ -7578,13 +7578,6 @@ See man ld(1) for more information.
This
specifies
the
@
var
{
executable
}
that
will
be
loading
the
build
This
specifies
the
@
var
{
executable
}
that
will
be
loading
the
build
output
file
being
linked
.
See
man
ld
(
1
)
for
more
information
.
output
file
being
linked
.
See
man
ld
(
1
)
for
more
information
.
@
item
-
mmacosx
=@
var
{
ver
}
@
opindex
mmacosx
This
specifies
the
earliest
version
of
Mac
OS
for
which
code
should
be
generated
.
Specifying
@
code
{-
mmacosx
=
10.2
},
for
example
,
allows
the
compiler
to
use
features
that
were
first
made
available
in
that
version
of
the
operating
system
.
@
item
-
allowable_client
@
var
{
client_name
}
@
item
-
allowable_client
@
var
{
client_name
}
@
itemx
-
arch_only
@
itemx
-
arch_only
...
...
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