diff options
author | Andrew Pinski <pinskia@physics.uc.edu> | 2006-03-01 19:28:22 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@gcc.gnu.org> | 2006-03-01 11:28:22 -0800 |
commit | c446d1a76efb7b8e9c5b138ac1724977f524f437 (patch) | |
tree | 5dd115815ad3e7c37b6d302031b3d00fb536bcac /gcc/config/darwin.h | |
parent | ab0ff8041e3f5457ff94126aa7a537a87267f98d (diff) | |
download | gcc-c446d1a76efb7b8e9c5b138ac1724977f524f437.zip gcc-c446d1a76efb7b8e9c5b138ac1724977f524f437.tar.gz gcc-c446d1a76efb7b8e9c5b138ac1724977f524f437.tar.bz2 |
re PR target/25761 (-fpic (not -fPIC) does not work with i686-darwin)
2006-03-01 Andrew Pinski <pinskia@physics.uc.edu>
PR target/25761
* config/darwin.h (MACHOPIC_JUST_INDIRECT): Check just
MACHO_DYNAMIC_NO_PIC_P.
(MACHOPIC_PURE): Check flag_pic and not MACHO_DYNAMIC_NO_PIC_P.
From-SVN: r111611
Diffstat (limited to 'gcc/config/darwin.h')
-rw-r--r-- | gcc/config/darwin.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 495178c..cd044b7 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -708,8 +708,8 @@ enum machopic_addr_class { #define MACHO_DYNAMIC_NO_PIC_P (TARGET_DYNAMIC_NO_PIC) #define MACHOPIC_INDIRECT (flag_pic || MACHO_DYNAMIC_NO_PIC_P) -#define MACHOPIC_JUST_INDIRECT (flag_pic == 1 || MACHO_DYNAMIC_NO_PIC_P) -#define MACHOPIC_PURE (flag_pic == 2 && ! MACHO_DYNAMIC_NO_PIC_P) +#define MACHOPIC_JUST_INDIRECT (MACHO_DYNAMIC_NO_PIC_P) +#define MACHOPIC_PURE (flag_pic && ! MACHO_DYNAMIC_NO_PIC_P) #undef TARGET_ENCODE_SECTION_INFO #define TARGET_ENCODE_SECTION_INFO darwin_encode_section_info |