This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] fix for broken build due to dataflow merge


The Xtensa port does not build since the dataflow merge because of code in df-scan.c that assumes STATIC_CHAIN_REGNUM is always defined. For Xtensa we pass the static chain in memory, so STATIC_CHAIN_REGNUM is not defined.

This patch fixes the immediate problem. I verified that it fixes the Xtensa port build and also ran an i686-pc-linux-gnu bootstrap to test it. I would be happy to commit it if someone approves.

However, it looks to me like further changes might be appropriate. The same code to add the static chain register to entry_block_defs appears earlier in the same function, but it is guarded by different conditions. It looks suspiciously redundant, or close to it anyway.

2007-06-13 Bob Wilson <bob.wilson@acm.org>

* df-scan.c (df_get_entry_block_def_set): Check if STATIC_CHAIN_REGNUM
is defined.


Attachment: gcc-static-chain.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]