summaryrefslogtreecommitdiff
path: root/gcc/c-lang.c
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-29 18:54:06 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2004-11-29 18:54:06 +0000
commitb42190bc5c772307c6b0b13a2bd678054df176cc (patch)
tree09efe121e3a286e0aae7308c8245228e8c339428 /gcc/c-lang.c
parentac6cd2a261f9ca7349a8aaf9e288605a80521944 (diff)
downloadgcc-b42190bc5c772307c6b0b13a2bd678054df176cc.tar.gz
2004-11-29 Daniel Jacobowitz <dan@codesourcery.com>
PR c/7544 * Makefile.in (c-lang.o): Update dependencies. * c-lang.c: Include "c-pragma.h". (finish_file): Call maybe_apply_pending_pragma_weaks. * c-pragma.c (maybe_apply_pending_pragma_weaks): New function. * c-pragma.h (maybe_apply_pending_pragma_weaks): New prototype. cp: 2004-11-29 Daniel Jacobowitz <dan@codesourcery.com> * Make-lang.in (cp/decl2.o): Update dependencies. * decl2.c (finish_file): Call maybe_apply_pending_pragma_weaks. objc: 2004-11-29 Joseph Myers <joseph@codesourcery.com> * Make-lang.in (objc/objc-act.o): Update dependencies. * objc-act.c (objc_finish_file): Call maybe_apply_pending_pragma_weaks if not OBJCPLUS. testsuite: 2004-11-29 Joseph Myers <joseph@codesourcery.com> * g++.dg/ext/weak1.C, gcc.dg/weak/weak-10.c, objc.dg/weak-1.m: New tests. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@91479 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-lang.c')
-rw-r--r--gcc/c-lang.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/c-lang.c b/gcc/c-lang.c
index 8eb090c4d62..15524480c47 100644
--- a/gcc/c-lang.c
+++ b/gcc/c-lang.c
@@ -34,6 +34,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "diagnostic.h"
#include "c-pretty-print.h"
#include "c-objc-common.h"
+#include "c-pragma.h"
enum c_language_kind c_language = clk_c;
@@ -88,6 +89,7 @@ const char *const tree_code_name[] = {
void
finish_file (void)
{
+ maybe_apply_pending_pragma_weaks ();
}
#include "gtype-c.h"