aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2010-06-18 20:27:21 +0930
committerAlan Modra <amodra@gcc.gnu.org>2010-06-18 20:27:21 +0930
commit9628d8f6670fcf721ce6c96619820e9fe6f90174 (patch)
tree39fff7321c197fd5f8d660e7c062709624df5d7a
parentfcfb981b1a4e9a859a3cad5a34e963d74aeca468 (diff)
downloadgcc-9628d8f6670fcf721ce6c96619820e9fe6f90174.zip
gcc-9628d8f6670fcf721ce6c96619820e9fe6f90174.tar.gz
gcc-9628d8f6670fcf721ce6c96619820e9fe6f90174.tar.bz2
linux64.h (SET_CMODEL): Don't expand to empty.
* config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty. From-SVN: r160978
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/rs6000/linux64.h2
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 69d49ff..2af7e6b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2010-06-18 Alan Modra <amodra@gmail.com>
+
+ * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
+
2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR target/43740
@@ -358,7 +362,7 @@
* config.in: Regenerate.
* config/rs6000/linux64.opt (mcmodel): New.
* config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
- (TARGET_CMODEL): Define.
+ (TARGET_CMODEL, SET_CMODEL): Define.
(SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
select CMODEL_MEDIUM default.
* config/rs6000/rs6000.h (enum rs6000_cmodel): New.
diff --git a/gcc/config/rs6000/linux64.h b/gcc/config/rs6000/linux64.h
index d787d29..c4e3651 100644
--- a/gcc/config/rs6000/linux64.h
+++ b/gcc/config/rs6000/linux64.h
@@ -70,7 +70,7 @@ extern enum rs6000_cmodel cmodel;
#define TARGET_CMODEL cmodel
#define SET_CMODEL(opt) cmodel = opt
#else
-#define SET_CMODEL(opt)
+#define SET_CMODEL(opt) do {} while (0)
#endif
#undef PROCESSOR_DEFAULT