diff options
author | nicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-20 17:52:44 +0000 |
---|---|---|
committer | nicola <nicola@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-02-20 17:52:44 +0000 |
commit | f6593d661db5e38d3a8cd676d97e3e5bdcd6c29f (patch) | |
tree | 4fa88789da4ac6afcba1f80d69d01dcbd5728d40 /gcc/objc/objc-act.c | |
parent | d098f394c138b6eeebe0e0ffe81f06179d80d142 (diff) | |
download | ppe42-gcc-f6593d661db5e38d3a8cd676d97e3e5bdcd6c29f.tar.gz ppe42-gcc-f6593d661db5e38d3a8cd676d97e3e5bdcd6c29f.zip |
Reverted usage of TARGET_64BIT for code generation for GNU Objective-C runtime
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170343 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/objc/objc-act.c')
-rw-r--r-- | gcc/objc/objc-act.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 0cabc52b3b6..a91c7083173 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -466,6 +466,8 @@ objc_write_global_declarations (void) and code if only checking syntax, or if generating a PCH file. */ if (!flag_syntax_only && !pch_file) { + location_t saved_location; + /* If gen_declaration desired, open the output file. */ if (flag_gen_declaration) { @@ -475,8 +477,24 @@ objc_write_global_declarations (void) fatal_error ("can%'t open %s: %m", dumpname); free (dumpname); } + + /* Set the input location to BUILTINS_LOCATION. This is good + for error messages, in case any is generated while producing + the metadata, but it also silences warnings that would be + produced when compiling with -Wpadded in case when padding is + automatically added to the built-in runtime data structure + declarations. We know about this padding, and it is fine; we + don't want users to see any warnings about it if they use + -Wpadded. */ + saved_location = input_location; + input_location = BUILTINS_LOCATION; + /* Compute and emit the meta-data tables for this runtime. */ (*runtime.generate_metadata) (); + + /* Restore the original location, just in case it mattered. */ + input_location = saved_location; + /* ... and then close any declaration file we opened. */ if (gen_declaration_file) fclose (gen_declaration_file); |