summaryrefslogtreecommitdiffstats
path: root/contrib/gcc/toplev.c
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2002-09-01 21:06:42 +0000
committerkan <kan@FreeBSD.org>2002-09-01 21:06:42 +0000
commitd1eeee6125926281648113f95fb550579f408206 (patch)
tree29771c1dafc05f7a9dce0286b93f22e4211e7b34 /contrib/gcc/toplev.c
parent2102521add4bacf07f80c1cb650e20139c6f07f4 (diff)
downloadFreeBSD-src-d1eeee6125926281648113f95fb550579f408206.zip
FreeBSD-src-d1eeee6125926281648113f95fb550579f408206.tar.gz
Merge FreeBSD modifications into gcc 3.2.1-prerelease:
1.2 -fformat-extensions 1.7 optimization downgrade 1.14 -O0 -O1 should optimize alignment for time, not size Approved by: obrien
Diffstat (limited to 'contrib/gcc/toplev.c')
-rw-r--r--contrib/gcc/toplev.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/contrib/gcc/toplev.c b/contrib/gcc/toplev.c
index 6c3f72d..3694be8 100644
--- a/contrib/gcc/toplev.c
+++ b/contrib/gcc/toplev.c
@@ -2255,6 +2255,19 @@ rest_of_decl_compilation (decl, asmspec, top_level, at_end)
#define ASM_FINISH_DECLARE_OBJECT(FILE, DECL, TOP, END)
#endif
+ /* We deferred calling assemble_alias so that we could collect
+ other attributes such as visibility. Emit the alias now. */
+ {
+ tree alias;
+ alias = lookup_attribute ("alias", DECL_ATTRIBUTES (decl));
+ if (alias)
+ {
+ alias = TREE_VALUE (TREE_VALUE (alias));
+ alias = get_identifier (TREE_STRING_POINTER (alias));
+ assemble_alias (decl, alias);
+ }
+ }
+
/* Forward declarations for nested functions are not "external",
but we need to treat them as if they were. */
if (TREE_STATIC (decl) || DECL_EXTERNAL (decl)
@@ -3643,12 +3656,6 @@ display_help ()
printf (_(" -Wunused Enable unused warnings\n"));
printf (_(" -Wlarger-than-<number> Warn if an object is larger than <number> bytes\n"));
printf (_(" -p Enable function profiling\n"));
-#if defined (BLOCK_PROFILER) || defined (FUNCTION_BLOCK_PROFILER)
- printf (_(" -a Enable block profiling \n"));
-#endif
-#if defined (BLOCK_PROFILER) || defined (FUNCTION_BLOCK_PROFILER) || defined FUNCTION_BLOCK_PROFILER_EXIT
- printf (_(" -ax Enable jump profiling \n"));
-#endif
printf (_(" -o <file> Place output into <file> \n"));
printf (_("\
-G <number> Put global and static data smaller than <number>\n\
@@ -5260,7 +5267,7 @@ toplev_main (argc, argv)
parse_options_and_default_flags (argc, argv);
/* Exit early if we can (e.g. -help). */
- if (!exit_after_options)
+ if (!errorcount && !exit_after_options)
do_compile ();
if (errorcount || sorrycount)
OpenPOWER on IntegriCloud